You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-09-08 08:13:02 -07:00
Blindly use wram labels for everything except mobile, part 1.
Wram banks and mobile make this tough, since any address can secretly be a ghost. As usual, mobile completely disregards 99% of the codebase. It's been ignored in kind.
This commit is contained in:
@@ -40,7 +40,7 @@ BattleCommand54: ; 37588
|
||||
; Raise Attack and Defense, and lower Speed.
|
||||
|
||||
ld a, $1
|
||||
ld [$c689], a
|
||||
ld [wc689], a
|
||||
call AnimateCurrentMove
|
||||
ld a, $2
|
||||
call Function36532
|
||||
|
@@ -5,11 +5,11 @@ BattleCommand34: ; 37418
|
||||
call Function34548
|
||||
jr nz, .asm_3742b
|
||||
|
||||
ld a, [$c689]
|
||||
ld a, [wc689]
|
||||
push af
|
||||
call BattleCommand0a
|
||||
pop af
|
||||
ld [$c689], a
|
||||
ld [wc689], a
|
||||
|
||||
.asm_3742b
|
||||
call Function37e36
|
||||
|
@@ -24,7 +24,7 @@ BattleCommand1b: ; 373c9
|
||||
.use
|
||||
ld a, b
|
||||
ld [hl], a
|
||||
ld [$d265], a
|
||||
ld [wd265], a
|
||||
|
||||
push af
|
||||
ld a, BATTLE_VARS_MOVE_ANIM
|
||||
@@ -40,11 +40,11 @@ BattleCommand1b: ; 373c9
|
||||
call Function34548
|
||||
jr nz, .done
|
||||
|
||||
ld a, [$c689]
|
||||
ld a, [wc689]
|
||||
push af
|
||||
call BattleCommand0a
|
||||
pop af
|
||||
ld [$c689], a
|
||||
ld [wc689], a
|
||||
|
||||
.done
|
||||
call BattleCommandaa
|
||||
|
@@ -44,7 +44,7 @@ BattleCommand5c: ; 37734
|
||||
and a
|
||||
jr nz, .asm_37750
|
||||
ld a, 1
|
||||
ld [$c73e], a
|
||||
ld [wc73e], a
|
||||
|
||||
.asm_37750
|
||||
ld a, [AttackMissed]
|
||||
|
@@ -21,7 +21,7 @@ BattleCommand50: ; 37492
|
||||
|
||||
; Can't steal mail.
|
||||
|
||||
ld [$d265], a
|
||||
ld [wd265], a
|
||||
ld d, a
|
||||
callba ItemIsMail
|
||||
ret c
|
||||
@@ -45,7 +45,7 @@ BattleCommand50: ; 37492
|
||||
ld [de], a
|
||||
|
||||
call .playeritem
|
||||
ld a, [$d265]
|
||||
ld a, [wd265]
|
||||
ld [hl], a
|
||||
ld [de], a
|
||||
jr .stole
|
||||
@@ -69,7 +69,7 @@ BattleCommand50: ; 37492
|
||||
|
||||
; Can't steal mail!
|
||||
|
||||
ld [$d265], a
|
||||
ld [wd265], a
|
||||
ld d, a
|
||||
callba ItemIsMail
|
||||
ret c
|
||||
@@ -87,7 +87,7 @@ BattleCommand50: ; 37492
|
||||
ld [de], a
|
||||
|
||||
call .enemyitem
|
||||
ld a, [$d265]
|
||||
ld a, [wd265]
|
||||
ld [hl], a
|
||||
ld [de], a
|
||||
|
||||
|
Reference in New Issue
Block a user