mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-27 22:49:25 +02:00
Unit stack rebalancing rework
- CStackInstance::count is now private with accessor methods - CStackInstance::experience renamed to totalExperience and now stores total stack experience (multiplied by stack size) to reduce rounding errors - CStackInstance::totalExperience is now private with accessors methods - stack experience is now automatically reallocated on stack management - Removed buggy BulkSmartRebalanceStacks pack, that mostly duplicates BulkRebalanceStacks - Renamed BulkSmartSplitStack to BulkSplitAndRebalanceStack to drop unclear "smart" in name - Reworked split-and-rebalance logic to correctly reallocate stack experience
This commit is contained in:
@@ -138,7 +138,7 @@ void CGPandoraBox::grantRewardWithMessage(const CGHeroInstance * h, int index, b
|
||||
loot.replaceName(c);
|
||||
}
|
||||
|
||||
if(vi.reward.creatures.size() == 1 && vi.reward.creatures[0].count == 1)
|
||||
if(vi.reward.creatures.size() == 1 && vi.reward.creatures[0].getCount() == 1)
|
||||
txt.appendLocalString(EMetaText::ADVOB_TXT, 185);
|
||||
else
|
||||
txt.appendLocalString(EMetaText::ADVOB_TXT, 186);
|
||||
|
||||
Reference in New Issue
Block a user