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:
parent
b11981293f
commit
c6a69d35cf
@ -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;
|
||||||
|
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user