summaryrefslogtreecommitdiff
path: root/maps/GoldenrodDeptStore6F.asm
diff options
context:
space:
mode:
Diffstat (limited to 'maps/GoldenrodDeptStore6F.asm')
-rw-r--r--maps/GoldenrodDeptStore6F.asm18
1 files changed, 11 insertions, 7 deletions
diff --git a/maps/GoldenrodDeptStore6F.asm b/maps/GoldenrodDeptStore6F.asm
index 61425193..3b4c39cc 100644
--- a/maps/GoldenrodDeptStore6F.asm
+++ b/maps/GoldenrodDeptStore6F.asm
@@ -1,4 +1,8 @@
- const_def 2 ; object constants
+GOLDENRODDEPTSTORE6F_FRESH_WATER_PRICE EQU 200
+GOLDENRODDEPTSTORE6F_SODA_POP_PRICE EQU 300
+GOLDENRODDEPTSTORE6F_LEMONADE_PRICE EQU 350
+
+ object_const_def ; object_event constants
const GOLDENRODDEPTSTORE6F_LASS
const GOLDENRODDEPTSTORE6F_SUPER_NERD
@@ -22,29 +26,29 @@ GoldenrodVendingMachine:
end
.FreshWater:
- checkmoney YOUR_MONEY, 200
+ checkmoney YOUR_MONEY, GOLDENRODDEPTSTORE6F_FRESH_WATER_PRICE
ifequal HAVE_LESS, .NotEnoughMoney
giveitem FRESH_WATER
iffalse .NotEnoughSpace
- takemoney YOUR_MONEY, 200
+ takemoney YOUR_MONEY, GOLDENRODDEPTSTORE6F_FRESH_WATER_PRICE
getitemname STRING_BUFFER_3, FRESH_WATER
sjump .VendItem
.SodaPop:
- checkmoney YOUR_MONEY, 300
+ checkmoney YOUR_MONEY, GOLDENRODDEPTSTORE6F_SODA_POP_PRICE
ifequal HAVE_LESS, .NotEnoughMoney
giveitem SODA_POP
iffalse .NotEnoughSpace
- takemoney YOUR_MONEY, 300
+ takemoney YOUR_MONEY, GOLDENRODDEPTSTORE6F_SODA_POP_PRICE
getitemname STRING_BUFFER_3, SODA_POP
sjump .VendItem
.Lemonade:
- checkmoney YOUR_MONEY, 350
+ checkmoney YOUR_MONEY, GOLDENRODDEPTSTORE6F_LEMONADE_PRICE
ifequal HAVE_LESS, .NotEnoughMoney
giveitem LEMONADE
iffalse .NotEnoughSpace
- takemoney YOUR_MONEY, 350
+ takemoney YOUR_MONEY, GOLDENRODDEPTSTORE6F_LEMONADE_PRICE
getitemname STRING_BUFFER_3, LEMONADE
sjump .VendItem