diff options
Diffstat (limited to 'asm/macros/battle_tent.inc')
-rw-r--r-- | asm/macros/battle_tent.inc | 308 |
1 files changed, 156 insertions, 152 deletions
diff --git a/asm/macros/battle_tent.inc b/asm/macros/battle_tent.inc index c6f92ee15..663d1d344 100644 --- a/asm/macros/battle_tent.inc +++ b/asm/macros/battle_tent.inc @@ -1,163 +1,167 @@ -@ TODO: Add explanatory comments - @ Verdanturf Tent - @ - .macro verdanturftent_init - setvar VAR_0x8004, VERDANTURF_TENT_FUNC_INIT - special CallVerdanturfTentFunction - .endm - - @ - .macro verdanturftent_getprize - setvar VAR_0x8004, VERDANTURF_TENT_FUNC_GET_PRIZE - special CallVerdanturfTentFunction - .endm - - @ Unused. - .macro verdanturftent_setprize - setvar VAR_0x8004, VERDANTURF_TENT_FUNC_SET_PRIZE - special CallVerdanturfTentFunction - .endm - - @ Unused. - .macro verdanturftent_setopponentgfx - setvar VAR_0x8004, VERDANTURF_TENT_FUNC_SET_OPPONENT_GFX - special CallVerdanturfTentFunction - .endm - - @ Buffers the opponents intro speech to STR_VAR_4. Despite being a Verdanturf Tent function, it serves the same purpose for all 3 tents. - .macro battletent_getopponentintro - setvar VAR_0x8004, VERDANTURF_TENT_FUNC_GET_OPPONENT_INTRO - special CallVerdanturfTentFunction - .endm - - @ - .macro verdanturftent_save challengeStatus:req - setvar VAR_0x8004, VERDANTURF_TENT_FUNC_SAVE - setvar VAR_0x8005, \challengeStatus - special CallVerdanturfTentFunction - .endm - - @ - .macro verdanturftent_setrandomprize - setvar VAR_0x8004, VERDANTURF_TENT_FUNC_SET_RANDOM_PRIZE - special CallVerdanturfTentFunction - .endm - - @ - .macro verdanturftent_giveprize - setvar VAR_0x8004, VERDANTURF_TENT_FUNC_GIVE_PRIZE - special CallVerdanturfTentFunction - .endm + @ Initialize the Verdanturf Battle Tent challenge + .macro verdanturftent_init + setvar VAR_0x8004, VERDANTURF_TENT_FUNC_INIT + special CallVerdanturfTentFunction + .endm + + @ Get the current prize item id + .macro verdanturftent_getprize + setvar VAR_0x8004, VERDANTURF_TENT_FUNC_GET_PRIZE + special CallVerdanturfTentFunction + .endm + + @ Unused. Set the prize item to be given + .macro verdanturftent_setprize unusedArg:req, itemId:req + setvar VAR_0x8004, VERDANTURF_TENT_FUNC_SET_PRIZE + setvar VAR_0x8005, \unusedArg + setvar VAR_0x8006, \itemId + special CallVerdanturfTentFunction + .endm + + @ Unused. Set the opponent trainer and gfx. SetNextBattleTentOpponent is used through tower_setopponent instead + .macro verdanturftent_setopponentgfx + setvar VAR_0x8004, VERDANTURF_TENT_FUNC_SET_OPPONENT_GFX + special CallVerdanturfTentFunction + .endm + + @ Buffers the opponents intro speech to STR_VAR_4. Despite being a Verdanturf Tent function, it serves the same purpose for all 3 tents. + .macro battletent_getopponentintro + setvar VAR_0x8004, VERDANTURF_TENT_FUNC_GET_OPPONENT_INTRO + special CallVerdanturfTentFunction + .endm + + @ Save the game and set the challenge status + .macro verdanturftent_save challengeStatus:req + setvar VAR_0x8004, VERDANTURF_TENT_FUNC_SAVE + setvar VAR_0x8005, \challengeStatus + special CallVerdanturfTentFunction + .endm + + @ Set the prize item as randomly selected from a list. Randomness unnecessary, as the list is only 1 item + .macro verdanturftent_setrandomprize + setvar VAR_0x8004, VERDANTURF_TENT_FUNC_SET_RANDOM_PRIZE + special CallVerdanturfTentFunction + .endm + + @ Give the current prize item. FALSE if no room for prize + .macro verdanturftent_giveprize + setvar VAR_0x8004, VERDANTURF_TENT_FUNC_GIVE_PRIZE + special CallVerdanturfTentFunction + .endm @ Fallarbor Tent - @ - .macro fallarbortent_init - setvar VAR_0x8004, FALLARBOR_TENT_FUNC_INIT - special CallFallarborTentFunction - .endm - - @ - .macro fallarbortent_getprize - setvar VAR_0x8004, FALLARBOR_TENT_FUNC_GET_PRIZE - special CallFallarborTentFunction - .endm - - @ Unused. - .macro fallarbortent_setprize - setvar VAR_0x8004, FALLARBOR_TENT_FUNC_SET_PRIZE - special CallFallarborTentFunction - .endm - - @ - .macro fallarbortent_save challengeStatus:req - setvar VAR_0x8004, FALLARBOR_TENT_FUNC_SAVE - setvar VAR_0x8005, \challengeStatus - special CallFallarborTentFunction - .endm - - @ - .macro fallarbortent_setrandomprize - setvar VAR_0x8004, FALLARBOR_TENT_FUNC_SET_RANDOM_PRIZE - special CallFallarborTentFunction - .endm - - @ - .macro fallarbortent_giveprize - setvar VAR_0x8004, FALLARBOR_TENT_FUNC_GIVE_PRIZE - special CallFallarborTentFunction - .endm - - @ - .macro fallarbortent_getopponentname - setvar VAR_0x8004, FALLARBOR_TENT_FUNC_GET_OPPONENT_NAME - special CallFallarborTentFunction - .endm + @ Initialize the Fallarbor Battle Tent challenge + .macro fallarbortent_init + setvar VAR_0x8004, FALLARBOR_TENT_FUNC_INIT + special CallFallarborTentFunction + .endm + + @ Get the current prize item id + .macro fallarbortent_getprize + setvar VAR_0x8004, FALLARBOR_TENT_FUNC_GET_PRIZE + special CallFallarborTentFunction + .endm + + @ Unused. Set the prize item to be given + .macro fallarbortent_setprize unusedArg:req, itemId:req + setvar VAR_0x8004, FALLARBOR_TENT_FUNC_SET_PRIZE + setvar VAR_0x8005, \unusedArg + setvar VAR_0x8006, \itemId + special CallFallarborTentFunction + .endm + + @ Save the game and set the challenge status + .macro fallarbortent_save challengeStatus:req + setvar VAR_0x8004, FALLARBOR_TENT_FUNC_SAVE + setvar VAR_0x8005, \challengeStatus + special CallFallarborTentFunction + .endm + + @ Set the prize item as randomly selected from a list. Randomness unnecessary, as the list is only 1 item + .macro fallarbortent_setrandomprize + setvar VAR_0x8004, FALLARBOR_TENT_FUNC_SET_RANDOM_PRIZE + special CallFallarborTentFunction + .endm + + @ Give the current prize item. FALSE if no room for prize + .macro fallarbortent_giveprize + setvar VAR_0x8004, FALLARBOR_TENT_FUNC_GIVE_PRIZE + special CallFallarborTentFunction + .endm + + @ Buffer the opponent trainers name to STR_VAR_1 + .macro fallarbortent_getopponentname + setvar VAR_0x8004, FALLARBOR_TENT_FUNC_GET_OPPONENT_NAME + special CallFallarborTentFunction + .endm @ Slateport Tent - @ - .macro slateporttent_init - setvar VAR_0x8004, SLATEPORT_TENT_FUNC_INIT - special CallSlateportTentFunction - .endm - - @ - .macro slateporttent_getprize - setvar VAR_0x8004, SLATEPORT_TENT_FUNC_GET_PRIZE - special CallSlateportTentFunction - .endm - - @ Unused. - .macro slateporttent_setprize - setvar VAR_0x8004, SLATEPORT_TENT_FUNC_SET_PRIZE - special CallSlateportTentFunction - .endm - - @ - .macro slateporttent_save challengeStatus:req - setvar VAR_0x8004, SLATEPORT_TENT_FUNC_SAVE - setvar VAR_0x8005, \challengeStatus - special CallSlateportTentFunction - .endm - - @ - .macro slateporttent_setrandomprize - setvar VAR_0x8004, SLATEPORT_TENT_FUNC_SET_RANDOM_PRIZE - special CallSlateportTentFunction - .endm - - @ - .macro slateporttent_giveprize - setvar VAR_0x8004, SLATEPORT_TENT_FUNC_GIVE_PRIZE - special CallSlateportTentFunction - .endm - - @ - .macro slateporttent_rentmons - setvar VAR_0x8004, SLATEPORT_TENT_FUNC_SELECT_RENT_MONS - special CallSlateportTentFunction - .endm - - @ - .macro slateporttent_swapmons - setvar VAR_0x8004, SLATEPORT_TENT_FUNC_SWAP_RENT_MONS - special CallSlateportTentFunction - .endm - - @ - .macro slateporttent_generateopponentmons - setvar VAR_0x8004, SLATEPORT_TENT_FUNC_GENERATE_OPPONENT_MONS - special CallSlateportTentFunction - .endm - - @ - .macro slateporttent_generaterentalmons - setvar VAR_0x8004, SLATEPORT_TENT_FUNC_GENERATE_RENTAL_MONS - special CallSlateportTentFunction - .endm + @ Initialize the Slateport Battle Tent challenge + .macro slateporttent_init + setvar VAR_0x8004, SLATEPORT_TENT_FUNC_INIT + special CallSlateportTentFunction + .endm + + @ Get the current prize item id + .macro slateporttent_getprize + setvar VAR_0x8004, SLATEPORT_TENT_FUNC_GET_PRIZE + special CallSlateportTentFunction + .endm + + @ Unused. Set the prize item to be given + .macro slateporttent_setprize unusedArg:req, itemId:req + setvar VAR_0x8004, SLATEPORT_TENT_FUNC_SET_PRIZE + setvar VAR_0x8005, \unusedArg + setvar VAR_0x8006, \itemId + special CallSlateportTentFunction + .endm + + @ Save the game and set the challenge status + .macro slateporttent_save challengeStatus:req + setvar VAR_0x8004, SLATEPORT_TENT_FUNC_SAVE + setvar VAR_0x8005, \challengeStatus + special CallSlateportTentFunction + .endm + + @ Set the prize item as randomly selected from a list. Randomness unnecessary, as the list is only 1 item + .macro slateporttent_setrandomprize + setvar VAR_0x8004, SLATEPORT_TENT_FUNC_SET_RANDOM_PRIZE + special CallSlateportTentFunction + .endm + + @ Give the current prize item. FALSE if no room for prize + .macro slateporttent_giveprize + setvar VAR_0x8004, SLATEPORT_TENT_FUNC_GIVE_PRIZE + special CallSlateportTentFunction + .endm + + @ Slateport Tent's version of factory_rentmons + .macro slateporttent_rentmons + setvar VAR_0x8004, SLATEPORT_TENT_FUNC_SELECT_RENT_MONS + special CallSlateportTentFunction + .endm + + @ Slateport Tent's version of factory_swapmons + .macro slateporttent_swapmons + setvar VAR_0x8004, SLATEPORT_TENT_FUNC_SWAP_RENT_MONS + special CallSlateportTentFunction + .endm + + @ Slateport Tent's version of factory_generateopponentmons + .macro slateporttent_generateopponentmons + setvar VAR_0x8004, SLATEPORT_TENT_FUNC_GENERATE_OPPONENT_MONS + special CallSlateportTentFunction + .endm + + @ Slateport Tent's version of factory_generaterentalmons + .macro slateporttent_generaterentalmons + setvar VAR_0x8004, SLATEPORT_TENT_FUNC_GENERATE_RENTAL_MONS + special CallSlateportTentFunction + .endm |