mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-06 15:45:24 +13:00
use more HRAM constants
This commit is contained in:
parent
4d61c35172
commit
77c3e22a4e
4 changed files with 11 additions and 11 deletions
|
|
@ -488,8 +488,8 @@ MainInBattleLoop:
|
|||
jr nc, .playerMovesFirst ; if player is faster
|
||||
jr .enemyMovesFirst ; if enemy is faster
|
||||
.speedEqual ; 50/50 chance for both players
|
||||
ld a, [$ffaa]
|
||||
cp $2
|
||||
ld a, [hSerialConnectionStatus]
|
||||
cp USING_INTERNAL_CLOCK
|
||||
jr z, .invertOutcome
|
||||
call BattleRandom
|
||||
cp $80
|
||||
|
|
|
|||
|
|
@ -119,11 +119,11 @@ GainExperience:
|
|||
ld d, MAX_LEVEL
|
||||
callab CalcExperience ; get max exp
|
||||
; compare max exp with current exp
|
||||
ld a, [$ff96]
|
||||
ld a, [hExperience]
|
||||
ld b, a
|
||||
ld a, [$ff97]
|
||||
ld a, [hExperience + 1]
|
||||
ld c, a
|
||||
ld a, [$ff98]
|
||||
ld a, [hExperience + 2]
|
||||
ld d, a
|
||||
pop hl
|
||||
ld a, [hld]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue