Browse Source

More bonuses & graphics handled.

DjWarmonger 14 years ago
parent
commit
c6a69d35cf
2 changed files with 9 additions and 0 deletions
  1. 4 0
      lib/CCreatureHandler.cpp
  2. 5 0
      lib/CCreatureSet.cpp

+ 4 - 0
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;

+ 5 - 0
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: