1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

Bring hero strength for campaigns in line with h3

This commit is contained in:
Ivan Savenko
2025-06-13 17:18:05 +03:00
parent d2580d502e
commit ba0188ca7f
5 changed files with 30 additions and 12 deletions

View File

@@ -212,7 +212,8 @@ public:
double getMagicStrength() const; // takes knowledge / spell power skill but also current mana, whether the hero owns a spell-book and whether that books contains anything into account
double getHeroStrength() const; // includes fighting and magic strength
uint32_t getValueForCampaign() const;
/// Returns true if 'left' hero is stronger than 'right' when considering campaign transfer priority
static bool compareCampaignValue(const CGHeroInstance * left, const CGHeroInstance * right);
uint64_t getValueForDiplomacy() const;
ui64 getTotalStrength() const; // includes fighting strength and army strength