From c6a69d35cfb9ef8d98590aa15f308edbef0ca3ba Mon Sep 17 00:00:00 2001 From: DjWarmonger Date: Sat, 28 May 2011 05:34:40 +0000 Subject: [PATCH] More bonuses & graphics handled. --- lib/CCreatureHandler.cpp | 4 ++++ lib/CCreatureSet.cpp | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/lib/CCreatureHandler.cpp b/lib/CCreatureHandler.cpp index 726e7162a..e2ea771a2 100644 --- a/lib/CCreatureHandler.cpp +++ b/lib/CCreatureHandler.cpp @@ -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; diff --git a/lib/CCreatureSet.cpp b/lib/CCreatureSet.cpp index fc0b643a3..2c59ad9cc 100644 --- a/lib/CCreatureSet.cpp +++ b/lib/CCreatureSet.cpp @@ -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: