mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
more battle core labels
This commit is contained in:
parent
09603bf031
commit
6a570ebb8e
@ -731,8 +731,8 @@ AI_Switch: ; 3846c
|
|||||||
callab ResetEnemyStatLevels
|
callab ResetEnemyStatLevels
|
||||||
ld hl, PlayerSubStatus1
|
ld hl, PlayerSubStatus1
|
||||||
res SUBSTATUS_IN_LOVE, [hl]
|
res SUBSTATUS_IN_LOVE, [hl]
|
||||||
callba Function3d4e1
|
callba EnemySwitch
|
||||||
callba Function3d57a
|
callba ResetBattleParticipants
|
||||||
xor a
|
xor a
|
||||||
ld [wd264], a
|
ld [wd264], a
|
||||||
ld a, [wLinkMode]
|
ld a, [wLinkMode]
|
||||||
|
536
battle/core.asm
536
battle/core.asm
File diff suppressed because it is too large
Load Diff
@ -723,22 +723,22 @@ BattleCommand_CheckObedience: ; 343db
|
|||||||
ld hl, JohtoBadges
|
ld hl, JohtoBadges
|
||||||
|
|
||||||
; risingbadge
|
; risingbadge
|
||||||
bit 7, [hl]
|
bit RISINGBADGE, [hl]
|
||||||
ld a, MAX_LEVEL + 1
|
ld a, MAX_LEVEL + 1
|
||||||
jr nz, .getlevel
|
jr nz, .getlevel
|
||||||
|
|
||||||
; stormbadge
|
; stormbadge
|
||||||
bit 5, [hl]
|
bit STORMBADGE, [hl]
|
||||||
ld a, 70
|
ld a, 70
|
||||||
jr nz, .getlevel
|
jr nz, .getlevel
|
||||||
|
|
||||||
; fogbadge
|
; fogbadge
|
||||||
bit 3, [hl]
|
bit FOGBADGE, [hl]
|
||||||
ld a, 50
|
ld a, 50
|
||||||
jr nz, .getlevel
|
jr nz, .getlevel
|
||||||
|
|
||||||
; hivebadge
|
; hivebadge
|
||||||
bit 1, [hl]
|
bit HIVEBADGE, [hl]
|
||||||
ld a, 30
|
ld a, 30
|
||||||
jr nz, .getlevel
|
jr nz, .getlevel
|
||||||
|
|
||||||
@ -1017,9 +1017,9 @@ Function34548: ; 34548
|
|||||||
|
|
||||||
ld a, [hBattleTurn]
|
ld a, [hBattleTurn]
|
||||||
and a
|
and a
|
||||||
ld a, [wc732] ; player
|
ld a, [wPlayerCharging] ; player
|
||||||
jr z, .end
|
jr z, .end
|
||||||
ld a, [wc733] ; enemy
|
ld a, [wEnemyCharging] ; enemy
|
||||||
.end
|
.end
|
||||||
and a
|
and a
|
||||||
ret
|
ret
|
||||||
@ -2129,13 +2129,13 @@ BattleCommand_HitTargetNoSub: ; 34f60
|
|||||||
ld a, BATTLE_VARS_MOVE_EFFECT
|
ld a, BATTLE_VARS_MOVE_EFFECT
|
||||||
call GetBattleVar
|
call GetBattleVar
|
||||||
cp EFFECT_MULTI_HIT
|
cp EFFECT_MULTI_HIT
|
||||||
jr z, .multihit_conversion_doublehit_twineedle
|
jr z, .multihit
|
||||||
cp EFFECT_CONVERSION
|
cp EFFECT_CONVERSION
|
||||||
jr z, .multihit_conversion_doublehit_twineedle
|
jr z, .conversion
|
||||||
cp EFFECT_DOUBLE_HIT
|
cp EFFECT_DOUBLE_HIT
|
||||||
jr z, .multihit_conversion_doublehit_twineedle
|
jr z, .doublehit
|
||||||
cp EFFECT_TWINEEDLE
|
cp EFFECT_TWINEEDLE
|
||||||
jr z, .multihit_conversion_doublehit_twineedle
|
jr z, .twineedle
|
||||||
cp EFFECT_TRIPLE_KICK
|
cp EFFECT_TRIPLE_KICK
|
||||||
jr z, .triplekick
|
jr z, .triplekick
|
||||||
xor a
|
xor a
|
||||||
@ -2159,7 +2159,10 @@ BattleCommand_HitTargetNoSub: ; 34f60
|
|||||||
.fly_dig
|
.fly_dig
|
||||||
; clear sprite
|
; clear sprite
|
||||||
jp Function37ec7
|
jp Function37ec7
|
||||||
.multihit_conversion_doublehit_twineedle
|
.multihit
|
||||||
|
.conversion
|
||||||
|
.doublehit
|
||||||
|
.twineedle
|
||||||
ld a, [wKickCounter]
|
ld a, [wKickCounter]
|
||||||
and 1
|
and 1
|
||||||
xor 1
|
xor 1
|
||||||
@ -6307,12 +6310,12 @@ BattleCommand_StoreEnergy: ; 36671
|
|||||||
ld a, 1
|
ld a, 1
|
||||||
ld [hl], a
|
ld [hl], a
|
||||||
ld hl, PlayerDamageTaken + 1
|
ld hl, PlayerDamageTaken + 1
|
||||||
ld de, wc732 ; player
|
ld de, wPlayerCharging ; player
|
||||||
ld a, [hBattleTurn]
|
ld a, [hBattleTurn]
|
||||||
and a
|
and a
|
||||||
jr z, .player
|
jr z, .player
|
||||||
ld hl, EnemyDamageTaken + 1
|
ld hl, EnemyDamageTaken + 1
|
||||||
ld de, wc733 ; enemy
|
ld de, wEnemyCharging ; enemy
|
||||||
.player
|
.player
|
||||||
ld a, [hld]
|
ld a, [hld]
|
||||||
add a
|
add a
|
||||||
@ -8575,11 +8578,11 @@ CheckUserMove: ; 37462
|
|||||||
|
|
||||||
|
|
||||||
ResetTurn: ; 3747b
|
ResetTurn: ; 3747b
|
||||||
ld hl, wc732
|
ld hl, wPlayerCharging
|
||||||
ld a, [hBattleTurn]
|
ld a, [hBattleTurn]
|
||||||
and a
|
and a
|
||||||
jr z, .player
|
jr z, .player
|
||||||
ld hl, wc733
|
ld hl, wEnemyCharging
|
||||||
|
|
||||||
.player
|
.player
|
||||||
ld [hl], 1
|
ld [hl], 1
|
||||||
@ -8921,7 +8924,7 @@ BattleCommand_BatonPass: ; 379c9
|
|||||||
call DelayFrames
|
call DelayFrames
|
||||||
|
|
||||||
; Transition into switchmon menu
|
; Transition into switchmon menu
|
||||||
call LoadMenuDataHeader_0x1d75
|
call LoadPartyMenuDataHeader
|
||||||
callba Function3d2f7
|
callba Function3d2f7
|
||||||
|
|
||||||
callba ForcePickSwitchMonInBattle
|
callba ForcePickSwitchMonInBattle
|
||||||
@ -8971,9 +8974,9 @@ BattleCommand_BatonPass: ; 379c9
|
|||||||
; Passed enemy PartyMon entrance
|
; Passed enemy PartyMon entrance
|
||||||
xor a
|
xor a
|
||||||
ld [wc718], a
|
ld [wc718], a
|
||||||
ld hl, Function3d517
|
ld hl, EnemySwitch_SetMode
|
||||||
call CallBattleCore
|
call CallBattleCore
|
||||||
ld hl, Function3d57a
|
ld hl, ResetBattleParticipants
|
||||||
call CallBattleCore
|
call CallBattleCore
|
||||||
ld a, 1
|
ld a, 1
|
||||||
ld [wTypeMatchup], a
|
ld [wTypeMatchup], a
|
||||||
@ -8995,7 +8998,7 @@ BatonPass_LinkPlayerSwitch: ; 37a67
|
|||||||
ld a, 1
|
ld a, 1
|
||||||
ld [wd0ec], a
|
ld [wd0ec], a
|
||||||
|
|
||||||
call LoadMenuDataHeader_0x1d75
|
call LoadPartyMenuDataHeader
|
||||||
ld hl, Function3e8e4
|
ld hl, Function3e8e4
|
||||||
call CallBattleCore
|
call CallBattleCore
|
||||||
call WriteBackup
|
call WriteBackup
|
||||||
@ -9011,7 +9014,7 @@ BatonPass_LinkEnemySwitch: ; 37a82
|
|||||||
and a
|
and a
|
||||||
ret z
|
ret z
|
||||||
|
|
||||||
call LoadMenuDataHeader_0x1d75
|
call LoadPartyMenuDataHeader
|
||||||
ld hl, Function3e8e4
|
ld hl, Function3e8e4
|
||||||
call CallBattleCore
|
call CallBattleCore
|
||||||
|
|
||||||
|
@ -191,69 +191,69 @@
|
|||||||
const MIRAGE_MAIL ; $BD
|
const MIRAGE_MAIL ; $BD
|
||||||
const ITEM_BE ; $BE
|
const ITEM_BE ; $BE
|
||||||
|
|
||||||
add_tm DYNAMICPUNCH
|
add_tm DYNAMICPUNCH ; $BF
|
||||||
add_tm HEADBUTT
|
add_tm HEADBUTT ; $C0
|
||||||
add_tm CURSE
|
add_tm CURSE ; $C1
|
||||||
add_tm ROLLOUT
|
add_tm ROLLOUT ; $C2
|
||||||
const ITEM_C3
|
const ITEM_C3 ; $C3
|
||||||
add_tm ROAR
|
add_tm ROAR ; $C4
|
||||||
add_tm TOXIC
|
add_tm TOXIC ; $C5
|
||||||
add_tm ZAP_CANNON
|
add_tm ZAP_CANNON ; $C6
|
||||||
add_tm ROCK_SMASH
|
add_tm ROCK_SMASH ; $C7
|
||||||
add_tm PSYCH_UP
|
add_tm PSYCH_UP ; $C8
|
||||||
add_tm HIDDEN_POWER
|
add_tm HIDDEN_POWER ; $C9
|
||||||
add_tm SUNNY_DAY
|
add_tm SUNNY_DAY ; $CA
|
||||||
add_tm SWEET_SCENT
|
add_tm SWEET_SCENT ; $CB
|
||||||
add_tm SNORE
|
add_tm SNORE ; $CC
|
||||||
add_tm BLIZZARD
|
add_tm BLIZZARD ; $CD
|
||||||
add_tm HYPER_BEAM
|
add_tm HYPER_BEAM ; $CE
|
||||||
add_tm ICY_WIND
|
add_tm ICY_WIND ; $CF
|
||||||
add_tm PROTECT
|
add_tm PROTECT ; $D0
|
||||||
add_tm RAIN_DANCE
|
add_tm RAIN_DANCE ; $D1
|
||||||
add_tm GIGA_DRAIN
|
add_tm GIGA_DRAIN ; $D2
|
||||||
add_tm ENDURE
|
add_tm ENDURE ; $D3
|
||||||
add_tm FRUSTRATION
|
add_tm FRUSTRATION ; $D4
|
||||||
add_tm SOLARBEAM
|
add_tm SOLARBEAM ; $D5
|
||||||
add_tm IRON_TAIL
|
add_tm IRON_TAIL ; $D6
|
||||||
add_tm DRAGONBREATH
|
add_tm DRAGONBREATH ; $D7
|
||||||
add_tm THUNDER
|
add_tm THUNDER ; $D8
|
||||||
add_tm EARTHQUAKE
|
add_tm EARTHQUAKE ; $D9
|
||||||
add_tm RETURN
|
add_tm RETURN ; $DA
|
||||||
add_tm DIG
|
add_tm DIG ; $DB
|
||||||
const ITEM_DC
|
const ITEM_DC ; $DC
|
||||||
add_tm PSYCHIC
|
add_tm PSYCHIC ; $DD
|
||||||
add_tm SHADOW_BALL
|
add_tm SHADOW_BALL ; $DE
|
||||||
add_tm MUD_SLAP
|
add_tm MUD_SLAP ; $DF
|
||||||
add_tm DOUBLE_TEAM
|
add_tm DOUBLE_TEAM ; $E0
|
||||||
add_tm ICE_PUNCH
|
add_tm ICE_PUNCH ; $E1
|
||||||
add_tm SWAGGER
|
add_tm SWAGGER ; $E2
|
||||||
add_tm SLEEP_TALK
|
add_tm SLEEP_TALK ; $E3
|
||||||
add_tm SLUDGE_BOMB
|
add_tm SLUDGE_BOMB ; $E4
|
||||||
add_tm SANDSTORM
|
add_tm SANDSTORM ; $E5
|
||||||
add_tm FIRE_BLAST
|
add_tm FIRE_BLAST ; $E6
|
||||||
add_tm SWIFT
|
add_tm SWIFT ; $E7
|
||||||
add_tm DEFENSE_CURL
|
add_tm DEFENSE_CURL ; $E8
|
||||||
add_tm THUNDERPUNCH
|
add_tm THUNDERPUNCH ; $E9
|
||||||
add_tm DREAM_EATER
|
add_tm DREAM_EATER ; $EA
|
||||||
add_tm DETECT
|
add_tm DETECT ; $EB
|
||||||
add_tm REST
|
add_tm REST ; $EC
|
||||||
add_tm ATTRACT
|
add_tm ATTRACT ; $ED
|
||||||
add_tm THIEF
|
add_tm THIEF ; $EE
|
||||||
add_tm STEEL_WING
|
add_tm STEEL_WING ; $EF
|
||||||
add_tm FIRE_PUNCH
|
add_tm FIRE_PUNCH ; $F0
|
||||||
add_tm FURY_CUTTER
|
add_tm FURY_CUTTER ; $F1
|
||||||
add_tm NIGHTMARE
|
add_tm NIGHTMARE ; $F2
|
||||||
NUM_TMS = const_value - TM01 - 2
|
NUM_TMS = const_value - TM01 - 2
|
||||||
|
|
||||||
add_hm CUT
|
add_hm CUT ; $F3
|
||||||
add_hm FLY
|
add_hm FLY ; $F4
|
||||||
add_hm SURF
|
add_hm SURF ; $F5
|
||||||
add_hm STRENGTH
|
add_hm STRENGTH ; $F6
|
||||||
add_hm FLASH
|
add_hm FLASH ; $F7
|
||||||
add_hm WHIRLPOOL
|
add_hm WHIRLPOOL ; $F8
|
||||||
add_hm WATERFALL
|
add_hm WATERFALL ; $F9
|
||||||
NUM_HMS = const_value - HM01
|
NUM_HMS = const_value - HM01
|
||||||
const HM_08
|
const HM_08 ; $FA
|
||||||
|
|
||||||
add_mt FLAMETHROWER
|
add_mt FLAMETHROWER
|
||||||
add_mt THUNDERBOLT
|
add_mt THUNDERBOLT
|
||||||
|
@ -165,3 +165,25 @@ HMENURETURN_SCRIPT EQU %10000000
|
|||||||
HMENURETURN_ASM EQU %11111111
|
HMENURETURN_ASM EQU %11111111
|
||||||
|
|
||||||
NUM_MON_SUBMENU_ITEMS EQU 8
|
NUM_MON_SUBMENU_ITEMS EQU 8
|
||||||
|
|
||||||
|
const_def
|
||||||
|
const ZEPHYRBADGE
|
||||||
|
const HIVEBADGE
|
||||||
|
const PLAINBADGE
|
||||||
|
const FOGBADGE
|
||||||
|
const MINERALBADGE
|
||||||
|
const STORMBADGE
|
||||||
|
const GLACIERBADGE
|
||||||
|
const RISINGBADGE
|
||||||
|
NUM_JOHTO_BADGES EQU const_value
|
||||||
|
const_def
|
||||||
|
const BOULDERBADGE
|
||||||
|
const CASCADEBADGE
|
||||||
|
const THUNDERBADGE
|
||||||
|
const RAINBOWBADGE
|
||||||
|
const SOULBADGE
|
||||||
|
const MARSHBADGE
|
||||||
|
const VOLCANOBADGE
|
||||||
|
const EARTHBADGE
|
||||||
|
NUM_KANTO_BADGES EQU const_value
|
||||||
|
NUM_BADGES EQU NUM_JOHTO_BADGES + NUM_KANTO_BADGES
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
Function14a1a: ; 14a1a
|
Function14a1a: ; 14a1a
|
||||||
call LoadMenuDataHeader_0x1d75
|
call LoadPartyMenuDataHeader
|
||||||
callba Function5e9a
|
callba Function5e9a
|
||||||
call SpeechTextBox
|
call SpeechTextBox
|
||||||
call UpdateSprites
|
call UpdateSprites
|
||||||
|
@ -23,7 +23,7 @@ UnknownText_0x88013: ; 0x88013
|
|||||||
; 0x88018
|
; 0x88018
|
||||||
|
|
||||||
Special_SelectApricornForKurt: ; 88018
|
Special_SelectApricornForKurt: ; 88018
|
||||||
call LoadMenuDataHeader_0x1d75
|
call LoadPartyMenuDataHeader
|
||||||
ld c, $1
|
ld c, $1
|
||||||
xor a
|
xor a
|
||||||
ld [wd0e4], a
|
ld [wd0e4], a
|
||||||
|
@ -103,7 +103,7 @@ endr
|
|||||||
.AccessBankOfMom: ; 162a8
|
.AccessBankOfMom: ; 162a8
|
||||||
ld hl, UnknownText_0x1665d
|
ld hl, UnknownText_0x1665d
|
||||||
call PrintText
|
call PrintText
|
||||||
call LoadMenuDataHeader_0x1d75
|
call LoadPartyMenuDataHeader
|
||||||
ld hl, MenuDataHeader_0x166b5
|
ld hl, MenuDataHeader_0x166b5
|
||||||
call CopyMenuDataHeader
|
call CopyMenuDataHeader
|
||||||
call InterpretMenu2
|
call InterpretMenu2
|
||||||
@ -148,7 +148,7 @@ endr
|
|||||||
ld [hl], a
|
ld [hl], a
|
||||||
ld a, $5
|
ld a, $5
|
||||||
ld [wcf64], a
|
ld [wcf64], a
|
||||||
call LoadMenuDataHeader_0x1d75
|
call LoadPartyMenuDataHeader
|
||||||
call Function16517
|
call Function16517
|
||||||
call Function1656b
|
call Function1656b
|
||||||
call Function16571
|
call Function16571
|
||||||
@ -216,7 +216,7 @@ endr
|
|||||||
ld [hl], a
|
ld [hl], a
|
||||||
ld a, $5
|
ld a, $5
|
||||||
ld [wcf64], a
|
ld [wcf64], a
|
||||||
call LoadMenuDataHeader_0x1d75
|
call LoadPartyMenuDataHeader
|
||||||
call Function16512
|
call Function16512
|
||||||
call Function1656b
|
call Function1656b
|
||||||
call Function16571
|
call Function16571
|
||||||
|
@ -19,7 +19,7 @@ MoveDeletion:
|
|||||||
jr z, .asm_2c5ca
|
jr z, .asm_2c5ca
|
||||||
ld hl, UnknownText_0x2c5ea
|
ld hl, UnknownText_0x2c5ea
|
||||||
call PrintText
|
call PrintText
|
||||||
call LoadMenuDataHeader_0x1d75
|
call LoadPartyMenuDataHeader
|
||||||
callba Function12f5b
|
callba Function12f5b
|
||||||
push af
|
push af
|
||||||
call Function2b74
|
call Function2b74
|
||||||
|
@ -1961,7 +1961,7 @@ CheckStandingOnXYTrigger:: ; 2ae7
|
|||||||
FadeToMenu:: ; 2b29
|
FadeToMenu:: ; 2b29
|
||||||
xor a
|
xor a
|
||||||
ld [hBGMapMode], a
|
ld [hBGMapMode], a
|
||||||
call LoadMenuDataHeader_0x1d75
|
call LoadPartyMenuDataHeader
|
||||||
callba FadeBlackBGMap
|
callba FadeBlackBGMap
|
||||||
call ClearSprites
|
call ClearSprites
|
||||||
call DisableSpriteUpdates
|
call DisableSpriteUpdates
|
||||||
|
@ -52,7 +52,7 @@ MenuTextBoxBackup:: ; 1d67
|
|||||||
ret
|
ret
|
||||||
; 1d6e
|
; 1d6e
|
||||||
|
|
||||||
LoadMenuDataHeader_0x1d75:: ; 1d6e
|
LoadPartyMenuDataHeader:: ; 1d6e
|
||||||
ld hl, MenuDataHeader_0x1d75
|
ld hl, MenuDataHeader_0x1d75
|
||||||
call LoadMenuDataHeader
|
call LoadMenuDataHeader
|
||||||
ret
|
ret
|
||||||
|
@ -1673,7 +1673,7 @@ Functionf0d6: ; f0d6
|
|||||||
|
|
||||||
ld a, [CurPartyMon]
|
ld a, [CurPartyMon]
|
||||||
ld c, a
|
ld c, a
|
||||||
ld hl, wc664
|
ld hl, wBattleParticipantsNotFainted
|
||||||
ld b, SET_FLAG
|
ld b, SET_FLAG
|
||||||
predef FlagPredef
|
predef FlagPredef
|
||||||
|
|
||||||
|
80
main.asm
80
main.asm
@ -415,7 +415,7 @@ Continue: ; 5d65
|
|||||||
callba TryLoadSaveFile
|
callba TryLoadSaveFile
|
||||||
jr c, .FailToLoad
|
jr c, .FailToLoad
|
||||||
callba Function150b9
|
callba Function150b9
|
||||||
call LoadMenuDataHeader_0x1d75
|
call LoadPartyMenuDataHeader
|
||||||
call Function5e85
|
call Function5e85
|
||||||
ld a, $1
|
ld a, $1
|
||||||
ld [hBGMapMode], a
|
ld [hBGMapMode], a
|
||||||
@ -5197,7 +5197,7 @@ FlyFunction: ; ca3b
|
|||||||
.outdoors
|
.outdoors
|
||||||
xor a
|
xor a
|
||||||
ld [hMapAnims], a
|
ld [hMapAnims], a
|
||||||
call LoadMenuDataHeader_0x1d75
|
call LoadPartyMenuDataHeader
|
||||||
call ClearSprites
|
call ClearSprites
|
||||||
callba _FlyMap
|
callba _FlyMap
|
||||||
ld a, e
|
ld a, e
|
||||||
@ -9707,7 +9707,7 @@ TextJump_WasSentToBillsPC: ; 0xe3d9
|
|||||||
|
|
||||||
InitNickname: ; e3de
|
InitNickname: ; e3de
|
||||||
push de
|
push de
|
||||||
call LoadMenuDataHeader_0x1d75
|
call LoadPartyMenuDataHeader
|
||||||
call DisableSpriteUpdates
|
call DisableSpriteUpdates
|
||||||
pop de
|
pop de
|
||||||
push de
|
push de
|
||||||
@ -9748,7 +9748,7 @@ UnknownText_0xe417: ; 0xe417
|
|||||||
Functione41c: ; e41c (3:641c)
|
Functione41c: ; e41c (3:641c)
|
||||||
xor a
|
xor a
|
||||||
ld [hBGMapMode], a ; $ff00+$d4
|
ld [hBGMapMode], a ; $ff00+$d4
|
||||||
call LoadMenuDataHeader_0x1d75
|
call LoadPartyMenuDataHeader
|
||||||
call ClearPCItemScreen
|
call ClearPCItemScreen
|
||||||
ld hl, Options
|
ld hl, Options
|
||||||
ld a, [hl]
|
ld a, [hl]
|
||||||
@ -9844,7 +9844,7 @@ Functione4cb: ; e4cb
|
|||||||
; e4cd
|
; e4cd
|
||||||
|
|
||||||
Functione4cd: ; e4cd
|
Functione4cd: ; e4cd
|
||||||
call LoadMenuDataHeader_0x1d75
|
call LoadPartyMenuDataHeader
|
||||||
callba Function44781
|
callba Function44781
|
||||||
jr nc, .asm_e4e0
|
jr nc, .asm_e4e0
|
||||||
ld hl, UnknownText_0xe4f9
|
ld hl, UnknownText_0xe4f9
|
||||||
@ -9871,7 +9871,7 @@ UnknownText_0xe4f9: ; 0xe4f9
|
|||||||
; 0xe4fe
|
; 0xe4fe
|
||||||
|
|
||||||
Functione4fe: ; e4fe (3:64fe)
|
Functione4fe: ; e4fe (3:64fe)
|
||||||
call LoadMenuDataHeader_0x1d75
|
call LoadPartyMenuDataHeader
|
||||||
callba Functione2391
|
callba Functione2391
|
||||||
call Function222a
|
call Function222a
|
||||||
call ClearPCItemScreen
|
call ClearPCItemScreen
|
||||||
@ -9947,7 +9947,7 @@ CheckCurPartyMonFainted: ; e538
|
|||||||
|
|
||||||
|
|
||||||
Functione559: ; e559 (3:6559)
|
Functione559: ; e559 (3:6559)
|
||||||
call LoadMenuDataHeader_0x1d75
|
call LoadPartyMenuDataHeader
|
||||||
callba Functione2583
|
callba Functione2583
|
||||||
call Function222a
|
call Function222a
|
||||||
call ClearPCItemScreen
|
call ClearPCItemScreen
|
||||||
@ -13264,7 +13264,7 @@ GiveTakePartyMonItem: ; 12b60
|
|||||||
cp 1
|
cp 1
|
||||||
jr nz, .asm_12ba0
|
jr nz, .asm_12ba0
|
||||||
|
|
||||||
call LoadMenuDataHeader_0x1d75
|
call LoadPartyMenuDataHeader
|
||||||
call ClearPalettes
|
call ClearPalettes
|
||||||
call Function12ba9
|
call Function12ba9
|
||||||
call ClearPalettes
|
call ClearPalettes
|
||||||
@ -13677,7 +13677,7 @@ MonMailAction: ; 12d45
|
|||||||
|
|
||||||
|
|
||||||
OpenPartyStats: ; 12e00
|
OpenPartyStats: ; 12e00
|
||||||
call LoadMenuDataHeader_0x1d75
|
call LoadPartyMenuDataHeader
|
||||||
call ClearSprites
|
call ClearSprites
|
||||||
; PartyMon
|
; PartyMon
|
||||||
xor a
|
xor a
|
||||||
@ -14739,7 +14739,7 @@ Function134c0: ; 134c0
|
|||||||
; 134dd
|
; 134dd
|
||||||
|
|
||||||
Function134dd: ; 134dd
|
Function134dd: ; 134dd
|
||||||
call LoadMenuDataHeader_0x1d75
|
call LoadPartyMenuDataHeader
|
||||||
ld hl, Elevator_WhichFloorText
|
ld hl, Elevator_WhichFloorText
|
||||||
call PrintText
|
call PrintText
|
||||||
call Elevator_GetCurrentFloorText
|
call Elevator_GetCurrentFloorText
|
||||||
@ -16613,7 +16613,7 @@ UnknownText_0x157cc: ; 0x157cc
|
|||||||
; 0x157d1
|
; 0x157d1
|
||||||
|
|
||||||
KrisWithdrawItemMenu: ; 0x157d1
|
KrisWithdrawItemMenu: ; 0x157d1
|
||||||
call LoadMenuDataHeader_0x1d75
|
call LoadPartyMenuDataHeader
|
||||||
callba ClearPCItemScreen
|
callba ClearPCItemScreen
|
||||||
.asm_157da
|
.asm_157da
|
||||||
call Function15985
|
call Function15985
|
||||||
@ -16692,7 +16692,7 @@ Function157e9: ; 0x157e9
|
|||||||
|
|
||||||
|
|
||||||
KrisTossItemMenu: ; 0x1585f
|
KrisTossItemMenu: ; 0x1585f
|
||||||
call LoadMenuDataHeader_0x1d75
|
call LoadPartyMenuDataHeader
|
||||||
callba ClearPCItemScreen
|
callba ClearPCItemScreen
|
||||||
.asm_15868
|
.asm_15868
|
||||||
call Function15985
|
call Function15985
|
||||||
@ -16729,7 +16729,7 @@ KrisDepositItemMenu: ; 0x1588b
|
|||||||
call Function158b8
|
call Function158b8
|
||||||
jr c, .asm_158b6
|
jr c, .asm_158b6
|
||||||
call DisableSpriteUpdates
|
call DisableSpriteUpdates
|
||||||
call LoadMenuDataHeader_0x1d75
|
call LoadPartyMenuDataHeader
|
||||||
callba Function106a5
|
callba Function106a5
|
||||||
.asm_1589c
|
.asm_1589c
|
||||||
callba Function106be
|
callba Function106be
|
||||||
@ -17034,7 +17034,7 @@ MartDialog: ; 15a61
|
|||||||
|
|
||||||
HerbShop: ; 15a6e
|
HerbShop: ; 15a6e
|
||||||
call ReadMart
|
call ReadMart
|
||||||
call LoadMenuDataHeader_0x1d75
|
call LoadPartyMenuDataHeader
|
||||||
ld hl, UnknownText_0x15e4a
|
ld hl, UnknownText_0x15e4a
|
||||||
call Function15fcd
|
call Function15fcd
|
||||||
call Function15c62
|
call Function15c62
|
||||||
@ -17048,7 +17048,7 @@ BargainShop: ; 15a84
|
|||||||
ld de, BargainShopData
|
ld de, BargainShopData
|
||||||
call LoadMartPointer
|
call LoadMartPointer
|
||||||
call Function15c25
|
call Function15c25
|
||||||
call LoadMenuDataHeader_0x1d75
|
call LoadPartyMenuDataHeader
|
||||||
ld hl, UnknownText_0x15e6d
|
ld hl, UnknownText_0x15e6d
|
||||||
call Function15fcd
|
call Function15fcd
|
||||||
call Function15c62
|
call Function15c62
|
||||||
@ -17067,7 +17067,7 @@ BargainShop: ; 15a84
|
|||||||
|
|
||||||
Pharmacist: ; 15aae
|
Pharmacist: ; 15aae
|
||||||
call ReadMart
|
call ReadMart
|
||||||
call LoadMenuDataHeader_0x1d75
|
call LoadPartyMenuDataHeader
|
||||||
ld hl, UnknownText_0x15e90
|
ld hl, UnknownText_0x15e90
|
||||||
call Function15fcd
|
call Function15fcd
|
||||||
call Function15c62
|
call Function15c62
|
||||||
@ -17088,7 +17088,7 @@ RooftopSale: ; 15ac4
|
|||||||
.ok
|
.ok
|
||||||
call LoadMartPointer
|
call LoadMartPointer
|
||||||
call Function15c25
|
call Function15c25
|
||||||
call LoadMenuDataHeader_0x1d75
|
call LoadPartyMenuDataHeader
|
||||||
ld hl, UnknownText_0x15f83
|
ld hl, UnknownText_0x15f83
|
||||||
call Function15fcd
|
call Function15fcd
|
||||||
call Function15c62
|
call Function15c62
|
||||||
@ -17173,7 +17173,7 @@ StandardMart: ; 15b47
|
|||||||
; 15b62
|
; 15b62
|
||||||
|
|
||||||
.HowMayIHelpYou: ; 15b62
|
.HowMayIHelpYou: ; 15b62
|
||||||
call LoadMenuDataHeader_0x1d75
|
call LoadPartyMenuDataHeader
|
||||||
ld hl, UnknownText_0x15f83
|
ld hl, UnknownText_0x15f83
|
||||||
call PrintText
|
call PrintText
|
||||||
ld a, $1
|
ld a, $1
|
||||||
@ -17226,7 +17226,7 @@ StandardMart: ; 15b47
|
|||||||
; 15baf
|
; 15baf
|
||||||
|
|
||||||
.AnythingElse: ; 15baf
|
.AnythingElse: ; 15baf
|
||||||
call LoadMenuDataHeader_0x1d75
|
call LoadPartyMenuDataHeader
|
||||||
ld hl, UnknownText_0x15fb9
|
ld hl, UnknownText_0x15fb9
|
||||||
call PrintText
|
call PrintText
|
||||||
ld a, $1
|
ld a, $1
|
||||||
@ -19462,7 +19462,7 @@ DoEggStep:: ; 16f3e
|
|||||||
|
|
||||||
OverworldHatchEgg:: ; 16f5e
|
OverworldHatchEgg:: ; 16f5e
|
||||||
call ResetWindow
|
call ResetWindow
|
||||||
call LoadMenuDataHeader_0x1d75
|
call LoadPartyMenuDataHeader
|
||||||
call Function16f70
|
call Function16f70
|
||||||
call Function2b4d
|
call Function2b4d
|
||||||
call RestartMapMusic
|
call RestartMapMusic
|
||||||
@ -20304,7 +20304,7 @@ Function20021: ; 20021 (8:4021)
|
|||||||
ld a, [hl]
|
ld a, [hl]
|
||||||
push af
|
push af
|
||||||
set 4, [hl]
|
set 4, [hl]
|
||||||
call LoadMenuDataHeader_0x1d75
|
call LoadPartyMenuDataHeader
|
||||||
call ClearTileMap
|
call ClearTileMap
|
||||||
ld hl, UnknownText_0x2004c
|
ld hl, UnknownText_0x2004c
|
||||||
call PrintText
|
call PrintText
|
||||||
@ -23968,7 +23968,7 @@ Function2695b: ; 2695b
|
|||||||
ld d, 0
|
ld d, 0
|
||||||
add hl, de
|
add hl, de
|
||||||
ld [hl], -1
|
ld [hl], -1
|
||||||
call LoadMenuDataHeader_0x1d75
|
call LoadPartyMenuDataHeader
|
||||||
ld hl, MenuDataHeader_0x269c5
|
ld hl, MenuDataHeader_0x269c5
|
||||||
call CopyMenuDataHeader
|
call CopyMenuDataHeader
|
||||||
xor a
|
xor a
|
||||||
@ -25065,7 +25065,7 @@ Function2715c: ; 2715c
|
|||||||
callba Function3ed9f
|
callba Function3ed9f
|
||||||
call ClearSGB
|
call ClearSGB
|
||||||
call WriteBackup
|
call WriteBackup
|
||||||
call LoadMenuDataHeader_0x1d75
|
call LoadPartyMenuDataHeader
|
||||||
call WaitBGMap
|
call WaitBGMap
|
||||||
jp SetPalettes
|
jp SetPalettes
|
||||||
; 27192
|
; 27192
|
||||||
@ -26846,7 +26846,7 @@ Function28b87: ; 28b87
|
|||||||
ld hl, UnknownText_0x28eb8
|
ld hl, UnknownText_0x28eb8
|
||||||
bccoord 1, 14
|
bccoord 1, 14
|
||||||
call PlaceWholeStringInBoxAtOnce
|
call PlaceWholeStringInBoxAtOnce
|
||||||
call LoadMenuDataHeader_0x1d75
|
call LoadPartyMenuDataHeader
|
||||||
hlcoord 10, 7
|
hlcoord 10, 7
|
||||||
ld b, $3
|
ld b, $3
|
||||||
ld c, $7
|
ld c, $7
|
||||||
@ -27015,7 +27015,7 @@ Function28b87: ; 28b87
|
|||||||
ld a, [hli]
|
ld a, [hli]
|
||||||
ld [wc731], a
|
ld [wc731], a
|
||||||
ld a, [hl]
|
ld a, [hl]
|
||||||
ld [wc732], a
|
ld [wPlayerCharging], a
|
||||||
ld hl, OTPartyMon1DVs
|
ld hl, OTPartyMon1DVs
|
||||||
ld a, [wd003]
|
ld a, [wd003]
|
||||||
call GetPartyLocation
|
call GetPartyLocation
|
||||||
@ -27030,7 +27030,7 @@ Function28b87: ; 28b87
|
|||||||
ld c, l
|
ld c, l
|
||||||
callba GetCaughtGender
|
callba GetCaughtGender
|
||||||
ld a, c
|
ld a, c
|
||||||
ld [wc733], a
|
ld [wEnemyCharging], a
|
||||||
ld a, [DefaultFlypoint]
|
ld a, [DefaultFlypoint]
|
||||||
ld [CurPartyMon], a
|
ld [CurPartyMon], a
|
||||||
ld hl, PartySpecies
|
ld hl, PartySpecies
|
||||||
@ -28143,7 +28143,7 @@ Function29549: ; 29549
|
|||||||
call Function295e3
|
call Function295e3
|
||||||
ld de, wc703
|
ld de, wc703
|
||||||
call Function295ef
|
call Function295ef
|
||||||
ld a, [wc733]
|
ld a, [wEnemyCharging]
|
||||||
ld de, wc724
|
ld de, wc724
|
||||||
call Function295f6
|
call Function295f6
|
||||||
ld de, wc731
|
ld de, wc731
|
||||||
@ -32241,7 +32241,7 @@ endr
|
|||||||
ld [wd0e4], a
|
ld [wd0e4], a
|
||||||
ld [CriticalHit], a
|
ld [CriticalHit], a
|
||||||
ld [BattleMonSpecies], a
|
ld [BattleMonSpecies], a
|
||||||
ld [wc664], a
|
ld [wBattleParticipantsNotFainted], a
|
||||||
ld [CurBattleMon], a
|
ld [CurBattleMon], a
|
||||||
ld [wd232], a
|
ld [wd232], a
|
||||||
ld [TimeOfDayPal], a
|
ld [TimeOfDayPal], a
|
||||||
@ -34427,7 +34427,7 @@ Function44781: ; 44781
|
|||||||
_KrisMailBoxMenu: ; 0x447a0
|
_KrisMailBoxMenu: ; 0x447a0
|
||||||
call InitMail
|
call InitMail
|
||||||
jr z, .nomail
|
jr z, .nomail
|
||||||
call LoadMenuDataHeader_0x1d75
|
call LoadPartyMenuDataHeader
|
||||||
call Function44806
|
call Function44806
|
||||||
jp WriteBackup
|
jp WriteBackup
|
||||||
|
|
||||||
@ -38301,7 +38301,7 @@ Function4a098: ; 4a098 (12:6098)
|
|||||||
call Function1ff8
|
call Function1ff8
|
||||||
call Function1bee
|
call Function1bee
|
||||||
call WaitBGMap
|
call WaitBGMap
|
||||||
call LoadMenuDataHeader_0x1d75
|
call LoadPartyMenuDataHeader
|
||||||
callba Function89de0
|
callba Function89de0
|
||||||
call Call_ExitMenu
|
call Call_ExitMenu
|
||||||
call Function49351
|
call Function49351
|
||||||
@ -38520,7 +38520,7 @@ Function4a28a: ; 4a28a (12:628a)
|
|||||||
call Function4a6d8
|
call Function4a6d8
|
||||||
call Function1bee
|
call Function1bee
|
||||||
call WaitBGMap
|
call WaitBGMap
|
||||||
call LoadMenuDataHeader_0x1d75
|
call LoadPartyMenuDataHeader
|
||||||
ld a, $5
|
ld a, $5
|
||||||
call GetSRAMBank
|
call GetSRAMBank
|
||||||
ld a, [$aa4b]
|
ld a, [$aa4b]
|
||||||
@ -56925,7 +56925,7 @@ Special_SetDayOfWeek: ; 90913
|
|||||||
hlcoord 0, 12
|
hlcoord 0, 12
|
||||||
lb bc, 4, 18
|
lb bc, 4, 18
|
||||||
call TextBox
|
call TextBox
|
||||||
call LoadMenuDataHeader_0x1d75
|
call LoadPartyMenuDataHeader
|
||||||
ld hl, UnknownText_0x90a3f
|
ld hl, UnknownText_0x90a3f
|
||||||
call PrintText
|
call PrintText
|
||||||
hlcoord 9, 3
|
hlcoord 9, 3
|
||||||
@ -67846,7 +67846,7 @@ BillsPCDepositFuncDeposit: ; e24a9 (38:64a9)
|
|||||||
ret
|
ret
|
||||||
|
|
||||||
BillsPCDepositFuncStats: ; e24c8 (38:64c8)
|
BillsPCDepositFuncStats: ; e24c8 (38:64c8)
|
||||||
call LoadMenuDataHeader_0x1d75
|
call LoadPartyMenuDataHeader
|
||||||
call Functione2f7e
|
call Functione2f7e
|
||||||
call ExitMenu
|
call ExitMenu
|
||||||
call PCMonInfo
|
call PCMonInfo
|
||||||
@ -67865,7 +67865,7 @@ BillsPCDepositFuncRelease: ; e24e0 (38:64e0)
|
|||||||
push af
|
push af
|
||||||
ld de, PCString_ReleasePKMN
|
ld de, PCString_ReleasePKMN
|
||||||
call Functione2a6e
|
call Functione2a6e
|
||||||
call LoadMenuDataHeader_0x1d75
|
call LoadPartyMenuDataHeader
|
||||||
lb bc, 14, 11
|
lb bc, 14, 11
|
||||||
call PlaceYesNoBox
|
call PlaceYesNoBox
|
||||||
ld a, [MenuSelection2]
|
ld a, [MenuSelection2]
|
||||||
@ -68111,7 +68111,7 @@ endr
|
|||||||
ret
|
ret
|
||||||
|
|
||||||
.stats: ; e26c0 (38:66c0)
|
.stats: ; e26c0 (38:66c0)
|
||||||
call LoadMenuDataHeader_0x1d75
|
call LoadPartyMenuDataHeader
|
||||||
call Functione2f7e
|
call Functione2f7e
|
||||||
call ExitMenu
|
call ExitMenu
|
||||||
call PCMonInfo
|
call PCMonInfo
|
||||||
@ -68128,7 +68128,7 @@ endr
|
|||||||
jr c, .FailedRelease
|
jr c, .FailedRelease
|
||||||
ld de, PCString_ReleasePKMN
|
ld de, PCString_ReleasePKMN
|
||||||
call Functione2a6e
|
call Functione2a6e
|
||||||
call LoadMenuDataHeader_0x1d75
|
call LoadPartyMenuDataHeader
|
||||||
lb bc, 14, 11
|
lb bc, 14, 11
|
||||||
call PlaceYesNoBox
|
call PlaceYesNoBox
|
||||||
ld a, [MenuSelection2]
|
ld a, [MenuSelection2]
|
||||||
@ -68371,7 +68371,7 @@ Functione2887: ; e2887
|
|||||||
; e28a5
|
; e28a5
|
||||||
|
|
||||||
Functione28a5: ; e28a5
|
Functione28a5: ; e28a5
|
||||||
call LoadMenuDataHeader_0x1d75
|
call LoadPartyMenuDataHeader
|
||||||
call Functione2f7e
|
call Functione2f7e
|
||||||
call ExitMenu
|
call ExitMenu
|
||||||
call PCMonInfo
|
call PCMonInfo
|
||||||
@ -70009,7 +70009,7 @@ PCString_NoReleasingEGGS: db "No releasing EGGS!@"
|
|||||||
; e35aa
|
; e35aa
|
||||||
|
|
||||||
Functione35aa: ; e35aa (38:75aa)
|
Functione35aa: ; e35aa (38:75aa)
|
||||||
call LoadMenuDataHeader_0x1d75
|
call LoadPartyMenuDataHeader
|
||||||
call Functione35e2
|
call Functione35e2
|
||||||
.loop
|
.loop
|
||||||
xor a
|
xor a
|
||||||
@ -74686,7 +74686,7 @@ Functionfcc63: ; fcc63
|
|||||||
jr c, .asm_fcce6
|
jr c, .asm_fcce6
|
||||||
ld a, 2
|
ld a, 2
|
||||||
.asm_fcce6
|
.asm_fcce6
|
||||||
ld [wc733], a
|
ld [wEnemyCharging], a
|
||||||
|
|
||||||
ld hl, PartyMon1Level
|
ld hl, PartyMon1Level
|
||||||
ld bc, PARTYMON_STRUCT_LENGTH
|
ld bc, PARTYMON_STRUCT_LENGTH
|
||||||
@ -74750,7 +74750,7 @@ Functionfcc63: ; fcc63
|
|||||||
|
|
||||||
ld e, TRADE_OT_ID
|
ld e, TRADE_OT_ID
|
||||||
call GetTradeAttribute
|
call GetTradeAttribute
|
||||||
ld de, wc732
|
ld de, wPlayerCharging
|
||||||
call Functionfce15
|
call Functionfce15
|
||||||
|
|
||||||
ld hl, PartyMon1ID
|
ld hl, PartyMon1ID
|
||||||
|
@ -211,94 +211,93 @@ ReadBTTrainerParty: ; 1702b7
|
|||||||
ret
|
ret
|
||||||
; 170394
|
; 170394
|
||||||
|
|
||||||
Function170394: ; 170394
|
ValidateBTParty: ; 170394
|
||||||
ld hl, $c608 + 11
|
; Check for and fix errors in party data
|
||||||
ld d, $3
|
ld hl, wBT_OTTempPkmn1Species
|
||||||
.asm_170399
|
ld d, BATTLETOWER_NROFPKMNS
|
||||||
|
.pkmn_loop
|
||||||
push de
|
push de
|
||||||
push hl
|
push hl
|
||||||
ld b, h
|
ld b, h
|
||||||
ld c, l
|
ld c, l
|
||||||
ld a, [hl]
|
ld a, [hl]
|
||||||
and a
|
and a
|
||||||
jr z, .asm_1703b1
|
idx = $ff
|
||||||
cp $ff
|
rept ($ff +- NUM_POKEMON)
|
||||||
jr z, .asm_1703b1
|
jr z, .invalid
|
||||||
cp $fe
|
cp idx
|
||||||
jr z, .asm_1703b1
|
idx = idx +- 1
|
||||||
cp $fd
|
endr
|
||||||
jr z, .asm_1703b1
|
jr nz, .valid
|
||||||
cp $fc
|
|
||||||
jr nz, .asm_1703b4
|
|
||||||
|
|
||||||
.asm_1703b1
|
.invalid
|
||||||
ld a, $eb
|
ld a, SMEARGLE
|
||||||
ld [hl], a
|
ld [hl], a
|
||||||
|
|
||||||
.asm_1703b4
|
.valid
|
||||||
ld [CurSpecies], a
|
ld [CurSpecies], a
|
||||||
call GetBaseData
|
call GetBaseData
|
||||||
ld a, $5
|
ld a, $5
|
||||||
call GetSRAMBank
|
call GetSRAMBank
|
||||||
ld a, [$b2fb]
|
ld a, [$b2fb] ; s5_b2fb ; max level?
|
||||||
call CloseSRAM
|
call CloseSRAM
|
||||||
ld e, a
|
ld e, a
|
||||||
ld hl, $001f
|
ld hl, MON_LEVEL
|
||||||
add hl, bc
|
add hl, bc
|
||||||
ld a, [hl]
|
ld a, [hl]
|
||||||
cp $2
|
cp MIN_LEVEL
|
||||||
ld a, $2
|
ld a, MIN_LEVEL
|
||||||
jr c, .asm_1703d6
|
jr c, .load
|
||||||
ld a, [hl]
|
ld a, [hl]
|
||||||
cp e
|
cp e
|
||||||
jr c, .asm_1703d7
|
jr c, .dont_load
|
||||||
ld a, e
|
ld a, e
|
||||||
|
|
||||||
.asm_1703d6
|
.load
|
||||||
ld [hl], a
|
ld [hl], a
|
||||||
|
|
||||||
.asm_1703d7
|
.dont_load
|
||||||
ld [CurPartyLevel], a
|
ld [CurPartyLevel], a
|
||||||
ld hl, $0002
|
ld hl, MON_MOVES
|
||||||
add hl, bc
|
add hl, bc
|
||||||
ld d, $3
|
ld d, NUM_MOVES - 1
|
||||||
ld a, [hli]
|
ld a, [hli]
|
||||||
and a
|
and a
|
||||||
jr z, .asm_1703ea
|
jr z, .not_move
|
||||||
cp $fc
|
cp NUM_ATTACKS + 1
|
||||||
jr nc, .asm_1703ea
|
jr nc, .not_move
|
||||||
jr .asm_1703f4
|
jr .valid_move
|
||||||
|
|
||||||
.asm_1703ea
|
.not_move
|
||||||
dec hl
|
dec hl
|
||||||
ld a, $1
|
ld a, POUND
|
||||||
ld [hli], a
|
ld [hli], a
|
||||||
xor a
|
xor a
|
||||||
rept 2
|
rept 2
|
||||||
ld [hli], a
|
ld [hli], a
|
||||||
endr
|
endr
|
||||||
ld [hl], a
|
ld [hl], a
|
||||||
jr .asm_1703ff
|
jr .done_moves
|
||||||
|
|
||||||
.asm_1703f4
|
.valid_move
|
||||||
ld a, [hl]
|
ld a, [hl]
|
||||||
cp $fc
|
cp NUM_ATTACKS + 1
|
||||||
jr c, .asm_1703fb
|
jr c, .next
|
||||||
ld [hl], $0
|
ld [hl], $0
|
||||||
|
|
||||||
.asm_1703fb
|
.next
|
||||||
inc hl
|
inc hl
|
||||||
dec d
|
dec d
|
||||||
jr nz, .asm_1703f4
|
jr nz, .valid_move
|
||||||
|
|
||||||
.asm_1703ff
|
.done_moves
|
||||||
ld hl, $0024
|
ld hl, MON_MAXHP
|
||||||
add hl, bc
|
add hl, bc
|
||||||
ld d, h
|
ld d, h
|
||||||
ld e, l
|
ld e, l
|
||||||
push hl
|
push hl
|
||||||
push de
|
push de
|
||||||
ld hl, $000a
|
ld hl, MON_EXP + 2
|
||||||
add hl, bc
|
add hl, bc
|
||||||
ld b, $1
|
ld b, $1
|
||||||
predef CalcPkmnStats
|
predef CalcPkmnStats
|
||||||
@ -317,7 +316,7 @@ endr
|
|||||||
add hl, bc
|
add hl, bc
|
||||||
pop de
|
pop de
|
||||||
dec d
|
dec d
|
||||||
jp nz, .asm_170399
|
jp nz, .pkmn_loop
|
||||||
ret
|
ret
|
||||||
; 170426
|
; 170426
|
||||||
|
|
||||||
@ -326,20 +325,20 @@ BT_ChrisName: ; 170426
|
|||||||
; 17042c
|
; 17042c
|
||||||
|
|
||||||
Function17042c: ; 17042c
|
Function17042c: ; 17042c
|
||||||
ld hl, OTPartyMon2ID
|
ld hl, BT_TrainerTextIndex + $be
|
||||||
ld a, $7
|
ld a, 7
|
||||||
.asm_170431
|
.loop
|
||||||
push af
|
push af
|
||||||
push hl
|
push hl
|
||||||
ld c, $12
|
ld c, 18
|
||||||
.asm_170435
|
.loop2
|
||||||
ld a, [hli]
|
ld a, [hli]
|
||||||
ld b, a
|
ld b, a
|
||||||
ld a, [hli]
|
ld a, [hli]
|
||||||
and a
|
and a
|
||||||
jr z, .asm_170451
|
jr z, .skip
|
||||||
cp $f
|
cp $f
|
||||||
jr nc, .asm_17045b
|
jr nc, .exit_inner_loop
|
||||||
push hl
|
push hl
|
||||||
ld hl, Unknown_170470
|
ld hl, Unknown_170470
|
||||||
dec a
|
dec a
|
||||||
@ -349,34 +348,34 @@ Function17042c: ; 17042c
|
|||||||
ld a, [hl]
|
ld a, [hl]
|
||||||
pop hl
|
pop hl
|
||||||
cp b
|
cp b
|
||||||
jr c, .asm_17045b
|
jr c, .exit_inner_loop
|
||||||
jr z, .asm_17045b
|
jr z, .exit_inner_loop
|
||||||
jr .asm_170456
|
jr .asm_170456
|
||||||
|
|
||||||
.asm_170451
|
.skip
|
||||||
ld a, b
|
ld a, b
|
||||||
cp $fc
|
cp $fc
|
||||||
jr nc, .asm_17045b
|
jr nc, .exit_inner_loop
|
||||||
|
|
||||||
.asm_170456
|
.asm_170456
|
||||||
dec c
|
dec c
|
||||||
jr nz, .asm_170435
|
jr nz, .loop2
|
||||||
jr .asm_170466
|
jr .dont_copy
|
||||||
|
|
||||||
.asm_17045b
|
.exit_inner_loop
|
||||||
pop de
|
pop de
|
||||||
push de
|
push de
|
||||||
ld hl, Unknown_17047e
|
ld hl, Unknown_17047e
|
||||||
ld bc, BATTLETOWER_TRAINERDATALENGTH
|
ld bc, BATTLETOWER_TRAINERDATALENGTH
|
||||||
call CopyBytes
|
call CopyBytes
|
||||||
|
|
||||||
.asm_170466
|
.dont_copy
|
||||||
pop hl
|
pop hl
|
||||||
ld de, $00e0
|
ld de, $00e0
|
||||||
add hl, de
|
add hl, de
|
||||||
pop af
|
pop af
|
||||||
dec a
|
dec a
|
||||||
jr nz, .asm_170431
|
jr nz, .loop
|
||||||
ret
|
ret
|
||||||
; 170470
|
; 170470
|
||||||
|
|
||||||
|
@ -430,7 +430,7 @@ Function17a91e: ; 17a91e (5e:691e)
|
|||||||
ret
|
ret
|
||||||
|
|
||||||
.asm_17a92c
|
.asm_17a92c
|
||||||
call LoadMenuDataHeader_0x1d75
|
call LoadPartyMenuDataHeader
|
||||||
call Function17a99e
|
call Function17a99e
|
||||||
ld hl, $d088
|
ld hl, $d088
|
||||||
set 7, [hl]
|
set 7, [hl]
|
||||||
|
@ -2927,7 +2927,7 @@ UnknownText_0x8a23c: ; 0x8a23c
|
|||||||
; 0x8a241
|
; 0x8a241
|
||||||
|
|
||||||
Function8a241: ; 8a241 (22:6241)
|
Function8a241: ; 8a241 (22:6241)
|
||||||
call LoadMenuDataHeader_0x1d75
|
call LoadPartyMenuDataHeader
|
||||||
call Function891fe
|
call Function891fe
|
||||||
call Function8a262
|
call Function8a262
|
||||||
jr nc, .asm_8a254
|
jr nc, .asm_8a254
|
||||||
@ -3455,7 +3455,7 @@ Palette_8a624: ; 8a624
|
|||||||
; 8a62c
|
; 8a62c
|
||||||
|
|
||||||
Function8a62c: ; 8a62c (22:662c)
|
Function8a62c: ; 8a62c (22:662c)
|
||||||
call LoadMenuDataHeader_0x1d75
|
call LoadPartyMenuDataHeader
|
||||||
call Function891fe
|
call Function891fe
|
||||||
xor a
|
xor a
|
||||||
call Function8b94a
|
call Function8b94a
|
||||||
@ -3885,7 +3885,7 @@ Function8a999: ; 8a999 (22:6999)
|
|||||||
jr c, .asm_8a9bb
|
jr c, .asm_8a9bb
|
||||||
push bc
|
push bc
|
||||||
push de
|
push de
|
||||||
call LoadMenuDataHeader_0x1d75
|
call LoadPartyMenuDataHeader
|
||||||
pop de
|
pop de
|
||||||
dec e
|
dec e
|
||||||
ld a, e
|
ld a, e
|
||||||
@ -4141,7 +4141,7 @@ Function8ab77: ; 8ab77 (22:6b77)
|
|||||||
|
|
||||||
Function8ab93: ; 8ab93 (22:6b93)
|
Function8ab93: ; 8ab93 (22:6b93)
|
||||||
call WhiteBGMap
|
call WhiteBGMap
|
||||||
call LoadMenuDataHeader_0x1d75
|
call LoadPartyMenuDataHeader
|
||||||
callba Function105688
|
callba Function105688
|
||||||
call ClearSprites
|
call ClearSprites
|
||||||
call Function891fe
|
call Function891fe
|
||||||
|
@ -242,7 +242,7 @@ Function10016f: ; 10016f
|
|||||||
jr z, .asm_1001af
|
jr z, .asm_1001af
|
||||||
cp $f8
|
cp $f8
|
||||||
ret z
|
ret z
|
||||||
ret
|
ret ; ????????????????????????????
|
||||||
|
|
||||||
.asm_1001af
|
.asm_1001af
|
||||||
ld a, $d7
|
ld a, $d7
|
||||||
@ -4483,7 +4483,7 @@ Unknown_101d8d: ; 101d8d
|
|||||||
|
|
||||||
Function101d95: ; 101d95
|
Function101d95: ; 101d95
|
||||||
call Function101ee2
|
call Function101ee2
|
||||||
call LoadMenuDataHeader_0x1d75
|
call LoadPartyMenuDataHeader
|
||||||
ld e, $e
|
ld e, $e
|
||||||
call Function101ee4
|
call Function101ee4
|
||||||
ld hl, wcd29
|
ld hl, wcd29
|
||||||
@ -6256,7 +6256,7 @@ Jumptable_1029cb: ; 1029cb
|
|||||||
; 1029cf
|
; 1029cf
|
||||||
|
|
||||||
Function1029cf: ; 1029cf
|
Function1029cf: ; 1029cf
|
||||||
call LoadMenuDataHeader_0x1d75
|
call LoadPartyMenuDataHeader
|
||||||
hlcoord 10, 7
|
hlcoord 10, 7
|
||||||
ld b, $3
|
ld b, $3
|
||||||
ld c, $8
|
ld c, $8
|
||||||
@ -6384,7 +6384,7 @@ Function102a3b: ; 102a3b
|
|||||||
ld a, [hli]
|
ld a, [hli]
|
||||||
ld [wc731], a
|
ld [wc731], a
|
||||||
ld a, [hl]
|
ld a, [hl]
|
||||||
ld [wc732], a
|
ld [wPlayerCharging], a
|
||||||
ld a, [wcd4d]
|
ld a, [wcd4d]
|
||||||
dec a
|
dec a
|
||||||
ld hl, OTPartyMon1DVs
|
ld hl, OTPartyMon1DVs
|
||||||
@ -6401,7 +6401,7 @@ Function102a3b: ; 102a3b
|
|||||||
ld c, l
|
ld c, l
|
||||||
callba GetCaughtGender
|
callba GetCaughtGender
|
||||||
ld a, c
|
ld a, c
|
||||||
ld [wc733], a
|
ld [wEnemyCharging], a
|
||||||
ret
|
ret
|
||||||
; 102b12
|
; 102b12
|
||||||
|
|
||||||
|
@ -1259,7 +1259,7 @@ Function1089d2:
|
|||||||
call Function108a92
|
call Function108a92
|
||||||
ld de, wc703
|
ld de, wc703
|
||||||
call Function108a9c
|
call Function108a9c
|
||||||
ld a, [wc733]
|
ld a, [wEnemyCharging]
|
||||||
ld de, wc724
|
ld de, wc724
|
||||||
call Function108aa3
|
call Function108aa3
|
||||||
ld de, wc731
|
ld de, wc731
|
||||||
|
@ -7658,7 +7658,7 @@ Function11b7e5: ; 11b7e5
|
|||||||
ld a, [$c608 + 11]
|
ld a, [$c608 + 11]
|
||||||
ld [wc731], a
|
ld [wc731], a
|
||||||
ld a, [$c608 + 12]
|
ld a, [$c608 + 12]
|
||||||
ld [wc732], a
|
ld [wPlayerCharging], a
|
||||||
ld hl, $c608 + 26
|
ld hl, $c608 + 26
|
||||||
ld a, [hli]
|
ld a, [hli]
|
||||||
ld [wc72f], a
|
ld [wc72f], a
|
||||||
@ -7667,7 +7667,7 @@ Function11b7e5: ; 11b7e5
|
|||||||
ld bc, $c608 + 5
|
ld bc, $c608 + 5
|
||||||
callba GetCaughtGender
|
callba GetCaughtGender
|
||||||
ld a, c
|
ld a, c
|
||||||
ld [wc733], a
|
ld [wEnemyCharging], a
|
||||||
call SpeechTextBox
|
call SpeechTextBox
|
||||||
call FadeToMenu
|
call FadeToMenu
|
||||||
callba Function108016
|
callba Function108016
|
||||||
|
@ -884,7 +884,7 @@ Function16d42e: ; 16d42e
|
|||||||
; 16d43b
|
; 16d43b
|
||||||
|
|
||||||
Function16d43b: ; 16d43b
|
Function16d43b: ; 16d43b
|
||||||
call LoadMenuDataHeader_0x1d75
|
call LoadPartyMenuDataHeader
|
||||||
call WhiteBGMap
|
call WhiteBGMap
|
||||||
call ClearTileMap
|
call ClearTileMap
|
||||||
call ClearSprites
|
call ClearSprites
|
||||||
@ -1034,7 +1034,7 @@ Function16d6ca: ; 16d6ca
|
|||||||
; 16d6ce
|
; 16d6ce
|
||||||
|
|
||||||
Function16d6ce: ; 16d6ce
|
Function16d6ce: ; 16d6ce
|
||||||
call LoadMenuDataHeader_0x1d75
|
call LoadPartyMenuDataHeader
|
||||||
call Function16d6e1
|
call Function16d6e1
|
||||||
callba Function87d
|
callba Function87d
|
||||||
call Call_ExitMenu
|
call Call_ExitMenu
|
||||||
|
@ -62,11 +62,11 @@ Function17005a: ; 17005a
|
|||||||
ld a, [hli]
|
ld a, [hli]
|
||||||
ld [wc731], a
|
ld [wc731], a
|
||||||
ld a, [hl]
|
ld a, [hl]
|
||||||
ld [wc732], a
|
ld [wPlayerCharging], a
|
||||||
ld bc, $a82c
|
ld bc, $a82c
|
||||||
callba GetCaughtGender
|
callba GetCaughtGender
|
||||||
ld a, c
|
ld a, c
|
||||||
ld [wc733], a
|
ld [wEnemyCharging], a
|
||||||
ld a, [wcd81]
|
ld a, [wcd81]
|
||||||
ld [wc74e], a
|
ld [wc74e], a
|
||||||
call CloseSRAM
|
call CloseSRAM
|
||||||
|
@ -285,7 +285,7 @@ Function17d0f3: ; 17d0f3
|
|||||||
ld a, [$c608 + 11]
|
ld a, [$c608 + 11]
|
||||||
ld [wc731], a
|
ld [wc731], a
|
||||||
ld a, [$c608 + 12]
|
ld a, [$c608 + 12]
|
||||||
ld [wc732], a
|
ld [wPlayerCharging], a
|
||||||
ld hl, $c608 + 26
|
ld hl, $c608 + 26
|
||||||
ld a, [hli]
|
ld a, [hli]
|
||||||
ld [wc72f], a
|
ld [wc72f], a
|
||||||
@ -294,7 +294,7 @@ Function17d0f3: ; 17d0f3
|
|||||||
ld bc, $c608 + 5
|
ld bc, $c608 + 5
|
||||||
callba GetCaughtGender
|
callba GetCaughtGender
|
||||||
ld a, c
|
ld a, c
|
||||||
ld [wc733], a
|
ld [wEnemyCharging], a
|
||||||
call SpeechTextBox
|
call SpeechTextBox
|
||||||
call FadeToMenu
|
call FadeToMenu
|
||||||
callba Function10804d
|
callba Function10804d
|
||||||
|
13
wram.asm
13
wram.asm
@ -488,7 +488,14 @@ wc663::
|
|||||||
CurOTMon:: ; c663
|
CurOTMon:: ; c663
|
||||||
ds 1
|
ds 1
|
||||||
|
|
||||||
wc664:: ds 1
|
wBattleParticipantsNotFainted::
|
||||||
|
; Bit array. Bits 0 - 5 correspond to party members 1 - 6.
|
||||||
|
; Bit set if the mon appears in battle.
|
||||||
|
; Bit cleared if the mon faints.
|
||||||
|
; Backed up if the enemy switches.
|
||||||
|
; All bits cleared if the enemy faints.
|
||||||
|
ds 1
|
||||||
|
|
||||||
TypeModifier:: ; c665
|
TypeModifier:: ; c665
|
||||||
; >10: super-effective
|
; >10: super-effective
|
||||||
; 10: normal
|
; 10: normal
|
||||||
@ -848,8 +855,8 @@ wc72e:: ds 1
|
|||||||
wc72f:: ds 1
|
wc72f:: ds 1
|
||||||
wc730:: ds 1
|
wc730:: ds 1
|
||||||
wc731:: ds 1
|
wc731:: ds 1
|
||||||
wc732:: ds 1
|
wPlayerCharging:: ds 1
|
||||||
wc733:: ds 1
|
wEnemyCharging:: ds 1
|
||||||
wc734::
|
wc734::
|
||||||
BattleEnded:: ; c734
|
BattleEnded:: ; c734
|
||||||
ds 1
|
ds 1
|
||||||
|
Loading…
Reference in New Issue
Block a user