summaryrefslogtreecommitdiff
path: root/src/constants
diff options
context:
space:
mode:
Diffstat (limited to 'src/constants')
-rw-r--r--src/constants/card_data_constants.asm11
-rw-r--r--src/constants/menu_constants.asm15
2 files changed, 23 insertions, 3 deletions
diff --git a/src/constants/card_data_constants.asm b/src/constants/card_data_constants.asm
index cd7d401..50fdb52 100644
--- a/src/constants/card_data_constants.asm
+++ b/src/constants/card_data_constants.asm
@@ -8,9 +8,14 @@ CARD_NOT_OWNED EQU 1 << CARD_NOT_OWNED_F
CARD_COUNT_MASK EQU $7f
; sDeck* and generic deck constants
-NUM_DECKS EQU 4
-DECK_NAME_SIZE EQU 24
-DECK_SIZE EQU 60
+NUM_DECKS EQU 4
+DECK_NAME_SIZE EQU 24
+DECK_NAME_SIZE_WO_SUFFIX EQU 21 ; name part before "deck"
+DECK_SIZE EQU 60
+DECK_STRUCT_SIZE EQU DECK_NAME_SIZE + DECK_SIZE
+DECK_CONFIG_BUFFER_SIZE EQU 80
+MAX_NUM_SAME_NAME_CARDS EQU 4
+MAX_UNNAMED_DECK_NUM EQU 999
; card data offsets (data/cards.asm and card_data_struct)
diff --git a/src/constants/menu_constants.asm b/src/constants/menu_constants.asm
index 47582a2..75dd568 100644
--- a/src/constants/menu_constants.asm
+++ b/src/constants/menu_constants.asm
@@ -12,3 +12,18 @@ FILTER_TRAINER EQUS "TYPE_TRAINER"
FILTER_ENERGY EQU $20
NUM_FILTERS EQU 9
+
+MAX_DECK_CONFIRMATION_VISIBLE_CARDS EQU 7
+MAX_FILTERED_LIST_VISIBLE_CARDS EQU 6
+
+; deck flags
+ const_def
+ const DECK_1_F ; $0
+ const DECK_2_F ; $1
+ const DECK_3_F ; $2
+ const DECK_4_F ; $3
+
+ALL_DECKS EQU $ff
+
+NUM_DECK_SAVE_MACHINE_SLOTS EQU 60
+NUM_DECK_MACHINE_SLOTS EQU 5