Consolidate monster structs in wram and sram.

The PartyMon struct is really the box struct with volatile variables like status added.

Some other labels have been reworked.
Move structs no longer have explicit labels since their location is arbitrary and usually shared.
This commit is contained in:
yenatch
2014-06-12 18:32:42 -07:00
parent 23f9b5d21e
commit 023cfdbb05
14 changed files with 1128 additions and 1538 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -2395,12 +2395,12 @@ BattleCommand09: ; 34d32
call .StatModifiers call .StatModifiers
ld a, [PlayerMoveAccuracy] ld a, [wPlayerMoveStruct + MOVE_ACC]
ld b, a ld b, a
ld a, [hBattleTurn] ld a, [hBattleTurn]
and a and a
jr z, .BrightPowder jr z, .BrightPowder
ld a, [EnemyMoveAccuracy] ld a, [wEnemyMoveStruct + MOVE_ACC]
ld b, a ld b, a
.BrightPowder .BrightPowder
@ -2592,7 +2592,7 @@ BattleCommand09: ; 34d32
ld a, [hBattleTurn] ld a, [hBattleTurn]
and a and a
ld hl, PlayerMoveAccuracy ld hl, wPlayerMoveStruct + MOVE_ACC
ld a, [PlayerAccLevel] ld a, [PlayerAccLevel]
ld b, a ld b, a
ld a, [EnemyEvaLevel] ld a, [EnemyEvaLevel]
@ -2600,7 +2600,7 @@ BattleCommand09: ; 34d32
jr z, .asm_34e60 jr z, .asm_34e60
ld hl, EnemyMoveAccuracy ld hl, wEnemyMoveStruct + MOVE_ACC
ld a, [EnemyAccLevel] ld a, [EnemyAccLevel]
ld b, a ld b, a
ld a, [PlayerEvaLevel] ld a, [PlayerEvaLevel]
@ -2695,11 +2695,11 @@ BattleCommand90: ; 34ecc
jr nz, .failed jr nz, .failed
push hl push hl
ld hl, PlayerMoveEffectChance ld hl, wPlayerMoveStruct + MOVE_CHANCE
ld a, [hBattleTurn] ld a, [hBattleTurn]
and a and a
jr z, .asm_34ee1 jr z, .asm_34ee1
ld hl, EnemyMoveEffectChance ld hl, wEnemyMoveStruct + MOVE_CHANCE
.asm_34ee1 .asm_34ee1
call BattleRandom call BattleRandom
@ -3224,7 +3224,7 @@ BattleCommand11: ; 351c0
; Faint the user if it fainted an opponent using Destiny Bond. ; Faint the user if it fainted an opponent using Destiny Bond.
ld hl, EnemyMonHPHi ld hl, EnemyMonHP
ld a, [hBattleTurn] ld a, [hBattleTurn]
and a and a
jr z, .asm_351cb jr z, .asm_351cb
@ -3438,7 +3438,7 @@ PlayerAttackDamage: ; 352e2
call ResetDamage call ResetDamage
ld hl, PlayerMovePower ld hl, wPlayerMoveStruct + MOVE_POWER
ld a, [hli] ld a, [hli]
and a and a
ld d, a ld d, a
@ -3450,7 +3450,7 @@ PlayerAttackDamage: ; 352e2
; Physical ; Physical
ld hl, EnemyMonDef ld hl, EnemyMonDefense
ld a, [hli] ld a, [hli]
ld b, a ld b, a
ld c, [hl] ld c, [hl]
@ -3463,7 +3463,7 @@ PlayerAttackDamage: ; 352e2
rl b rl b
.physicalcrit .physicalcrit
ld hl, BattleMonAtk ld hl, BattleMonAttack
call GetDamageStatsCritical call GetDamageStatsCritical
jr c, .thickclub jr c, .thickclub
@ -3586,7 +3586,7 @@ GetDamageStats: ; 3537e
ld a, [hBattleTurn] ld a, [hBattleTurn]
and a and a
jr nz, .enemy jr nz, .enemy
ld a, [PlayerMoveType] ld a, [wPlayerMoveStruct + MOVE_TYPE]
cp SPECIAL cp SPECIAL
; special ; special
ld a, [PlayerSAtkLevel] ld a, [PlayerSAtkLevel]
@ -3600,7 +3600,7 @@ GetDamageStats: ; 3537e
jr .end jr .end
.enemy .enemy
ld a, [EnemyMoveType] ld a, [wEnemyMoveStruct + MOVE_TYPE]
cp SPECIAL cp SPECIAL
; special ; special
ld a, [EnemySAtkLevel] ld a, [EnemySAtkLevel]
@ -3699,8 +3699,8 @@ EnemyAttackDamage: ; 353f6
call ResetDamage call ResetDamage
; No damage dealt with 0 power. ; No damage dealt with 0 power.
ld hl, EnemyMovePower ld hl, wEnemyMoveStruct + MOVE_POWER
ld a, [hli] ; hl = EnemyMoveType ld a, [hli] ; hl = wEnemyMoveStruct + MOVE_TYPE
ld d, a ld d, a
and a and a
ret z ret z
@ -3711,7 +3711,7 @@ EnemyAttackDamage: ; 353f6
; Physical ; Physical
ld hl, BattleMonDef ld hl, BattleMonDefense
ld a, [hli] ld a, [hli]
ld b, a ld b, a
ld c, [hl] ld c, [hl]
@ -3724,7 +3724,7 @@ EnemyAttackDamage: ; 353f6
rl b rl b
.physicalcrit .physicalcrit
ld hl, EnemyMonAtk ld hl, EnemyMonAttack
call GetDamageStatsCritical call GetDamageStatsCritical
jr c, .thickclub jr c, .thickclub
@ -3804,7 +3804,7 @@ BattleCommanda1: ; 35461
ld [DefaultFlypoint], a ld [DefaultFlypoint], a
.asm_3548d .asm_3548d
ld a, [DefaultFlypoint] ld a, [DefaultFlypoint]
ld hl, PartyMon1Nickname ld hl, PartyMonNicknames
call GetNick call GetNick
ld a, $22 ld a, $22
call Function355bd call Function355bd
@ -3847,7 +3847,7 @@ BattleCommanda1: ; 35461
ld a, [hl] ld a, [hl]
ld e, a ld e, a
pop bc pop bc
ld a, [PlayerMovePower] ld a, [wPlayerMoveStruct + MOVE_POWER]
ld d, a ld d, a
ret ret
@ -3893,7 +3893,7 @@ BattleCommanda1: ; 35461
.asm_35532 .asm_35532
ld a, [DefaultFlypoint] ld a, [DefaultFlypoint]
ld hl, OTPartyMon1Nickname ld hl, OTPartyMonNicknames
ld bc, $000b ld bc, $000b
call AddNTimes call AddNTimes
ld de, StringBuffer1 ld de, StringBuffer1
@ -3952,7 +3952,7 @@ BattleCommanda1: ; 35461
ld a, [hl] ld a, [hl]
ld e, a ld e, a
pop bc pop bc
ld a, [EnemyMovePower] ld a, [wEnemyMoveStruct + MOVE_POWER]
ld d, a ld d, a
ret ret
; 355b0 ; 355b0
@ -4004,12 +4004,12 @@ Function355dd: ; 355dd
call ResetDamage call ResetDamage
ld a, [hBattleTurn] ld a, [hBattleTurn]
and a and a
ld hl, BattleMonDef ld hl, BattleMonDefense
ld de, PlayerScreens ld de, PlayerScreens
ld a, [BattleMonLevel] ld a, [BattleMonLevel]
jr z, .asm_355f7 jr z, .asm_355f7
ld hl, EnemyMonDef ld hl, EnemyMonDefense
ld de, EnemyScreens ld de, EnemyScreens
ld a, [EnemyMonLevel] ld a, [EnemyMonLevel]
.asm_355f7 .asm_355f7
@ -4345,7 +4345,7 @@ BattleCommand3f: ; 35726
ld a, $0 ld a, $0
jr .asm_3578c ; 35769 $21 jr .asm_3578c ; 35769 $21
.asm_3576b .asm_3576b
ld hl, EnemyMonHPHi ld hl, EnemyMonHP
ld a, [hBattleTurn] ld a, [hBattleTurn]
and a and a
jr z, .asm_35776 ; 35771 $3 jr z, .asm_35776 ; 35771 $3
@ -4376,7 +4376,7 @@ BattleCommand3f: ; 35726
ld a, [hBattleTurn] ld a, [hBattleTurn]
and a and a
jr z, .asm_3579d ; 35798 $3 jr z, .asm_3579d ; 35798 $3
ld hl, EnemyMonHPHi ld hl, EnemyMonHP
.asm_3579d .asm_3579d
xor a xor a
ld [$ffb3], a ld [$ffb3], a
@ -4433,14 +4433,14 @@ BattleCommand3f: ; 35726
ld a, [hl] ld a, [hl]
jr nz, .asm_357f8 jr nz, .asm_357f8
ld hl, PlayerMovePower ld hl, wPlayerMoveStruct + MOVE_POWER
ld [hl], a ld [hl], a
push hl push hl
call PlayerAttackDamage call PlayerAttackDamage
jr .asm_35800 jr .asm_35800
.asm_357f8 .asm_357f8
ld hl, EnemyMovePower ld hl, wEnemyMoveStruct + MOVE_POWER
ld [hl], a ld [hl], a
push hl push hl
call EnemyAttackDamage call EnemyAttackDamage
@ -4600,7 +4600,7 @@ BattleCommand41: ; 35864
ld a, b ld a, b
ld [CurPlayerMove], a ld [CurPlayerMove], a
dec a dec a
ld de, PlayerMoveStruct ld de, wPlayerMoveStruct
call GetMoveData call GetMoveData
jr .asm_3591a jr .asm_3591a
.asm_358ef .asm_358ef
@ -4629,7 +4629,7 @@ BattleCommand41: ; 35864
ld a, b ld a, b
ld [CurEnemyMove], a ld [CurEnemyMove], a
dec a dec a
ld de, EnemyMoveStruct ld de, wEnemyMoveStruct
call GetMoveData call GetMoveData
.asm_3591a .asm_3591a
call AnimateCurrentMove call AnimateCurrentMove
@ -4654,14 +4654,14 @@ BattleCommand42: ; 35926
jp nz, Function359cd jp nz, Function359cd
call AnimateCurrentMove call AnimateCurrentMove
ld hl, $c63f ld hl, $c63f
ld de, EnemyMonMaxHPLo ld de, EnemyMonMaxHP + 1
call .asm_3597d call .asm_3597d
ld a, $1 ld a, $1
ld [$d10a], a ld [$d10a], a
hlcoord 10, 9 hlcoord 10, 9
ld a, $b ld a, $b
call Predef call Predef
ld hl, EnemyMonHPHi ld hl, EnemyMonHP
ld a, [hli] ld a, [hli]
ld [$d1ed], a ld [$d1ed], a
ld a, [hli] ld a, [hli]
@ -5230,7 +5230,7 @@ BattleCommand4a: ; 35c0f
BattleCommand4b: ; 35c94 BattleCommand4b: ; 35c94
; falseswipe ; falseswipe
ld hl, EnemyMonHPHi ld hl, EnemyMonHP
ld a, [hBattleTurn] ld a, [hBattleTurn]
and a and a
jr z, .asm_35c9f ; 35c9a $3 jr z, .asm_35c9f ; 35c9a $3
@ -5362,7 +5362,7 @@ Function35d1c: ; 35d1c
ld a, [EnemyMonHP] ld a, [EnemyMonHP]
ld [$d1ec + 1], a ld [$d1ec + 1], a
sbc b sbc b
ld [EnemyMonHPHi], a ld [EnemyMonHP], a
jr nc, .asm_35d59 jr nc, .asm_35d59
ld a, [$d1ed] ld a, [$d1ed]
@ -5837,8 +5837,8 @@ Function36011: ; 36011
ld a, [hBattleTurn] ld a, [hBattleTurn]
and a and a
jr z, .asm_36037 ; 0x3602f $6 jr z, .asm_36037 ; 0x3602f $6
ld hl, EnemyMonHPHi ld hl, EnemyMonHP
ld de, EnemyMonMaxHPHi ld de, EnemyMonMaxHP
.asm_36037 .asm_36037
ld bc, $d1ed ld bc, $d1ed
ld a, [hli] ld a, [hli]
@ -6396,12 +6396,12 @@ BattleCommand1d: ; 362e3
jr nc, .Hit jr nc, .Hit
push hl push hl
ld hl, EnemyMonAtk + 1 ld hl, EnemyMonAttack + 1
ld de, EnemyStats ld de, EnemyStats
ld a, [hBattleTurn] ld a, [hBattleTurn]
and a and a
jr z, .asm_36366 jr z, .asm_36366
ld hl, BattleMonAtk + 1 ld hl, BattleMonAttack + 1
ld de, PlayerStats ld de, PlayerStats
.asm_36366 .asm_36366
call Function3641a call Function3641a
@ -6840,7 +6840,7 @@ BattleCommanda7: ; 365c3
Function365d7: ; 365d7 Function365d7: ; 365d7
ld hl, PlayerAtkLevel ld hl, PlayerAtkLevel
ld de, PlayerStats ld de, PlayerStats
ld bc, BattleMonAtk ld bc, BattleMonAttack
ld a, $5 ld a, $5
call Function3661d call Function3661d
@ -6863,7 +6863,7 @@ Function365d7: ; 365d7
Function365fd: ; 365fd Function365fd: ; 365fd
ld hl, EnemyAtkLevel ld hl, EnemyAtkLevel
ld de, EnemyStats ld de, EnemyStats
ld bc, EnemyMonAtk ld bc, EnemyMonAttack
ld a, $5 ld a, $5
call Function3661d call Function3661d
@ -7040,8 +7040,8 @@ BattleCommand22: ; 366e5
ld [de], a ld [de], a
inc de inc de
ld [de], a ld [de], a
ld [PlayerMoveEffect], a ld [wPlayerMoveStruct + MOVE_EFFECT], a
ld [EnemyMoveEffect], a ld [wEnemyMoveStruct + MOVE_EFFECT], a
call BattleRandom call BattleRandom
and $1 and $1
inc a inc a
@ -7257,7 +7257,7 @@ BattleCommand23: ; 3680f
inc a inc a
ld [$d232], a ld [$d232], a
call Function36804 call Function36804
ld a, [PlayerMoveAnimation] ld a, [wPlayerMoveStruct + MOVE_ANIM]
jp .asm_36975 jp .asm_36975
.asm_36869 .asm_36869
call Function349f4 call Function349f4
@ -7348,7 +7348,7 @@ BattleCommand23: ; 3680f
inc a inc a
ld [$d232], a ld [$d232], a
call Function36804 call Function36804
ld a, [EnemyMoveAnimation] ld a, [wEnemyMoveStruct + MOVE_ANIM]
jr .asm_36975 jr .asm_36975
.asm_36908 .asm_36908
@ -7687,7 +7687,7 @@ BattleCommand26: ; 36af3
jr z, .asm_36b2f ; 36afb $32 jr z, .asm_36b2f ; 36afb $32
ld hl, EnemyMonLevel ld hl, EnemyMonLevel
ld de, BattleMonLevel ld de, BattleMonLevel
ld bc, PlayerMoveAccuracy ld bc, wPlayerMoveStruct + MOVE_ACC
ld a, [hBattleTurn] ld a, [hBattleTurn]
and a and a
jr z, .asm_36b12 ; 36b09 $7 jr z, .asm_36b12 ; 36b09 $7
@ -7695,7 +7695,7 @@ BattleCommand26: ; 36af3
ld h, d ld h, d
ld l, e ld l, e
pop de pop de
ld bc, EnemyMoveAccuracy ld bc, wEnemyMoveStruct + MOVE_ACC
.asm_36b12 .asm_36b12
ld a, [de] ld a, [de]
sub [hl] sub [hl]
@ -7990,7 +7990,7 @@ BattleCommand27: ; 36cb2
ld a, [hBattleTurn] ld a, [hBattleTurn]
and a and a
jr z, .asm_36cbd ; 36cb8 $3 jr z, .asm_36cbd ; 36cb8 $3
ld hl, EnemyMonMaxHPHi ld hl, EnemyMonMaxHP
.asm_36cbd .asm_36cbd
ld a, BATTLE_VARS_MOVE_ANIM ld a, BATTLE_VARS_MOVE_ANIM
call GetBattleVar call GetBattleVar
@ -9951,20 +9951,25 @@ CheckAnyOtherAliveMons: ; 37b01
BattleCommand68: ; 37b1d BattleCommand68: ; 37b1d
ld hl, $c711 ; pursuit
; Double damage if the opponent is switching.
ld hl, wEnemyIsSwitching
ld a, [hBattleTurn] ld a, [hBattleTurn]
and a and a
jr z, .asm_37b28 ; 37b23 $3 jr z, .ok
ld hl, $c710 ld hl, wPlayerIsSwitching
.asm_37b28 .ok
ld a, [hl] ld a, [hl]
and a and a
ret z ret z
ld hl, CurDamage + 1 ld hl, CurDamage + 1
sla [hl] sla [hl]
dec hl dec hl
rl [hl] rl [hl]
ret nc ret nc
ld a, $ff ld a, $ff
ld [hli], a ld [hli], a
ld [hl], a ld [hl], a

