1. That's how it works for dwellings with more than 1 creature, you'll have to search the dialog proc or recruit mgr proc.
Gold and resources for purchase are withdrawn only after you manually close the window. Can you publish a code snippet that solves this problem?
2. Don't see the issue, the second creature is just pooling its quantity from the unupgraded creature. If the first goes up, so does upgraded.
Yes, indeed, there is no problem with that. But there is another problem.
Weak level 7 non-upgraded creatures do not require particularly valuable resources (mercury / sulfur / crystals / gems). Only gold.
Upgraded ones require 1 particularly valuable resource per creature. Behemoths / Ancient Behemoths, Bone Dragons / Ghost Dragons, Hydras / Chaos Hydras, Firebirds / Phoenixes
The rest of the 7th level creatures:
non-upgraded - 1 particularly valuable resources
upgraded - 2 particularly valuable resources
When buying upgraded creatures ones, the amount of especially valuable resources is not displayed (for Behemoths / Ancient Behemoths, Bone Dragons / Ghost Dragons, Hydras / Chaos Hydras, Firebirds / Phoenixes).
SPOILER 3. Look around in Olly/IDA you'll see the check for level 0 (1) creatures.
I am just learning to work with IDA. At this time, I can't do it myself without your help. Can you post the code snippet that solves this problem most properly?
Or the updated code of the
AdvMapGeneratorUpgrades function, which solves the 3 problems described above. Thanks.