You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-04-09 05:44:44 -07:00
Fix triple newlines left over from removing address comments
This commit is contained in:
@@ -145,13 +145,11 @@ SwitchSometimes:
|
||||
ld [wEnemySwitchMonIndex], a
|
||||
jp AI_TrySwitch
|
||||
|
||||
|
||||
CheckSubstatusCantRun:
|
||||
ld a, [wEnemySubStatus5]
|
||||
bit SUBSTATUS_CANT_RUN, a
|
||||
ret
|
||||
|
||||
|
||||
AI_TryItem:
|
||||
; items are not allowed in the BattleTower
|
||||
ld a, [wInBattleTowerBattle]
|
||||
@@ -238,7 +236,6 @@ AI_TryItem:
|
||||
scf
|
||||
ret
|
||||
|
||||
|
||||
.IsHighestLevel:
|
||||
ld a, [wOTPartyCount]
|
||||
ld d, a
|
||||
@@ -270,7 +267,6 @@ AI_TryItem:
|
||||
scf
|
||||
ret
|
||||
|
||||
|
||||
AI_Items:
|
||||
dbw FULL_RESTORE, .FullRestore
|
||||
dbw MAX_POTION, .MaxPotion
|
||||
@@ -520,7 +516,6 @@ AI_Items:
|
||||
and a
|
||||
ret
|
||||
|
||||
|
||||
AIUpdateHUD:
|
||||
call UpdateEnemyMonInParty
|
||||
farcall UpdateEnemyHUD
|
||||
@@ -538,7 +533,6 @@ AIUsedItemSound:
|
||||
pop de
|
||||
ret
|
||||
|
||||
|
||||
EnemyUsedFullHeal:
|
||||
call AIUsedItemSound
|
||||
call AI_HealStatus
|
||||
@@ -642,7 +636,6 @@ EnemyPotionFinish:
|
||||
predef AnimateHPBar
|
||||
jp AIUpdateHUD
|
||||
|
||||
|
||||
AI_TrySwitch:
|
||||
; Determine whether the AI can switch based on how many Pokemon are still alive.
|
||||
; If it can switch, it will.
|
||||
@@ -805,7 +798,6 @@ EnemyUsedXSpecial:
|
||||
ld b, SP_ATTACK
|
||||
ld a, X_SPECIAL
|
||||
|
||||
|
||||
; Parameter
|
||||
; a = ITEM_CONSTANT
|
||||
; b = BATTLE_CONSTANT (ATTACK, DEFENSE, SPEED, SP_ATTACK, SP_DEFENSE, ACCURACY, EVASION)
|
||||
@@ -817,7 +809,6 @@ EnemyUsedXItem:
|
||||
farcall CheckIfStatCanBeRaised
|
||||
jp AIUpdateHUD
|
||||
|
||||
|
||||
; Parameter
|
||||
; a = ITEM_CONSTANT
|
||||
PrintText_UsedItemOn_AND_AIUpdateHUD:
|
||||
|
@@ -15,7 +15,6 @@ AIChooseMove:
|
||||
farcall CheckEnemyLockedIn
|
||||
ret nz
|
||||
|
||||
|
||||
; The default score is 20. Unusable moves are given a score of 80.
|
||||
ld a, 20
|
||||
ld hl, wBuffer1
|
||||
@@ -61,7 +60,6 @@ AIChooseMove:
|
||||
ld [hl], 80
|
||||
jr .CheckMovePP
|
||||
|
||||
|
||||
; Apply AI scoring layers depending on the trainer class.
|
||||
.ApplyLayers:
|
||||
ld hl, TrainerClassAttributes + TRNATTR_AI_MOVE_WEIGHTS
|
||||
@@ -199,7 +197,6 @@ AIChooseMove:
|
||||
ld [wCurEnemyMoveNum], a
|
||||
ret
|
||||
|
||||
|
||||
AIScoringPointers:
|
||||
; entries correspond to AI_* constants
|
||||
dw AI_Basic
|
||||
|
File diff suppressed because it is too large
Load Diff
@@ -96,7 +96,6 @@ CheckPlayerMoveTypeMatchups:
|
||||
pop hl
|
||||
ret
|
||||
|
||||
|
||||
.CheckEnemyMoveMatchups:
|
||||
ld de, wEnemyMonMoves
|
||||
ld b, NUM_MOVES + 1
|
||||
@@ -290,7 +289,6 @@ CheckAbleToSwitch:
|
||||
ld [wEnemySwitchMonParam], a
|
||||
ret
|
||||
|
||||
|
||||
FindAliveEnemyMons:
|
||||
ld a, [wOTPartyCount]
|
||||
cp 2
|
||||
@@ -341,7 +339,6 @@ FindAliveEnemyMons:
|
||||
and a
|
||||
ret
|
||||
|
||||
|
||||
FindEnemyMonsImmuneToLastCounterMove:
|
||||
ld hl, wOTPartyMon1
|
||||
ld a, [wOTPartyCount]
|
||||
@@ -408,7 +405,6 @@ FindEnemyMonsImmuneToLastCounterMove:
|
||||
srl c
|
||||
jr .loop
|
||||
|
||||
|
||||
FindAliveEnemyMonsWithASuperEffectiveMove:
|
||||
push bc
|
||||
ld a, [wOTPartyCount]
|
||||
@@ -546,7 +542,6 @@ FindEnemyMonsWithASuperEffectiveMove:
|
||||
pop bc
|
||||
ret
|
||||
|
||||
|
||||
FindEnemyMonsThatResistPlayer:
|
||||
push bc
|
||||
ld hl, wOTPartySpecies
|
||||
@@ -607,7 +602,6 @@ FindEnemyMonsThatResistPlayer:
|
||||
ld c, a
|
||||
ret
|
||||
|
||||
|
||||
FindEnemyMonsWithAtLeastQuarterMaxHP:
|
||||
push bc
|
||||
ld de, wOTPartySpecies
|
||||
|
Reference in New Issue
Block a user