more ai cleanup

This commit is contained in:
yenatch 2013-05-06 20:51:07 -04:00
parent 5859040555
commit 573db5b1b4
1 changed files with 20 additions and 20 deletions

View File

@ -458,7 +458,7 @@ AIScoring_LockOn: ; 3881d
jr c, .asm_38834 jr c, .asm_38834
call Function_0x39233 call AICompareSpeed
jr nc, .asm_38877 jr nc, .asm_38877
@ -735,7 +735,7 @@ AIScoring_MirrorMove: ; 3895b
and a and a
jr nz, .asm_38968 jr nz, .asm_38968
call Function_0x39233 call AICompareSpeed
ret nc ret nc
jp AIDiscourageMove jp AIDiscourageMove
@ -753,7 +753,7 @@ AIScoring_MirrorMove: ; 3895b
ret c ret c
dec [hl] dec [hl]
call Function_0x39233 call AICompareSpeed
ret nc ret nc
call RNG call RNG
@ -1121,7 +1121,7 @@ AIScoring_Fly: ; 38b12
ld a, [PlayerSubStatus3] ld a, [PlayerSubStatus3]
and 1<<SUBSTATUS_FLYING | 1<<SUBSTATUS_UNDERGROUND and 1<<SUBSTATUS_FLYING | 1<<SUBSTATUS_UNDERGROUND
ret z ret z
call Function_0x39233 call AICompareSpeed
ret nc ret nc
dec [hl] dec [hl]
dec [hl] dec [hl]
@ -1141,7 +1141,7 @@ AIScoring_SuperFang: ; 38b20
AIScoring_Paralyze: ; 38b26 AIScoring_Paralyze: ; 38b26
call AICheckPlayerQuarterHP call AICheckPlayerQuarterHP
jr nc, .asm_38b3a jr nc, .asm_38b3a
call Function_0x39233 call AICompareSpeed
ret c ret c
call AICheckEnemyQuarterHP call AICheckEnemyQuarterHP
ret nc ret nc
@ -1161,14 +1161,14 @@ AIScoring_Paralyze: ; 38b26
AIScoring_SpeedDownHit: ; 38b40 AIScoring_SpeedDownHit: ; 38b40
ld a, [EnemyMoveAnimation] ld a, [EnemyMoveAnimation]
cp $c4 cp ICY_WIND
ret nz ret nz
call AICheckEnemyQuarterHP call AICheckEnemyQuarterHP
ret nc ret nc
ld a, [PlayerTurnsTaken] ld a, [PlayerTurnsTaken]
and a and a
ret nz ret nz
call Function_0x39233 call AICompareSpeed
ret c ret c
call RNG call RNG
cp $1e cp $1e
@ -1288,7 +1288,7 @@ AIScoring_Mimic: ; 38ba8
ret ret
.asm_38be9 .asm_38be9
call Function_0x39233 call AICompareSpeed
jp c, AIDiscourageMove jp c, AIDiscourageMove
.asm_38bef .asm_38bef
@ -1364,7 +1364,7 @@ AIScoring_Counter: ; 38bf1
AIScoring_Encore: ; 38c3b AIScoring_Encore: ; 38c3b
call Function_0x39233 call AICompareSpeed
jr nc, .asm_38c81 jr nc, .asm_38c81
ld a, [LastPlayerMove] ld a, [LastPlayerMove]
@ -1506,7 +1506,7 @@ AIScoring_Spite: ; 38cd5
and a and a
jr nz, .asm_38ce7 jr nz, .asm_38ce7
call Function_0x39233 call AICompareSpeed
jp c, AIDiscourageMove jp c, AIDiscourageMove
call Function_0x39527 call Function_0x39527
@ -1632,7 +1632,7 @@ AIScoring_HealBell: ; 38d1f
AIScoring_PriorityHit: ; 38d5a AIScoring_PriorityHit: ; 38d5a
call Function_0x39233 call AICompareSpeed
ret c ret c
ld a, [PlayerSubStatus3] ld a, [PlayerSubStatus3]
@ -1724,7 +1724,7 @@ AIScoring_Conversion2: ; 38d98
AIScoring_Disable: ; 38dd1 AIScoring_Disable: ; 38dd1
call Function_0x39233 call AICompareSpeed
jr nc, .asm_38df3 jr nc, .asm_38df3
@ -2284,7 +2284,7 @@ AIScoring_Earthquake: ; 39044
bit 5, a bit 5, a
jr z, .asm_39058 jr z, .asm_39058
call Function_0x39233 call AICompareSpeed
ret nc ret nc
dec [hl] dec [hl]
@ -2292,7 +2292,7 @@ AIScoring_Earthquake: ; 39044
ret ret
.asm_39058 .asm_39058
call Function_0x39233 call AICompareSpeed
ret c ret c
call Function_0x39527 call Function_0x39527
@ -2655,7 +2655,7 @@ AIScoring_Gust: ; 391d5
bit 6, a bit 6, a
jr z, .asm_391e9 jr z, .asm_391e9
call Function_0x39233 call AICompareSpeed
ret nc ret nc
dec [hl] dec [hl]
@ -2663,7 +2663,7 @@ AIScoring_Gust: ; 391d5
ret ret
.asm_391e9 .asm_391e9
call Function_0x39233 call AICompareSpeed
ret c ret c
call Function_0x39527 call Function_0x39527
@ -2675,7 +2675,7 @@ AIScoring_Gust: ; 391d5
AIScoring_FutureSight: ; 391f3 AIScoring_FutureSight: ; 391f3
call Function_0x39233 call AICompareSpeed
ret nc ret nc
ld a, [PlayerSubStatus3] ld a, [PlayerSubStatus3]
@ -2739,11 +2739,11 @@ AIScoring_Thunder: ; 39225
; 39233 ; 39233
Function_0x39233: ; 39233 AICompareSpeed: ; 39233
push bc push bc
ld a, [$d21f] ld a, [EnemyMonSpd + 1]
ld b, a ld b, a
ld a, [$c645] ld a, [BattleMonSpd + 1]
cp b cp b
ld a, [EnemyMonSpd] ld a, [EnemyMonSpd]
ld b, a ld b, a