View File

@ -1,3 +1,4 @@
PARTY_LENGTH EQU 6
; strings ; strings
PLAYER_NAME_LENGTH EQU 8 PLAYER_NAME_LENGTH EQU 8
@ -16,6 +17,7 @@ TRAINER_NAME EQU 7
; boxes ; boxes
MONS_PER_BOX EQU 20
NUM_BOXES EQU 14 NUM_BOXES EQU 14

View File

@ -35,7 +35,7 @@ GiveOddEgg: ; 1fb4b6
ld hl, OddEggs ld hl, OddEggs
ld a, OddEgg2 - OddEgg1 ld a, OddEgg2 - OddEgg1
call AddNTimes call AddNTimes
ld de, EnemyMoveAnimation ld de, $c608
ld bc, $0046 ld bc, $0046
call CopyBytes call CopyBytes
ld a, EGG_TICKET ld a, EGG_TICKET

View File

@ -9,13 +9,13 @@
dwb $d957, %00001000 ; expn card dwb $d957, %00001000 ; expn card
dwb $d957, %10000000 ; on/off dwb $d957, %10000000 ; on/off
; DaycareMan, %10000000 ; daycare 1 on ; wDaycareMan, %10000000 ; daycare 1 on
dwb DaycareMan, %01000000 ; monster 1 and 2 are compatible dwb wDaycareMan, %01000000 ; monster 1 and 2 are compatible
; DaycareMan, %00100000 ; egg is ready ; wDaycareMan, %00100000 ; egg is ready
dwb DaycareMan, %00000001 ; monster 1 in daycare dwb wDaycareMan, %00000001 ; monster 1 in daycare
; DaycareLady, %10000000 = daycare 2 on ; wDaycareLady, %10000000 = daycare 2 on
dwb DaycareLady, %00000001 ; monster 2 in daycare dwb wDaycareLady, %00000001 ; monster 2 in daycare
dwb $d854, %00000001 ; mom saving money ; $8 dwb $d854, %00000001 ; mom saving money ; $8
dwb $d854, %10000000 ; dst dwb $d854, %10000000 ; dst

