shithub: pokecrystal

Download patch

ref: a7fbc916d47f0dd0c1e9ee2b54d0b93a848f88d3
parent: 1b96c1543a48d395bfaae3fe8756663ca80e72eb
author: yenatch <[email protected]>
date: Wed Mar 27 19:08:47 EDT 2013

sub/status constants

--- a/constants.asm
+++ b/constants.asm
@@ -3442,6 +3442,44 @@
 BATTLE_VARS_LAST_MOVE_OPP EQU 20
 
 
+SUBSTATUS_IN_LOVE      EQU 7
+SUBSTATUS_ENCORED      EQU 6
+SUBSTATUS_ENDURE       EQU 5
+SUBSTATUS_PERISH       EQU 4
+SUBSTATUS_PROTECT      EQU 2
+SUBSTATUS_CURSE        EQU 1
+SUBSTATUS_NIGHTMARE    EQU 0
+
+SUBSTATUS_CURLED       EQU 0
+
+SUBSTATUS_CONFUSED     EQU 7
+SUBSTATUS_FLYING       EQU 6
+SUBSTATUS_UNDERGROUND  EQU 5
+SUBSTATUS_CHARGED      EQU 4
+SUBSTATUS_FLINCHED     EQU 3
+SUBSTATUS_ROLLOUT      EQU 1
+SUBSTATUS_BIDE         EQU 0
+
+SUBSTATUS_LEECH_SEED   EQU 7
+SUBSTATUS_RAGE         EQU 6
+SUBSTATUS_RECHARGE     EQU 5
+SUBSTATUS_SUBSTITUTE   EQU 4
+SUBSTATUS_FOCUS_ENERGY EQU 2
+SUBSTATUS_UNLEASH      EQU 0
+
+SUBSTATUS_DESTINY_BOND EQU 6
+SUBSTATUS_LOCK_ON      EQU 5
+
+
+; status
+SLP EQU 7
+PSN EQU 1 << 3
+BRN EQU 1 << 4
+FRZ EQU 1 << 5
+PAR EQU 1 << 6
+
+
+
 ; battle animations
 ; animations below fc are 1:1 with move constants
 ANIM_CONFUSED EQU $103