|
@@ -82,9 +82,6 @@ std::string CBonusTypeHandler::bonusToString(const std::shared_ptr<Bonus> & bonu
|
|
|
if (text.find("${subtype.spell}") != std::string::npos)
|
|
if (text.find("${subtype.spell}") != std::string::npos)
|
|
|
boost::algorithm::replace_all(text, "${subtype.spell}", SpellID(bonus->subtype).toSpell()->getNameTranslated());
|
|
boost::algorithm::replace_all(text, "${subtype.spell}", SpellID(bonus->subtype).toSpell()->getNameTranslated());
|
|
|
|
|
|
|
|
- if (text.find("${MR}") != std::string::npos)
|
|
|
|
|
- boost::algorithm::replace_all(text, "${MR}", std::to_string(bearer->magicResistance()));
|
|
|
|
|
-
|
|
|
|
|
if (text.find("${SHval}") != std::string::npos) //regeneration case
|
|
if (text.find("${SHval}") != std::string::npos) //regeneration case
|
|
|
boost::algorithm::replace_all(text, "${SHval}", std::to_string(std::min(static_cast<si32>(bearer->MaxHealth()),bearer->valOfBonuses(Selector::typeSubtype(bonus->type, bonus->subtype)))));
|
|
boost::algorithm::replace_all(text, "${SHval}", std::to_string(std::min(static_cast<si32>(bearer->MaxHealth()),bearer->valOfBonuses(Selector::typeSubtype(bonus->type, bonus->subtype)))));
|
|
|
|
|
|
|
@@ -98,12 +95,6 @@ std::string CBonusTypeHandler::bonusToGraphics(const std::shared_ptr<Bonus> & bo
|
|
|
|
|
|
|
|
switch(bonus->type)
|
|
switch(bonus->type)
|
|
|
{
|
|
{
|
|
|
- case Bonus::SECONDARY_SKILL_PREMY:
|
|
|
|
|
- if(bonus->subtype == SecondarySkill::RESISTANCE)
|
|
|
|
|
- {
|
|
|
|
|
- fileName = "E_DWARF.bmp";
|
|
|
|
|
- }
|
|
|
|
|
- break;
|
|
|
|
|
case Bonus::SPELL_IMMUNITY:
|
|
case Bonus::SPELL_IMMUNITY:
|
|
|
{
|
|
{
|
|
|
fullPath = true;
|
|
fullPath = true;
|