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

Replace bonus string description with metastring that can properly

handle translations
This commit is contained in:
Ivan Savenko
2024-04-07 19:57:49 +03:00
parent b0334b381e
commit 9e49587749
19 changed files with 98 additions and 146 deletions

View File

@@ -94,7 +94,7 @@ void CSkill::addNewBonus(const std::shared_ptr<Bonus> & b, int level)
b->source = BonusSource::SECONDARY_SKILL;
b->sid = BonusSourceID(id);
b->duration = BonusDuration::PERMANENT;
b->description = getNameTranslated();
b->description.appendTextID(getNameTextID());
levels[level-1].effects.push_back(b);
}