summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2014-12-29 08:08:03 -0800
committeryenatch <yenatch@gmail.com>2014-12-29 08:08:03 -0800
commit1a2784d4142572487fdf10a44aa4752de287e89f (patch)
tree0aa7999c3526c1d856289eecb34426788b698f10
parent346844a61328943cd5fffb0a6b7934b97a4fc0cb (diff)
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.
-rw-r--r--Makefile4
-rw-r--r--engine/events.asm2
-rw-r--r--engine/events_2.asm4
-rw-r--r--engine/events_crystal.asm2
-rw-r--r--engine/scripting.asm6
-rw-r--r--engine/scripting_crystal.asm3
6 files changed, 5 insertions, 16 deletions
diff --git a/Makefile b/Makefile
index b77607436..ce6e87cb1 100644
--- a/Makefile
+++ b/Makefile
@@ -18,9 +18,7 @@ lib/mobile/main.o \
home.o \
audio.o \
maps_crystal.o \
-engine/events.o \
-engine/scripting_crystal.o \
-engine/events_2.o \
+engine/events_crystal.o \
engine/credits_crystal.o \
data/egg_moves_crystal.o \
data/evos_attacks_crystal.o \
diff --git a/engine/events.asm b/engine/events.asm
index 18ec40838..ea7b996aa 100644
--- a/engine/events.asm
+++ b/engine/events.asm
@@ -1120,3 +1120,5 @@ UnknownScript_0x96c4f: ; 96c4f
end
; 96c56
+INCLUDE "engine/scripting.asm"
+INCLUDE "engine/events_2.asm"
diff --git a/engine/events_2.asm b/engine/events_2.asm
index 68f5027ab..3db0698ee 100644
--- a/engine/events_2.asm
+++ b/engine/events_2.asm
@@ -1,9 +1,5 @@
-INCLUDE "includes.asm"
-
-
; More overworld event handling.
-SECTION "Events 2", ROMX, BANK[EVENTS]
Function97c28:: ; 97c28
ld hl, StatusFlags2
diff --git a/engine/events_crystal.asm b/engine/events_crystal.asm
new file mode 100644
index 000000000..56cb7a200
--- /dev/null
+++ b/engine/events_crystal.asm
@@ -0,0 +1,2 @@
+INCLUDE "pokecrystal.asm"
+INCLUDE "engine/events.asm"
diff --git a/engine/scripting.asm b/engine/scripting.asm
index f08508901..2b334a54f 100644
--- a/engine/scripting.asm
+++ b/engine/scripting.asm
@@ -1,11 +1,6 @@
-INCLUDE "includes.asm"
-
; Event scripting commands.
-SECTION "Event Scripting", ROMX, BANK[EVENTS]
-
-
Function96c56:: ; 96c56
push af
ld a, 1
@@ -14,7 +9,6 @@ Function96c56:: ; 96c56
ret
; 96c5e
-
ScriptEvents:: ; 96c5e
call StartScript
.loop
diff --git a/engine/scripting_crystal.asm b/engine/scripting_crystal.asm
deleted file mode 100644
index 8df277248..000000000
--- a/engine/scripting_crystal.asm
+++ /dev/null
@@ -1,3 +0,0 @@
-INCLUDE "pokecrystal.asm"
-INCLUDE "engine/scripting.asm"
-