Mercurial > mm7
comparison Actor.cpp @ 1855:51e9b4621d0a
Actor::AI_SpellAttack preparing to remove label 159
author | Grumpy7 |
---|---|
date | Mon, 14 Oct 2013 00:40:25 +0200 |
parents | 4ae5b7e7a920 |
children | 656962b05d32 |
comparison
equal
deleted
inserted
replaced
1854:a02d72dd7653 | 1855:51e9b4621d0a |
---|---|
318 int spellnume; // [sp+D8h] [bp+8h]@179 | 318 int spellnume; // [sp+D8h] [bp+8h]@179 |
319 int a1a; // [sp+E0h] [bp+10h]@34 | 319 int a1a; // [sp+E0h] [bp+10h]@34 |
320 signed int a1b; // [sp+E0h] [bp+10h]@145 | 320 signed int a1b; // [sp+E0h] [bp+10h]@145 |
321 int a1c; // [sp+E0h] [bp+10h]@184 | 321 int a1c; // [sp+E0h] [bp+10h]@184 |
322 | 322 |
323 | |
324 | |
325 if ( uSpellID == 6 ) | |
326 goto LABEL_159; | |
327 if ( uSpellID == 11 ) | |
328 goto LABEL_159; | |
329 if ( uSpellID == 18 || uSpellID == 2 ) | |
330 goto LABEL_159; | |
331 if ( uSpellID == 26 || uSpellID == 29 ) | |
332 goto LABEL_159; | |
333 if ( uSpellID == 39 || uSpellID == 41 ) | |
334 goto LABEL_159; | |
335 if ( uSpellID == 57 || uSpellID == 65 || uSpellID == 70 ) | |
336 goto LABEL_159; | |
337 if ( uSpellID == 78 ) | |
338 goto LABEL_159; | |
339 if ( uSpellID == 90 ) | |
340 goto LABEL_159; | |
341 if ( uSpellID == 97 ) | |
342 goto LABEL_159; | |
343 | |
323 LODWORD(v120) = uActorID; | 344 LODWORD(v120) = uActorID; |
324 v5 = &pActors[uActorID]; | 345 v5 = &pActors[uActorID]; |
325 v117 = pDir; | 346 v117 = pDir; |
326 realPoints = uSkillLevel & 0x3F; | 347 realPoints = uSkillLevel & 0x3F; |
327 masteryLevel = SkillToMastery(uSkillLevel); | 348 masteryLevel = SkillToMastery(uSkillLevel); |
329 { | 350 { |
330 if ( uSpellID != 47 ) | 351 if ( uSpellID != 47 ) |
331 { | 352 { |
332 if ( uSpellID <= 18 ) | 353 if ( uSpellID <= 18 ) |
333 { | 354 { |
334 if ( uSpellID == 18 || uSpellID == 2 ) | |
335 goto LABEL_159; | |
336 if ( uSpellID != 5 ) | 355 if ( uSpellID != 5 ) |
337 { | 356 { |
338 if ( uSpellID == 6 ) | |
339 goto LABEL_159; | |
340 if ( uSpellID != 9 ) | 357 if ( uSpellID != 9 ) |
341 { | 358 { |
342 if ( uSpellID != 11 ) | 359 if ( uSpellID != 11 ) |
343 { | 360 { |
344 if ( uSpellID != 15 ) | 361 if ( uSpellID != 15 ) |
637 v99 = v40; | 654 v99 = v40; |
638 v98 = (SoundID)10040; | 655 v98 = (SoundID)10040; |
639 pAudioPlayer->PlaySound(v98, v99, 0, -1, 0, 0, 0, 0); | 656 pAudioPlayer->PlaySound(v98, v99, 0, -1, 0, 0, 0, 0); |
640 return; | 657 return; |
641 } | 658 } |
642 if ( uSpellID == 26 || uSpellID == 29 ) | |
643 goto LABEL_159; | |
644 if ( uSpellID != 38 ) | 659 if ( uSpellID != 38 ) |
645 { | 660 { |
646 if ( uSpellID == 39 || uSpellID == 41 ) | |
647 goto LABEL_159; | |
648 if ( uSpellID != 46 ) | 661 if ( uSpellID != 46 ) |
649 return; | 662 return; |
650 | 663 |
651 if (masteryLevel == 0) | 664 if (masteryLevel == 0) |
652 { | 665 { |
774 pAudioPlayer->PlaySound(v98, v99, 0, -1, 0, 0, 0, 0); | 787 pAudioPlayer->PlaySound(v98, v99, 0, -1, 0, 0, 0, 0); |
775 return; | 788 return; |
776 } | 789 } |
777 if ( uSpellID != 51 ) | 790 if ( uSpellID != 51 ) |
778 { | 791 { |
779 if ( uSpellID == 57 || uSpellID == 65 || uSpellID == 70 ) | |
780 goto LABEL_159; | |
781 if ( uSpellID == 73 ) | 792 if ( uSpellID == 73 ) |
782 { | 793 { |
783 if ( (signed int)masteryLevel <= 0 || (signed int)masteryLevel > 4 ) | 794 if ( (signed int)masteryLevel <= 0 || (signed int)masteryLevel > 4 ) |
784 v51 = 0; | 795 v51 = 0; |
785 else | 796 else |
809 v99 = v50; | 820 v99 = v50; |
810 v98 = (SoundID)14020; | 821 v98 = (SoundID)14020; |
811 pAudioPlayer->PlaySound(v98, v99, 0, -1, 0, 0, 0, 0); | 822 pAudioPlayer->PlaySound(v98, v99, 0, -1, 0, 0, 0, 0); |
812 return; | 823 return; |
813 } | 824 } |
814 if ( uSpellID != 78 ) | 825 return; |
815 return; | |
816 goto LABEL_159; | |
817 } | 826 } |
818 if (masteryLevel == 0) | 827 if (masteryLevel == 0) |
819 { | 828 { |
820 v54 = 0; | 829 v54 = 0; |
821 } | 830 } |
916 v99 = v95; | 925 v99 = v95; |
917 v98 = (SoundID)17080; | 926 v98 = (SoundID)17080; |
918 pAudioPlayer->PlaySound(v98, v99, 0, -1, 0, 0, 0, 0); | 927 pAudioPlayer->PlaySound(v98, v99, 0, -1, 0, 0, 0, 0); |
919 return; | 928 return; |
920 } | 929 } |
921 if ( uSpellID == 90 ) | |
922 goto LABEL_159; | |
923 if ( uSpellID != 93 ) | 930 if ( uSpellID != 93 ) |
924 { | 931 { |
925 if ( uSpellID != 95 ) | 932 if ( uSpellID != 95 ) |
926 { | 933 { |
927 if ( uSpellID != 97 ) | 934 return; |
928 return; | |
929 goto LABEL_159; | |
930 } | 935 } |
931 if (masteryLevel == 0) | 936 if (masteryLevel == 0) |
932 v68 = 0; | 937 v68 = 0; |
933 else if (masteryLevel == 1 || (masteryLevel == 2) || (masteryLevel == 3)) | 938 else if (masteryLevel == 1 || (masteryLevel == 2) || (masteryLevel == 3)) |
934 { | 939 { |