1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

Support for Death Stare.

Some tweaks are still needed. Level 0 spell-like abilities won't work correctly.
This commit is contained in:
DjWarmonger
2011-04-23 17:10:54 +00:00
parent 61af4c745e
commit 7591d06b05
9 changed files with 92 additions and 13 deletions

View File

@@ -600,6 +600,7 @@ std::string CStackInstance::bonusToString(Bonus *bonus, bool description) const
case Bonus::CHANGES_SPELL_COST_FOR_ALLY:
case Bonus::CHANGES_SPELL_COST_FOR_ENEMY:
case Bonus::ENEMY_DEFENCE_REDUCTION:
case Bonus::DEATH_STARE:
boost::algorithm::replace_first(text, "%d", boost::lexical_cast<std::string>(valOfBonuses(Selector::typeSybtype(bonus->type, bonus->subtype))));
break;
case Bonus::HATE:
@@ -644,7 +645,8 @@ std::string CStackInstance::bonusToGraphics(Bonus *bonus) const
fileName = "E_CHAMP.bmp"; break;
case Bonus::DOUBLE_DAMAGE_CHANCE:
fileName = "E_DBLOW.bmp"; break;
//"E_DEATH.bmp"
case Bonus::DEATH_STARE:
fileName = "E_DEATH.bmp"; break;
//"E_DEFBON.bmp"
case Bonus::NO_DISTANCE_PENALTY:
fileName = "E_DIST.bmp"; break;