From 66f40bf3c144def73fb5410438b5dbb91284173a Mon Sep 17 00:00:00 2001 From: padz Date: Fri, 23 Nov 2012 22:11:55 -0500 Subject: [PATCH] update constants used in scripts and battle engine --- constants.asm | 105 +++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 104 insertions(+), 1 deletion(-) diff --git a/constants.asm b/constants.asm index 1f9a9444c..524841fae 100644 --- a/constants.asm +++ b/constants.asm @@ -1343,6 +1343,7 @@ MAP_MR_POKEMONS_HOUSE EQU $0a MAP_ROUTE_31_VIOLET_GATE EQU $0b ; item constants +NO_ITEM EQU $00 MASTER_BALL EQU $01 ULTRA_BALL EQU $02 BRIGHTPOWDER EQU $03 @@ -3345,4 +3346,106 @@ callchannel: MACRO ENDM endchannel: MACRO db $ff - ENDM \ No newline at end of file + ENDM + + + +; specials +NUM_SPECIALS EQU $a8 + +SPECIAL_UPDATESPRITETILES EQU $0038 + +SPECIAL_WAITSFX EQU $003b +SPECIAL_BIKESURFMUSIC EQU $003c + +SPECIAL_LOADFACESTEP EQU $003f + +SPECIAL_SNORLAXAWAKE EQU $0060 + +SPECIAL_GAMEBOYCHECK EQU $0066 +SPECIAL_TRAINERHOUSE EQU $0067 + +SPECIAL_RUSTLETREE EQU $006a + +SPECIAL_ODDEGG EQU $007d + +SPECIAL_MOVETUTOR EQU $0083 +SPECIAL_OMANYTECHAMBER EQU $0084 + +SPECIAL_RUINCHAMBERWALL EQU $0087 + +SPECIAL_HOOHCHAMBER EQU $008d + +SPECIAL_CELEBI EQU $008f + +SPECIAL_AFTERCELEBI EQU $0090 +SPECIAL_POKESEER EQU $0091 + +SPECIAL_DRATINI EQU $0094 + +SPECIAL_BEASTSCHECK EQU $0096 +SPECIAL_MONCHECK EQU $0097 + +; battle scripts +BATTLE_FILLPP EQU $05 + +BATTLE_FILLSTATS EQU $0C + +BATTLE_FILLMOVES EQU $1B + +BATTLE_GETUNOWNLETTER EQU $2D + + +; vars +NUM_VARS EQU $1b +VAR_MOVEMENT EQU $08 + +; player states +PLAYER_NORMAL EQU $00 +PLAYER_BIKE EQU $01 +PLAYER_SLIP EQU $02 +PLAYER_SURF EQU $04 +PLAYER_SURF_PIKA EQU $08 + + +; battle +MAX_LEVEL EQU 100 +NUM_MOVES EQU 4 + +; move struct +MOVE_LENGTH EQU 7 +MOVE_ANIM EQU 0 +MOVE_EFFECT EQU 1 +MOVE_POWER EQU 2 +MOVE_TYPE EQU 3 +MOVE_ACC EQU 4 +MOVE_PP EQU 5 +MOVE_CHANCE EQU 6 + +; stat constants +NUM_STATS EQU 6 +STAT_HP EQU 1 +STAT_ATK EQU 2 +STAT_DEF EQU 3 +STAT_SPD EQU 4 +STAT_SATK EQU 5 +STAT_SDEF EQU 6 +STAT_MIN_NORMAL EQU 5 +STAT_MIN_HP EQU 10 +; shiny dvs +ATKDEFDV_SHINY EQU $EA +SPDSPCDV_SHINY EQU $AA + +; battle classes +WILD_BATTLE EQU $00 +TRAINER_BATTLE EQU $02 + +; battle types +BATTLETYPE_NORMAL EQU $00 +BATTLETYPE_TUTORIAL EQU $03 +BATTLETYPE_FISH EQU $04 +BATTLETYPE_ROAMING EQU $05 +BATTLETYPE_SHINY EQU $07 +BATTLETYPE_TREE EQU $08 +BATTLETYPE_FORCEITEM EQU $0a +BATTLETYPE_SUICUNE EQU $0c \ No newline at end of file