Skip to content

Commit

Permalink
version-sensitive objects for egg moves and evos/attacks
Browse files Browse the repository at this point in the history
this way main.o and wram.o are version-neutral
  • Loading branch information
yenatch committed Nov 22, 2013
1 parent 02e8b4c commit 94188ee
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 15 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 0 additions & 7 deletions constants.asm
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
_CRYSTAL EQU 1

if _CRYSTAL
VERSION EQU 0
else
VERSION EQU 1
endc

; wram constants
; MonType: ; cf5f
Expand Down
2 changes: 1 addition & 1 deletion engine/scripting.asm
Original file line number Diff line number Diff line change
Expand Up @@ -2018,7 +2018,7 @@ Script_checkver: ; 0x976a6
; 0x976ad

Version: ; 976ad
db VERSION
db 0 ; VERSION
; 976ae

Script_pokenamemem: ; 0x976ae
Expand Down
6 changes: 0 additions & 6 deletions main.asm
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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]
Expand Down
1 change: 1 addition & 0 deletions stats/egg_move_pointers.asm
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
EggMovePointers: ; 0x23b11
dw BulbasaurEggMoves
dw NoEggMoves
dw NoEggMoves
Expand Down
6 changes: 6 additions & 0 deletions stats/egg_moves_crystal.asm
Original file line number Diff line number Diff line change
@@ -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"
6 changes: 6 additions & 0 deletions stats/evos_attacks_crystal.asm
Original file line number Diff line number Diff line change
@@ -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"
1 change: 1 addition & 0 deletions stats/evos_attacks_pointers.asm
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

; These are grouped together since they're both checked at level-up.

EvosAttacksPointers: ; 0x425b1
dw BulbasaurEvosAttacks
dw IvysaurEvosAttacks
dw VenusaurEvosAttacks
Expand Down

0 comments on commit 94188ee

Please sign in to comment.