summaryrefslogtreecommitdiff
path: root/constants/deco_constants.asm
diff options
context:
space:
mode:
authorRangi <35663410+Rangi42@users.noreply.github.com>2021-03-08 07:01:31 -0800
committerGitHub <noreply@github.com>2021-03-08 07:01:31 -0800
commite791c5392b19f589c51afd98666d19e778278847 (patch)
tree4392cbecdd5166484f3a8ec8799939434159bae3 /constants/deco_constants.asm
parentfb35fe6aba5e4e4ce7edf5b345fdf2afec4b6b49 (diff)
parent98da09b3e90b6a132ce6d2431999485593aef0c9 (diff)
Merge pull request #806 from Rangi42/tables
Verify data table sizes with table_width and assert_table_length macros
Diffstat (limited to 'constants/deco_constants.asm')
-rw-r--r--constants/deco_constants.asm14
1 files changed, 12 insertions, 2 deletions
diff --git a/constants/deco_constants.asm b/constants/deco_constants.asm
index 29aea301e..27fa09f2c 100644
--- a/constants/deco_constants.asm
+++ b/constants/deco_constants.asm
@@ -1,3 +1,12 @@
+; decoration attributes
+rsreset
+DECOATTR_TYPE rb
+DECOATTR_NAME rb
+DECOATTR_ACTION rb
+DECOATTR_EVENT_FLAG rw
+DECOATTR_SPRITE rb
+DECOATTR_STRUCT_LENGTH EQU _RS
+
; decoration types
const_def 1
const DECO_PLANT
@@ -6,6 +15,7 @@
const DECO_POSTER
const DECO_DOLL
const DECO_BIGDOLL
+NUM_DECO_TYPES EQU const_value - 1
; DecorationNames indexes (see data/decorations/names.asm)
const_def 1
@@ -51,8 +61,7 @@
const PUT_AWAY_BIG_DOLL
const SET_UP_DOLL
const PUT_AWAY_DOLL
- const SET_UP_ORNAMENT
- const PUT_AWAY_ORNAMENT
+NUM_DECO_ACTIONS EQU const_value - 1
__deco_value__ = 0
@@ -127,3 +136,4 @@ NUM_NON_TROPHY_DECOS EQU __deco_value__
deco GOLD_TROPHY_DOLL
deco SILVER_TROPHY_DOLL
NUM_DECOS EQU __deco_value__
+NUM_DECO_CATEGORIES EQU const_value - 1 - NUM_DECOS