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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user