mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-11-16 19:47:35 +01:00
Merge pull request #976 from GriffinRichards/fix-parens
Resolve missing parens errors
This commit is contained in:
commit
66c6b7a38b
@ -44,7 +44,7 @@ MauvilleCity_GameCorner_EventScript_ChooseCoinsDefault500:: @ 820FC0C
|
||||
|
||||
MauvilleCity_GameCorner_EventScript_Buy50Coins:: @ 820FC33
|
||||
checkcoins VAR_TEMP_1
|
||||
compare VAR_TEMP_1, MAX_COINS + 1 - 50
|
||||
compare VAR_TEMP_1, (MAX_COINS + 1 - 50)
|
||||
goto_if_ge MauvilleCity_GameCorner_EventScript_NoRoomForCoins
|
||||
checkmoney COINS_PRICE_50, 0
|
||||
compare VAR_RESULT, FALSE
|
||||
@ -62,7 +62,7 @@ MauvilleCity_GameCorner_EventScript_Buy50Coins:: @ 820FC33
|
||||
|
||||
MauvilleCity_GameCorner_EventScript_Buy500Coins:: @ 820FC75
|
||||
checkcoins VAR_TEMP_1
|
||||
compare VAR_TEMP_1, MAX_COINS + 1 - 500
|
||||
compare VAR_TEMP_1, (MAX_COINS + 1 - 500)
|
||||
goto_if_ge MauvilleCity_GameCorner_EventScript_NoRoomForCoins
|
||||
checkmoney COINS_PRICE_500, 0
|
||||
compare VAR_RESULT, FALSE
|
||||
|
@ -478,13 +478,13 @@
|
||||
#define FIRST_ROUTE_114_MAN_BERRY ITEM_RAZZ_BERRY
|
||||
#define LAST_ROUTE_114_MAN_BERRY ITEM_PINAP_BERRY
|
||||
|
||||
#define NUM_BERRY_MASTER_BERRIES LAST_BERRY_MASTER_BERRY - FIRST_BERRY_MASTER_BERRY + 1
|
||||
#define NUM_BERRY_MASTER_BERRIES_SKIPPED FIRST_BERRY_MASTER_BERRY - FIRST_BERRY_INDEX
|
||||
#define NUM_BERRY_MASTER_WIFE_BERRIES LAST_BERRY_MASTER_WIFE_BERRY - FIRST_BERRY_MASTER_WIFE_BERRY + 1
|
||||
#define NUM_KIRI_BERRIES LAST_KIRI_BERRY - FIRST_KIRI_BERRY + 1
|
||||
#define NUM_KIRI_BERRIES_SKIPPED FIRST_KIRI_BERRY - FIRST_BERRY_INDEX
|
||||
#define NUM_ROUTE_114_MAN_BERRIES LAST_ROUTE_114_MAN_BERRY - FIRST_ROUTE_114_MAN_BERRY + 1
|
||||
#define NUM_ROUTE_114_MAN_BERRIES_SKIPPED FIRST_ROUTE_114_MAN_BERRY - FIRST_BERRY_INDEX
|
||||
#define NUM_BERRY_MASTER_BERRIES (LAST_BERRY_MASTER_BERRY - FIRST_BERRY_MASTER_BERRY + 1)
|
||||
#define NUM_BERRY_MASTER_BERRIES_SKIPPED (FIRST_BERRY_MASTER_BERRY - FIRST_BERRY_INDEX)
|
||||
#define NUM_BERRY_MASTER_WIFE_BERRIES (LAST_BERRY_MASTER_WIFE_BERRY - FIRST_BERRY_MASTER_WIFE_BERRY + 1)
|
||||
#define NUM_KIRI_BERRIES (LAST_KIRI_BERRY - FIRST_KIRI_BERRY + 1)
|
||||
#define NUM_KIRI_BERRIES_SKIPPED (FIRST_KIRI_BERRY - FIRST_BERRY_INDEX)
|
||||
#define NUM_ROUTE_114_MAN_BERRIES (LAST_ROUTE_114_MAN_BERRY - FIRST_ROUTE_114_MAN_BERRY + 1)
|
||||
#define NUM_ROUTE_114_MAN_BERRIES_SKIPPED (FIRST_ROUTE_114_MAN_BERRY - FIRST_BERRY_INDEX)
|
||||
|
||||
#define ITEM_TO_BERRY(itemId)(((itemId - FIRST_BERRY_INDEX) + 1))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user