summaryrefslogtreecommitdiff
path: root/constants
diff options
context:
space:
mode:
authormid-kid <esteve.varela@gmail.com>2019-02-16 01:33:40 +0100
committermid-kid <esteve.varela@gmail.com>2019-02-16 01:43:12 +0100
commit7e93916c8a825d4dfc29cf73e73b41d8c1fc06de (patch)
treea8f4d7ffffb43d91dde5870c746f66a4bd623aa9 /constants
parentee86b367662ab8f7a81a644c66f5bf14ead59ba8 (diff)
Add more constants for battle anim structs
Any access of the wram arrays for battle anim objects and background effects use appropriate macros and constants, now.
Diffstat (limited to 'constants')
-rw-r--r--constants/battle_anim_constants.asm3
1 files changed, 3 insertions, 0 deletions
diff --git a/constants/battle_anim_constants.asm b/constants/battle_anim_constants.asm
index c9eeac130..167bfd7e5 100644
--- a/constants/battle_anim_constants.asm
+++ b/constants/battle_anim_constants.asm
@@ -25,6 +25,7 @@
const BATTLEANIMSTRUCT_16
const BATTLEANIMSTRUCT_17
BATTLEANIMSTRUCT_LENGTH EQU const_value
+NUM_ANIM_OBJECTS EQUS "(wActiveAnimObjectsEnd - wActiveAnimObjects) / BATTLEANIMSTRUCT_LENGTH"
; Start tile for battle animation graphics
BATTLEANIM_BASE_TILE EQU 7 * 7 ; Maximum size of a pokemon picture
@@ -816,6 +817,8 @@ BATTLEANIM_BASE_TILE EQU 7 * 7 ; Maximum size of a pokemon picture
const BG_EFFECT_STRUCT_JT_INDEX
const BG_EFFECT_STRUCT_BATTLE_TURN
const BG_EFFECT_STRUCT_03
+BG_EFFECT_STRUCT_LENGTH EQU const_value
+NUM_BG_EFFECTS EQUS "(wActiveBGEffectsEnd - wActiveBGEffects) / BG_EFFECT_STRUCT_LENGTH"
; battle palettes
const_def