mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-29 23:07:48 +02:00
Fixes issue of bonuses not correctly removed
This commit is contained in:
@@ -147,6 +147,9 @@ std::string Bonus::Description(std::optional<si32> customValue) const
|
||||
descriptionHelper.replaceRawString(std::to_string(valueToShow));
|
||||
else
|
||||
descriptionHelper.replaceRawString("-" + std::to_string(valueToShow));
|
||||
|
||||
if(type == BonusType::CREATURE_GROWTH_PERCENT)
|
||||
descriptionHelper.appendRawString(" +" + std::to_string(valueToShow));
|
||||
}
|
||||
|
||||
return descriptionHelper.toString();
|
||||
|
||||
Reference in New Issue
Block a user