summaryrefslogtreecommitdiff
path: root/engine/events/std_scripts.asm
diff options
context:
space:
mode:
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