You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-09-08 08:13:02 -07:00
StringCmp → CompareBytes; CompareLong → CompareBytesLong
hStringCmpString[1/2] → h[EnemyMon/PartyMon1]Speed
This commit is contained in:
@@ -530,7 +530,7 @@ DetermineMoveOrder:
|
||||
ld de, wBattleMonSpeed
|
||||
ld hl, wEnemyMonSpeed
|
||||
ld c, 2
|
||||
call StringCmp
|
||||
call CompareBytes
|
||||
jr z, .speed_tie
|
||||
jp nc, .player_first
|
||||
jp .enemy_first
|
||||
@@ -3715,19 +3715,19 @@ TryToRunAwayFromBattle:
|
||||
inc a
|
||||
ld [wNumFleeAttempts], a
|
||||
ld a, [hli]
|
||||
ld [hStringCmpString2 + 0], a
|
||||
ld [hPartyMon1Speed + 0], a
|
||||
ld a, [hl]
|
||||
ld [hStringCmpString2 + 1], a
|
||||
ld [hPartyMon1Speed + 1], a
|
||||
ld a, [de]
|
||||
inc de
|
||||
ld [hStringCmpString1 + 0], a
|
||||
ld [hEnemyMonSpeed + 0], a
|
||||
ld a, [de]
|
||||
ld [hStringCmpString1 + 1], a
|
||||
ld [hEnemyMonSpeed + 1], a
|
||||
call Call_LoadTempTileMapToTileMap
|
||||
ld de, hStringCmpString2
|
||||
ld hl, hStringCmpString1
|
||||
ld c, $2
|
||||
call StringCmp
|
||||
ld de, hPartyMon1Speed
|
||||
ld hl, hEnemyMonSpeed
|
||||
ld c, 2
|
||||
call CompareBytes
|
||||
jr nc, .can_escape
|
||||
|
||||
xor a
|
||||
@@ -3739,9 +3739,9 @@ TryToRunAwayFromBattle:
|
||||
ld [hDividend + 0], a
|
||||
ld a, [hProduct + 3]
|
||||
ld [hDividend + 1], a
|
||||
ld a, [hStringCmpString1 + 0]
|
||||
ld a, [hEnemyMonSpeed + 0]
|
||||
ld b, a
|
||||
ld a, [hStringCmpString1 + 1]
|
||||
ld a, [hEnemyMonSpeed + 1]
|
||||
srl b
|
||||
rr a
|
||||
srl b
|
||||
@@ -8712,7 +8712,7 @@ AddLastMobileBattleToLinkRecord:
|
||||
push de
|
||||
ld bc, 12
|
||||
ld de, wStringBuffer1
|
||||
call CompareLong
|
||||
call CompareBytesLong
|
||||
pop de
|
||||
pop hl
|
||||
jr c, .done
|
||||
@@ -8821,7 +8821,7 @@ AddLastMobileBattleToLinkRecord:
|
||||
pop hl
|
||||
push bc
|
||||
ld c, 3
|
||||
call StringCmp
|
||||
call CompareBytes
|
||||
pop bc
|
||||
jr z, .equal
|
||||
jr nc, .done2
|
||||
|
||||
@@ -6154,7 +6154,7 @@ BattleCommand_Heal:
|
||||
push de
|
||||
push bc
|
||||
ld c, 2
|
||||
call StringCmp
|
||||
call CompareBytes
|
||||
pop bc
|
||||
pop de
|
||||
pop hl
|
||||
@@ -6573,7 +6573,7 @@ BattleCommand_TimeBasedHealContinue:
|
||||
|
||||
; Don't bother healing if HP is already full.
|
||||
push bc
|
||||
call StringCmp
|
||||
call CompareBytes
|
||||
pop bc
|
||||
jr z, .Full
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ BattleCommand_FalseSwipe:
|
||||
ld c, 2
|
||||
push hl
|
||||
push de
|
||||
call StringCmp
|
||||
call CompareBytes
|
||||
pop de
|
||||
pop hl
|
||||
jr c, .done
|
||||
|
||||
@@ -171,7 +171,7 @@ DetermineContestWinners:
|
||||
ld de, wBugContestTempScore
|
||||
ld hl, wBugContestFirstPlaceScore
|
||||
ld c, 2
|
||||
call StringCmp
|
||||
call CompareBytes
|
||||
jr c, .not_first_place
|
||||
ld hl, wBugContestSecondPlaceWinnerID
|
||||
ld de, wBugContestThirdPlaceWinnerID
|
||||
@@ -189,7 +189,7 @@ DetermineContestWinners:
|
||||
ld de, wBugContestTempScore
|
||||
ld hl, wBugContestSecondPlaceScore
|
||||
ld c, 2
|
||||
call StringCmp
|
||||
call CompareBytes
|
||||
jr c, .not_second_place
|
||||
ld hl, wBugContestSecondPlaceWinnerID
|
||||
ld de, wBugContestThirdPlaceWinnerID
|
||||
@@ -203,7 +203,7 @@ DetermineContestWinners:
|
||||
ld de, wBugContestTempScore
|
||||
ld hl, wBugContestThirdPlaceScore
|
||||
ld c, 2
|
||||
call StringCmp
|
||||
call CompareBytes
|
||||
jr c, .done
|
||||
ld hl, wBugContestThirdPlaceWinnerID
|
||||
call CopyTempContestant
|
||||
|
||||
@@ -36,7 +36,7 @@ CheckMagikarpLength:
|
||||
ld hl, wMagikarpLength
|
||||
ld de, wBestMagikarpLengthFeet
|
||||
ld c, 2
|
||||
call StringCmp
|
||||
call CompareBytes
|
||||
jr nc, .not_long_enough
|
||||
|
||||
; NEW RECORD!!! Let's save that.
|
||||
|
||||
@@ -99,7 +99,7 @@ EvolveAfterBattle_MasterLoop:
|
||||
ld de, wTempMonAttack
|
||||
ld hl, wTempMonDefense
|
||||
ld c, 2
|
||||
call StringCmp
|
||||
call CompareBytes
|
||||
ld a, ATK_EQ_DEF
|
||||
jr z, .got_tyrogue_evo
|
||||
ld a, ATK_LT_DEF
|
||||
|
||||
Reference in New Issue
Block a user