You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-04-09 05:44:44 -07:00
Organize the engine/ directory, take 3
Renamed `title` to `movies`. Moved some functions from `engine/routines/` to their fitting directories, and cleaned up the base `engine/` directory. Moved `engine/pokemon/tmhm.asm` back to `engine/items/`. Made a new subdirectory: * engine/tilesets: Contains all map-related graphics routines.
This commit is contained in:
2
Makefile
2
Makefile
@@ -21,7 +21,7 @@ data/maps/map_data.o \
|
|||||||
data/pokemon/dex_entries.o \
|
data/pokemon/dex_entries.o \
|
||||||
data/pokemon/egg_moves.o \
|
data/pokemon/egg_moves.o \
|
||||||
data/pokemon/evos_attacks.o \
|
data/pokemon/evos_attacks.o \
|
||||||
engine/title/credits.o \
|
engine/movie/credits.o \
|
||||||
engine/overworld/events.o \
|
engine/overworld/events.o \
|
||||||
gfx/pics.o \
|
gfx/pics.o \
|
||||||
gfx/sprites.o \
|
gfx/sprites.o \
|
||||||
|
@@ -203,7 +203,7 @@ Function49496: ; 49496
|
|||||||
ret
|
ret
|
||||||
; 494ac
|
; 494ac
|
||||||
|
|
||||||
INCLUDE "engine/gfx/tileset_palettes.asm"
|
INCLUDE "engine/tilesets/tileset_palettes.asm"
|
||||||
|
|
||||||
MG_Mobile_Layout02: ; 49706
|
MG_Mobile_Layout02: ; 49706
|
||||||
ld hl, .Palette_49732
|
ld hl, .Palette_49732
|
||||||
|
File diff suppressed because it is too large
Load Diff
49
engine/items/tmhm2.asm
Executable file
49
engine/items/tmhm2.asm
Executable file
@@ -0,0 +1,49 @@
|
|||||||
|
CanLearnTMHMMove: ; 11639
|
||||||
|
ld a, [wCurPartySpecies]
|
||||||
|
ld [wCurSpecies], a
|
||||||
|
call GetBaseData
|
||||||
|
ld hl, wBaseTMHM
|
||||||
|
push hl
|
||||||
|
|
||||||
|
ld a, [wPutativeTMHMMove]
|
||||||
|
ld b, a
|
||||||
|
ld c, 0
|
||||||
|
ld hl, TMHMMoves
|
||||||
|
.loop
|
||||||
|
ld a, [hli]
|
||||||
|
and a
|
||||||
|
jr z, .end
|
||||||
|
cp b
|
||||||
|
jr z, .asm_11659
|
||||||
|
inc c
|
||||||
|
jr .loop
|
||||||
|
|
||||||
|
.asm_11659
|
||||||
|
pop hl
|
||||||
|
ld b, CHECK_FLAG
|
||||||
|
push de
|
||||||
|
ld d, 0
|
||||||
|
predef SmallFarFlagAction
|
||||||
|
pop de
|
||||||
|
ret
|
||||||
|
|
||||||
|
.end
|
||||||
|
pop hl
|
||||||
|
ld c, 0
|
||||||
|
ret
|
||||||
|
; 1166a
|
||||||
|
|
||||||
|
GetTMHMMove: ; 1166a
|
||||||
|
ld a, [wd265]
|
||||||
|
dec a
|
||||||
|
ld hl, TMHMMoves
|
||||||
|
ld b, 0
|
||||||
|
ld c, a
|
||||||
|
add hl, bc
|
||||||
|
ld a, [hl]
|
||||||
|
ld [wd265], a
|
||||||
|
ret
|
||||||
|
; 1167a
|
||||||
|
|
||||||
|
|
||||||
|
INCLUDE "data/moves/tmhm_moves.asm"
|
@@ -2029,7 +2029,7 @@ Unreferenced_Function28f09: ; 28f09
|
|||||||
ret
|
ret
|
||||||
; 28f24
|
; 28f24
|
||||||
|
|
||||||
INCLUDE "engine/gfx/trade_animation.asm"
|
INCLUDE "engine/movie/trade_animation.asm"
|
||||||
|
|
||||||
CheckTimeCapsuleCompatibility: ; 29bfb
|
CheckTimeCapsuleCompatibility: ; 29bfb
|
||||||
; Checks to see if your party is compatible with the Gen 1 games.
|
; Checks to see if your party is compatible with the Gen 1 games.
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user