View File

@ -2659,7 +2659,7 @@ Script_giveegg: ; 0x97968
ld [CurPartySpecies], a ld [CurPartySpecies], a
call GetScriptByte call GetScriptByte
ld [CurPartyLevel], a ld [CurPartyLevel], a
callba Functiondf8c callba GiveEgg
ret nc ret nc
ld a, $2 ld a, $2
ld [ScriptVar], a ld [ScriptVar], a

View File

@ -34,7 +34,7 @@ NameRater: ; fb6ed
call Functionfb7d3 call Functionfb7d3
ld hl, UnknownText_0xfb837 ld hl, UnknownText_0xfb837
jr c, .asm_fb76c jr c, .asm_fb76c
ld hl, PartyMon1Nickname ld hl, PartyMonNicknames
ld bc, $000b ld bc, $000b
ld a, [CurPartyMon] ld a, [CurPartyMon]
call AddNTimes call AddNTimes
@ -70,12 +70,12 @@ NameRater: ; fb6ed
; fb78a ; fb78a
Functionfb78a: ; fb78a Functionfb78a: ; fb78a
ld hl, PartyMon1OT ld hl, PartyMonOT
ld bc, $000b ld bc, NAME_LENGTH
ld a, [CurPartyMon] ld a, [CurPartyMon]
call AddNTimes call AddNTimes
ld de, PlayerName ld de, PlayerName
ld c, $b ld c, NAME_LENGTH
call .asm_fb7b1 call .asm_fb7b1
jr c, .asm_fb7bc jr c, .asm_fb7bc
ld hl, PartyMon1ID ld hl, PartyMon1ID
@ -122,7 +122,7 @@ Functionfb7be: ; fb7be
; fb7d3 ; fb7d3
Functionfb7d3: ; fb7d3 Functionfb7d3: ; fb7d3
ld hl, PartyMon1Nickname ld hl, PartyMonNicknames
ld bc, $000b ld bc, $000b
ld a, [CurPartyMon] ld a, [CurPartyMon]
call AddNTimes call AddNTimes

