Add definitions for additional regular spaces (green, item, pkmn, minigame) and end space (#21)

This commit is contained in:
xCrystal
2023-10-19 20:38:54 +02:00
parent f2a9f1e116
commit f9f0467d76
10 changed files with 121 additions and 80 deletions

View File

@@ -14,6 +14,37 @@ RedSpaceScript::
.not_landed
end
GreenSpaceScript::
scall ArriveToRegularSpaceScript
iftrue .not_landed
scall LandedInRegularSpaceScript
.not_landed
end
ItemSpaceScript::
scall ArriveToRegularSpaceScript
iftrue .not_landed
scall LandedInRegularSpaceScript
.not_landed
end
PokemonSpaceScript::
scall ArriveToRegularSpaceScript
iftrue .not_landed
scall LandedInRegularSpaceScript
.not_landed
end
MinigameSpaceScript::
scall ArriveToRegularSpaceScript
iftrue .not_landed
scall LandedInRegularSpaceScript
.not_landed
end
EndSpaceScript::
end
GreySpaceScript::
scall ArriveToRegularSpaceScript
iftrue .not_landed

View File

@@ -376,9 +376,14 @@ CheckBoardEvent:
.SpaceScripts:
table_width 2, .SpaceScripts
dw BlueSpaceScript ; COLL_BLUE_SPACE
dw RedSpaceScript ; COLL_RED_SPACE
dw GreySpaceScript ; COLL_GREY_SPACE
dw BlueSpaceScript ; COLL_BLUE_SPACE
dw RedSpaceScript ; COLL_RED_SPACE
dw GreenSpaceScript ; COLL_GREEN_SPACE
dw ItemSpaceScript ; COLL_ITEM_SPACE
dw PokemonSpaceScript ; COLL_POKEMON_SPACE
dw MinigameSpaceScript ; COLL_MINIGAME_SPACE
dw EndSpaceScript ; COLL_END_SPACE
dw GreySpaceScript ; COLL_GREY_SPACE
assert_table_length NUM_COLL_SPACES
CheckTrainerEvent: