You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-09-08 08:13:02 -07:00
Create BOARDEVENT_END_TURN as a transition between turns after landing on space (#25)
This commit is contained in:
@@ -2,20 +2,23 @@ BoardSpaceScripts:: ; used only for BANK(BoardSpaceScripts)
|
||||
|
||||
BlueSpaceScript::
|
||||
scall ArriveToRegularSpaceScript
|
||||
iftrue .done
|
||||
.done
|
||||
iftrue .not_landed
|
||||
scall LandedInRegularSpaceScript
|
||||
.not_landed
|
||||
end
|
||||
|
||||
RedSpaceScript::
|
||||
scall ArriveToRegularSpaceScript
|
||||
iftrue .done
|
||||
.done
|
||||
iftrue .not_landed
|
||||
scall LandedInRegularSpaceScript
|
||||
.not_landed
|
||||
end
|
||||
|
||||
GreySpaceScript::
|
||||
scall ArriveToRegularSpaceScript
|
||||
iftrue .done
|
||||
.done
|
||||
iftrue .not_landed
|
||||
scall LandedInRegularSpaceScript
|
||||
.not_landed
|
||||
end
|
||||
|
||||
ArriveToRegularSpaceScript:
|
||||
@@ -33,3 +36,12 @@ ArriveToRegularSpace:
|
||||
ld hl, wDisplaySecondarySprites
|
||||
res SECONDARYSPRITES_SPACES_LEFT_F, [hl]
|
||||
ret
|
||||
|
||||
LandedInRegularSpaceScript:
|
||||
callasm LandedInRegularSpace
|
||||
end
|
||||
|
||||
LandedInRegularSpace:
|
||||
ld a, BOARDEVENT_END_TURN
|
||||
ldh [hCurBoardEvent], a
|
||||
ret
|
||||
|
||||
Reference in New Issue
Block a user