View File

@ -139,7 +139,7 @@ ReadCaughtData: ; 4f134
GetCaughtName: ; 4f176 GetCaughtName: ; 4f176
ld a, [CurPartyMon] ld a, [CurPartyMon]
ld hl, PartyMon1Nickname ld hl, PartyMonNicknames
ld bc, PKMN_NAME_LENGTH ld bc, PKMN_NAME_LENGTH
call AddNTimes call AddNTimes
ld de, $d003 ld de, $d003
@ -258,8 +258,8 @@ GetCaughtLocation: ; 4f20a
GetCaughtOT: ; 4f242 GetCaughtOT: ; 4f242
ld a, [CurPartyMon] ld a, [CurPartyMon]
ld hl, PartyMon1OT ld hl, PartyMonOT
ld bc, $000b ld bc, NAME_LENGTH
call AddNTimes call AddNTimes
ld de, $d02a ld de, $d02a
ld bc, $000b ld bc, $000b

View File

@ -250,10 +250,10 @@ _GetBattleVar:: ; 39e7
dw PlayerSubStatus4, EnemySubStatus4 dw PlayerSubStatus4, EnemySubStatus4
dw PlayerSubStatus5, EnemySubStatus5 dw PlayerSubStatus5, EnemySubStatus5
dw BattleMonStatus, EnemyMonStatus dw BattleMonStatus, EnemyMonStatus
dw PlayerMoveAnimation, EnemyMoveAnimation dw wPlayerMoveStruct + MOVE_ANIM, wEnemyMoveStruct + MOVE_ANIM
dw PlayerMoveEffect, EnemyMoveEffect dw wPlayerMoveStruct + MOVE_EFFECT, wEnemyMoveStruct + MOVE_EFFECT
dw PlayerMovePower, EnemyMovePower dw wPlayerMoveStruct + MOVE_POWER, wEnemyMoveStruct + MOVE_POWER
dw PlayerMoveType, EnemyMoveType dw wPlayerMoveStruct + MOVE_TYPE, wEnemyMoveStruct + MOVE_TYPE
dw CurPlayerMove, CurEnemyMove dw CurPlayerMove, CurEnemyMove
dw LastEnemyCounterMove, LastPlayerCounterMove dw LastEnemyCounterMove, LastPlayerCounterMove
dw LastPlayerMove, LastEnemyMove dw LastPlayerMove, LastEnemyMove

