void Dialog::SpellInfo(const Spell & spell, bool ok_button) { std::string msg = spell.GetDescription(); u32 extra = spell.ExtraValue(); switch(spell()) { case Spell::HASTE: case Spell::MASSHASTE: if(0 == extra) extra = 2; break; default: break; } if(1 == extra) StringReplace(msg, "%{count}", _("one")); else if(2 == extra) StringReplace(msg, "%{count}", _("two")); else StringReplace(msg, "%{count}", extra); Dialog::SpellInfo(spell.GetName(), msg, spell, ok_button); }