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

vcmi: replace KINGx bonuses to one KING bonus

val = level of slayer which require to affect.
Can break saves.
This commit is contained in:
Konstantin
2023-03-04 23:43:10 +03:00
parent 1e73c2e1e6
commit 62e579f672
9 changed files with 22 additions and 58 deletions

View File

@@ -170,6 +170,14 @@ std::string CBonusTypeHandler::bonusToGraphics(const std::shared_ptr<Bonus> & bo
}
break;
}
case Bonus::KING:
{
if(vstd::iswithin(bonus->val, 0, 3))
{
fileName = "E_KING" + std::to_string(std::max(1, bonus->val)) + ".bmp";
}
break;
}
case Bonus::GENERAL_DAMAGE_REDUCTION:
{
switch(bonus->subtype)