2018-01-20 09:25:55 -08:00
|
|
|
BATTLETOWER_PARTY_LENGTH EQU 3
|
|
|
|
BATTLETOWER_STREAK_LENGTH EQU 7
|
2018-01-14 16:26:55 -08:00
|
|
|
|
2018-02-22 08:13:29 -08:00
|
|
|
BATTLETOWER_NUM_UNIQUE_MON EQU 21
|
2018-01-14 16:26:55 -08:00
|
|
|
BATTLETOWER_NUM_UNIQUE_TRAINERS EQU 70
|
|
|
|
|
2021-04-27 09:11:39 -07:00
|
|
|
BATTLETOWER_TRAINERDATALENGTH EQU 18 * 2 ; $24
|
|
|
|
BATTLE_TOWER_STRUCT_LENGTH EQU NAME_LENGTH + BATTLETOWER_PARTY_LENGTH * NICKNAMED_MON_STRUCT_LENGTH + BATTLETOWER_TRAINERDATALENGTH ; $e0
|
2018-01-14 16:26:55 -08:00
|
|
|
|
2019-03-10 12:31:59 -07:00
|
|
|
; BattleTowerAction setval arguments (see engine/events/battle_tower/battle_tower.asm)
|
2015-11-03 12:05:19 -08:00
|
|
|
const_def
|
2017-11-19 02:52:42 -08:00
|
|
|
const BATTLETOWERACTION_CHECK_EXPLANATION_READ
|
|
|
|
const BATTLETOWERACTION_SET_EXPLANATION_READ
|
|
|
|
const BATTLETOWERACTION_GET_CHALLENGE_STATE
|
2015-12-08 13:06:13 -08:00
|
|
|
const BATTLETOWERACTION_SAVE_AND_QUIT
|
2015-11-26 18:05:32 -08:00
|
|
|
const BATTLETOWERACTION_CHALLENGECANCELED
|
|
|
|
const BATTLETOWERACTION_05
|
|
|
|
const BATTLETOWERACTION_06 ; reset stuff in SRAM bank 5
|
|
|
|
const BATTLETOWERACTION_SAVELEVELGROUP
|
|
|
|
const BATTLETOWERACTION_LOADLEVELGROUP
|
|
|
|
const BATTLETOWERACTION_CHECKSAVEFILEISYOURS
|
|
|
|
const BATTLETOWERACTION_0A
|
|
|
|
const BATTLETOWERACTION_CHECKMOBILEEVENT
|
|
|
|
const BATTLETOWERACTION_0C ; more time stuff in SRAM bank 5
|
|
|
|
const BATTLETOWERACTION_0D ; more time stuff in SRAM bank 5
|
2017-11-19 02:52:42 -08:00
|
|
|
const BATTLETOWERACTION_EGGTICKET
|
2015-11-26 18:05:32 -08:00
|
|
|
const BATTLETOWERACTION_0F ; check w3_d090
|
2020-06-21 09:21:47 -07:00
|
|
|
const BATTLETOWERACTION_10 ; dw based on s5_a800
|
|
|
|
const BATTLETOWERACTION_11 ; store 0 in s5_aa8d
|
|
|
|
const BATTLETOWERACTION_12 ; store 1 in s5_aa8d
|
|
|
|
const BATTLETOWERACTION_13 ; check s5_aa8d
|
2017-12-15 18:22:26 -08:00
|
|
|
const BATTLETOWERACTION_14 ; if save file is yours: bit 0, [sBattleTowerSaveFileFlags]
|
|
|
|
const BATTLETOWERACTION_15 ; set 0, [sBattleTowerSaveFileFlags]
|
2015-11-26 18:05:32 -08:00
|
|
|
const BATTLETOWERACTION_16 ; update time in SRAM bank 5
|
|
|
|
const BATTLETOWERACTION_17 ; check time in SRAM bank 5
|
2017-11-19 02:52:42 -08:00
|
|
|
const BATTLETOWERACTION_LEVEL_CHECK
|
|
|
|
const BATTLETOWERACTION_UBERS_CHECK
|
2015-11-26 18:05:32 -08:00
|
|
|
const BATTLETOWERACTION_RESETDATA ; clear data
|
2015-12-08 13:06:13 -08:00
|
|
|
const BATTLETOWERACTION_GIVEREWARD ; give reward
|
2015-11-26 18:05:32 -08:00
|
|
|
const BATTLETOWERACTION_1C ; set won challenge
|
|
|
|
const BATTLETOWERACTION_1D ; set received reward
|
2015-12-08 13:06:13 -08:00
|
|
|
const BATTLETOWERACTION_CHOOSEREWARD ; save options
|
|
|
|
const BATTLETOWERACTION_SAVEOPTIONS
|
2015-11-26 18:05:32 -08:00
|
|
|
|
2018-01-14 16:26:55 -08:00
|
|
|
; BattleTowerAction return values
|
|
|
|
; - from BATTLETOWERACTION_CHECKMOBILEEVENT
|
|
|
|
MOBILE_EVENT_OBJECT_GS_BALL EQU $b
|
|
|
|
|
|
|
|
; BattleTowerText arguments (see engine/events/battle_tower/trainer_text.asm)
|
2018-01-31 08:38:45 -08:00
|
|
|
const_def 1
|
2018-01-14 16:26:55 -08:00
|
|
|
const BATTLETOWERTEXT_INTRO
|
|
|
|
const BATTLETOWERTEXT_WIN_TEXT
|
|
|
|
const BATTLETOWERTEXT_LOSS_TEXT
|
|
|
|
|
|
|
|
; sBattleTowerChallengeState values
|
2017-12-08 21:50:59 -08:00
|
|
|
const_def
|
|
|
|
const BATTLETOWER_NO_CHALLENGE
|
|
|
|
const BATTLETOWER_SAVED_AND_LEFT
|
2021-02-04 03:42:56 -08:00
|
|
|
const BATTLETOWER_CHALLENGE_IN_PROGRESS
|
2017-12-08 21:50:59 -08:00
|
|
|
const BATTLETOWER_WON_CHALLENGE
|
|
|
|
const BATTLETOWER_RECEIVED_REWARD
|