summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2013-11-22 00:09:51 -0500
committeryenatch <yenatch@gmail.com>2013-11-22 00:14:55 -0500
commit94188ee0f76934417db7929c696a54440bfc45cb (patch)
tree8dddd4dfb3cb3a1c1b384dd01ba4dd89858f56e7
parent02e8b4c7b68d52f5e7d470564fd7696041912005 (diff)
version-sensitive objects for egg moves and evos/attacks
this way main.o and wram.o are version-neutral
-rw-r--r--Makefile2
-rw-r--r--constants.asm7
-rw-r--r--engine/scripting.asm2
-rw-r--r--main.asm6
-rw-r--r--stats/egg_move_pointers.asm1
-rw-r--r--stats/egg_moves_crystal.asm6
-rw-r--r--stats/evos_attacks_crystal.asm6
-rw-r--r--stats/evos_attacks_pointers.asm1
8 files changed, 16 insertions, 15 deletions
diff --git a/Makefile b/Makefile
index 45170b312..67197c2e6 100644
--- a/Makefile
+++ b/Makefile
@@ -6,7 +6,7 @@ PYTHON := python
TEXTFILES := $(shell find ./ -type f -name '*.asm' | grep -v globals.asm)
TEXTQUEUE :=
-CRYSTAL_OBJS := wram.o main.o
+CRYSTAL_OBJS := wram.o main.o stats/egg_moves_crystal.o stats/evos_attacks_crystal.o
OBJS := $(CRYSTAL_OBJS)
ROMS := pokecrystal.gbc
diff --git a/constants.asm b/constants.asm
index fd89f7d0b..9f0b48faa 100644
--- a/constants.asm
+++ b/constants.asm
@@ -1,10 +1,3 @@
-_CRYSTAL EQU 1
-
-if _CRYSTAL
-VERSION EQU 0
-else
-VERSION EQU 1
-endc
; wram constants
; MonType: ; cf5f
diff --git a/engine/scripting.asm b/engine/scripting.asm
index 3d37b0206..0885266fd 100644
--- a/engine/scripting.asm
+++ b/engine/scripting.asm
@@ -2018,7 +2018,7 @@ Script_checkver: ; 0x976a6
; 0x976ad
Version: ; 976ad
- db VERSION
+ db 0 ; VERSION
; 976ae
Script_pokenamemem: ; 0x976ae
diff --git a/main.asm b/main.asm
index b572b4f5e..777320965 100644
--- a/main.asm
+++ b/main.asm
@@ -31423,10 +31423,7 @@ INCBIN "baserom.gbc",$2017c,$20181 - $2017c
INCLUDE "tilesets/data_3.asm"
-EggMovePointers: ; 0x23b11
-INCLUDE "stats/egg_move_pointers.asm"
-INCLUDE "stats/egg_moves.asm"
SECTION "bank9",ROMX,BANK[$9]
@@ -54674,10 +54671,7 @@ GetPreEvolution: ; 42581
; 425b1
-EvosAttacksPointers: ; 0x425b1
-INCLUDE "stats/evos_attacks_pointers.asm"
-INCLUDE "stats/evos_attacks.asm"
SECTION "bank11",ROMX,BANK[$11]
diff --git a/stats/egg_move_pointers.asm b/stats/egg_move_pointers.asm
index 27558ddef..76b9f1a92 100644
--- a/stats/egg_move_pointers.asm
+++ b/stats/egg_move_pointers.asm
@@ -1,3 +1,4 @@
+EggMovePointers: ; 0x23b11
dw BulbasaurEggMoves
dw NoEggMoves
dw NoEggMoves
diff --git a/stats/egg_moves_crystal.asm b/stats/egg_moves_crystal.asm
new file mode 100644
index 000000000..ea9414231
--- /dev/null
+++ b/stats/egg_moves_crystal.asm
@@ -0,0 +1,6 @@
+INCLUDE "pokecrystal.asm"
+INCLUDE "includes.asm"
+
+SECTION "eggmoves", ROMX, BANK[$8]
+INCLUDE "stats/egg_move_pointers.asm"
+INCLUDE "stats/egg_moves.asm"
diff --git a/stats/evos_attacks_crystal.asm b/stats/evos_attacks_crystal.asm
new file mode 100644
index 000000000..1c57e7912
--- /dev/null
+++ b/stats/evos_attacks_crystal.asm
@@ -0,0 +1,6 @@
+INCLUDE "pokecrystal.asm"
+INCLUDE "includes.asm"
+
+SECTION "evosattacks", ROMx, BANK[$10]
+INCLUDE "stats/evos_attacks_pointers.asm"
+INCLUDE "stats/evos_attacks.asm"
diff --git a/stats/evos_attacks_pointers.asm b/stats/evos_attacks_pointers.asm
index 287e7a0d0..6ecd74893 100644
--- a/stats/evos_attacks_pointers.asm
+++ b/stats/evos_attacks_pointers.asm
@@ -2,6 +2,7 @@
; These are grouped together since they're both checked at level-up.
+EvosAttacksPointers: ; 0x425b1
dw BulbasaurEvosAttacks
dw IvysaurEvosAttacks
dw VenusaurEvosAttacks