View File

@ -120,7 +120,7 @@ Function2198:: ; 2198
ld e, a ld e, a
ld a, [$d195] ld a, [$d195]
ld d, a ld d, a
ld hl, EnemyMoveAnimation ld hl, $c608
ld b, $5 ld b, $5
.asm_21a5 .asm_21a5

View File

@ -274,7 +274,7 @@ ParkBall: ; e8a2
ld a, b ld a, b
ld [$ffb6], a ld [$ffb6], a
ld hl, EnemyMonHPHi ld hl, EnemyMonHP
ld b, [hl] ld b, [hl]
inc hl inc hl
ld c, [hl] ld c, [hl]
@ -449,9 +449,9 @@ ParkBall: ; e8a2
.asm_ea1a .asm_ea1a
set 3, [hl] set 3, [hl]
ld hl, $c6f2 ld hl, $c6f2
ld a, [EnemyMonAtkDefDV] ld a, [EnemyMonDVs]
ld [hli], a ld [hli], a
ld a, [EnemyMonSpdSpclDV] ld a, [EnemyMonDVs + 1]
ld [hl], a ld [hl], a
.asm_ea27 .asm_ea27
@ -579,7 +579,7 @@ ParkBall: ; e8a2
ld a, [PartyCount] ld a, [PartyCount]
dec a dec a
ld [CurPartyMon], a ld [CurPartyMon], a
ld hl, PartyMon1Nickname ld hl, PartyMonNicknames
ld bc, PKMN_NAME_LENGTH ld bc, PKMN_NAME_LENGTH
call AddNTimes call AddNTimes
@ -1320,7 +1320,7 @@ Table_eeeb: ; eeeb
db PROTEIN, PartyMon1AtkExp - PartyMon1StatExp db PROTEIN, PartyMon1AtkExp - PartyMon1StatExp
db IRON, PartyMon1DefExp - PartyMon1StatExp db IRON, PartyMon1DefExp - PartyMon1StatExp
db CARBOS, PartyMon1SpdExp - PartyMon1StatExp db CARBOS, PartyMon1SpdExp - PartyMon1StatExp
db CALCIUM, PartyMon1SpclExp - PartyMon1StatExp db CALCIUM, PartyMon1SpcExp - PartyMon1StatExp
; eef5 ; eef5
@ -1334,7 +1334,7 @@ Functioneef5: ; eef5
ld [CurPartyLevel], a ld [CurPartyLevel], a
call GetBaseData call GetBaseData
ld a, [CurPartyMon] ld a, [CurPartyMon]
ld hl, PartyMon1Nickname ld hl, PartyMonNicknames
call GetNick call GetNick
ret ret
; 0xef14 ; 0xef14

1224
main.asm

File diff suppressed because it is too large Load Diff

660
wram.asm

File diff suppressed because it is too large Load Diff