Replace more hex values with constants or decimal

This commit is contained in:
Rangi 2018-07-11 15:40:09 -04:00
parent 48e209763f
commit 187e30cac8
7 changed files with 16 additions and 15 deletions

View File

@ -3650,8 +3650,8 @@ Sfx_2Boops_Ch5:
soundinput $8 soundinput $8
endchannel endchannel
Sfx_UnknownCB: Sfx_IntroWhoosh:
musicheader 1, 8, Sfx_UnknownCB_Ch8 musicheader 1, 8, Sfx_IntroWhoosh_Ch8
Sfx_Menu_Ch8: Sfx_Menu_Ch8:
noise __, 2, $e2, $33 noise __, 2, $e2, $33
@ -4703,7 +4703,7 @@ Sfx_Unknown60_Ch8:
noise __, 16, $f2, $43 noise __, 16, $f2, $43
endchannel endchannel
Sfx_UnknownCB_Ch8: Sfx_IntroWhoosh_Ch8:
noise __, 2, $10, $10 noise __, 2, $10, $10
noise __, 3, $20, $10 noise __, 3, $20, $10
noise __, 3, $30, $20 noise __, 3, $30, $20

View File

@ -204,7 +204,7 @@ SFX:
dba Sfx_IntroSuicune4 dba Sfx_IntroSuicune4
dba Sfx_GameFreakPresents dba Sfx_GameFreakPresents
dba Sfx_Tingle dba Sfx_Tingle
dba Sfx_UnknownCB dba Sfx_IntroWhoosh
dba Sfx_TwoPcBeeps dba Sfx_TwoPcBeeps
dba Sfx_4NoteDitty dba Sfx_4NoteDitty
dba Sfx_Twinkle dba Sfx_Twinkle

View File

@ -61,6 +61,7 @@ MOVE_LENGTH EQU const_value
const STAT_DEF const STAT_DEF
const STAT_SPD const STAT_SPD
const STAT_SATK const STAT_SATK
NUM_EXP_STATS EQU const_value + -1
const STAT_SDEF const STAT_SDEF
NUM_STATS EQU const_value NUM_STATS EQU const_value
STAT_SPC EQU STAT_SATK STAT_SPC EQU STAT_SATK

View File

@ -206,7 +206,7 @@
const SFX_INTRO_SUICUNE_4 ; c8 const SFX_INTRO_SUICUNE_4 ; c8
const SFX_GAME_FREAK_PRESENTS ; c9 const SFX_GAME_FREAK_PRESENTS ; c9
const SFX_TINGLE ; ca const SFX_TINGLE ; ca
const SFX_UNKNOWN_CB ; cb const SFX_INTRO_WHOOSH ; cb
const SFX_TWO_PC_BEEPS ; cc const SFX_TWO_PC_BEEPS ; cc
const SFX_4_NOTE_DITTY ; cd const SFX_4_NOTE_DITTY ; cd
const SFX_TWINKLE ; ce const SFX_TWINKLE ; ce

View File

@ -6992,7 +6992,7 @@ GiveExperiencePoints:
ld a, [wCurPartyMon] ld a, [wCurPartyMon]
ld c, a ld c, a
ld b, CHECK_FLAG ld b, CHECK_FLAG
ld d, $0 ld d, FALSE
predef SmallFarFlagAction predef SmallFarFlagAction
ld a, c ld a, c
and a and a
@ -7006,7 +7006,7 @@ GiveExperiencePoints:
ld e, l ld e, l
ld hl, wEnemyMonBaseStats - 1 ld hl, wEnemyMonBaseStats - 1
push bc push bc
ld c, $5 ld c, NUM_EXP_STATS
.loop1 .loop1
inc hl inc hl
ld a, [de] ld a, [de]
@ -7286,13 +7286,13 @@ GiveExperiencePoints:
ld [wMonType], a ld [wMonType], a
predef CopyMonToTempMon predef CopyMonToTempMon
hlcoord 9, 0 hlcoord 9, 0
ld b, $a ld b, 10
ld c, $9 ld c, 9
call TextBox call TextBox
hlcoord 11, 1 hlcoord 11, 1
ld bc, 4 ld bc, 4
predef PrintTempMonStats predef PrintTempMonStats
ld c, $1e ld c, 30
call DelayFrames call DelayFrames
call WaitPressAorB_BlinkCursor call WaitPressAorB_BlinkCursor
call Call_LoadTempTileMapToTileMap call Call_LoadTempTileMapToTileMap

View File

@ -1481,7 +1481,7 @@ IntroScene28:
cp $8 cp $8
ret nz ret nz
ld de, SFX_UNKNOWN_CB ld de, SFX_INTRO_WHOOSH
call PlaySFX call PlaySFX
ret ret

View File

@ -1403,7 +1403,7 @@ CalcMonStats:
; hl is the path to the Stat EXP ; hl is the path to the Stat EXP
; de points to where the final stats will be saved ; de points to where the final stats will be saved
ld c, $0 ld c, STAT_HP - 1 ; first stat
.loop .loop
inc c inc c
call CalcMonStatC call CalcMonStatC
@ -1414,7 +1414,7 @@ CalcMonStats:
ld [de], a ld [de], a
inc de inc de
ld a, c ld a, c
cp STAT_SDEF cp STAT_SDEF ; last stat
jr nz, .loop jr nz, .loop
ret ret
@ -1434,14 +1434,14 @@ CalcMonStatC:
push hl push hl
ld hl, wBaseStats ld hl, wBaseStats
dec hl ; has to be decreased, because 'c' begins with 1 dec hl ; has to be decreased, because 'c' begins with 1
ld b, $0 ld b, 0
add hl, bc add hl, bc
ld a, [hl] ld a, [hl]
ld e, a ld e, a
pop hl pop hl
push hl push hl
ld a, c ld a, c
cp STAT_SDEF cp STAT_SDEF ; last stat
jr nz, .not_spdef jr nz, .not_spdef
dec hl dec hl
dec hl dec hl