2017-12-15 18:21:47 +00:00
|
|
|
; BattleTowerAction arguments (see mobile/battle_tower_5c.asm)
|
2015-11-03 20:05:19 +00:00
|
|
|
const_def
|
2017-11-19 10:52:42 +00:00
|
|
|
const BATTLETOWERACTION_CHECK_EXPLANATION_READ
|
|
|
|
const BATTLETOWERACTION_SET_EXPLANATION_READ
|
|
|
|
const BATTLETOWERACTION_GET_CHALLENGE_STATE
|
2015-12-08 21:06:13 +00:00
|
|
|
const BATTLETOWERACTION_SAVE_AND_QUIT
|
2015-11-27 02:05:32 +00: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 10:52:42 +00:00
|
|
|
const BATTLETOWERACTION_EGGTICKET
|
2015-11-27 02:05:32 +00:00
|
|
|
const BATTLETOWERACTION_0F ; check w3_d090
|
2015-12-27 02:59:03 +00:00
|
|
|
const BATTLETOWERACTION_10 ; dw based on 5:a800
|
2015-11-27 02:05:32 +00:00
|
|
|
const BATTLETOWERACTION_11 ; store 0 in 5:aa8d
|
|
|
|
const BATTLETOWERACTION_12 ; store 1 in 5:aa8d
|
|
|
|
const BATTLETOWERACTION_13 ; check 5:aa8d
|
2017-12-16 02:22:26 +00:00
|
|
|
const BATTLETOWERACTION_14 ; if save file is yours: bit 0, [sBattleTowerSaveFileFlags]
|
|
|
|
const BATTLETOWERACTION_15 ; set 0, [sBattleTowerSaveFileFlags]
|
2015-11-27 02:05:32 +00:00
|
|
|
const BATTLETOWERACTION_16 ; update time in SRAM bank 5
|
|
|
|
const BATTLETOWERACTION_17 ; check time in SRAM bank 5
|
2017-11-19 10:52:42 +00:00
|
|
|
const BATTLETOWERACTION_LEVEL_CHECK
|
|
|
|
const BATTLETOWERACTION_UBERS_CHECK
|
2015-11-27 02:05:32 +00:00
|
|
|
const BATTLETOWERACTION_RESETDATA ; clear data
|
2015-12-08 21:06:13 +00:00
|
|
|
const BATTLETOWERACTION_GIVEREWARD ; give reward
|
2015-11-27 02:05:32 +00:00
|
|
|
const BATTLETOWERACTION_1C ; set won challenge
|
|
|
|
const BATTLETOWERACTION_1D ; set received reward
|
2015-12-08 21:06:13 +00:00
|
|
|
const BATTLETOWERACTION_CHOOSEREWARD ; save options
|
|
|
|
const BATTLETOWERACTION_SAVEOPTIONS
|
2015-11-27 02:05:32 +00:00
|
|
|
|
2017-12-09 05:50:59 +00:00
|
|
|
; sBattleTowerChallengeState
|
|
|
|
const_def
|
|
|
|
const BATTLETOWER_NO_CHALLENGE
|
|
|
|
const BATTLETOWER_SAVED_AND_LEFT
|
|
|
|
const BATTLETOWER_CHALLENGE_IN_PROGESS
|
|
|
|
const BATTLETOWER_WON_CHALLENGE
|
|
|
|
const BATTLETOWER_RECEIVED_REWARD
|
|
|
|
|
|
|
|
BATTLETOWER_NROFPKMNS EQU 3
|
|
|
|
BATTLETOWER_TRAINERDATALENGTH EQU $24
|
|
|
|
BATTLETOWER_NROFTRAINERS EQU 7
|
|
|
|
BATTLETOWER_NRMONSPERLEVELBRACKET EQU BATTLETOWER_NROFPKMNS * BATTLETOWER_NROFTRAINERS
|
|
|
|
BATTLE_TOWER_STRUCT_LENGTH EQU $e0 ; NAME_LENGTH + 3 * (PARTYMON_STRUCT_LENGTH + PKMN_NAME_LENGTH) + BATTLETOWER_TRAINERDATALENGTH
|
|
|
|
|
|
|
|
; return value from BattleTowerAction(BATTLETOWERACTION_CHECKMOBILEEVENT)
|
|
|
|
MOBILE_EVENT_OBJECT_GS_BALL EQU $b
|