Posts: 386
Threads: 43
Joined: Dec 2017
I turned the raze prompt off. Now it seems I got much more gold than I should when I do decide to raze from the results screen (with R). Razing with the prompt on gives me 300+ gold for the city I am presently at. Doing the "no raze prompt" and then razing yielded more than 1000 gold. The first "scroll" (which would be like conquest) said 200+ and after pressing R the raze "scroll" came up, showing the proper 300+. The actual amount my gold increases was 1100+ gold, though.
On similar vein, the diplomacy message from my ally saying "nice work, here's X gold for attacking our joint enemy" does not actually seem to increase my gold.
Posts: 10,492
Threads: 395
Joined: Aug 2015
The diplomacy issue is listed under known bugs : You get the gold immediately after the battle triggering the message, but the message won't be shown until the usual time (end of turn, or when you contact the wizard yourself). Please double check the raze bug extra gold is not the gold from the diplomacy feature.
June 9th, 2018, 08:37
(This post was last modified: June 9th, 2018, 08:37 by teelaurila.)
Posts: 386
Threads: 43
Joined: Dec 2017
The diplomacy message was a couple turns before, I'm fairly sure. And I played the same battle again with and without the raze prompt (so load game), in both cases razing the city. With widely different gold numbers in my "bank" afterwards. So I think this is sufficient to verify these two did not interact. I'll anyway double check with the next city I'm conquering.
June 9th, 2018, 09:10
(This post was last modified: June 9th, 2018, 09:12 by teelaurila.)
Posts: 386
Threads: 43
Joined: Dec 2017
Hmmm ... I suppose the diplo gold is given at random? On the next city, I tried to raze it a couple of times with the raze prompt option one way or the other. I "should" get 201 gold according to the scroll on raze.
With the raze prompt off I got 261 more gold after the combat than before.
With the raze prompt on I got 1041 more gold after the combat. I presume the diplo thing got triggered?
#2 with the raze prompt on I got 201 more gold after the combat. Which is the only one that actually fits.
I think the razing without the prompt could give you both the conquest gold (first scroll) and the raze gold (second scroll)? Which is a small difference. The huge difference is this diplo thing triggering.
June 9th, 2018, 16:58
(This post was last modified: June 9th, 2018, 17:15 by Seravy.)
Posts: 10,492
Threads: 395
Joined: Aug 2015
You should know whether the diplomacy effect triggered or not by trying to talk to the wizard giving you the gold after the battle. If they don't say they are giving you gold then, it means they didn't.
Razing from the two different sources happens in two different procedures, so it's entirely different that it's inconsistent.
Also note that one razing happens before the buildings are destroyed by battle, the other has to happen after because the "R" button is used when the game already displayed the list of wrecked buildings. So that would mean different amounts of gold as well, in a way that cannot be changed. Basically the option ends the battle without razing, then if the key is pressed, retroactively razes the city or something.
I'll need to investigate to be 100% sure on this.
...Normal Razing happens before building destruction, R-Razing happens after, but you get gold for all buildings not set to "Not built", which includes "Destroyed" and even "Replaced". So you get the the same money either way. Finally, both procedures seem to add 10% of the buildings' value so no difference in that either, and the number seems to go through the "displayed gold gain" variable, so I don't see any possible reason for getting different amounts.
Just a guess but maybe you have two allies and one can offer 60 gold while the other can offer 800, resulting in the inconsistency of the results?
June 10th, 2018, 15:46
(This post was last modified: June 10th, 2018, 16:04 by teelaurila.)
Posts: 386
Threads: 43
Joined: Dec 2017
I have just one ally. And as I recall both ways give the same amount of gold displayed on the raze, as I gather you deduced. But it maybe be that r-razing without the prompt gives you the money you would get if you conquered, on top of what you get on raze. I'll double check best I can.
Edit: Result of the double check is that on r-razing I got exactly the amount of gold that is the sum of the conquest and the raze as displayed.
Posts: 10,492
Threads: 395
Joined: Aug 2015
That...sounds correct. It means the variable is reset to 0 so you only get the conquest money and raze money once. However as a display it might be confusing, because you see two numbers and you get the sum of them as gold. Basically the displayed number and the gold you get are the same variable, but with "R" it displays two number so you get the gold twice as well. So if it wasn't reset before razing, you would be getting the conquest gold twice.
Does the normal raze not give you this amount of gold? (conquest+raze total)
Posts: 386
Threads: 43
Joined: Dec 2017
I'll double check again when I get the chance, but I am fairly certain I only get the raze amount with the normal raze. So by turning the raze prompt off, I am getting a little bit more gold with every raze. The display on raze gives the same number both ways. But r-razing also gives a little bit more on top of that. And that little bit more is exactly the conquest amount.
Posts: 10,492
Threads: 395
Joined: Aug 2015
I checked the code and the normal razing does add the conquest gold.
However the variable isn't cleared before R-Razing.
So what happens is
X:=conquest amount
Gain Gold X
Display end of combat message, "X gold gained"
If R us pressed, X:=X+raze amount
Gain Gold X
Display end of combat message "X gold gained".
Which means it displays the correct amount but adds the conquest amount twice. If I clear the variable, it'll add the correct amount but display it wrong (first conquest, the razed, never the sum of the two). So I'll need to use a new variable...
Posts: 386
Threads: 43
Joined: Dec 2017
So if I get it right, the end result is that if you don't know what goes on under the hood, you think that ("raze gold" + "conquest gold") is the normal amount that you should get on raze. And r-razing adds on top of that the conquest gold. Which is exactly what I'm seeing.
I don't think the display is necessarily wrong if you clear the variable, though. I mean you get one "scroll" displayed that tells you got X gold, and then you press R and get another "scroll" that says you got Y gold. It's quite reasonable that you now got X+Y gold. (And the sum would be what is shown to you if you had the raze prompt on).
So for what it's worth, I'd say just clear the variable.
|