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

Moved tower damage computation to town instance

This commit is contained in:
Ivan Savenko
2023-01-16 18:28:05 +02:00
parent b7c27e7d47
commit 30d7bdc884
3 changed files with 61 additions and 36 deletions

View File

@@ -330,6 +330,12 @@ public:
void addHeroToStructureVisitors(const CGHeroInstance *h, si64 structureInstanceID) const; //hero must be visiting or garrisoned in town
void deleteTownBonus(BuildingID::EBuildingID bid);
/// Returns damage range for secondary towers of this town
TDmgRange getTowerDamageRange() const;
/// Returns damage range for central tower(keep) of this town
TDmgRange getKeepDamageRange() const;
const CTown * getTown() const ;
CGTownInstance();