version-sensitive objects for egg moves and evos/attacks

this way main.o and wram.o are version-neutral
This commit is contained in:
yenatch 2013-11-22 00:09:51 -05:00
parent 02e8b4c7b6
commit 94188ee0f7
8 changed files with 16 additions and 15 deletions

View File

@ -6,7 +6,7 @@ PYTHON := python
TEXTFILES := $(shell find ./ -type f -name '*.asm' | grep -v globals.asm) TEXTFILES := $(shell find ./ -type f -name '*.asm' | grep -v globals.asm)
TEXTQUEUE := 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) OBJS := $(CRYSTAL_OBJS)
ROMS := pokecrystal.gbc ROMS := pokecrystal.gbc

View File

@ -1,10 +1,3 @@
_CRYSTAL EQU 1
if _CRYSTAL
VERSION EQU 0
else
VERSION EQU 1
endc
; wram constants ; wram constants
; MonType: ; cf5f ; MonType: ; cf5f

View File

@ -2018,7 +2018,7 @@ Script_checkver: ; 0x976a6
; 0x976ad ; 0x976ad
Version: ; 976ad Version: ; 976ad
db VERSION db 0 ; VERSION
; 976ae ; 976ae
Script_pokenamemem: ; 0x976ae Script_pokenamemem: ; 0x976ae

View File

@ -31423,10 +31423,7 @@ INCBIN "baserom.gbc",$2017c,$20181 - $2017c
INCLUDE "tilesets/data_3.asm" INCLUDE "tilesets/data_3.asm"
EggMovePointers: ; 0x23b11
INCLUDE "stats/egg_move_pointers.asm"
INCLUDE "stats/egg_moves.asm"
SECTION "bank9",ROMX,BANK[$9] SECTION "bank9",ROMX,BANK[$9]
@ -54674,10 +54671,7 @@ GetPreEvolution: ; 42581
; 425b1 ; 425b1
EvosAttacksPointers: ; 0x425b1
INCLUDE "stats/evos_attacks_pointers.asm"
INCLUDE "stats/evos_attacks.asm"
SECTION "bank11",ROMX,BANK[$11] SECTION "bank11",ROMX,BANK[$11]

View File

@ -1,3 +1,4 @@
EggMovePointers: ; 0x23b11
dw BulbasaurEggMoves dw BulbasaurEggMoves
dw NoEggMoves dw NoEggMoves
dw NoEggMoves dw NoEggMoves

View File

@ -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"

View File

@ -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"

View File

@ -2,6 +2,7 @@
; These are grouped together since they're both checked at level-up. ; These are grouped together since they're both checked at level-up.
EvosAttacksPointers: ; 0x425b1
dw BulbasaurEvosAttacks dw BulbasaurEvosAttacks
dw IvysaurEvosAttacks dw IvysaurEvosAttacks
dw VenusaurEvosAttacks dw VenusaurEvosAttacks