mirror of
https://github.com/thornAvery/jep-hack.git
synced 2025-12-30 14:19:34 +13:00
Water Sport doesnt seem to work correctly?
This commit is contained in:
parent
161bc9374c
commit
2207e15bc7
|
|
@ -694,6 +694,7 @@ ENDM
|
||||||
newgroup SUNGLOW_CITY ; 40
|
newgroup SUNGLOW_CITY ; 40
|
||||||
map_const ROUTE_57, 10, 27 ; 1
|
map_const ROUTE_57, 10, 27 ; 1
|
||||||
map_const SUNGLOW_CITY, 10, 9 ; 2
|
map_const SUNGLOW_CITY, 10, 9 ; 2
|
||||||
|
map_const SUNGLOW_WELL, 10, 9 ; 2
|
||||||
endgroup
|
endgroup
|
||||||
|
|
||||||
newgroup BLUE_FOREST ; 41
|
newgroup BLUE_FOREST ; 41
|
||||||
|
|
|
||||||
|
|
@ -921,6 +921,8 @@ ENDM
|
||||||
map_attributes SunglowCity, SUNGLOW_CITY, $03, SOUTH ; this is missing a route connection
|
map_attributes SunglowCity, SUNGLOW_CITY, $03, SOUTH ; this is missing a route connection
|
||||||
connection south, Route57, ROUTE_57, 0
|
connection south, Route57, ROUTE_57, 0
|
||||||
|
|
||||||
|
map_attributes SunglowWell, SUNGLOW_WELL, $03, SOUTH ; this is missing a route connection
|
||||||
|
|
||||||
map_attributes BlueForest, BLUE_FOREST, $00, 0 ; this is on its own for now. add connections later.
|
map_attributes BlueForest, BLUE_FOREST, $00, 0 ; this is on its own for now. add connections later.
|
||||||
|
|
||||||
map_attributes AventurineCity, AVENTURINE_CITY, $05, 0 ; this is on its own for now. add connections later.
|
map_attributes AventurineCity, AVENTURINE_CITY, $05, 0 ; this is on its own for now. add connections later.
|
||||||
|
|
|
||||||
|
|
@ -1342,5 +1342,8 @@ Route57_Blocks:
|
||||||
SunglowCity_Blocks:
|
SunglowCity_Blocks:
|
||||||
INCBIN "maps/SunglowCity.ablk"
|
INCBIN "maps/SunglowCity.ablk"
|
||||||
|
|
||||||
|
SunglowWell_Blocks:
|
||||||
|
INCBIN "maps/SunglowWell.ablk"
|
||||||
|
|
||||||
AventurineCity_Blocks:
|
AventurineCity_Blocks:
|
||||||
INCBIN "maps/AventurineCity.ablk"
|
INCBIN "maps/AventurineCity.ablk"
|
||||||
|
|
|
||||||
|
|
@ -763,6 +763,7 @@ MapGroup_SunglowCity:
|
||||||
table_width MAP_LENGTH, MapGroup_SunglowCity
|
table_width MAP_LENGTH, MapGroup_SunglowCity
|
||||||
map Route57, TILESET_NIHON_BIRDON, ROUTE, LANDMARK_ROUTE_57, MUSIC_MOBILE_ADAPTER_MENU, FALSE, PALETTE_AUTO, FISHGROUP_SHORE
|
map Route57, TILESET_NIHON_BIRDON, ROUTE, LANDMARK_ROUTE_57, MUSIC_MOBILE_ADAPTER_MENU, FALSE, PALETTE_AUTO, FISHGROUP_SHORE
|
||||||
map SunglowCity, TILESET_NIHON_BIRDON, TOWN, LANDMARK_SUNGLOW_CITY, MUSIC_MOBILE_ADAPTER_MENU, FALSE, PALETTE_AUTO, FISHGROUP_SHORE
|
map SunglowCity, TILESET_NIHON_BIRDON, TOWN, LANDMARK_SUNGLOW_CITY, MUSIC_MOBILE_ADAPTER_MENU, FALSE, PALETTE_AUTO, FISHGROUP_SHORE
|
||||||
|
map SunglowWell, TILESET_UNDERWATER, ROUTE, LANDMARK_SUNGLOW_CITY, MUSIC_MOBILE_ADAPTER, FALSE, PALETTE_AUTO, FISHGROUP_SHORE
|
||||||
assert_table_length NUM_SUNGLOW_CITY_MAPS
|
assert_table_length NUM_SUNGLOW_CITY_MAPS
|
||||||
|
|
||||||
MapGroup_BlueForest:
|
MapGroup_BlueForest:
|
||||||
|
|
|
||||||
|
|
@ -650,3 +650,4 @@ INCLUDE "maps/RuddyTown.asm"
|
||||||
INCLUDE "maps/Route57.asm"
|
INCLUDE "maps/Route57.asm"
|
||||||
INCLUDE "maps/SunglowCity.asm"
|
INCLUDE "maps/SunglowCity.asm"
|
||||||
INCLUDE "maps/AventurineCity.asm"
|
INCLUDE "maps/AventurineCity.asm"
|
||||||
|
INCLUDE "maps/SunglowWell.asm"
|
||||||
Binary file not shown.
|
|
@ -34,11 +34,11 @@
|
||||||
tilecoll WALL, WALL, DOOR, WALL ; 21
|
tilecoll WALL, WALL, DOOR, WALL ; 21
|
||||||
tilecoll WALL, WALL, WALL, WALL ; 22
|
tilecoll WALL, WALL, WALL, WALL ; 22
|
||||||
tilecoll WALL, WALL, WALL, WALL ; 23
|
tilecoll WALL, WALL, WALL, WALL ; 23
|
||||||
tilecoll WALL, WALL, WALL, WALL ; 24
|
tilecoll WALL, WALL, WALL, DIVE_DOWN ; 24
|
||||||
tilecoll WALL, WALL, WALL, WALL ; 25
|
tilecoll WALL, WALL, WALL, WALL ; 25
|
||||||
tilecoll WALL, DOOR, FLOOR, FLOOR ; 26
|
tilecoll WALL, DOOR, FLOOR, FLOOR ; 26
|
||||||
tilecoll WALL, WALL, FLOOR, FLOOR ; 27
|
tilecoll WALL, WALL, FLOOR, FLOOR ; 27
|
||||||
tilecoll WALL, WALL, FLOOR, FLOOR ; 28
|
tilecoll WALL, FLOOR, FLOOR, FLOOR ; 28
|
||||||
tilecoll WALL, WALL, FLOOR, FLOOR ; 29
|
tilecoll WALL, WALL, FLOOR, FLOOR ; 29
|
||||||
tilecoll WALL, WALL, WALL, WALL ; 2a
|
tilecoll WALL, WALL, WALL, WALL ; 2a
|
||||||
tilecoll WALL, WALL, WALL, WALL ; 2b
|
tilecoll WALL, WALL, WALL, WALL ; 2b
|
||||||
|
|
|
||||||
Binary file not shown.
Binary file not shown.
|
|
@ -0,0 +1,32 @@
|
||||||
|
tilecoll WALL, WALL, WALL, WALL ; 00
|
||||||
|
tilecoll FLOOR, FLOOR, FLOOR, FLOOR ; 01
|
||||||
|
tilecoll WALL, WALL, WALL, WALL ; 02
|
||||||
|
tilecoll WALL, WALL, WALL, WALL ; 03
|
||||||
|
tilecoll DIVE_UP, DIVE_UP, DIVE_UP, DIVE_UP ; 04
|
||||||
|
tilecoll WALL, WALL, WALL, WALL ; 05
|
||||||
|
tilecoll WALL, WALL, WALL, WALL ; 06
|
||||||
|
tilecoll WALL, WALL, WALL, WALL ; 07
|
||||||
|
tilecoll FLOOR, FLOOR, FLOOR, DIVE_UP ; 08
|
||||||
|
tilecoll WALL, WALL, WALL, WALL ; 09
|
||||||
|
tilecoll WALL, WALL, WALL, WALL ; 0a
|
||||||
|
tilecoll WALL, WALL, WALL, WALL ; 0b
|
||||||
|
tilecoll FLOOR, FLOOR, FLOOR, FLOOR ; 0c
|
||||||
|
tilecoll WALL, WALL, WALL, WALL ; 0d
|
||||||
|
tilecoll WALL, WALL, WALL, WALL ; 0e
|
||||||
|
tilecoll WALL, WALL, WALL, WALL ; 0f
|
||||||
|
tilecoll FLOOR, FLOOR, FLOOR, FLOOR ; 10
|
||||||
|
tilecoll FLOOR, FLOOR, FLOOR, FLOOR ; 11
|
||||||
|
tilecoll FLOOR, FLOOR, FLOOR, FLOOR ; 12
|
||||||
|
tilecoll TALL_GRASS, TALL_GRASS, TALL_GRASS, TALL_GRASS ; 13
|
||||||
|
tilecoll FLOOR, FLOOR, FLOOR, FLOOR ; 14
|
||||||
|
tilecoll FLOOR, FLOOR, FLOOR, FLOOR ; 15
|
||||||
|
tilecoll FLOOR, FLOOR, FLOOR, FLOOR ; 16
|
||||||
|
tilecoll FLOOR, FLOOR, FLOOR, FLOOR ; 17
|
||||||
|
tilecoll FLOOR, FLOOR, FLOOR, FLOOR ; 18
|
||||||
|
tilecoll FLOOR, FLOOR, FLOOR, FLOOR ; 19
|
||||||
|
tilecoll FLOOR, FLOOR, FLOOR, FLOOR ; 1a
|
||||||
|
tilecoll WALL, WALL, WALL, WALL ; 1b
|
||||||
|
tilecoll WALL, WALL, WALL, WALL ; 1c
|
||||||
|
tilecoll WALL, WALL, WALL, WALL ; 1d
|
||||||
|
tilecoll WALL, WALL, WALL, WALL ; 1e
|
||||||
|
tilecoll WALL, WALL, WALL, WALL ; 1f
|
||||||
Binary file not shown.
|
|
@ -78,7 +78,7 @@ TilesetForestAnim:
|
||||||
|
|
||||||
TilesetJohtoAnim:
|
TilesetJohtoAnim:
|
||||||
dw vTiles2 tile $14, AnimateWaterTile
|
dw vTiles2 tile $14, AnimateWaterTile
|
||||||
dw NULL, WaitTileAnimation
|
dw vTiles2 tile $5b, AnimateDeepWaterTile
|
||||||
dw NULL, WaitTileAnimation
|
dw NULL, WaitTileAnimation
|
||||||
dw NULL, AnimateWaterPalette
|
dw NULL, AnimateWaterPalette
|
||||||
dw NULL, WaitTileAnimation
|
dw NULL, WaitTileAnimation
|
||||||
|
|
@ -237,7 +237,6 @@ TilesetTowerAnim:
|
||||||
dw NULL, DoneTileAnimation
|
dw NULL, DoneTileAnimation
|
||||||
|
|
||||||
TilesetNihon1Anim:
|
TilesetNihon1Anim:
|
||||||
TilesetNihonBirdonAnim:
|
|
||||||
TilesetNihonFontAnim:
|
TilesetNihonFontAnim:
|
||||||
TilesetNihonHighTechAnim:
|
TilesetNihonHighTechAnim:
|
||||||
TilesetNihonOldAnim:
|
TilesetNihonOldAnim:
|
||||||
|
|
@ -256,6 +255,19 @@ TilesetNihonWhiteCityAnim:
|
||||||
dw NULL, StandingTileFrame8
|
dw NULL, StandingTileFrame8
|
||||||
dw NULL, DoneTileAnimation
|
dw NULL, DoneTileAnimation
|
||||||
|
|
||||||
|
TilesetNihonBirdonAnim:
|
||||||
|
dw vTiles2 tile $14, AnimateWaterTile
|
||||||
|
dw NULL, WaitTileAnimation
|
||||||
|
dw vTiles2 tile $60, AnimateDeepWaterTile
|
||||||
|
dw NULL, WaitTileAnimation
|
||||||
|
dw NULL, AnimateWaterPalette
|
||||||
|
dw NULL, WaitTileAnimation
|
||||||
|
dw NULL, AnimateFlowerTile
|
||||||
|
dw NULL, WaitTileAnimation
|
||||||
|
dw NULL, WaitTileAnimation
|
||||||
|
dw NULL, StandingTileFrame8
|
||||||
|
dw NULL, DoneTileAnimation
|
||||||
|
|
||||||
TilesetForestKantoAnim:
|
TilesetForestKantoAnim:
|
||||||
dw NULL, WaitTileAnimation
|
dw NULL, WaitTileAnimation
|
||||||
dw NULL, WaitTileAnimation
|
dw NULL, WaitTileAnimation
|
||||||
|
|
|
||||||
|
|
@ -78,6 +78,11 @@ LoadSpecialMapPalette:
|
||||||
scf
|
scf
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
.underwater
|
||||||
|
call LoadUnderwaterPalette
|
||||||
|
scf
|
||||||
|
ret
|
||||||
|
|
||||||
.do_nothing
|
.do_nothing
|
||||||
and a
|
and a
|
||||||
ret
|
ret
|
||||||
|
|
@ -229,6 +234,38 @@ LoadDesertPalette:
|
||||||
|
|
||||||
INCLUDE "gfx/tilesets/desert.pal"
|
INCLUDE "gfx/tilesets/desert.pal"
|
||||||
|
|
||||||
|
LoadUnderwaterPalette:
|
||||||
|
ld a, [wTimeOfDay]
|
||||||
|
and $7
|
||||||
|
cp NITE_F
|
||||||
|
jr z, .nite
|
||||||
|
cp DAY_F
|
||||||
|
jr z, .day
|
||||||
|
scf
|
||||||
|
;morn
|
||||||
|
ld a, BANK(wBGPals1)
|
||||||
|
ld de, wBGPals1
|
||||||
|
ld hl, UnderwaterMornPalette
|
||||||
|
ld bc, 8 palettes
|
||||||
|
jp FarCopyWRAM
|
||||||
|
ret
|
||||||
|
.day
|
||||||
|
ld a, BANK(wBGPals1)
|
||||||
|
ld de, wBGPals1
|
||||||
|
ld hl, UnderwaterDayPalette
|
||||||
|
ld bc, 8 palettes
|
||||||
|
jp FarCopyWRAM
|
||||||
|
ret
|
||||||
|
.nite
|
||||||
|
ld a, BANK(wBGPals1)
|
||||||
|
ld de, wBGPals1
|
||||||
|
ld hl, UnderwaterNitePalette
|
||||||
|
ld bc, 8 palettes
|
||||||
|
jp FarCopyWRAM
|
||||||
|
ret
|
||||||
|
|
||||||
|
INCLUDE "gfx/tilesets/underwater.pal"
|
||||||
|
|
||||||
|
|
||||||
LoadSpecialMapObjectPalette:
|
LoadSpecialMapObjectPalette:
|
||||||
ld a, [wMapTileset]
|
ld a, [wMapTileset]
|
||||||
|
|
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 3.4 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 2.4 KiB |
|
|
@ -8,12 +8,12 @@ DebugRoom_MapScripts:
|
||||||
|
|
||||||
DebugPokemon1Script:
|
DebugPokemon1Script:
|
||||||
opentext
|
opentext
|
||||||
getmonname STRING_BUFFER_3, MACHAMP
|
getmonname STRING_BUFFER_3, AZUMARILL
|
||||||
writetext ReceivedDebugPokemonText
|
writetext ReceivedDebugPokemonText
|
||||||
playsound SFX_CAUGHT_MON
|
playsound SFX_CAUGHT_MON
|
||||||
waitsfx
|
waitsfx
|
||||||
promptbutton
|
promptbutton
|
||||||
givepoke MACHAMP, 65, TM_ROCK_SMASH
|
givepoke AZUMARILL, 4, HM_WATER_SPORT
|
||||||
closetext
|
closetext
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,11 +5,16 @@ SunglowCity_MapScripts:
|
||||||
|
|
||||||
def_callbacks
|
def_callbacks
|
||||||
callback MAPCALLBACK_NEWMAP, .Flypoint
|
callback MAPCALLBACK_NEWMAP, .Flypoint
|
||||||
|
callback MAPCALLBACK_NEWMAP, .DiveMap
|
||||||
|
|
||||||
.Flypoint:
|
.Flypoint:
|
||||||
setflag ENGINE_FLYPOINT_SUNGLOW_CITY
|
setflag ENGINE_FLYPOINT_SUNGLOW_CITY
|
||||||
return
|
return
|
||||||
|
|
||||||
|
.DiveMap:
|
||||||
|
divemap SUNGLOW_WELL
|
||||||
|
return
|
||||||
|
|
||||||
SunglowCity_MapEvents:
|
SunglowCity_MapEvents:
|
||||||
db 0, 0 ; filler
|
db 0, 0 ; filler
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue