From 95ec2cf039f0efdc6dadfb6fe766ace231a1b6b1 Mon Sep 17 00:00:00 2001 From: Rangi Date: Thu, 25 Mar 2021 16:33:05 -0400 Subject: Verify data table and name list sizes with assertion macros Fixes #312 --- data/items/prices.asm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'data/items/prices.asm') diff --git a/data/items/prices.asm b/data/items/prices.asm index f3d8f76b..3740df8a 100644 --- a/data/items/prices.asm +++ b/data/items/prices.asm @@ -1,4 +1,5 @@ ItemPrices:: + table_width 3, ItemPrices money 0 ; MASTER_BALL money 1200 ; ULTRA_BALL money 600 ; GREAT_BALL @@ -82,6 +83,7 @@ ItemPrices:: money 0 ; MAX_ETHER money 0 ; ELIXER money 0 ; MAX_ELIXER + assert_table_length NUM_ITEMS money 0 ; FLOOR_B2F money 0 ; FLOOR_B1F money 0 ; FLOOR_1F @@ -96,3 +98,4 @@ ItemPrices:: money 0 ; FLOOR_10F money 0 ; FLOOR_11F money 0 ; FLOOR_B4F + assert_table_length NUM_ITEMS + NUM_FLOORS -- cgit v1.3.1-sl0p