You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-09-08 08:13:02 -07:00
Merge pull request #662 from Rangi42/master
Resolve miscellaneous issue #658
This commit is contained in:
1
Makefile
1
Makefile
@@ -14,6 +14,7 @@ engine/movie/credits.o \
|
|||||||
engine/overworld/events.o \
|
engine/overworld/events.o \
|
||||||
gfx/pics.o \
|
gfx/pics.o \
|
||||||
gfx/sprites.o \
|
gfx/sprites.o \
|
||||||
|
gfx/tilesets.o \
|
||||||
lib/mobile/main.o
|
lib/mobile/main.o
|
||||||
|
|
||||||
crystal11_obj := $(crystal_obj:.o=11.o)
|
crystal11_obj := $(crystal_obj:.o=11.o)
|
||||||
|
|||||||
@@ -6,6 +6,8 @@ SECTION "Maps", ROMX
|
|||||||
INCLUDE "data/maps/maps.asm"
|
INCLUDE "data/maps/maps.asm"
|
||||||
INCLUDE "data/maps/attributes.asm"
|
INCLUDE "data/maps/attributes.asm"
|
||||||
|
|
||||||
|
|
||||||
INCLUDE "data/maps/blocks.asm"
|
INCLUDE "data/maps/blocks.asm"
|
||||||
|
|
||||||
|
|
||||||
INCLUDE "data/maps/scripts.asm"
|
INCLUDE "data/maps/scripts.asm"
|
||||||
|
|||||||
@@ -811,10 +811,10 @@ This can bring Pokémon straight from level 1 to 100 by gaining just a few exper
|
|||||||
|
|
||||||
([Video](https://www.youtube.com/watch?v=o54VjpAEoO8))
|
([Video](https://www.youtube.com/watch?v=o54VjpAEoO8))
|
||||||
|
|
||||||
**Fix:** Edit `_ABoostedStringBuffer2ExpPointsText` and `_StringBuffer2ExpPointsText` in [data/text/common_2.asm](https://github.com/pret/pokecrystal/blob/master/data/text/common_2.asm):
|
**Fix:** Edit `_BoostedExpPointsText` and `_ExpPointsText` in [data/text/common_2.asm](https://github.com/pret/pokecrystal/blob/master/data/text/common_2.asm):
|
||||||
|
|
||||||
```diff
|
```diff
|
||||||
_ABoostedStringBuffer2ExpPointsText::
|
_BoostedExpPointsText::
|
||||||
text_start
|
text_start
|
||||||
line "a boosted"
|
line "a boosted"
|
||||||
cont "@"
|
cont "@"
|
||||||
@@ -823,7 +823,7 @@ This can bring Pokémon straight from level 1 to 100 by gaining just a few exper
|
|||||||
text " EXP. Points!"
|
text " EXP. Points!"
|
||||||
prompt
|
prompt
|
||||||
|
|
||||||
_StringBuffer2ExpPointsText::
|
_ExpPointsText::
|
||||||
text_start
|
text_start
|
||||||
line "@"
|
line "@"
|
||||||
- text_decimal wStringBuffer2, 2, 4
|
- text_decimal wStringBuffer2, 2, 4
|
||||||
@@ -1264,7 +1264,7 @@ Finally, edit [engine/battle/read_trainer_party.asm](https://github.com/pret/pok
|
|||||||
|
|
||||||
([Video](https://www.youtube.com/watch?v=ojq3xqfRF6I))
|
([Video](https://www.youtube.com/watch?v=ojq3xqfRF6I))
|
||||||
|
|
||||||
**Fix:** Edit `Slots_PayoutAnim` in [engine/games/slot_machine.asm](https://github.com/pret/pokecrystal/blob/master/engine/games/slot_machine.asm):
|
**Fix:** Edit `SlotsAction_PayoutAnim` in [engine/games/slot_machine.asm](https://github.com/pret/pokecrystal/blob/master/engine/games/slot_machine.asm):
|
||||||
|
|
||||||
```diff
|
```diff
|
||||||
.okay
|
.okay
|
||||||
|
|||||||
@@ -449,7 +449,7 @@ DisplayHOFMon:
|
|||||||
ld bc, MON_NAME_LENGTH - 1
|
ld bc, MON_NAME_LENGTH - 1
|
||||||
call CopyBytes
|
call CopyBytes
|
||||||
ld a, "@"
|
ld a, "@"
|
||||||
ld [wStringBuffer2 + 10], a
|
ld [wStringBuffer2 + MON_NAME_LENGTH - 1], a
|
||||||
hlcoord 0, 0
|
hlcoord 0, 0
|
||||||
ld bc, SCREEN_WIDTH * SCREEN_HEIGHT
|
ld bc, SCREEN_WIDTH * SCREEN_HEIGHT
|
||||||
ld a, " "
|
ld a, " "
|
||||||
|
|||||||
@@ -148,7 +148,7 @@ CheckForLuckyNumberWinners:
|
|||||||
.done
|
.done
|
||||||
pop hl
|
pop hl
|
||||||
push hl
|
push hl
|
||||||
ld de, -6
|
ld de, MON_SPECIES - MON_ID
|
||||||
add hl, de
|
add hl, de
|
||||||
ld a, [hl]
|
ld a, [hl]
|
||||||
pop hl
|
pop hl
|
||||||
|
|||||||
@@ -261,7 +261,7 @@ CopyBoxmonToTempMon:
|
|||||||
call CloseSRAM
|
call CloseSRAM
|
||||||
ret
|
ret
|
||||||
|
|
||||||
Unreferenced_Functione5d9:
|
Unreferenced_LoadBoxMonListing:
|
||||||
ld a, [wCurBox]
|
ld a, [wCurBox]
|
||||||
cp b
|
cp b
|
||||||
jr z, .same_box
|
jr z, .same_box
|
||||||
@@ -284,11 +284,11 @@ Unreferenced_Functione5d9:
|
|||||||
.okay
|
.okay
|
||||||
call GetSRAMBank
|
call GetSRAMBank
|
||||||
ld a, [hl]
|
ld a, [hl]
|
||||||
ld bc, 1 + MONS_PER_BOX + 1
|
ld bc, sBoxMons - sBox
|
||||||
add hl, bc
|
add hl, bc
|
||||||
ld b, a
|
ld b, a
|
||||||
ld c, $0
|
ld c, $0
|
||||||
ld de, wc608
|
ld de, wBoxPartialData
|
||||||
ld a, b
|
ld a, b
|
||||||
and a
|
and a
|
||||||
jr z, .empty_box
|
jr z, .empty_box
|
||||||
@@ -296,7 +296,7 @@ Unreferenced_Functione5d9:
|
|||||||
push hl
|
push hl
|
||||||
push bc
|
push bc
|
||||||
ld a, c
|
ld a, c
|
||||||
ld bc, 0
|
ld bc, sBoxMon1Species - sBoxMons
|
||||||
add hl, bc
|
add hl, bc
|
||||||
ld bc, BOXMON_STRUCT_LENGTH
|
ld bc, BOXMON_STRUCT_LENGTH
|
||||||
call AddNTimes
|
call AddNTimes
|
||||||
@@ -311,7 +311,7 @@ Unreferenced_Functione5d9:
|
|||||||
push hl
|
push hl
|
||||||
push bc
|
push bc
|
||||||
ld a, c
|
ld a, c
|
||||||
ld bc, MONS_PER_BOX * (BOXMON_STRUCT_LENGTH + NAME_LENGTH)
|
ld bc, sBoxMonNicknames - sBoxMons
|
||||||
add hl, bc
|
add hl, bc
|
||||||
call SkipNames
|
call SkipNames
|
||||||
call CopyBytes
|
call CopyBytes
|
||||||
|
|||||||
@@ -113,7 +113,7 @@ CheckOwnMonAnywhere:
|
|||||||
jr z, .loopbox
|
jr z, .loopbox
|
||||||
|
|
||||||
; Load the box.
|
; Load the box.
|
||||||
ld hl, BoxAddressTable1
|
ld hl, BoxAddressTable
|
||||||
ld b, 0
|
ld b, 0
|
||||||
add hl, bc
|
add hl, bc
|
||||||
add hl, bc
|
add hl, bc
|
||||||
@@ -244,7 +244,7 @@ endr
|
|||||||
scf
|
scf
|
||||||
ret
|
ret
|
||||||
|
|
||||||
BoxAddressTable1:
|
BoxAddressTable:
|
||||||
dba sBox1
|
dba sBox1
|
||||||
dba sBox2
|
dba sBox2
|
||||||
dba sBox3
|
dba sBox3
|
||||||
|
|||||||
@@ -117,7 +117,7 @@ FindThatSpecies:
|
|||||||
ret
|
ret
|
||||||
|
|
||||||
RetroactivelyIgnoreEggs:
|
RetroactivelyIgnoreEggs:
|
||||||
ld e, -2
|
ld e, %11111110
|
||||||
ld hl, wPartySpecies
|
ld hl, wPartySpecies
|
||||||
.loop
|
.loop
|
||||||
ld a, [hli]
|
ld a, [hli]
|
||||||
|
|||||||
228
gfx/tilesets.asm
228
gfx/tilesets.asm
@@ -1,3 +1,5 @@
|
|||||||
|
INCLUDE "constants.asm"
|
||||||
|
|
||||||
tilecoll: MACRO
|
tilecoll: MACRO
|
||||||
; used in data/tilesets/*_collision.asm
|
; used in data/tilesets/*_collision.asm
|
||||||
db COLL_\1, COLL_\2, COLL_\3, COLL_\4
|
db COLL_\1, COLL_\2, COLL_\3, COLL_\4
|
||||||
@@ -6,332 +8,332 @@ ENDM
|
|||||||
|
|
||||||
SECTION "Tileset Data 1", ROMX
|
SECTION "Tileset Data 1", ROMX
|
||||||
|
|
||||||
TilesetKantoGFX:
|
TilesetKantoGFX::
|
||||||
INCBIN "gfx/tilesets/kanto.2bpp.lz"
|
INCBIN "gfx/tilesets/kanto.2bpp.lz"
|
||||||
|
|
||||||
TilesetKantoMeta:
|
TilesetKantoMeta::
|
||||||
INCBIN "data/tilesets/kanto_metatiles.bin"
|
INCBIN "data/tilesets/kanto_metatiles.bin"
|
||||||
|
|
||||||
TilesetKantoColl:
|
TilesetKantoColl::
|
||||||
INCLUDE "data/tilesets/kanto_collision.asm"
|
INCLUDE "data/tilesets/kanto_collision.asm"
|
||||||
|
|
||||||
Tileset0GFX:
|
Tileset0GFX::
|
||||||
TilesetJohtoGFX:
|
TilesetJohtoGFX::
|
||||||
INCBIN "gfx/tilesets/johto.2bpp.lz"
|
INCBIN "gfx/tilesets/johto.2bpp.lz"
|
||||||
|
|
||||||
Tileset0Meta:
|
Tileset0Meta::
|
||||||
TilesetJohtoMeta:
|
TilesetJohtoMeta::
|
||||||
INCBIN "data/tilesets/johto_metatiles.bin"
|
INCBIN "data/tilesets/johto_metatiles.bin"
|
||||||
|
|
||||||
Tileset0Coll:
|
Tileset0Coll::
|
||||||
TilesetJohtoColl:
|
TilesetJohtoColl::
|
||||||
INCLUDE "data/tilesets/johto_collision.asm"
|
INCLUDE "data/tilesets/johto_collision.asm"
|
||||||
|
|
||||||
TilesetIcePathGFX:
|
TilesetIcePathGFX::
|
||||||
INCBIN "gfx/tilesets/ice_path.2bpp.lz"
|
INCBIN "gfx/tilesets/ice_path.2bpp.lz"
|
||||||
|
|
||||||
TilesetIcePathMeta:
|
TilesetIcePathMeta::
|
||||||
INCBIN "data/tilesets/ice_path_metatiles.bin"
|
INCBIN "data/tilesets/ice_path_metatiles.bin"
|
||||||
|
|
||||||
TilesetIcePathColl:
|
TilesetIcePathColl::
|
||||||
INCLUDE "data/tilesets/ice_path_collision.asm"
|
INCLUDE "data/tilesets/ice_path_collision.asm"
|
||||||
|
|
||||||
TilesetPlayersRoomGFX:
|
TilesetPlayersRoomGFX::
|
||||||
INCBIN "gfx/tilesets/players_room.2bpp.lz"
|
INCBIN "gfx/tilesets/players_room.2bpp.lz"
|
||||||
|
|
||||||
TilesetPlayersRoomMeta:
|
TilesetPlayersRoomMeta::
|
||||||
INCBIN "data/tilesets/players_room_metatiles.bin"
|
INCBIN "data/tilesets/players_room_metatiles.bin"
|
||||||
|
|
||||||
TilesetPlayersRoomColl:
|
TilesetPlayersRoomColl::
|
||||||
INCLUDE "data/tilesets/players_room_collision.asm"
|
INCLUDE "data/tilesets/players_room_collision.asm"
|
||||||
|
|
||||||
|
|
||||||
SECTION "Tileset Data 2", ROMX
|
SECTION "Tileset Data 2", ROMX
|
||||||
|
|
||||||
TilesetPokecenterGFX:
|
TilesetPokecenterGFX::
|
||||||
INCBIN "gfx/tilesets/pokecenter.2bpp.lz"
|
INCBIN "gfx/tilesets/pokecenter.2bpp.lz"
|
||||||
|
|
||||||
TilesetPokecenterMeta:
|
TilesetPokecenterMeta::
|
||||||
INCBIN "data/tilesets/pokecenter_metatiles.bin"
|
INCBIN "data/tilesets/pokecenter_metatiles.bin"
|
||||||
|
|
||||||
TilesetPokecenterColl:
|
TilesetPokecenterColl::
|
||||||
INCLUDE "data/tilesets/pokecenter_collision.asm"
|
INCLUDE "data/tilesets/pokecenter_collision.asm"
|
||||||
|
|
||||||
TilesetPortGFX:
|
TilesetPortGFX::
|
||||||
INCBIN "gfx/tilesets/port.2bpp.lz"
|
INCBIN "gfx/tilesets/port.2bpp.lz"
|
||||||
|
|
||||||
TilesetPortMeta:
|
TilesetPortMeta::
|
||||||
INCBIN "data/tilesets/port_metatiles.bin"
|
INCBIN "data/tilesets/port_metatiles.bin"
|
||||||
|
|
||||||
TilesetPortColl:
|
TilesetPortColl::
|
||||||
INCLUDE "data/tilesets/port_collision.asm"
|
INCLUDE "data/tilesets/port_collision.asm"
|
||||||
|
|
||||||
TilesetPlayersHouseGFX:
|
TilesetPlayersHouseGFX::
|
||||||
INCBIN "gfx/tilesets/players_house.2bpp.lz"
|
INCBIN "gfx/tilesets/players_house.2bpp.lz"
|
||||||
|
|
||||||
TilesetPlayersHouseMeta:
|
TilesetPlayersHouseMeta::
|
||||||
INCBIN "data/tilesets/players_house_metatiles.bin"
|
INCBIN "data/tilesets/players_house_metatiles.bin"
|
||||||
|
|
||||||
TilesetPlayersHouseColl:
|
TilesetPlayersHouseColl::
|
||||||
INCLUDE "data/tilesets/players_house_collision.asm"
|
INCLUDE "data/tilesets/players_house_collision.asm"
|
||||||
|
|
||||||
TilesetMansionGFX:
|
TilesetMansionGFX::
|
||||||
INCBIN "gfx/tilesets/mansion.2bpp.lz"
|
INCBIN "gfx/tilesets/mansion.2bpp.lz"
|
||||||
|
|
||||||
TilesetMansionMeta:
|
TilesetMansionMeta::
|
||||||
INCBIN "data/tilesets/mansion_metatiles.bin"
|
INCBIN "data/tilesets/mansion_metatiles.bin"
|
||||||
|
|
||||||
TilesetMansionColl:
|
TilesetMansionColl::
|
||||||
INCLUDE "data/tilesets/mansion_collision.asm"
|
INCLUDE "data/tilesets/mansion_collision.asm"
|
||||||
|
|
||||||
TilesetCaveGFX:
|
TilesetCaveGFX::
|
||||||
INCBIN "gfx/tilesets/cave.2bpp.lz"
|
INCBIN "gfx/tilesets/cave.2bpp.lz"
|
||||||
|
|
||||||
TilesetCaveMeta:
|
TilesetCaveMeta::
|
||||||
TilesetDarkCaveMeta:
|
TilesetDarkCaveMeta::
|
||||||
INCBIN "data/tilesets/cave_metatiles.bin"
|
INCBIN "data/tilesets/cave_metatiles.bin"
|
||||||
|
|
||||||
TilesetCaveColl:
|
TilesetCaveColl::
|
||||||
TilesetDarkCaveColl:
|
TilesetDarkCaveColl::
|
||||||
INCLUDE "data/tilesets/cave_collision.asm"
|
INCLUDE "data/tilesets/cave_collision.asm"
|
||||||
|
|
||||||
|
|
||||||
SECTION "Tileset Data 3", ROMX
|
SECTION "Tileset Data 3", ROMX
|
||||||
|
|
||||||
TilesetTowerGFX:
|
TilesetTowerGFX::
|
||||||
INCBIN "gfx/tilesets/tower.2bpp.lz"
|
INCBIN "gfx/tilesets/tower.2bpp.lz"
|
||||||
|
|
||||||
TilesetTowerMeta:
|
TilesetTowerMeta::
|
||||||
INCBIN "data/tilesets/tower_metatiles.bin"
|
INCBIN "data/tilesets/tower_metatiles.bin"
|
||||||
|
|
||||||
TilesetTowerColl:
|
TilesetTowerColl::
|
||||||
INCLUDE "data/tilesets/tower_collision.asm"
|
INCLUDE "data/tilesets/tower_collision.asm"
|
||||||
|
|
||||||
TilesetLabGFX:
|
TilesetLabGFX::
|
||||||
INCBIN "gfx/tilesets/lab.2bpp.lz"
|
INCBIN "gfx/tilesets/lab.2bpp.lz"
|
||||||
|
|
||||||
TilesetLabMeta:
|
TilesetLabMeta::
|
||||||
INCBIN "data/tilesets/lab_metatiles.bin"
|
INCBIN "data/tilesets/lab_metatiles.bin"
|
||||||
|
|
||||||
TilesetLabColl:
|
TilesetLabColl::
|
||||||
INCLUDE "data/tilesets/lab_collision.asm"
|
INCLUDE "data/tilesets/lab_collision.asm"
|
||||||
|
|
||||||
TilesetMartGFX:
|
TilesetMartGFX::
|
||||||
INCBIN "gfx/tilesets/mart.2bpp.lz"
|
INCBIN "gfx/tilesets/mart.2bpp.lz"
|
||||||
|
|
||||||
TilesetMartMeta:
|
TilesetMartMeta::
|
||||||
INCBIN "data/tilesets/mart_metatiles.bin"
|
INCBIN "data/tilesets/mart_metatiles.bin"
|
||||||
|
|
||||||
TilesetMartColl:
|
TilesetMartColl::
|
||||||
INCLUDE "data/tilesets/mart_collision.asm"
|
INCLUDE "data/tilesets/mart_collision.asm"
|
||||||
|
|
||||||
TilesetGameCornerGFX:
|
TilesetGameCornerGFX::
|
||||||
INCBIN "gfx/tilesets/game_corner.2bpp.lz"
|
INCBIN "gfx/tilesets/game_corner.2bpp.lz"
|
||||||
|
|
||||||
TilesetGameCornerMeta:
|
TilesetGameCornerMeta::
|
||||||
INCBIN "data/tilesets/game_corner_metatiles.bin"
|
INCBIN "data/tilesets/game_corner_metatiles.bin"
|
||||||
|
|
||||||
TilesetGameCornerColl:
|
TilesetGameCornerColl::
|
||||||
INCLUDE "data/tilesets/game_corner_collision.asm"
|
INCLUDE "data/tilesets/game_corner_collision.asm"
|
||||||
|
|
||||||
TilesetTrainStationGFX:
|
TilesetTrainStationGFX::
|
||||||
INCBIN "gfx/tilesets/train_station.2bpp.lz"
|
INCBIN "gfx/tilesets/train_station.2bpp.lz"
|
||||||
|
|
||||||
TilesetTrainStationMeta:
|
TilesetTrainStationMeta::
|
||||||
INCBIN "data/tilesets/train_station_metatiles.bin"
|
INCBIN "data/tilesets/train_station_metatiles.bin"
|
||||||
|
|
||||||
TilesetTrainStationColl:
|
TilesetTrainStationColl::
|
||||||
INCLUDE "data/tilesets/train_station_collision.asm"
|
INCLUDE "data/tilesets/train_station_collision.asm"
|
||||||
|
|
||||||
TilesetForestMeta:
|
TilesetForestMeta::
|
||||||
INCBIN "data/tilesets/forest_metatiles.bin"
|
INCBIN "data/tilesets/forest_metatiles.bin"
|
||||||
|
|
||||||
|
|
||||||
SECTION "Tileset Data 4", ROMX
|
SECTION "Tileset Data 4", ROMX
|
||||||
|
|
||||||
TilesetEliteFourRoomGFX:
|
TilesetEliteFourRoomGFX::
|
||||||
INCBIN "gfx/tilesets/elite_four_room.2bpp.lz"
|
INCBIN "gfx/tilesets/elite_four_room.2bpp.lz"
|
||||||
|
|
||||||
TilesetEliteFourRoomMeta:
|
TilesetEliteFourRoomMeta::
|
||||||
INCBIN "data/tilesets/elite_four_room_metatiles.bin"
|
INCBIN "data/tilesets/elite_four_room_metatiles.bin"
|
||||||
|
|
||||||
TilesetEliteFourRoomColl:
|
TilesetEliteFourRoomColl::
|
||||||
INCLUDE "data/tilesets/elite_four_room_collision.asm"
|
INCLUDE "data/tilesets/elite_four_room_collision.asm"
|
||||||
|
|
||||||
TilesetParkGFX:
|
TilesetParkGFX::
|
||||||
INCBIN "gfx/tilesets/park.2bpp.lz"
|
INCBIN "gfx/tilesets/park.2bpp.lz"
|
||||||
|
|
||||||
TilesetParkMeta:
|
TilesetParkMeta::
|
||||||
INCBIN "data/tilesets/park_metatiles.bin"
|
INCBIN "data/tilesets/park_metatiles.bin"
|
||||||
|
|
||||||
TilesetParkColl:
|
TilesetParkColl::
|
||||||
INCLUDE "data/tilesets/park_collision.asm"
|
INCLUDE "data/tilesets/park_collision.asm"
|
||||||
|
|
||||||
TilesetRadioTowerGFX:
|
TilesetRadioTowerGFX::
|
||||||
INCBIN "gfx/tilesets/radio_tower.2bpp.lz"
|
INCBIN "gfx/tilesets/radio_tower.2bpp.lz"
|
||||||
|
|
||||||
TilesetRadioTowerMeta:
|
TilesetRadioTowerMeta::
|
||||||
INCBIN "data/tilesets/radio_tower_metatiles.bin"
|
INCBIN "data/tilesets/radio_tower_metatiles.bin"
|
||||||
|
|
||||||
TilesetRadioTowerColl:
|
TilesetRadioTowerColl::
|
||||||
INCLUDE "data/tilesets/radio_tower_collision.asm"
|
INCLUDE "data/tilesets/radio_tower_collision.asm"
|
||||||
|
|
||||||
TilesetUndergroundGFX:
|
TilesetUndergroundGFX::
|
||||||
INCBIN "gfx/tilesets/underground.2bpp.lz"
|
INCBIN "gfx/tilesets/underground.2bpp.lz"
|
||||||
|
|
||||||
TilesetUndergroundMeta:
|
TilesetUndergroundMeta::
|
||||||
INCBIN "data/tilesets/underground_metatiles.bin"
|
INCBIN "data/tilesets/underground_metatiles.bin"
|
||||||
|
|
||||||
TilesetUndergroundColl:
|
TilesetUndergroundColl::
|
||||||
INCLUDE "data/tilesets/underground_collision.asm"
|
INCLUDE "data/tilesets/underground_collision.asm"
|
||||||
|
|
||||||
TilesetDarkCaveGFX:
|
TilesetDarkCaveGFX::
|
||||||
INCBIN "gfx/tilesets/dark_cave.2bpp.lz"
|
INCBIN "gfx/tilesets/dark_cave.2bpp.lz"
|
||||||
|
|
||||||
UnusedTilesetDarkCaveMeta:
|
UnusedTilesetDarkCaveMeta::
|
||||||
INCBIN "data/tilesets/unused_dark_cave_metatiles.bin"
|
INCBIN "data/tilesets/unused_dark_cave_metatiles.bin"
|
||||||
|
|
||||||
UnusedTilesetDarkCaveColl:
|
UnusedTilesetDarkCaveColl::
|
||||||
INCLUDE "data/tilesets/unused_dark_cave_collision.asm"
|
INCLUDE "data/tilesets/unused_dark_cave_collision.asm"
|
||||||
|
|
||||||
|
|
||||||
SECTION "Tileset Data 5", ROMX
|
SECTION "Tileset Data 5", ROMX
|
||||||
|
|
||||||
TilesetPokeComCenterGFX:
|
TilesetPokeComCenterGFX::
|
||||||
INCBIN "gfx/tilesets/pokecom_center.2bpp.lz"
|
INCBIN "gfx/tilesets/pokecom_center.2bpp.lz"
|
||||||
|
|
||||||
TilesetPokeComCenterMeta:
|
TilesetPokeComCenterMeta::
|
||||||
INCBIN "data/tilesets/pokecom_center_metatiles.bin"
|
INCBIN "data/tilesets/pokecom_center_metatiles.bin"
|
||||||
|
|
||||||
TilesetPokeComCenterColl:
|
TilesetPokeComCenterColl::
|
||||||
INCLUDE "data/tilesets/pokecom_center_collision.asm"
|
INCLUDE "data/tilesets/pokecom_center_collision.asm"
|
||||||
|
|
||||||
TilesetBattleTowerInsideGFX:
|
TilesetBattleTowerInsideGFX::
|
||||||
INCBIN "gfx/tilesets/battle_tower_inside.2bpp.lz"
|
INCBIN "gfx/tilesets/battle_tower_inside.2bpp.lz"
|
||||||
|
|
||||||
TilesetBattleTowerInsideMeta:
|
TilesetBattleTowerInsideMeta::
|
||||||
INCBIN "data/tilesets/battle_tower_inside_metatiles.bin"
|
INCBIN "data/tilesets/battle_tower_inside_metatiles.bin"
|
||||||
|
|
||||||
TilesetBattleTowerInsideColl:
|
TilesetBattleTowerInsideColl::
|
||||||
INCLUDE "data/tilesets/battle_tower_inside_collision.asm"
|
INCLUDE "data/tilesets/battle_tower_inside_collision.asm"
|
||||||
|
|
||||||
TilesetGateGFX:
|
TilesetGateGFX::
|
||||||
INCBIN "gfx/tilesets/gate.2bpp.lz"
|
INCBIN "gfx/tilesets/gate.2bpp.lz"
|
||||||
|
|
||||||
TilesetGateMeta:
|
TilesetGateMeta::
|
||||||
INCBIN "data/tilesets/gate_metatiles.bin"
|
INCBIN "data/tilesets/gate_metatiles.bin"
|
||||||
|
|
||||||
TilesetGateColl:
|
TilesetGateColl::
|
||||||
INCLUDE "data/tilesets/gate_collision.asm"
|
INCLUDE "data/tilesets/gate_collision.asm"
|
||||||
|
|
||||||
TilesetJohtoModernGFX:
|
TilesetJohtoModernGFX::
|
||||||
TilesetBattleTowerOutsideGFX:
|
TilesetBattleTowerOutsideGFX::
|
||||||
INCBIN "gfx/tilesets/johto_modern.2bpp.lz"
|
INCBIN "gfx/tilesets/johto_modern.2bpp.lz"
|
||||||
|
|
||||||
TilesetJohtoModernMeta:
|
TilesetJohtoModernMeta::
|
||||||
INCBIN "data/tilesets/johto_modern_metatiles.bin"
|
INCBIN "data/tilesets/johto_modern_metatiles.bin"
|
||||||
|
|
||||||
TilesetJohtoModernColl:
|
TilesetJohtoModernColl::
|
||||||
INCLUDE "data/tilesets/johto_modern_collision.asm"
|
INCLUDE "data/tilesets/johto_modern_collision.asm"
|
||||||
|
|
||||||
TilesetTraditionalHouseGFX:
|
TilesetTraditionalHouseGFX::
|
||||||
INCBIN "gfx/tilesets/traditional_house.2bpp.lz"
|
INCBIN "gfx/tilesets/traditional_house.2bpp.lz"
|
||||||
|
|
||||||
TilesetTraditionalHouseMeta:
|
TilesetTraditionalHouseMeta::
|
||||||
INCBIN "data/tilesets/traditional_house_metatiles.bin"
|
INCBIN "data/tilesets/traditional_house_metatiles.bin"
|
||||||
|
|
||||||
TilesetTraditionalHouseColl:
|
TilesetTraditionalHouseColl::
|
||||||
INCLUDE "data/tilesets/traditional_house_collision.asm"
|
INCLUDE "data/tilesets/traditional_house_collision.asm"
|
||||||
|
|
||||||
|
|
||||||
SECTION "Tileset Data 6", ROMX
|
SECTION "Tileset Data 6", ROMX
|
||||||
|
|
||||||
TilesetForestGFX:
|
TilesetForestGFX::
|
||||||
INCBIN "gfx/tilesets/forest.2bpp.lz"
|
INCBIN "gfx/tilesets/forest.2bpp.lz"
|
||||||
|
|
||||||
TilesetChampionsRoomGFX:
|
TilesetChampionsRoomGFX::
|
||||||
INCBIN "gfx/tilesets/champions_room.2bpp.lz"
|
INCBIN "gfx/tilesets/champions_room.2bpp.lz"
|
||||||
|
|
||||||
TilesetChampionsRoomMeta:
|
TilesetChampionsRoomMeta::
|
||||||
INCBIN "data/tilesets/champions_room_metatiles.bin"
|
INCBIN "data/tilesets/champions_room_metatiles.bin"
|
||||||
|
|
||||||
TilesetChampionsRoomColl:
|
TilesetChampionsRoomColl::
|
||||||
INCLUDE "data/tilesets/champions_room_collision.asm"
|
INCLUDE "data/tilesets/champions_room_collision.asm"
|
||||||
|
|
||||||
TilesetHouseGFX:
|
TilesetHouseGFX::
|
||||||
INCBIN "gfx/tilesets/house.2bpp.lz"
|
INCBIN "gfx/tilesets/house.2bpp.lz"
|
||||||
|
|
||||||
TilesetHouseMeta:
|
TilesetHouseMeta::
|
||||||
INCBIN "data/tilesets/house_metatiles.bin"
|
INCBIN "data/tilesets/house_metatiles.bin"
|
||||||
|
|
||||||
TilesetHouseColl:
|
TilesetHouseColl::
|
||||||
INCLUDE "data/tilesets/house_collision.asm"
|
INCLUDE "data/tilesets/house_collision.asm"
|
||||||
|
|
||||||
TilesetLighthouseGFX:
|
TilesetLighthouseGFX::
|
||||||
INCBIN "gfx/tilesets/lighthouse.2bpp.lz"
|
INCBIN "gfx/tilesets/lighthouse.2bpp.lz"
|
||||||
|
|
||||||
TilesetLighthouseMeta:
|
TilesetLighthouseMeta::
|
||||||
INCBIN "data/tilesets/lighthouse_metatiles.bin"
|
INCBIN "data/tilesets/lighthouse_metatiles.bin"
|
||||||
|
|
||||||
TilesetLighthouseColl:
|
TilesetLighthouseColl::
|
||||||
INCLUDE "data/tilesets/lighthouse_collision.asm"
|
INCLUDE "data/tilesets/lighthouse_collision.asm"
|
||||||
|
|
||||||
TilesetForestColl:
|
TilesetForestColl::
|
||||||
INCLUDE "data/tilesets/forest_collision.asm"
|
INCLUDE "data/tilesets/forest_collision.asm"
|
||||||
|
|
||||||
TilesetFacilityGFX:
|
TilesetFacilityGFX::
|
||||||
INCBIN "gfx/tilesets/facility.2bpp.lz"
|
INCBIN "gfx/tilesets/facility.2bpp.lz"
|
||||||
|
|
||||||
TilesetFacilityMeta:
|
TilesetFacilityMeta::
|
||||||
INCBIN "data/tilesets/facility_metatiles.bin"
|
INCBIN "data/tilesets/facility_metatiles.bin"
|
||||||
|
|
||||||
TilesetFacilityColl:
|
TilesetFacilityColl::
|
||||||
INCLUDE "data/tilesets/facility_collision.asm"
|
INCLUDE "data/tilesets/facility_collision.asm"
|
||||||
|
|
||||||
TilesetBattleTowerOutsideMeta:
|
TilesetBattleTowerOutsideMeta::
|
||||||
INCBIN "data/tilesets/battle_tower_outside_metatiles.bin"
|
INCBIN "data/tilesets/battle_tower_outside_metatiles.bin"
|
||||||
|
|
||||||
TilesetBattleTowerOutsideColl:
|
TilesetBattleTowerOutsideColl::
|
||||||
INCLUDE "data/tilesets/battle_tower_outside_collision.asm"
|
INCLUDE "data/tilesets/battle_tower_outside_collision.asm"
|
||||||
|
|
||||||
TilesetBetaWordRoomMeta:
|
TilesetBetaWordRoomMeta::
|
||||||
INCBIN "data/tilesets/beta_word_room_metatiles.bin"
|
INCBIN "data/tilesets/beta_word_room_metatiles.bin"
|
||||||
|
|
||||||
TilesetBetaWordRoomColl:
|
TilesetBetaWordRoomColl::
|
||||||
TilesetHoOhWordRoomColl:
|
TilesetHoOhWordRoomColl::
|
||||||
TilesetKabutoWordRoomColl:
|
TilesetKabutoWordRoomColl::
|
||||||
TilesetOmanyteWordRoomColl:
|
TilesetOmanyteWordRoomColl::
|
||||||
TilesetAerodactylWordRoomColl:
|
TilesetAerodactylWordRoomColl::
|
||||||
INCLUDE "data/tilesets/beta_word_room_collision.asm"
|
INCLUDE "data/tilesets/beta_word_room_collision.asm"
|
||||||
|
|
||||||
|
|
||||||
SECTION "Tileset Data 7", ROMX
|
SECTION "Tileset Data 7", ROMX
|
||||||
|
|
||||||
TilesetRuinsOfAlphGFX:
|
TilesetRuinsOfAlphGFX::
|
||||||
TilesetBetaWordRoomGFX:
|
TilesetBetaWordRoomGFX::
|
||||||
TilesetHoOhWordRoomGFX:
|
TilesetHoOhWordRoomGFX::
|
||||||
TilesetKabutoWordRoomGFX:
|
TilesetKabutoWordRoomGFX::
|
||||||
TilesetOmanyteWordRoomGFX:
|
TilesetOmanyteWordRoomGFX::
|
||||||
TilesetAerodactylWordRoomGFX:
|
TilesetAerodactylWordRoomGFX::
|
||||||
INCBIN "gfx/tilesets/ruins_of_alph.2bpp.lz"
|
INCBIN "gfx/tilesets/ruins_of_alph.2bpp.lz"
|
||||||
|
|
||||||
TilesetRuinsOfAlphMeta:
|
TilesetRuinsOfAlphMeta::
|
||||||
INCBIN "data/tilesets/ruins_of_alph_metatiles.bin"
|
INCBIN "data/tilesets/ruins_of_alph_metatiles.bin"
|
||||||
|
|
||||||
TilesetRuinsOfAlphColl:
|
TilesetRuinsOfAlphColl::
|
||||||
INCLUDE "data/tilesets/ruins_of_alph_collision.asm"
|
INCLUDE "data/tilesets/ruins_of_alph_collision.asm"
|
||||||
|
|
||||||
|
|
||||||
SECTION "Tileset Data 8", ROMX
|
SECTION "Tileset Data 8", ROMX
|
||||||
|
|
||||||
TilesetHoOhWordRoomMeta:
|
TilesetHoOhWordRoomMeta::
|
||||||
INCBIN "data/tilesets/ho_oh_word_room_metatiles.bin"
|
INCBIN "data/tilesets/ho_oh_word_room_metatiles.bin"
|
||||||
|
|
||||||
TilesetKabutoWordRoomMeta:
|
TilesetKabutoWordRoomMeta::
|
||||||
INCBIN "data/tilesets/kabuto_word_room_metatiles.bin"
|
INCBIN "data/tilesets/kabuto_word_room_metatiles.bin"
|
||||||
|
|
||||||
TilesetOmanyteWordRoomMeta:
|
TilesetOmanyteWordRoomMeta::
|
||||||
INCBIN "data/tilesets/omanyte_word_room_metatiles.bin"
|
INCBIN "data/tilesets/omanyte_word_room_metatiles.bin"
|
||||||
|
|
||||||
TilesetAerodactylWordRoomMeta:
|
TilesetAerodactylWordRoomMeta::
|
||||||
INCBIN "data/tilesets/aerodactyl_word_room_metatiles.bin"
|
INCBIN "data/tilesets/aerodactyl_word_room_metatiles.bin"
|
||||||
|
|||||||
2
home.asm
2
home.asm
@@ -5,8 +5,10 @@ SECTION "NULL", ROM0
|
|||||||
|
|
||||||
NULL::
|
NULL::
|
||||||
|
|
||||||
|
|
||||||
INCLUDE "home/rst.asm"
|
INCLUDE "home/rst.asm"
|
||||||
|
|
||||||
|
|
||||||
INCLUDE "home/interrupts.asm"
|
INCLUDE "home/interrupts.asm"
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ FarCall_hl::
|
|||||||
push af
|
push af
|
||||||
ldh a, [hBuffer]
|
ldh a, [hBuffer]
|
||||||
rst Bankswitch
|
rst Bankswitch
|
||||||
call FarJump_hl
|
call FarCall_JumpToHL
|
||||||
|
|
||||||
ReturnFarCall::
|
ReturnFarCall::
|
||||||
; We want to retain the contents of f.
|
; We want to retain the contents of f.
|
||||||
@@ -45,5 +45,5 @@ ReturnFarCall::
|
|||||||
ld c, a
|
ld c, a
|
||||||
ret
|
ret
|
||||||
|
|
||||||
FarJump_hl::
|
FarCall_JumpToHL::
|
||||||
jp hl
|
jp hl
|
||||||
|
|||||||
@@ -26,12 +26,10 @@ SECTION "rst28", ROM0 ; rst JumpTable
|
|||||||
add hl, de
|
add hl, de
|
||||||
ld a, [hli]
|
ld a, [hli]
|
||||||
ld h, [hl]
|
ld h, [hl]
|
||||||
|
; SECTION "rst30", ROM0
|
||||||
ld l, a
|
ld l, a
|
||||||
pop de
|
pop de
|
||||||
jp hl
|
jp hl
|
||||||
|
|
||||||
; SECTION "rst30", ROM0
|
|
||||||
; rst30 is midst rst28
|
|
||||||
|
|
||||||
SECTION "rst38", ROM0
|
SECTION "rst38", ROM0
|
||||||
rst $38
|
rst $38
|
||||||
|
|||||||
2
hram.asm
2
hram.asm
@@ -4,7 +4,7 @@ hTransferVirtualOAM:: ds 10 ; ff80
|
|||||||
|
|
||||||
hROMBankBackup:: db ; ff8a
|
hROMBankBackup:: db ; ff8a
|
||||||
hBuffer:: db ; ff8b
|
hBuffer:: db ; ff8b
|
||||||
hFF8C:: db ; ff8c
|
hSRAMBank:: db ; ff8c
|
||||||
|
|
||||||
hRTCDayHi:: db ; ff8d
|
hRTCDayHi:: db ; ff8d
|
||||||
hRTCDayLo:: db ; ff8e
|
hRTCDayLo:: db ; ff8e
|
||||||
|
|||||||
20
main.asm
20
main.asm
@@ -87,7 +87,6 @@ INCLUDE "engine/events/daycare.asm"
|
|||||||
INCLUDE "engine/events/print_unown.asm"
|
INCLUDE "engine/events/print_unown.asm"
|
||||||
INCLUDE "engine/events/print_photo.asm"
|
INCLUDE "engine/events/print_photo.asm"
|
||||||
INCLUDE "engine/pokemon/breeding.asm"
|
INCLUDE "engine/pokemon/breeding.asm"
|
||||||
INCLUDE "gfx/tilesets.asm"
|
|
||||||
|
|
||||||
|
|
||||||
SECTION "Roofs", ROMX
|
SECTION "Roofs", ROMX
|
||||||
@@ -518,6 +517,8 @@ INCLUDE "engine/events/npc_trade.asm"
|
|||||||
INCLUDE "engine/events/mom_phone.asm"
|
INCLUDE "engine/events/mom_phone.asm"
|
||||||
|
|
||||||
|
|
||||||
|
SECTION "mobile40", ROMX
|
||||||
|
|
||||||
INCLUDE "mobile/mobile_40.asm"
|
INCLUDE "mobile/mobile_40.asm"
|
||||||
|
|
||||||
|
|
||||||
@@ -532,7 +533,7 @@ INCLUDE "mobile/mobile_41.asm"
|
|||||||
INCLUDE "engine/gfx/load_overworld_font.asm"
|
INCLUDE "engine/gfx/load_overworld_font.asm"
|
||||||
|
|
||||||
|
|
||||||
SECTION "Mobile 42", ROMX
|
SECTION "mobile42", ROMX
|
||||||
|
|
||||||
INCLUDE "mobile/mobile_42.asm"
|
INCLUDE "mobile/mobile_42.asm"
|
||||||
|
|
||||||
@@ -549,8 +550,15 @@ INCLUDE "engine/movie/unused_title.asm"
|
|||||||
INCLUDE "engine/movie/title.asm"
|
INCLUDE "engine/movie/title.asm"
|
||||||
|
|
||||||
|
|
||||||
INCLUDE "mobile/mobile_45.asm"
|
SECTION "mobile45", ROMX
|
||||||
|
|
||||||
|
INCLUDE "mobile/mobile_45.asm"
|
||||||
|
INCLUDE "mobile/mobile_45_sprite_engine.asm"
|
||||||
|
INCLUDE "mobile/mobile_45_2.asm"
|
||||||
|
INCLUDE "mobile/mobile_45_stadium.asm"
|
||||||
|
|
||||||
|
|
||||||
|
SECTION "mobile46", ROMX
|
||||||
|
|
||||||
INCLUDE "mobile/mobile_46.asm"
|
INCLUDE "mobile/mobile_46.asm"
|
||||||
|
|
||||||
@@ -566,7 +574,7 @@ INCLUDE "mobile/mobile_5b.asm"
|
|||||||
INCLUDE "engine/link/link_trade.asm"
|
INCLUDE "engine/link/link_trade.asm"
|
||||||
|
|
||||||
|
|
||||||
SECTION "Mobile 5C", ROMX
|
SECTION "mobile5C", ROMX
|
||||||
|
|
||||||
INCLUDE "mobile/mobile_5c.asm"
|
INCLUDE "mobile/mobile_5c.asm"
|
||||||
|
|
||||||
@@ -595,12 +603,12 @@ SECTION "UpdateBattleHUDs", ROMX
|
|||||||
INCLUDE "engine/battle/update_battle_huds.asm"
|
INCLUDE "engine/battle/update_battle_huds.asm"
|
||||||
|
|
||||||
|
|
||||||
SECTION "Mobile 5E", ROMX
|
SECTION "mobile5E", ROMX
|
||||||
|
|
||||||
INCLUDE "mobile/mobile_5e.asm"
|
INCLUDE "mobile/mobile_5e.asm"
|
||||||
|
|
||||||
|
|
||||||
SECTION "Mobile 5F", ROMX
|
SECTION "mobile5F", ROMX
|
||||||
|
|
||||||
INCLUDE "mobile/mobile_5f.asm"
|
INCLUDE "mobile/mobile_5f.asm"
|
||||||
|
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ MobileCheckOwnMonAnywhere:
|
|||||||
ld bc, PARTYMON_STRUCT_LENGTH
|
ld bc, PARTYMON_STRUCT_LENGTH
|
||||||
add hl, bc
|
add hl, bc
|
||||||
pop bc
|
pop bc
|
||||||
call .CopyName
|
call .AdvanceOTName
|
||||||
dec d
|
dec d
|
||||||
jr nz, .asm_4a851
|
jr nz, .asm_4a851
|
||||||
ld a, BANK(sBoxCount)
|
ld a, BANK(sBoxCount)
|
||||||
@@ -39,7 +39,7 @@ MobileCheckOwnMonAnywhere:
|
|||||||
ld bc, BOXMON_STRUCT_LENGTH
|
ld bc, BOXMON_STRUCT_LENGTH
|
||||||
add hl, bc
|
add hl, bc
|
||||||
pop bc
|
pop bc
|
||||||
call .CopyName
|
call .AdvanceOTName
|
||||||
dec d
|
dec d
|
||||||
jr nz, .asm_4a873
|
jr nz, .asm_4a873
|
||||||
|
|
||||||
@@ -90,7 +90,7 @@ MobileCheckOwnMonAnywhere:
|
|||||||
ld bc, BOXMON_STRUCT_LENGTH
|
ld bc, BOXMON_STRUCT_LENGTH
|
||||||
add hl, bc
|
add hl, bc
|
||||||
pop bc
|
pop bc
|
||||||
call .CopyName
|
call .AdvanceOTName
|
||||||
dec d
|
dec d
|
||||||
jr nz, .asm_4a8ba
|
jr nz, .asm_4a8ba
|
||||||
pop bc
|
pop bc
|
||||||
@@ -146,7 +146,7 @@ MobileCheckOwnMonAnywhere:
|
|||||||
dba sBox13
|
dba sBox13
|
||||||
dba sBox14
|
dba sBox14
|
||||||
|
|
||||||
.CopyName:
|
.AdvanceOTName:
|
||||||
push hl
|
push hl
|
||||||
ld hl, NAME_LENGTH
|
ld hl, NAME_LENGTH
|
||||||
add hl, bc
|
add hl, bc
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
SECTION "mobile_40", ROMX
|
|
||||||
|
|
||||||
Function100000:
|
Function100000:
|
||||||
; d: 1 or 2
|
; d: 1 or 2
|
||||||
; e: bank
|
; e: bank
|
||||||
|
|||||||
2325
mobile/mobile_45.asm
2325
mobile/mobile_45.asm
File diff suppressed because it is too large
Load Diff
1403
mobile/mobile_45_2.asm
Normal file
1403
mobile/mobile_45_2.asm
Normal file
File diff suppressed because it is too large
Load Diff
823
mobile/mobile_45_stadium.asm
Normal file
823
mobile/mobile_45_stadium.asm
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1,5 +1,3 @@
|
|||||||
SECTION "Mobile 46", ROMX
|
|
||||||
|
|
||||||
Function118000:
|
Function118000:
|
||||||
ld a, $1
|
ld a, $1
|
||||||
ld [wcd38], a
|
ld [wcd38], a
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user