shithub: pokecrystal

Download patch

ref: cf6295cb9fcd6fe7173efc76bd039be79b5781b2
parent: 29afa24f0bf3368a1cba6869de4f8290d2a6f0dd
author: yenatch <[email protected]>
date: Fri Nov 22 21:51:48 EST 2013

objects for event handling and scripting

--- a/Makefile
+++ b/Makefile
@@ -6,7 +6,7 @@
 TEXTFILES := $(shell find ./ -type f -name '*.asm' | grep -v globals.asm)
 TEXTQUEUE :=
 
-CRYSTAL_OBJS := wram.o main.o stats/egg_moves_crystal.o stats/evos_attacks_crystal.o
+CRYSTAL_OBJS := wram.o main.o engine/events.o engine/scripting_crystal.o engine/events_2.o stats/egg_moves_crystal.o stats/evos_attacks_crystal.o
 OBJS := $(CRYSTAL_OBJS)
 
 ROMS := pokecrystal.gbc
--- a/engine/events.asm
+++ b/engine/events.asm
@@ -1,3 +1,7 @@
+INCLUDE "includes.asm"
+
+SECTION "events", ROMX, BANK[$25]
+
 Function966b0: ; 966b0
 	xor a
 	ld [$d432], a
--- a/engine/events_2.asm
+++ b/engine/events_2.asm
@@ -1,4 +1,8 @@
+INCLUDE "includes.asm"
+
 ; More overworld event handling.
+
+SECTION "events2", ROMX, BANK[$25]
 
 Function97c28: ; 97c28
 	ld hl, StatusFlags2
--- /dev/null
+++ b/engine/scripting_crystal.asm
@@ -1,0 +1,5 @@
+INCLUDE "pokecrystal.asm"
+INCLUDE "includes.asm"
+
+SECTION "scripting", ROMX, BANK[$25]
+INCLUDE "engine/scripting.asm"
--- a/main.asm
+++ b/main.asm
@@ -85545,10 +85545,6 @@
 INCLUDE "maps/map_headers.asm"
 INCLUDE "maps/second_map_headers.asm"
 
-INCLUDE "engine/events.asm"
-INCLUDE "engine/scripting.asm"
-INCLUDE "engine/events_2.asm"
-
 
 
 SECTION "bank26",ROMX,BANK[$26]