1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-15 01:24:45 +02:00
This commit is contained in:
DjWarmonger
2013-04-27 08:11:20 +00:00
parent 32c87f532f
commit a7ed3ee3d0
3 changed files with 24 additions and 4 deletions

View File

@ -262,7 +262,7 @@ public:
BattleInfo *battle; //set to the current battle, if engaged
void randomizeArmy(int type);
void updateMoraleBonusFromArmy();
virtual void updateMoraleBonusFromArmy();
void armyChanged() override;
@ -620,6 +620,7 @@ public:
CBonusSystemNode *whatShouldBeAttached() override;
std::string nodeName() const override;
void updateMoraleBonusFromArmy() override;
void deserializationFix();
void recreateBuildingsBonuses();
bool addBonusIfBuilt(BuildingID building, Bonus::BonusType type, int val, TPropagatorPtr &prop, int subtype = -1); //returns true if building is built and bonus has been added