1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-06 09:09:40 +02:00

CGCreature: add reward granting. Fix issue 2372

This commit is contained in:
Arseniy Shestakov
2016-01-15 04:29:46 +03:00
parent ac730a591c
commit b84d7bd288
2 changed files with 32 additions and 0 deletions

View File

@@ -90,6 +90,7 @@ private:
void joinDecision(const CGHeroInstance *h, int cost, ui32 accept) const;
int takenAction(const CGHeroInstance *h, bool allowJoin=true) const; //action on confrontation: -2 - fight, -1 - flee, >=0 - will join for given value of gold (may be 0)
void giveReward(const CGHeroInstance * h) const;
};