summaryrefslogtreecommitdiff
path: root/engine/events/std_scripts.asm
diff options
context:
space:
mode:
authorRemy Oukaour <remy.oukaour@gmail.com>2018-01-11 01:45:27 -0500
committerRemy Oukaour <remy.oukaour@gmail.com>2018-01-11 01:45:27 -0500
commitb45f89f80c62d22cbc2a4b38ae63a2da67878ee4 (patch)
tree1e3e32a19f964692480f8599fad621af70531743 /engine/events/std_scripts.asm
parentcc8dac5a22a4f9307dd2f94e4bf29ee5b132c0b7 (diff)
More constants and data tables
Diffstat (limited to 'engine/events/std_scripts.asm')
-rw-r--r--engine/events/std_scripts.asm5
1 files changed, 3 insertions, 2 deletions
diff --git a/engine/events/std_scripts.asm b/engine/events/std_scripts.asm
index 297725c60..da2d38138 100644
--- a/engine/events/std_scripts.asm
+++ b/engine/events/std_scripts.asm
@@ -1,4 +1,5 @@
StdScripts::
+; entries correspond to constants/std_constants.asm
dba PokecenterNurseScript
dba DifficultBookshelfScript
dba PictureBookshelfScript
@@ -1818,7 +1819,7 @@ CoinVendor_IntroScript: ; 0xbcde0
; 0xbcdf7
.Buy50: ; 0xbcdf7
- checkcoins 9949
+ checkcoins MAX_COINS - 50
if_equal $0, .CoinCaseFull
checkmoney $0, 1000
if_equal $2, .NotEnoughMoney
@@ -1832,7 +1833,7 @@ CoinVendor_IntroScript: ; 0xbcde0
; 0xbce1b
.Buy500: ; 0xbce1b
- checkcoins 9499
+ checkcoins MAX_COINS - 500
if_equal $0, .CoinCaseFull
checkmoney $0, 10000
if_equal $2, .NotEnoughMoney