changeset 1971:e45c277da9f1

Actor::_427102 to Actor::_427102_IsOkToCastSpell
author Grumpy7
date Sat, 26 Oct 2013 00:09:30 -0700
parents 8e36ef7de0db
children 3ef25d06b9b0
files Actor.cpp Actor.h mm7_6.cpp
diffstat 3 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/Actor.cpp	Sat Oct 26 00:06:07 2013 -0700
+++ b/Actor.cpp	Sat Oct 26 00:09:30 2013 -0700
@@ -4264,7 +4264,7 @@
 
 
 //----- (00427102) --------------------------------------------------------
-bool Actor::_427102( signed int a2 )
+bool Actor::_427102_IsOkToCastSpell( signed int a2 )
 {
   switch(a2)
   {
--- a/Actor.h	Sat Oct 26 00:06:07 2013 -0700
+++ b/Actor.h	Sat Oct 26 00:09:30 2013 -0700
@@ -248,7 +248,7 @@
 
 
   void LootActor();
-  bool _427102(signed int a2);
+  bool _427102_IsOkToCastSpell(signed int a2);
 
   char pActorName[32];
   signed __int16 sNPC_ID;
--- a/mm7_6.cpp	Sat Oct 26 00:06:07 2013 -0700
+++ b/mm7_6.cpp	Sat Oct 26 00:09:30 2013 -0700
@@ -54,8 +54,8 @@
     && pActor->pMonsterInfo.uSpecialAbilityDamageDiceBonus < 3u
     && rand() % 100 < 5 )
     pActor->SummonMinion(a2);
-  v4 = pActor->_427102(pActor->pMonsterInfo.uSpell1ID);
-  v5 = pActor->_427102(pActor->pMonsterInfo.uSpell2ID);
+  v4 = pActor->_427102_IsOkToCastSpell(pActor->pMonsterInfo.uSpell1ID);
+  v5 = pActor->_427102_IsOkToCastSpell(pActor->pMonsterInfo.uSpell2ID);
   if ( v4 && pActor->pMonsterInfo.uSpell1UseChance && rand() % 100 < pActor->pMonsterInfo.uSpell1UseChance )
     return 2;
   if ( v5 && pActor->pMonsterInfo.uSpell2UseChance && rand() % 100 < pActor->pMonsterInfo.uSpell2UseChance )