1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

More bonuses & graphics handled.

This commit is contained in:
DjWarmonger 2011-05-28 05:34:40 +00:00
parent b11981293f
commit c6a69d35cf
2 changed files with 9 additions and 0 deletions

View File

@ -926,6 +926,10 @@ void CCreatureHandler::loadStackExp(Bonus & b, BonusList & bl, std::string & src
b.type = Bonus::SPELL_IMMUNITY;
b.subtype = 23;
break;
case 'N': //dispell beneficial spells
b.type = Bonus::SPELL_IMMUNITY;
b.subtype = 78;
break;
case 'R': //Armageddon
b.type = Bonus::SPELL_IMMUNITY;
b.subtype = 26;

View File

@ -720,6 +720,10 @@ std::string CStackInstance::bonusToGraphics(Bonus *bonus) const
{
case 62: //Blind
fileName = "E_SPBLIND.bmp"; break;
case 35: // Dispell
fileName = "E_SPDISP.bmp"; break;
case 78: // Dispell beneficial spells
fileName = "E_SPDISB.bmp"; break;
case 60: //Hypnotize
fileName = "E_SPHYPN.bmp"; break;
case 18: //Implosion
@ -734,6 +738,7 @@ std::string CStackInstance::bonusToGraphics(Bonus *bonus) const
fileName = "E_SPSLOW.bmp"; break;
//TODO: some generic spell handling?
}
break;
}
//"E_SPAWILL.bmp"
case Bonus::DIRECT_DAMAGE_IMMUNITY: