mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
Recombine the event engine objects.
They must be in the same bank to work, and defining sections with static banks should only be used to produce an identical rom. They were only split in the first place to minimize the amount of code tahat needed to be rebuilt based on a single constant, which in retrospect was meaningless.
This commit is contained in:
parent
346844a613
commit
1a2784d414
4
Makefile
4
Makefile
@ -18,9 +18,7 @@ lib/mobile/main.o \
|
|||||||
home.o \
|
home.o \
|
||||||
audio.o \
|
audio.o \
|
||||||
maps_crystal.o \
|
maps_crystal.o \
|
||||||
engine/events.o \
|
engine/events_crystal.o \
|
||||||
engine/scripting_crystal.o \
|
|
||||||
engine/events_2.o \
|
|
||||||
engine/credits_crystal.o \
|
engine/credits_crystal.o \
|
||||||
data/egg_moves_crystal.o \
|
data/egg_moves_crystal.o \
|
||||||
data/evos_attacks_crystal.o \
|
data/evos_attacks_crystal.o \
|
||||||
|
@ -1120,3 +1120,5 @@ UnknownScript_0x96c4f: ; 96c4f
|
|||||||
end
|
end
|
||||||
; 96c56
|
; 96c56
|
||||||
|
|
||||||
|
INCLUDE "engine/scripting.asm"
|
||||||
|
INCLUDE "engine/events_2.asm"
|
||||||
|
@ -1,9 +1,5 @@
|
|||||||
INCLUDE "includes.asm"
|
|
||||||
|
|
||||||
|
|
||||||
; More overworld event handling.
|
; More overworld event handling.
|
||||||
|
|
||||||
SECTION "Events 2", ROMX, BANK[EVENTS]
|
|
||||||
|
|
||||||
Function97c28:: ; 97c28
|
Function97c28:: ; 97c28
|
||||||
ld hl, StatusFlags2
|
ld hl, StatusFlags2
|
||||||
|
2
engine/events_crystal.asm
Normal file
2
engine/events_crystal.asm
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
INCLUDE "pokecrystal.asm"
|
||||||
|
INCLUDE "engine/events.asm"
|
@ -1,11 +1,6 @@
|
|||||||
INCLUDE "includes.asm"
|
|
||||||
|
|
||||||
; Event scripting commands.
|
; Event scripting commands.
|
||||||
|
|
||||||
|
|
||||||
SECTION "Event Scripting", ROMX, BANK[EVENTS]
|
|
||||||
|
|
||||||
|
|
||||||
Function96c56:: ; 96c56
|
Function96c56:: ; 96c56
|
||||||
push af
|
push af
|
||||||
ld a, 1
|
ld a, 1
|
||||||
@ -14,7 +9,6 @@ Function96c56:: ; 96c56
|
|||||||
ret
|
ret
|
||||||
; 96c5e
|
; 96c5e
|
||||||
|
|
||||||
|
|
||||||
ScriptEvents:: ; 96c5e
|
ScriptEvents:: ; 96c5e
|
||||||
call StartScript
|
call StartScript
|
||||||
.loop
|
.loop
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
INCLUDE "pokecrystal.asm"
|
|
||||||
INCLUDE "engine/scripting.asm"
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user