Reformat compare + goto_if/call_if to single statements
This commit is contained in:
@@ -1,23 +1,19 @@
|
||||
Roulette_EventScript_Table1::
|
||||
checkitem ITEM_COIN_CASE
|
||||
compare VAR_RESULT, FALSE
|
||||
goto_if_eq MauvilleCity_GameCorner_EventScript_NoCoinCase
|
||||
goto_if_eq VAR_RESULT, FALSE, MauvilleCity_GameCorner_EventScript_NoCoinCase
|
||||
setvar VAR_0x8004, 0
|
||||
getpokenewsactive POKENEWS_GAME_CORNER
|
||||
compare VAR_RESULT, FALSE
|
||||
goto_if_eq Roulette_EventScript_Play
|
||||
goto_if_eq VAR_RESULT, FALSE, Roulette_EventScript_Play
|
||||
addvar VAR_0x8004, ROULETTE_SPECIAL_RATE
|
||||
goto Roulette_EventScript_Play
|
||||
end
|
||||
|
||||
Roulette_EventScript_Table2::
|
||||
checkitem ITEM_COIN_CASE
|
||||
compare VAR_RESULT, FALSE
|
||||
goto_if_eq MauvilleCity_GameCorner_EventScript_NoCoinCase
|
||||
goto_if_eq VAR_RESULT, FALSE, MauvilleCity_GameCorner_EventScript_NoCoinCase
|
||||
setvar VAR_0x8004, 1
|
||||
getpokenewsactive POKENEWS_GAME_CORNER
|
||||
compare VAR_RESULT, FALSE
|
||||
goto_if_eq Roulette_EventScript_Play
|
||||
goto_if_eq VAR_RESULT, FALSE, Roulette_EventScript_Play
|
||||
addvar VAR_0x8004, ROULETTE_SPECIAL_RATE
|
||||
goto Roulette_EventScript_Play
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user