mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-29 23:07:48 +02:00
Add support for custom icons & descriptions for bonuses
This commit is contained in:
@@ -332,8 +332,11 @@ void CArtifact::addNewBonus(const std::shared_ptr<Bonus>& b)
|
||||
{
|
||||
b->source = BonusSource::ARTIFACT;
|
||||
b->duration = BonusDuration::PERMANENT;
|
||||
b->description.appendTextID(getNameTextID());
|
||||
b->description.appendRawString(" %+d");
|
||||
if (b->description.empty() && (b->type == BonusType::LUCK || b->type == BonusType::MORALE))
|
||||
{
|
||||
b->description.appendTextID(getNameTextID());
|
||||
b->description.appendRawString(" %+d");
|
||||
}
|
||||
CBonusSystemNode::addNewBonus(b);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user