blob: a62835eaf64565b1b24f32b66a4e8f3c291c3cd4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
HasEnoughMoney::
; Check if the player has at least as much
; money as the 3-byte BCD value at hMoney.
ld de, wPlayerMoney
ld hl, hMoney
ld c, 3
jp StringCmp
HasEnoughCoins::
; Check if the player has at least as many
; coins as the 2-byte BCD value at hCoins.
ld de, wPlayerCoins
ld hl, hCoins
ld c, 2
jp StringCmp
|