ref: 66f40bf3c144def73fb5410438b5dbb91284173a
parent: e4cfbdc88661b296cf658c2d22b0638489d1d5c1
author: padz <[email protected]>
date: Fri Nov 23 17:11:55 EST 2012
update constants used in scripts and battle engine
--- a/constants.asm
+++ b/constants.asm
@@ -1343,6 +1343,7 @@
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 @@
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