# HG changeset patch # User Grumpy7 # Date 1382771370 25200 # Node ID e45c277da9f1a5f2b0176c1ef0f2475c5f9f8a4b # Parent 8e36ef7de0dbeff6de53653f16f5f1e440c53685 Actor::_427102 to Actor::_427102_IsOkToCastSpell diff -r 8e36ef7de0db -r e45c277da9f1 Actor.cpp --- 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) { diff -r 8e36ef7de0db -r e45c277da9f1 Actor.h --- 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; diff -r 8e36ef7de0db -r e45c277da9f1 mm7_6.cpp --- 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 )