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