1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-04-25 12:14:46 +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.type = Bonus::SPELL_IMMUNITY;
b.subtype = 23; b.subtype = 23;
break; break;
case 'N': //dispell beneficial spells
b.type = Bonus::SPELL_IMMUNITY;
b.subtype = 78;
break;
case 'R': //Armageddon case 'R': //Armageddon
b.type = Bonus::SPELL_IMMUNITY; b.type = Bonus::SPELL_IMMUNITY;
b.subtype = 26; b.subtype = 26;

View File

@ -720,6 +720,10 @@ std::string CStackInstance::bonusToGraphics(Bonus *bonus) const
{ {
case 62: //Blind case 62: //Blind
fileName = "E_SPBLIND.bmp"; break; 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 case 60: //Hypnotize
fileName = "E_SPHYPN.bmp"; break; fileName = "E_SPHYPN.bmp"; break;
case 18: //Implosion case 18: //Implosion
@ -734,6 +738,7 @@ std::string CStackInstance::bonusToGraphics(Bonus *bonus) const
fileName = "E_SPSLOW.bmp"; break; fileName = "E_SPSLOW.bmp"; break;
//TODO: some generic spell handling? //TODO: some generic spell handling?
} }
break;
} }
//"E_SPAWILL.bmp" //"E_SPAWILL.bmp"
case Bonus::DIRECT_DAMAGE_IMMUNITY: case Bonus::DIRECT_DAMAGE_IMMUNITY: