Mercurial > mm7
comparison mm7_6.cpp @ 1450:8ff3c675a726
more renaming TE
author | Gloval |
---|---|
date | Wed, 07 Aug 2013 08:55:34 +0400 |
parents | 27b7ee003c7c |
children | 934074e7fcc1 |
comparison
equal
deleted
inserted
replaced
1449:27b7ee003c7c | 1450:8ff3c675a726 |
---|---|
669 result = 0; | 669 result = 0; |
670 return result; | 670 return result; |
671 } | 671 } |
672 | 672 |
673 //----- (0042704B) -------------------------------------------------------- | 673 //----- (0042704B) -------------------------------------------------------- |
674 bool stru319::special_ability_use_check(Actor *pActor, int a2) | 674 int stru319::special_ability_use_check( struct Actor *pActor, int a2 ) |
675 { | 675 { |
676 stru319 *v3; // edi@1 | 676 stru319 *v3; // edi@1 |
677 signed int v4; // ebx@5 | 677 signed int v4; // ebx@5 |
678 signed int v5; // edi@5 | 678 signed int v5; // edi@5 |
679 | 679 |
680 v3 = this; | 680 v3 = this; |
686 v5 = v3->_427102(pActor, pActor->pMonsterInfo.uSpell2ID); | 686 v5 = v3->_427102(pActor, pActor->pMonsterInfo.uSpell2ID); |
687 if ( v4 && pActor->pMonsterInfo.uSpell1UseChance && rand() % 100 < pActor->pMonsterInfo.uSpell1UseChance ) | 687 if ( v4 && pActor->pMonsterInfo.uSpell1UseChance && rand() % 100 < pActor->pMonsterInfo.uSpell1UseChance ) |
688 return 2; | 688 return 2; |
689 if ( v5 && pActor->pMonsterInfo.uSpell2UseChance && rand() % 100 < pActor->pMonsterInfo.uSpell2UseChance ) | 689 if ( v5 && pActor->pMonsterInfo.uSpell2UseChance && rand() % 100 < pActor->pMonsterInfo.uSpell2UseChance ) |
690 return 3; | 690 return 3; |
691 return pActor->pMonsterInfo.uAttack2Chance && rand() % 100 < pActor->pMonsterInfo.uAttack2Chance; | 691 return pActor->pMonsterInfo.uAttack2Chance && rand() % 100 < pActor->pMonsterInfo.uAttack2Chance?1:0; |
692 } | 692 } |
693 | 693 |
694 //----- (00427102) -------------------------------------------------------- | 694 //----- (00427102) -------------------------------------------------------- |
695 int stru319::_427102(Actor *pActor, signed int a2) | 695 int stru319::_427102(Actor *pActor, signed int a2) |
696 { | 696 { |