Move some more main.asm routines into individual files
This commit is contained in:
@@ -1,3 +1,11 @@
|
||||
Script_AbortBugContest: ; 0x122c1
|
||||
checkflag ENGINE_BUG_CONTEST_TIMER
|
||||
iffalse .finish
|
||||
setflag ENGINE_DAILY_BUG_CONTEST
|
||||
special ContestReturnMons
|
||||
.finish
|
||||
end
|
||||
|
||||
FindItemInBallScript:: ; 0x122ce
|
||||
callasm .TryReceiveItem
|
||||
iffalse .no_room
|
29
event/std_collision.asm
Normal file
29
event/std_collision.asm
Normal file
@@ -0,0 +1,29 @@
|
||||
CheckFacingTileForStd:: ; 1365b
|
||||
; Checks to see if the tile you're facing has a std script associated with it. If so, executes the script and returns carry.
|
||||
ld a, c
|
||||
ld de, 3
|
||||
ld hl, TileCollisionStdScripts
|
||||
call IsInArray
|
||||
jr nc, .notintable
|
||||
|
||||
ld a, jumpstd_command
|
||||
ld [wJumpStdScriptBuffer], a
|
||||
inc hl
|
||||
ld a, [hli]
|
||||
ld [wJumpStdScriptBuffer + 1], a
|
||||
ld a, [hli]
|
||||
ld [wJumpStdScriptBuffer + 2], a
|
||||
ld a, BANK(Script_JumpStdFromRAM)
|
||||
ld hl, Script_JumpStdFromRAM
|
||||
call CallScript
|
||||
scf
|
||||
ret
|
||||
|
||||
.notintable
|
||||
xor a
|
||||
ret
|
||||
|
||||
INCLUDE "data/collision_stdscripts.asm"
|
||||
|
||||
Script_JumpStdFromRAM: ; 0x1369a
|
||||
jump wJumpStdScriptBuffer
|
Reference in New Issue
Block a user