Mercurial > mm7
diff mm7_6.cpp @ 1972:3ef25d06b9b0
Actor::special_ability_use_check moved to Actor and cleaned up
author | Grumpy7 |
---|---|
date | Sat, 26 Oct 2013 00:18:52 -0700 |
parents | e45c277da9f1 |
children | f708aaeb635b |
line wrap: on
line diff
--- a/mm7_6.cpp Sat Oct 26 00:09:30 2013 -0700 +++ b/mm7_6.cpp Sat Oct 26 00:18:52 2013 -0700 @@ -42,26 +42,6 @@ -//----- (0042704B) -------------------------------------------------------- -int stru319::special_ability_use_check( struct Actor *pActor, int a2 ) - { - stru319 *v3; // edi@1 - signed int v4; // ebx@5 - signed int v5; // edi@5 - - v3 = this; - if ( pActor->pMonsterInfo.uSpecialAbilityType == 2 - && pActor->pMonsterInfo.uSpecialAbilityDamageDiceBonus < 3u - && rand() % 100 < 5 ) - pActor->SummonMinion(a2); - 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 ) - return 3; - return pActor->pMonsterInfo.uAttack2Chance && rand() % 100 < pActor->pMonsterInfo.uAttack2Chance?1:0; -} //----- (004272F5) --------------------------------------------------------