mirror of
https://github.com/bryanthaboi/gen1recomp
synced 2026-09-26 13:33:27 -04:00
a9ce423bdc
CLOSES #1275, CLOSES #1295, CLOSES #1384, CLOSES #1628, CLOSES #1677, CLOSES #1682, CLOSES #1691, CLOSES #1813, CLOSES #1822, CLOSES #1861, CLOSES #1867, CLOSES #1868, CLOSES #1869, CLOSES #1870, CLOSES #1871, CLOSES #1872, CLOSES #1874, CLOSES #1876, CLOSES #1878, CLOSES #1880, CLOSES #1881, CLOSES #1882, CLOSES #1884, CLOSES #1885, CLOSES #1886, CLOSES #1887, CLOSES #1888, CLOSES #1889, CLOSES #1890, CLOSES #1891, CLOSES #1892, CLOSES #1893, CLOSES #1894, CLOSES #1895, CLOSES #1896, CLOSES #1899, CLOSES #1900, CLOSES #1901
31 lines
1002 B
Lua
31 lines
1002 B
Lua
-- home/overworld.asm:2016
|
|
return function(data, mapId)
|
|
local map = data and data.maps and data.maps[mapId]
|
|
if not map then return data end
|
|
if not map.sram then
|
|
map.sram = {
|
|
header = { 0, map.height or 4, map.width or 5,
|
|
0x00, 0xC0, 0x00, 0xC0, 0x00, 0xC0, 0x00 },
|
|
connections = {},
|
|
objects = { 0x0E, 0, 0, 0 },
|
|
}
|
|
end
|
|
data.tilesets = data.tilesets or {}
|
|
if map.tileset then
|
|
local ts = data.tilesets[map.tileset]
|
|
if not ts then
|
|
ts = {}
|
|
data.tilesets[map.tileset] = ts
|
|
end
|
|
ts.header = ts.header or { 0x0C, 0x11, 0x40, 0x22, 0x40,
|
|
0x33, 0x40, 0x44, 0x55, 0x66, 0x77, 0x02 }
|
|
end
|
|
data.audio = data.audio or {}
|
|
data.audio.mapSongs = data.audio.mapSongs or {}
|
|
data.audio.songs = data.audio.songs or {}
|
|
data.audio.mapSongs[mapId] = data.audio.mapSongs[mapId] or "Music_Fixture"
|
|
data.audio.songs.Music_Fixture = data.audio.songs.Music_Fixture
|
|
or { address = 0x4000 + 3 * 0xBD, bank = 2 }
|
|
return data
|
|
end
|