Initial try with Eagle Eye extension

This commit is contained in:
George King
2026-05-26 22:04:23 +02:00
parent eaf6449862
commit c3fa46c923
6 changed files with 65 additions and 1 deletions
+4
View File
@@ -366,6 +366,8 @@ double getArtifactBonusRelevance(const CGHeroInstance * hero, const std::shared_
return hero->hasSpellbook() ? relevant : notRelevant;
case BonusType::LEARN_BATTLE_SPELL_CHANCE:
return hero->hasBonusOfType(BonusType::LEARN_BATTLE_SPELL_LEVEL_LIMIT) ? relevant : notRelevant;
case BonusType::LEARN_BATTLE_SPELL_CHANCE_PRE_BATTLE:
return hero->hasBonusOfType(BonusType::LEARN_BATTLE_SPELL_LEVEL_LIMIT_PRE_BATTLE) ? relevant : notRelevant;
case BonusType::NO_DISTANCE_PENALTY:
case BonusType::NO_WALL_PENALTY:
return getArmyPercentageWithBonus(BonusType::SHOOTER) * veryRelevant;
@@ -448,6 +450,8 @@ int32_t getArtifactBonusScoreImpl(const std::shared_ptr<Bonus> & bonus)
return bonus->val * 1000;
case BonusType::LEARN_BATTLE_SPELL_CHANCE:
return 0; // irrelevant in gameplay
case BonusType::LEARN_BATTLE_SPELL_CHANCE_PRE_BATTLE:
return 0; // irrelevant in gameplay
case BonusType::STACK_HEALTH:
return bonus->val * 5000;
case BonusType::NO_DISTANCE_PENALTY: