diff --git a/common/src/main/kotlin/de/fiereu/openmmo/common/enums/Direction.kt b/common/src/main/kotlin/de/fiereu/openmmo/common/enums/Direction.kt index f9cec0a..c758364 100644 --- a/common/src/main/kotlin/de/fiereu/openmmo/common/enums/Direction.kt +++ b/common/src/main/kotlin/de/fiereu/openmmo/common/enums/Direction.kt @@ -4,5 +4,13 @@ enum class Direction { DOWN, UP, LEFT, - RIGHT + RIGHT; + + fun opposite(): Direction = + when (this) { + DOWN -> UP + UP -> DOWN + LEFT -> RIGHT + RIGHT -> LEFT + } } diff --git a/generate_maps.js b/generate_maps.js index 14b8925..018c7e0 100644 --- a/generate_maps.js +++ b/generate_maps.js @@ -41,77 +41,55 @@ function resolveMap(name) { return mapToAddress[name] || mapNameLookup[normalizeMapName(name)]; } -// ---- Known palette mappings from capture ---- -// tileset_pair_key (primary_secondary) -> [paletteIdx1, paletteIdx2] -const knownPalettes = { - 'gTileset_Building_gTileset_BrendansMaysHouse': [116, 142], - 'gTileset_Building_gTileset_Lab': [116, 143], - 'gTileset_Building_gTileset_ContestHall': [106, 123], - 'gTileset_Building_gTileset_GenericBuilding': [98, 128], - 'gTileset_Building_gTileset_PlayersRoom': [100, 134], - 'gTileset_Building_gTileset_PokemonCenter': [87, 121], - 'gTileset_Building_gTileset_PokemonCenterHoenn': [87, 121], - 'gTileset_Building_gTileset_PokemonCenterContest': [87, 121], - 'gTileset_Building_gTileset_MauvilleGym': [84, 120], - 'gTileset_Building_gTileset_DewfordGym': [90, 124], - 'gTileset_Building_gTileset_RustboroGym': [82, 118], - 'gTileset_Building_gTileset_LilycoveContestLobby': [104, 136], - 'gTileset_Building_gTileset_MossdeepGym': [108, 138], - 'gTileset_Building_gTileset_SootopolisGym': [110, 140], - 'gTileset_Building_gTileset_SlateportGym': [86, 122], - 'gTileset_Building_gTileset_FortreeGym': [94, 126], - 'gTileset_Building_gTileset_LavaridgeGym': [92, 128], - 'gTileset_Building_gTileset_ShoalCaveGym': [96, 130], - 'gTileset_Building_gTileset_Cave': [82, 144], - 'gTileset_Building_gTileset_SeaCave': [82, 144], - 'gTileset_Building_gTileset_OceanicMuseum': [102, 135], - 'gTileset_Building_gTileset_ArtisanCave': [84, 146], - 'gTileset_General_gTileset_Petalburg': [100, 101], - 'gTileset_General_gTileset_Route104': [92, 113], - 'gTileset_General_gTileset_Route110': [92, 115], - 'gTileset_General_gTileset_Route119': [94, 117], - 'gTileset_General_gTileset_Fortree': [94, 126], - 'gTileset_General_gTileset_Mauville': [84, 120], - 'gTileset_General_gTileset_Slateport': [86, 122], - 'gTileset_General_gTileset_Lilycove': [104, 136], - 'gTileset_General_gTileset_Mossdeep': [108, 138], - 'gTileset_General_gTileset_Pacifidlog': [112, 148], - 'gTileset_General_gTileset_Sootopolis': [110, 140], - 'gTileset_General_gTileset_EverGrande': [96, 130], - 'gTileset_General_gTileset_Rustboro': [82, 118], - 'gTileset_General_gTileset_Dewford': [90, 124], - 'gTileset_General_gTileset_Lavaridge': [92, 128], - 'gTileset_General_gTileset_Fallarbor': [88, 126], - 'gTileset_General_gTileset_Verdanturf': [96, 132], - 'gTileset_General_gTileset_PacifidlogWait': [112, 148], - 'gTileset_General_gTileset_BattleFrontier': [114, 150], - 'gTileset_General_gTileset_Oldale': [98, 128], - 'gTileset_Cave_gTileset_Cave': [82, 144], - 'gTileset_Cave_gTileset_SeaCave': [82, 144], - 'gTileset_Cave_gTileset_IcyCave': [80, 140], - 'gTileset_Cave_gTileset_Desert': [88, 146], - 'gTileset_Cave_gTileset_Underwater': [86, 148], - 'gTileset_Cave_gTileset_GraniteCave': [84, 146], - 'gTileset_Cave_gTileset_MagmaHideout': [85, 147], - 'gTileset_Cave_gTileset_AquaHideout': [86, 148], -}; - -// Map type -> default palette ranges -function guessPalette(primaryTileset, secondaryTileset, mapType) { - const key = `${primaryTileset}_${secondaryTileset}`; - if (knownPalettes[key]) return knownPalettes[key]; - // Assign unique IDs based on tileset names (stable hash-like) - let h1 = 0, h2 = 0; - const s = key; - for (let i = 0; i < s.length; i++) { - h1 = (h1 * 31 + s.charCodeAt(i)) & 0xFFFF; - h2 = (h2 * 17 + s.charCodeAt(i)) & 0xFFFF; +// ---- Music ID lookup (from songs.h) ---- +const musicIds = {}; +(function buildMusicTable() { + const songsH = fs.readFileSync(`${POKEEMERALD}/include/constants/songs.h`, 'utf-8'); + for (const line of songsH.split('\n')) { + const m = line.match(/^#define\s+(MUS_\w+)\s+(\d+)/); + if (m) musicIds[m[1]] = parseInt(m[2], 10); } - return [80 + (h1 % 60), 80 + (h2 % 60)]; +})(); + +// ---- MAPSEC index lookup (from region_map_sections.json) ---- +const mapsecIds = {}; +(function buildMapsecTable() { + const sectionsJson = JSON.parse(fs.readFileSync(`${POKEEMERALD}/src/data/region_map/region_map_sections.json`, 'utf-8')); + const sections = sectionsJson.map_sections || []; + for (let i = 0; i < sections.length; i++) { + mapsecIds[sections[i].id] = i; + } +})(); + +// ---- Tileset palette index lookup (from headers.h order, starting at 100) ---- +const tilesetPaletteIds = {}; +(function buildTilesetPaletteTable() { + const headersH = fs.readFileSync(`${POKEEMERALD}/src/data/tilesets/headers.h`, 'utf-8'); + let index = 0; + for (const line of headersH.split('\n')) { + const m = line.match(/^const struct Tileset\s+(gTileset_\w+)\s*=/); + if (m) { + tilesetPaletteIds[m[1]] = 100 + index; + index++; + } + } +})(); + +function getPalette(primaryTileset, secondaryTileset) { + const pal1 = tilesetPaletteIds[primaryTileset]; + const pal2 = tilesetPaletteIds[secondaryTileset]; + if (pal1 !== undefined && pal2 !== undefined) return [pal1, pal2]; + // Fallback for unknown tilesets + return [80, 82]; +} + +// Map type -> default palette ranges (fallback only) +function guessPalette(primaryTileset, secondaryTileset, mapType) { + return getPalette(primaryTileset, secondaryTileset); } // ---- Direction mapping ---- -const dirMap = { south: 1, north: 2, west: 3, east: 4 }; +const dirMap = { down: 1, up: 2, left: 3, right: 4, dive: 5, emerge: 6 }; // Movement type name -> value lookup const movementTypes = { @@ -213,8 +191,14 @@ const gfxIds = {}; const facingDirection = { south: 0, north: 1, west: 2, east: 3 }; function movementToFaceDir(movementType) { - // Extract initial facing direction from movement type - if (movementType >= 7 && movementType <= 10) return movementType - 7; // FACE_UP=7→1, FACE_DOWN=8→0, FACE_LEFT=9→2, FACE_RIGHT=10→3 + // Extract initial facing direction from movement type. + // GBA facing values: DOWN=0, UP=1, LEFT=2, RIGHT=3 + if (movementType >= 7 && movementType <= 10) { + // FACE_UP=7→UP(1), FACE_DOWN=8→DOWN(0), FACE_LEFT=9→LEFT(2), FACE_RIGHT=10→RIGHT(3) + if (movementType == 7) return 1; // UP → north + if (movementType == 8) return 0; // DOWN → south + return movementType - 7; // 9→2 (west), 10→3 (east) + } if (movementType >= 64 && movementType <= 67) return movementType - 64; // WALK_IN_PLACE_DOWN=64→0, etc. if (movementType >= 68 && movementType <= 71) return movementType - 68; // JOG_IN_PLACE_DOWN=68→0, etc. if (movementType >= 72 && movementType <= 75) return movementType - 72; // RUN_IN_PLACE_DOWN=72→0, etc. @@ -255,7 +239,7 @@ const lightingMap = { }; const mapTypeMap = { MAP_TYPE_INDOOR: 'MapType.INSIDE', - MAP_TYPE_TOWN: 'MapType.CITY', + MAP_TYPE_TOWN: 'MapType.UNKNOWN_0x01', MAP_TYPE_CITY: 'MapType.CITY', MAP_TYPE_ROUTE: 'MapType.ROUTE', MAP_TYPE_UNDERGROUND: 'MapType.UNDERGROUND', @@ -265,8 +249,8 @@ const mapTypeMap = { }; const encounterMap = { MAP_TYPE_INDOOR: 'EncounterType.RANDOM', - MAP_TYPE_TOWN: 'EncounterType.GYM_STYLE', - MAP_TYPE_CITY: 'EncounterType.GYM_STYLE', + MAP_TYPE_TOWN: 'EncounterType.RANDOM', + MAP_TYPE_CITY: 'EncounterType.RANDOM', MAP_TYPE_ROUTE: 'EncounterType.RANDOM', MAP_TYPE_UNDERGROUND: 'EncounterType.RANDOM', MAP_TYPE_UNDERWATER: 'EncounterType.UNKNOWN_0x03', @@ -309,12 +293,11 @@ for (let gi = 0; gi < groupOrder.length; gi++) { // Palette const [pal1, pal2] = guessPalette(primaryTileset, secondaryTileset, mapType); - // Per-map overrides (from real server captures) - let mapUnknownShort = 405; - let mapUnknownByte = 0; - if (mapJson.id === 'MAP_LITTLEROOT_TOWN_PROFESSOR_BIRCHS_LAB') { - mapUnknownShort = 383; - } + // Music → unknownShort, MAPSEC → unknownByte + const musicStr = mapJson.music || 'MUS_NONE'; + const mapsecStr = mapJson.region_map_section || 'MAPSEC_NONE'; + const mapUnknownShort = musicIds[musicStr] !== undefined ? musicIds[musicStr] : 405; + const mapUnknownByte = mapsecIds[mapsecStr] !== undefined ? mapsecIds[mapsecStr] : 0; // Border tiles let borderTilesStr = 'listOf(Tile2D(8, 0), Tile2D(8, 0), Tile2D(8, 0), Tile2D(8, 0))'; @@ -328,12 +311,16 @@ for (let gi = 0; gi < groupOrder.length; gi++) { // Connections const connections = mapJson.connections || []; const connStrs = connections.map(c => { - const dir = dirMap[c.direction] || 2; + const dir = dirMap[c.direction]; + if (dir === undefined) { + throw new Error(`Unknown connection direction "${c.direction}" in ${mapName}`); + } const addr = resolveMap(c.map); if (!addr) return null; const bank = addr.groupIndex + 50; const mapNum = addr.mapIndex; - return `GbaConnection(direction = ${dir}, unknown = 0, targetBank = ${bank}, targetMap = ${mapNum})`; + const offset = Number.isInteger(c.offset) ? c.offset : parseInt(c.offset || 0, 10) || 0; + return `GbaConnection(direction = ${dir}, unknown = ${offset}, targetBank = ${bank}, targetMap = ${mapNum})`; }).filter(Boolean); // Warps diff --git a/server.game/src/main/kotlin/de/fiereu/openmmo/server/game/protocol/game/GameProtocolHandler.kt b/server.game/src/main/kotlin/de/fiereu/openmmo/server/game/protocol/game/GameProtocolHandler.kt index 32a137e..e590093 100644 --- a/server.game/src/main/kotlin/de/fiereu/openmmo/server/game/protocol/game/GameProtocolHandler.kt +++ b/server.game/src/main/kotlin/de/fiereu/openmmo/server/game/protocol/game/GameProtocolHandler.kt @@ -1,47 +1,37 @@ package de.fiereu.openmmo.server.game.protocol.game -import de.fiereu.openmmo.common.enums.Direction -import de.fiereu.openmmo.common.enums.PokemonContainer +import de.fiereu.openmmo.common.enums.ChatType +import de.fiereu.openmmo.common.enums.Language import de.fiereu.openmmo.protocols.Protocol -import de.fiereu.openmmo.protocols.game.packets.CharacterEntry -import de.fiereu.openmmo.protocols.game.packets.CharacterListPacket import de.fiereu.openmmo.protocols.game.packets.ChatMessagePacket import de.fiereu.openmmo.protocols.game.packets.CreateCharacterPacket import de.fiereu.openmmo.protocols.game.packets.DialogChoicePacket -import de.fiereu.openmmo.protocols.game.packets.DialogStatePacket import de.fiereu.openmmo.protocols.game.packets.EntityInteractPacket import de.fiereu.openmmo.protocols.game.packets.EntityLeavePacket -import de.fiereu.openmmo.protocols.game.packets.EntityMovePacket import de.fiereu.openmmo.protocols.game.packets.FaceDirectionPacket import de.fiereu.openmmo.protocols.game.packets.InteractiveResponsePacket import de.fiereu.openmmo.protocols.game.packets.JoinGamePacket import de.fiereu.openmmo.protocols.game.packets.KeepAlivePacket -import de.fiereu.openmmo.protocols.game.packets.LoadEntityPacket -import de.fiereu.openmmo.protocols.game.packets.MapData -import de.fiereu.openmmo.protocols.game.packets.MapTransitionAckPacket -import de.fiereu.openmmo.protocols.game.packets.MapTransitionPacket import de.fiereu.openmmo.protocols.game.packets.MovementPacket -import de.fiereu.openmmo.protocols.game.packets.NewAuthData -import de.fiereu.openmmo.protocols.game.packets.PokemonContainerPacket -import de.fiereu.openmmo.protocols.game.packets.RenderScreenPacket import de.fiereu.openmmo.protocols.game.packets.RequestCharactersPacket import de.fiereu.openmmo.protocols.game.packets.RequestPlayerPacket import de.fiereu.openmmo.protocols.game.packets.SelectCharacterPacket -import de.fiereu.openmmo.protocols.game.packets.SelectedCharacterPacket -import de.fiereu.openmmo.protocols.game.packets.codecs.SkinSet import de.fiereu.openmmo.server.config.ServerConfig -import de.fiereu.openmmo.server.game.protocol.game.ext.accept -import de.fiereu.openmmo.server.game.protocol.game.ext.buildAndRespond -import de.fiereu.openmmo.server.game.session.ScriptPage +import de.fiereu.openmmo.server.game.services.DialogService +import de.fiereu.openmmo.server.game.services.InteractionService +import de.fiereu.openmmo.server.game.services.LoginService +import de.fiereu.openmmo.server.game.services.MapLoadService +import de.fiereu.openmmo.server.game.services.MovementService +import de.fiereu.openmmo.server.game.services.MultiplayerService +import de.fiereu.openmmo.server.game.services.NpcService +import de.fiereu.openmmo.server.game.services.PacketSender +import de.fiereu.openmmo.server.game.services.WarpService import de.fiereu.openmmo.server.game.session.SessionManager import de.fiereu.openmmo.server.game.storage.CharacterStore -import de.fiereu.openmmo.server.game.world.MapManager -import de.fiereu.openmmo.server.game.world.WarpTile import de.fiereu.openmmo.server.netty.handlers.ProtocolHandler import de.fiereu.openmmo.server.protocol.PacketEvent import de.fiereu.openmmo.server.protocol.respond import io.github.oshai.kotlinlogging.KotlinLogging -import io.netty.buffer.Unpooled import io.netty.channel.ChannelHandlerContext import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.launch @@ -54,9 +44,17 @@ class GameProtocolHandler( private val coroutineScope: CoroutineScope, ) : ProtocolHandler(protocol, serverConfig) { - private val sequenceCounter = java.util.concurrent.atomic.AtomicInteger(0) - private val npcEntityIdCounter = java.util.concurrent.atomic.AtomicLong(0x1A69000000000000L) - private val npcEntityIds = mutableMapOf() // "bankId:mapId:entityIdx" -> entityId + private val packetSender = PacketSender(compressor) + private val mapLoadService = MapLoadService(packetSender) + private val warpService = WarpService(mapLoadService) + private val npcService = NpcService() + private val multiplayerService = MultiplayerService() + private val movementService = + MovementService(warpService, mapLoadService, npcService, multiplayerService) + private val dialogService = DialogService(packetSender) + private val interactionService = InteractionService(npcService, dialogService, packetSender) + private val loginService = + LoginService(mapLoadService, npcService, multiplayerService, packetSender) override fun onActive(ctx: ChannelHandlerContext) { log.info { "Client ${ctx.channel().remoteAddress()} connected to game server." } @@ -68,15 +66,16 @@ class GameProtocolHandler( log.info { "Player ${session.characterId} disconnected." } session.characterId?.let { charId -> - broadcastExcept(ctx.channel(), EntityLeavePacket(charId)) + multiplayerService.broadcastExcept(ctx.channel(), EntityLeavePacket(charId)) } - broadcastMessage( + multiplayerService.broadcastMessage( ChatMessagePacket( - de.fiereu.openmmo.common.enums.ChatType.GAME_NOTIFICATIONS, - de.fiereu.openmmo.common.enums.Language.EN, + ChatType.GAME_NOTIFICATIONS, + Language.EN, "A player left the game.", - "")) + "", + )) SessionManager.removeSession(ctx.channel()) } super.channelInactive(ctx) @@ -86,968 +85,36 @@ class GameProtocolHandler( override fun onPacketReceived(event: PacketEvent<*>) { coroutineScope.launch { when (event.packet) { - is JoinGamePacket -> onJoinGame(event as PacketEvent) - is CreateCharacterPacket -> onCreateCharacter(event as PacketEvent) + is JoinGamePacket -> loginService.onJoinGame(event as PacketEvent) + is CreateCharacterPacket -> + loginService.onCreateCharacter(event as PacketEvent) is RequestCharactersPacket -> - onCharacterRequest(event as PacketEvent) - is SelectCharacterPacket -> onCharacterSelected(event as PacketEvent) - is RequestPlayerPacket -> onRequestPlayerPacket(event as PacketEvent) - is MovementPacket -> onMovement(event as PacketEvent) - is FaceDirectionPacket -> onFaceDirection(event as PacketEvent) + loginService.onCharacterRequest(event as PacketEvent) + is SelectCharacterPacket -> + loginService.onCharacterSelected(event as PacketEvent) + is RequestPlayerPacket -> + loginService.onRequestPlayer(event as PacketEvent) + is MovementPacket -> movementService.onMovement(event as PacketEvent) + is FaceDirectionPacket -> + movementService.onFaceDirection(event as PacketEvent) is KeepAlivePacket -> onKeepAlive(event as PacketEvent) - is EntityInteractPacket -> onEntityInteract(event as PacketEvent) + is EntityInteractPacket -> + interactionService.onEntityInteract(event as PacketEvent) is InteractiveResponsePacket -> - onInteractive(event as PacketEvent) - is DialogChoicePacket -> onDialogChoice(event as PacketEvent) + dialogService.onInteractive(event as PacketEvent) + is DialogChoicePacket -> + dialogService.onDialogChoice(event as PacketEvent) is ChatMessagePacket -> onChatMessage(event as PacketEvent) else -> log.warn { "Unhandled game packet type: ${event.packet::class.simpleName}" } } } } - fun onJoinGame(event: PacketEvent) { - val join = event.packet - log.info { "Player joined the game." } - - val authData = join.authData - var userId = 0 - if (authData is NewAuthData) { - userId = authData.userId - log.info { "User $userId joined with session key (${authData.sessionKey.size} bytes)" } - } - - if (userId > 0) { - SessionManager.createSession(event.ctx.channel(), userId) - log.info { "Session created for user $userId" } - } - - event.accept().withPlaytime(1337).withRewardPoints(420).withBalance(187).buildAndRespond(event) - } - - fun onCreateCharacter(event: PacketEvent) { - val session = SessionManager.getSessionByChannel(event.ctx.channel()) - if (session == null) { - log.warn { "Create character from unknown session" } - return - } - val name = event.packet.name - log.info { "Creating character '$name' for userId=${session.userId}" } - CharacterStore.createCharacter(session.userId, name) - log.info { "Created character '$name'" } - sendCharacterList(event.ctx, session.userId, event::respond) - } - - fun onCharacterRequest(event: PacketEvent) { - val session = SessionManager.getSessionByChannel(event.ctx.channel()) - if (session != null) { - sendCharacterList(event.ctx, session.userId, event::respond) - } else { - log.warn { "Character request from unauthenticated session" } - event.respond(CharacterListPacket(emptyList())) - } - } - - private inline fun sendCharacterList( - ctx: io.netty.channel.ChannelHandlerContext, - userId: Int, - respond: (Any) -> Unit, - ) { - val characters = CharacterStore.getCharactersByUser(userId) - val entries = - characters.map { stored -> - CharacterEntry( - characterInfo = stored.info, - skinSet = SkinSet(), - guildId = null, - pokemon = stored.pokemon.take(1), - ) - } - respond(CharacterListPacket(entries)) - } - - fun onCharacterSelected(event: PacketEvent) { - val charId = event.packet.characterId - val stored = CharacterStore.getCharacter(charId) - - if (stored == null) { - log.warn { "Character $charId not found" } - return - } - - val session = SessionManager.getSessionByChannel(event.ctx.channel()) - if (session == null) { - log.warn { "No session for channel" } - return - } - - SessionManager.setActiveCharacter(event.ctx.channel(), charId) - log.info { "Player selected character '${stored.info.name}' (id=$charId)" } - - val info = stored.info - val now = java.time.LocalDateTime.now() - val updatedInfo = info.copy(lastLogin = now) - CharacterStore.updateCharacter(updatedInfo) - - // Real server order (from packets.db): - // 1. 5 PokemonContainer (PARTY, PC, BATTLE_BOX_1, BATTLE_BOX_2, DAYCARE) - log.info { - "Sending PokemonContainer packets (party=${stored.pokemon.size}, pc=${stored.pcStorage.size})" - } - - val containers = - mapOf( - PokemonContainer.PARTY to stored.pokemon, - PokemonContainer.PC to stored.pcStorage, - PokemonContainer.BATTLE_BOX_1 to emptyList(), - PokemonContainer.BATTLE_BOX_2 to emptyList(), - PokemonContainer.DAYCARE to emptyList(), - ) - for ((container, pokemon) in containers) { - event.respond( - PokemonContainerPacket( - container = container, hasChange = true, delete = false, pokemon = pokemon)) - } - - // 2. 0x40 (4 bytes) - sendRaw(event.ctx, 0x40u, bytesOf(0x01, 0x01, 0x00, 0x00)) - // 3. 0x55 (3 bytes) - sendRaw(event.ctx, 0x55u, bytesOf(0x00, 0x00, 0x00)) - - // 4. 2 more PokemonContainer (UNKNOWN_13, UNKNOWN_14) - log.info { "Sending last 2 PokemonContainer packets" } - listOf(PokemonContainer.UNKNOWN_13, PokemonContainer.UNKNOWN_14).forEach { container -> - event.respond( - PokemonContainerPacket( - container = container, hasChange = true, delete = false, pokemon = emptyList())) - } - - // 5-11. Packets required before SelectedCharacter (from real server capture) - sendRaw(event.ctx, 0x67u, bytesOf(0x00, 0x00)) - sendRaw(event.ctx, 0x63u, bytesOf(0x00, 0x00)) - sendRaw(event.ctx, 0x98u, bytesOf(0x00, 0x00, 0x00, 0x00, 0x00, 0x00)) - sendRaw(event.ctx, 0x0Au, bytesOf(0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00)) - sendRaw(event.ctx, 0x29u, bytesOf(0x00, 0x00, 0x00)) - sendRaw(event.ctx, 0x29u, hexToBytes("0101006F080100")) - sendRaw(event.ctx, 0x29u, bytesOf(0x02, 0x00, 0x00)) - sendRaw(event.ctx, 0x29u, bytesOf(0x03, 0x00, 0x00)) - sendRaw(event.ctx, 0x29u, bytesOf(0x04, 0x00, 0x00)) - sendRaw(event.ctx, 0x29u, bytesOf(0x0A, 0x00, 0x00)) - sendRaw(event.ctx, 0x29u, bytesOf(0x80, 0x00, 0x00)) - sendRaw(event.ctx, 0x1Cu, bytesOf(0x00, 0x00)) - - // 12. SelectedCharacter (0x04) - log.info { "Sending SelectedCharacterPacket" } - event.respond(SelectedCharacterPacket(info)) - - // Raw packets before ChatMessage (from real server capture) - sendRaw(event.ctx, 0xF1u, bytesOf(0x05)) - sendRaw(event.ctx, 0x4Au, bytesOf(0x00)) - sendRaw(event.ctx, 0x4Du, bytesOf(0x18)) - - event.respond( - ChatMessagePacket( - de.fiereu.openmmo.common.enums.ChatType.GAME_NOTIFICATIONS, - de.fiereu.openmmo.common.enums.Language.EN, - "Welcome to OpenMMO!", - "")) - - // 0xF5 packet (map-adjacent setup) - sendRaw( - event.ctx, - 0xF5u, - bytesOf( - 0x77, - 0x1A, - 0x00, - 0x00, - 0x81, - 0x00, - 0x05, - 0x4A, - 0x00, - 0x6F, - 0x00, - 0x73, - 0x00, - 0x75, - 0x00, - 0x6B, - 0x00, - 0x65, - 0x00, - 0x00, - 0x00, - 0x10)) - - // 0x4F (pokedex/starter data) - sendRaw( - event.ctx, - 0x4Fu, - hexToBytes( - "B8009502029202019102029002008F02008C02008902008802028702008602008502008402008302008202008102008002027F02017E02027D02017B02017802037602037402037102026D02026C02016402026102015C02035602015102014F02014302013D02033B02033302023102022B02022902022102021602011202010E0202F10101F00103EE0100ED0100EC0102EB0100EA0100E90100E80101E70100E60100E50101E40100E30100E20100E10100E00100DF0103DE0102DB0103DA0102D90101D80101D50102D40101D10102D00102CE0102CD0101CC0103C60103C20102C00101BD0101BA0102B50101B40103B30103AE0102AD0102A80103A701029701038E01018B01028801018501038201008101018001007F01007E01007D01007C01007B01007A01007901007801017501016401035E01035601014E01034A01024401023F01033401022E01012901032301021E01011A0103170101100103040103010103FE0003FB0000FA0000F90000F80001F50001F40002F30001F20002ED0003E90002E80002E60001E30001E20003DD0003D60002D40001D30003D00003CF0002CD0002C70002C50002C40002C30002BA0002B20003AB0003A90002A000029700009600009500019200039100018F00038D00038700038600038200017900017100016E00016B00036500035E00015B00025200035000014C00034900024400024100033E00033B00033700033100032A00032600022400032200021F0002090003030002080600000F00000C00000B00000D00000700000800000E0000")) - - sendRaw(event.ctx, 0xD3u, bytesOf(0x00)) - - // 0xFC packet - sendRaw( - event.ctx, - 0xFCu, - hexToBytes( - "10D6B660234D938A916F030CD1B64F9CDD0100040100007F0601000000000000000000000000000000621E0A")) - - sendRaw(event.ctx, 0x59u, bytesOf(0x00, 0x00)) - sendRaw(event.ctx, 0x59u, bytesOf(0x01, 0x00)) - - // 0x6E packet - sendRaw( - event.ctx, - 0x6Eu, - bytesOf( - 0x05, - 0x92, - 0x00, - 0x00, - 0x00, - 0x00, - 0x00, - 0x00, - 0x00, - 0x00, - 0x00, - 0x00, - 0x00, - 0xF5, - 0x00, - 0x00)) - - sendRaw(event.ctx, 0xB9u, bytesOf(0x00)) - - val map = MapManager.getMap(info.positionRegionId, info.positionBankId, info.positionMapId) - if (map != null) { - log.info { - "Sending LoadMap for ${info.positionRegionId}:${info.positionBankId}:${info.positionMapId}" - } - // Login uses both flags for initial map load (interior start) - event.respond(MapManager.createLoadMapPacket(map, reloadPlayer = true, deleteCache = true)) - // Preload connected maps - for (conn in map.connections) { - val connectedMap = MapManager.getMap(1, conn.targetBank.toByte(), conn.targetMap.toByte()) - if (connectedMap != null) { - event.ctx - .channel() - .writeAndFlush( - MapManager.createLoadMapPacket( - connectedMap, reloadPlayer = false, deleteCache = true)) - log.info { "Preloaded connected map ${conn.targetBank}:${conn.targetMap}" } - } - } - } else { - log.warn { - "Map not found for position ${info.positionRegionId}:${info.positionBankId}:${info.positionMapId}" - } - } - - // Track player position in session for multiplayer - session.regionId = info.positionRegionId.toInt() - session.bankId = info.positionBankId.toInt() - session.mapId = info.positionMapId.toInt() - session.x = info.positionX - session.y = info.positionY - - broadcastMessage( - ChatMessagePacket( - de.fiereu.openmmo.common.enums.ChatType.GAME_NOTIFICATIONS, - de.fiereu.openmmo.common.enums.Language.EN, - "Player ${stored.info.name} joined the game.", - "")) - } - - fun onRequestPlayerPacket(event: PacketEvent) { - log.info { "Received RequestPlayerPacket" } - val session = SessionManager.getSessionByChannel(event.ctx.channel()) - if (session == null) { - log.warn { "RequestPlayer from unknown session" } - return - } - - val charId = session.characterId - if (charId == null) { - log.warn { "RequestPlayer without active character" } - return - } - val stored = CharacterStore.getCharacter(charId) - if (stored == null) { - log.warn { "RequestPlayer for unknown character $charId" } - return - } - val info = stored.info - - log.info { "Sending LoadEntity + 0x90 for character '${info.name}'" } - val facing = session.facingDirection - val loadEntity = createLoadEntity(info, facing) - // Send LoadEntity + 0x90 first (RenderScreen(true) must come last) - event.ctx.channel().writeAndFlush(loadEntity) - send90(event.ctx, loadEntity.entityId, loadEntity.skin) - spawnNpcsForMap(event.ctx, info.positionBankId.toInt(), info.positionMapId.toInt()) - - // Multiplayer: broadcast LoadEntity of self to other players in same map, - // and send LoadEntity of existing players to this player - val bankId = info.positionBankId.toInt() - val mapId = info.positionMapId.toInt() - val regionId = info.positionRegionId.toInt() - session.regionId = regionId - session.bankId = bankId - session.mapId = mapId - session.x = info.positionX - session.y = info.positionY - - val currentParty = CharacterStore.getCharacter(charId)?.pokemon ?: emptyList() - val hasFollower = currentParty.isNotEmpty() - val followerDexId = (currentParty.firstOrNull()?.dexId ?: 0).toShort() - - // Send LoadEntity of each existing player in this map to the new player - val others = SessionManager.getOthersInMap(charId, regionId, bankId, mapId) - for (other in others) { - val otherStored = CharacterStore.getCharacter(other.characterId ?: continue) ?: continue - val otherParty = otherStored.pokemon - event.ctx - .channel() - .write( - LoadEntityPacket( - entityId = other.characterId!!, - skin = SkinSet(), - name = otherStored.info.name, - regionId = other.regionId, - bankId = other.bankId, - mapId = other.mapId, - x = other.x.toInt(), - y = other.y.toInt(), - facing = other.facingDirection, - status = de.fiereu.openmmo.common.enums.EntityStatus.NONE, - hasFollower = otherParty.isNotEmpty(), - followerDexId = (otherParty.firstOrNull()?.dexId ?: 0).toShort())) - } - - // Broadcast LoadEntity of new player to all existing players in this map - val selfEntity = - LoadEntityPacket( - entityId = charId, - skin = SkinSet(), - name = info.name, - regionId = regionId, - bankId = bankId, - mapId = mapId, - x = info.positionX.toInt(), - y = info.positionY.toInt(), - facing = facing, - status = de.fiereu.openmmo.common.enums.EntityStatus.NONE, - hasFollower = hasFollower, - followerDexId = followerDexId) - for (other in others) { - other.channel.writeAndFlush(selfEntity) - } - // RenderScreen(true) must be the last packet — real server sends it after all entities/NPCs - event.ctx.channel().writeAndFlush(RenderScreenPacket(true)) - log.info { "Player $charId spawned in bank=$bankId map=$mapId; ${others.size} others present" } - } - - private fun scriptParams(script: String): List? { - if (script == "0x0") return null - // Known scripts from packet captures — each entry is a list of dialog pages - val known = - mapOf>( - "LittlerootTown_ProfessorBirchsLab_EventScript_Birch" to - listOf(ScriptPage(type = 0x04, unk1 = 0xAA74, unk2 = 0x1F10, unk3 = 0x0708)), - "LittlerootTown_ProfessorBirchsLab_EventScript_Aide" to - listOf(ScriptPage(type = 0x04, unk1 = 0xA6CE, unk2 = 0x1F10, unk3 = 0x04B0)), - "PlayersHouse_1F_EventScript_Mom" to - listOf( - ScriptPage(type = 0x04, unk1 = 0x087D, unk2 = 0x1F10, unk3 = 0x04B0), - ScriptPage(type = 0x04, unk1 = 0x7D5C, unk2 = 0x1F10, unk3 = 0x02BC), - ), - "RivalsHouse_1F_EventScript_RivalMom" to - listOf(ScriptPage(type = 0x04, unk1 = 0x8CE3, unk2 = 0x1E10, unk3 = 0x02BC)), - "RivalsHouse_1F_EventScript_RivalSibling" to - listOf(ScriptPage(type = 0x04, unk1 = 0x8B25, unk2 = 0x1E10, unk3 = 0x0708)), - "LittlerootTown_EventScript_Twin" to - listOf(ScriptPage(type = 0x04, unk1 = 0x6292, unk2 = 0x1F10, unk3 = 0x04B0)), - "LittlerootTown_EventScript_Boy" to - listOf(ScriptPage(type = 0x04, unk1 = 0x938D, unk2 = 0x1F10, unk3 = 0x04B0)), - ) - return known[script] - } - - private fun bytesOf(vararg ints: Int) = ByteArray(ints.size) { ints[it].toByte() } - - private fun sendInteractive( - ctx: ChannelHandlerContext, - id: Int, - entityId: Long, - type: Int = 0x04, - unk1: Int = 0xAA74, - unk2: Int = 0x1F10, - unk3: Int = 0x0708, - ) { - val buf = Unpooled.buffer(19) - buf.writeByte(id) - buf.writeByte(type) - buf.writeShortLE(unk1) - buf.writeShortLE(unk2) - buf.writeLongLE(entityId) - buf.writeShortLE(unk3) - buf.writeShortLE(0) - buf.writeByte(0) - val raw = ByteArray(buf.readableBytes()) - buf.readBytes(raw) - buf.release() - sendRaw(ctx, 0x21u, raw) - } - - private fun hexToBytes(hex: String): ByteArray { - val hexStr = hex.replace(" ", "").replace("\n", "") - return ByteArray(hexStr.length / 2) { hexStr.substring(it * 2, it * 2 + 2).toInt(16).toByte() } - } - - private fun createLoadEntity( - info: de.fiereu.openmmo.common.CharacterInfo, - facing: Direction = Direction.DOWN, - ): LoadEntityPacket { - return LoadEntityPacket( - entityId = info.id, - skin = SkinSet(), - name = info.name, - regionId = info.positionRegionId.toInt(), - bankId = info.positionBankId.toInt(), - mapId = info.positionMapId.toInt(), - x = info.positionX.toInt(), - y = info.positionY.toInt(), - facing = facing, - status = de.fiereu.openmmo.common.enums.EntityStatus.NONE, - hasFollower = false, - followerDexId = 0, - ) - } - - private fun warpCharacter(ctx: ChannelHandlerContext, charId: Long, warp: WarpTile) { - val session = SessionManager.getSessionByCharacterId(charId) - if (session != null) { - session.justWarped = true - } - val stored = CharacterStore.getCharacter(charId) ?: return - - val newInfo = - stored.info.copy( - positionRegionId = warp.targetRegionId, - positionBankId = warp.targetBankId, - positionMapId = warp.targetMapId, - positionX = warp.targetX.toShort(), - positionY = warp.targetY.toShort(), - ) - CharacterStore.updateCharacter(newInfo) - - // Multiplayer: broadcast EntityLeave to old-map players before position update - val oldRegionId = session?.regionId - val oldBankId = session?.bankId - val oldMapId = session?.mapId - if (oldBankId != null && oldMapId != null) { - val oldMapPlayers = - SessionManager.getOthersInMap(charId, oldRegionId ?: 1, oldBankId, oldMapId) - for (other in oldMapPlayers) { - other.channel.writeAndFlush(EntityLeavePacket(charId)) - } - } - - // Update session position for multiplayer tracking - if (session != null) { - session.regionId = warp.targetRegionId.toInt() - session.bankId = warp.targetBankId.toInt() - session.mapId = warp.targetMapId.toInt() - session.x = warp.targetX.toShort() - session.y = warp.targetY.toShort() - } - - // Real server warp sequence (from packets.db): - // MapTransition → RenderScreen(false) → LoadEntity(0x05) → MapTransitionAck → LoadMap(×N) → - // [client sends RequestPlayer(0x05)] → LoadEntity + 0x90 + NpcSpawn + others' EntityInfo + - // RenderScreen(true) - ctx.channel().writeAndFlush(MapTransitionPacket()) - ctx.channel().writeAndFlush(RenderScreenPacket(false)) - ctx.channel().writeAndFlush(createLoadEntity(newInfo)) - ctx.channel().writeAndFlush(MapTransitionAckPacket(0)) - - val map = MapManager.getMap(warp.targetRegionId, warp.targetBankId, warp.targetMapId) - if (map != null) { - // Interior maps (no connections): flags=0x03 (both). Exterior: flags=0x01 (deleteCache only) - val isInterior = map.connections.isEmpty() - ctx.channel() - .writeAndFlush( - MapManager.createLoadMapPacket(map, reloadPlayer = isInterior, deleteCache = true)) - // Preload connected maps — real server sends these AFTER MapTransitionAck with - // flags=02 - // (reloadPlayer=true, deleteCache=false) - for (conn in map.connections) { - val connectedMap = MapManager.getMap(1, conn.targetBank.toByte(), conn.targetMap.toByte()) - if (connectedMap != null) { - ctx.channel() - .writeAndFlush( - MapManager.createLoadMapPacket( - connectedMap, reloadPlayer = true, deleteCache = false)) - } - } - } else { - log.warn { - "Map not found for warp target ${warp.targetRegionId}:${warp.targetBankId}:${warp.targetMapId}" - } - } - - log.info { "Player $charId warped to bank=${warp.targetBankId} map=${warp.targetMapId}" } - } - - private fun edgeTransition( - ctx: ChannelHandlerContext, - charId: Long, - connection: MapData.GbaConnection, - targetX: Byte, - targetY: Byte, - direction: Direction - ) { - val targetBank = connection.targetBank.toByte() - val targetMap = connection.targetMap.toByte() - val map = MapManager.getMap(1, targetBank, targetMap) ?: return - // Update session + store to new map and position - val session = SessionManager.getSessionByCharacterId(charId) - session?.bankId = targetBank.toInt() - session?.mapId = targetMap.toInt() - session?.x = targetX.toShort() - session?.y = targetY.toShort() - CharacterStore.updatePosition(charId, targetX.toShort(), targetY.toShort()) - // Real server sends LoadMap (flags=00) during edge transition (capture ID 108) - ctx.channel() - .writeAndFlush( - MapManager.createLoadMapPacket(map, reloadPlayer = false, deleteCache = false)) - // Preload connected maps of the target map (deep preload — real server sends these - // at ID 108) - for (conn in map.connections) { - val nextMap = MapManager.getMap(1, conn.targetBank.toByte(), conn.targetMap.toByte()) - if (nextMap != null) { - ctx.channel() - .writeAndFlush( - MapManager.createLoadMapPacket(nextMap, reloadPlayer = false, deleteCache = false)) - } - } - // Spawn NPCs of the new map - spawnNpcsForMap(ctx, targetBank.toInt(), targetMap.toInt()) - // Send EntityMove to the moving player (movement confirmation) and broadcast to - // others - val seq = sequenceCounter.incrementAndGet().toByte() - val movePkt = - EntityMovePacket( - entityId = charId, x = targetX, y = targetY, direction = direction, seq = seq) - ctx.channel().writeAndFlush(movePkt) - broadcastExcept(ctx.channel(), movePkt) - log.info { "Player $charId edge-transitioned to bank=$targetBank map=$targetMap" } - } - - private fun sendEntityWith90(ctx: ChannelHandlerContext, loadEntity: LoadEntityPacket) { - ctx.channel().writeAndFlush(loadEntity) - send90(ctx, loadEntity.entityId, loadEntity.skin) - ctx.channel().writeAndFlush(RenderScreenPacket(true)) - } - - private fun send90(ctx: ChannelHandlerContext, entityId: Long, skin: SkinSet) { - val raw90Buf = io.netty.buffer.Unpooled.buffer() - raw90Buf.writeShortLE(0x9000) - raw90Buf.writeLongLE(entityId) - raw90Buf.writeByte(0x01) - raw90Buf.writeByte(0x00) - var mask = 0 - for (slot in de.fiereu.openmmo.common.enums.SkinSlot.entries) { - val s = skin[slot] - if (s != null && (s.type != null || s.color != null)) { - mask = mask or (1 shl slot.ordinal) - } - } - raw90Buf.writeShortLE(mask) - for (slot in de.fiereu.openmmo.common.enums.SkinSlot.entries) { - if ((mask and (1 shl slot.ordinal)) != 0) { - val s = skin[slot] - val type = s?.type ?: 0x3FFFu - val color = s?.color ?: 0x3Fu - val compressed = (type.toInt() and 0x3FFF) or ((color.toInt() and 0x3F) shl 10) - raw90Buf.writeShortLE(compressed) - } - } - raw90Buf.writeByte(0x01) - val raw90 = ByteArray(raw90Buf.readableBytes()) - raw90Buf.readBytes(raw90) - raw90Buf.release() - sendRaw(ctx, 0x90u, raw90) - } - - private fun spawnNpcsForMap(ctx: ChannelHandlerContext, bankId: Int, mapId: Int) { - val map = MapManager.getMap(1, bankId.toByte(), mapId.toByte()) - if (map == null) return - val entityIds = mutableListOf() - for (npc in map.npcs) { - val key = "$bankId:$mapId:${npc.entityIdx}" - val entityId = npcEntityIds.getOrPut(key) { npcEntityIdCounter.incrementAndGet() } - val unk3 = ((npc.movementType and 0xFF) shl 8) or 0x02 - val unk4 = - if (npc.movementType in 1..6 || (npc.movementType in 25..52)) { - ((npc.movementRangeX and 0xFF) shl 8) or (npc.movementRangeY and 0xFF) - } else { - 0 - } - val spawnPacket = - de.fiereu.openmmo.protocols.game.packets.NpcSpawnPacket( - entityId = entityId, - unk1 = 1, - unk2 = npc.graphicsId, - unk3 = unk3, - unk4 = unk4, - regionId = 1, - bankId = bankId, - mapId = mapId, - x = npc.x, - y = npc.y, - facing = npc.facing, - unk5 = 2, - unk6 = 8) - ctx.channel().write(spawnPacket) - entityIds.add(entityId) - } - ctx.channel().flush() - } - - fun onMovement(event: PacketEvent) { - val session = SessionManager.getSessionByChannel(event.ctx.channel()) - if (session == null) return - - val charId = session.characterId ?: return - val msg = event.packet - - log.info { "Movement: char=$charId, x=${msg.x}, y=${msg.y}, dir=${msg.direction}" } - session.facingDirection = msg.direction - - // Store previous position for detecting wall bumps - val prevStored = CharacterStore.getCharacter(charId) - val prevX = prevStored?.info?.positionX?.toInt() - val prevY = prevStored?.info?.positionY?.toInt() - val isWallBump = prevX == msg.x && prevY == msg.y - - // Check for warps and edge transitions BEFORE updating position / broadcasting EntityMove. - // Real server sends LoadMap *before* EntityMove for edge transitions. - val stored = CharacterStore.getCharacter(charId) - if (stored != null) { - val currentMap = - MapManager.getMap( - stored.info.positionRegionId, stored.info.positionBankId, stored.info.positionMapId) - if (currentMap != null) { - // Skip warp check for the first movement after a warp - if (session.justWarped) { - session.justWarped = false - } else { - // Direct warp: player stepped onto a warp tile - val warp = - currentMap.warps.find { w -> - w.x == msg.x && - w.y == msg.y && - (w.facingDirection == null || w.facingDirection == msg.direction) - } - if (warp != null) { - log.info { - "DIRECT WARP at (${msg.x}, ${msg.y}) facing ${msg.direction} → ${warp.targetRegionId}:${warp.targetBankId}:${warp.targetMapId} (${warp.targetX}, ${warp.targetY})" - } - warpCharacter(event.ctx, charId, warp) - return - } - - // Adjacent warp: player is standing in front of a door tile, facing it - val adjX = - msg.x + - when (msg.direction) { - Direction.RIGHT -> 1 - Direction.LEFT -> -1 - else -> 0 - } - val adjY = - msg.y + - when (msg.direction) { - Direction.UP -> -1 - Direction.DOWN -> 1 - else -> 0 - } - val adjWarp = - currentMap.warps.find { w -> - w.x == adjX && - w.y == adjY && - (w.facingDirection == null || w.facingDirection == msg.direction) - } - if (adjWarp != null) { - log.info { - "ADJACENT WARP at (${msg.x}, ${msg.y}) facing ${msg.direction} → tile ($adjX, $adjY) → ${adjWarp.targetRegionId}:${adjWarp.targetBankId}:${adjWarp.targetMapId} (${adjWarp.targetX}, ${adjWarp.targetY})" - } - warpCharacter(event.ctx, charId, adjWarp) - return - } - } - - // Map edge transition: client pre-computes position on connected map. - // Detect by checking for an impossible single-step distance from the - // previous position, then use prevPos to identify the edge. - if (prevX != null && prevY != null && !isWallBump) { - val dx = kotlin.math.abs(msg.x - prevX) - val dy = kotlin.math.abs(msg.y - prevY) - if (dx > 1 || dy > 1) { - val gbaDirection = - when { - prevY == 0 -> 2 // North - prevY == currentMap.height - 1 -> 1 // South - prevX == 0 -> 3 // West - prevX == currentMap.width - 1 -> 4 // East - else -> null - } - if (gbaDirection != null) { - val connection = currentMap.connections.find { it.direction == gbaDirection } - if (connection != null) { - val targetMap = - MapManager.getMap( - 1, connection.targetBank.toByte(), connection.targetMap.toByte()) - if (targetMap != null) { - val targetX = - when (gbaDirection) { - 3 -> targetMap.width - 1 - 4 -> 0 - else -> msg.x.coerceIn(0, targetMap.width - 1) - } - val targetY = - when (gbaDirection) { - 1 -> 0 - 2 -> targetMap.height - 1 - else -> msg.y.coerceIn(0, targetMap.height - 1) - } - log.info { - "MAP TRANSITION prev=($prevX, $prevY) dir=${msg.direction} → bank=${connection.targetBank} map=${connection.targetMap} ($targetX, $targetY)" - } - edgeTransition( - event.ctx, - charId, - connection, - targetX.toByte(), - targetY.toByte(), - msg.direction) - return - } - } - } - } - } - } - } - - // No transition: normal movement update + EntityMove broadcast - CharacterStore.updatePosition(charId, msg.x.toShort(), msg.y.toShort()) - session.x = msg.x.toShort() - session.y = msg.y.toShort() - if (!isWallBump) { - val seq = sequenceCounter.incrementAndGet().toByte() - val movePkt = - EntityMovePacket( - entityId = charId, - x = msg.x.toByte(), - y = msg.y.toByte(), - direction = msg.direction, - seq = seq) - // Send EntityMove to the moving player (movement confirmation) and broadcast to - // others - event.ctx.channel().writeAndFlush(movePkt) - broadcastExcept(event.ctx.channel(), movePkt) - } - } - - fun onFaceDirection(event: PacketEvent) { - val session = SessionManager.getSessionByChannel(event.ctx.channel()) - if (session == null) return - - val charId = session.characterId ?: return - val msg = event.packet - session.facingDirection = msg.direction - - val seq = sequenceCounter.incrementAndGet().toByte() - val stored = CharacterStore.getCharacter(charId) ?: return - val movePkt = - EntityMovePacket( - entityId = charId, - x = stored.info.positionX.toByte(), - y = stored.info.positionY.toByte(), - direction = msg.direction, - seq = seq) - event.ctx.channel().writeAndFlush(movePkt) - broadcastExcept(event.ctx.channel(), movePkt) - } - - fun onEntityInteract(event: PacketEvent) { - val session = SessionManager.getSessionByChannel(event.ctx.channel()) - if (session == null) return - val charId = session.characterId ?: return - - val npcEntityId = event.packet.entityId - val stored = CharacterStore.getCharacter(charId) ?: return - val currentMap = - MapManager.getMap( - stored.info.positionRegionId, stored.info.positionBankId, stored.info.positionMapId) - if (currentMap == null) return - - // Find which NPC this entityId belongs to - val bankId = stored.info.positionBankId.toInt() - val mapId = stored.info.positionMapId.toInt() - for (npc in currentMap.npcs) { - val key = "$bankId:$mapId:${npc.entityIdx}" - val expectedId = npcEntityIds[key] - if (expectedId == npcEntityId) { - log.info { - "Entity interaction: NPC entityIdx=${npc.entityIdx} entityId=$npcEntityId script=${npc.script}" - } - - if (npc.script != "0x0") { - val params = scriptParams(npc.script) - if (params != null) { - log.info { - "NPC entityIdx=${npc.entityIdx} script=${npc.script} — starting dialog (${params.size} pages)" - } - session.inDialog = true - session.dialogNpcEntityId = npcEntityId - session.dialogPages = params - session.dialogPageIndex = 0 - val seqId = session.dialogSeqId++ - val page = params[0] - // Exact sequence from real server GBA capture (packets.db rows 65-67): - // 1. DialogState(01) = open dialog window - event.ctx.channel().write(DialogStatePacket(true)) - // 2. 0x07 entity interaction confirmation [entityId:8][0xFF:1] - val confirmBuf = io.netty.buffer.Unpooled.buffer(9) - confirmBuf.writeLongLE(npcEntityId) - confirmBuf.writeByte(0xFF) - val confirmBytes = ByteArray(9) - confirmBuf.readBytes(confirmBytes) - confirmBuf.release() - sendRaw(event.ctx, 0x07u, confirmBytes) - // 3. Interactive (0x21) with script params — sets script context for client - sendInteractive( - event.ctx, seqId, npcEntityId, page.type, page.unk1, page.unk2, page.unk3) - event.ctx.channel().flush() - } else { - log.info { "NPC entityIdx=${npc.entityIdx} script=${npc.script} — no known params" } - } - } else { - log.info { "NPC entityIdx=${npc.entityIdx} has no script (0x0) — no interaction" } - } - return - } - } - - // No NPC found — check for bg_event at tile player is facing - val facingX = - when (session.facingDirection) { - Direction.RIGHT -> stored.info.positionX.toInt() + 1 - Direction.LEFT -> stored.info.positionX.toInt() - 1 - else -> stored.info.positionX.toInt() - } - val facingY = - when (session.facingDirection) { - Direction.UP -> stored.info.positionY.toInt() - 1 - Direction.DOWN -> stored.info.positionY.toInt() + 1 - else -> stored.info.positionY.toInt() - } - val facingDirOk: (String) -> Boolean = { dir -> - dir == "BG_EVENT_PLAYER_FACING_ANY" || - (dir == "BG_EVENT_PLAYER_FACING_NORTH" && session.facingDirection == Direction.UP) || - (dir == "BG_EVENT_PLAYER_FACING_SOUTH" && session.facingDirection == Direction.DOWN) || - (dir == "BG_EVENT_PLAYER_FACING_WEST" && session.facingDirection == Direction.LEFT) || - (dir == "BG_EVENT_PLAYER_FACING_EAST" && session.facingDirection == Direction.RIGHT) - } - val bgEvent = - currentMap.bgEvents.find { it.x == facingX && it.y == facingY && facingDirOk(it.facingDir) } - if (bgEvent != null) { - val params = scriptParams(bgEvent.script) - if (params != null) { - log.info { - "BG event script=${bgEvent.script} at ($facingX,$facingY) — starting dialog (${params.size} pages)" - } - session.inDialog = true - session.dialogNpcEntityId = npcEntityId - session.dialogPages = params - session.dialogPageIndex = 0 - val seqId = session.dialogSeqId++ - val page = params[0] - event.ctx.channel().write(DialogStatePacket(true)) - val confirmBuf = io.netty.buffer.Unpooled.buffer(9) - confirmBuf.writeLongLE(npcEntityId) - confirmBuf.writeByte(0xFF) - val confirmBytes = ByteArray(9) - confirmBuf.readBytes(confirmBytes) - confirmBuf.release() - sendRaw(event.ctx, 0x07u, confirmBytes) - sendInteractive(event.ctx, seqId, npcEntityId, page.type, page.unk1, page.unk2, page.unk3) - event.ctx.channel().flush() - } else { - log.info { - "BG event interaction: script=${bgEvent.script} at ($facingX,$facingY) — no known params" - } - } - return - } - - log.info { "Entity interaction for entity $npcEntityId — not found on current map" } - } - - fun onInteractive(event: PacketEvent) { - val session = SessionManager.getSessionByChannel(event.ctx.channel()) - if (session == null) return - val charId = session.characterId ?: return - - if (session.inDialog) { - val respId = event.packet.id - log.info { - "Interactive response: id=$respId for char $charId (page ${session.dialogPageIndex + 1}/${session.dialogPages.size})" - } - val nextPageIndex = session.dialogPageIndex + 1 - if (nextPageIndex < session.dialogPages.size) { - // More pages — send next Interactive - val seqId = session.dialogSeqId++ - val page = session.dialogPages[nextPageIndex] - session.dialogPageIndex = nextPageIndex - sendInteractive( - event.ctx, seqId, session.dialogNpcEntityId, page.type, page.unk1, page.unk2, page.unk3) - event.ctx.channel().flush() - } else { - // No more pages — close dialog - event.ctx.channel().writeAndFlush(DialogStatePacket(false)) - session.inDialog = false - session.dialogNpcEntityId = 0 - session.dialogPages = emptyList() - session.dialogPageIndex = 0 - } - } - } - - fun onDialogChoice(event: PacketEvent) { - val session = SessionManager.getSessionByChannel(event.ctx.channel()) - if (session == null) return - log.info { "Dialog choice received: unk1=${event.packet.unk1}, unk2=${event.packet.unk2}" } - // Close dialog after choice - if (session.inDialog) { - event.ctx.channel().writeAndFlush(DialogStatePacket(false)) - session.inDialog = false - session.dialogNpcEntityId = 0 - } - } - - fun onKeepAlive(event: PacketEvent) { + private fun onKeepAlive(event: PacketEvent) { event.respond(event.packet) } - fun onChatMessage(event: PacketEvent) { + private fun onChatMessage(event: PacketEvent) { val msg = event.packet val sender = SessionManager.getSessionByChannel(event.ctx.channel()) @@ -1062,26 +129,12 @@ class GameProtocolHandler( log.info { "Chat [${msg.type}] $senderName: ${msg.message}" } - broadcastMessage( + multiplayerService.broadcastMessage( ChatMessagePacket( - type = msg.type, language = msg.language, message = msg.message, sender = senderName)) - } - - private fun broadcastMessage(packet: Any) { - for (characterId in SessionManager.getOnlineCharacterIds()) { - val s = SessionManager.getSessionByCharacterId(characterId) ?: continue - if (s.channel.isActive) { - s.channel.writeAndFlush(packet) - } - } - } - - private fun broadcastExcept(channel: io.netty.channel.Channel, packet: Any) { - for (characterId in SessionManager.getOnlineCharacterIds()) { - val s = SessionManager.getSessionByCharacterId(characterId) ?: continue - if (s.channel.isActive && s.channel != channel) { - s.channel.writeAndFlush(packet) - } - } + type = msg.type, + language = msg.language, + message = msg.message, + sender = senderName, + )) } } diff --git a/server.game/src/main/kotlin/de/fiereu/openmmo/server/game/services/DialogService.kt b/server.game/src/main/kotlin/de/fiereu/openmmo/server/game/services/DialogService.kt new file mode 100644 index 0000000..ff32ded --- /dev/null +++ b/server.game/src/main/kotlin/de/fiereu/openmmo/server/game/services/DialogService.kt @@ -0,0 +1,113 @@ +package de.fiereu.openmmo.server.game.services + +import de.fiereu.openmmo.protocols.game.packets.DialogChoicePacket +import de.fiereu.openmmo.protocols.game.packets.DialogStatePacket +import de.fiereu.openmmo.protocols.game.packets.InteractiveResponsePacket +import de.fiereu.openmmo.server.game.session.ScriptPage +import de.fiereu.openmmo.server.game.session.SessionManager +import de.fiereu.openmmo.server.protocol.PacketEvent +import io.github.oshai.kotlinlogging.KotlinLogging +import io.netty.buffer.Unpooled +import io.netty.channel.ChannelHandlerContext + +private val log = KotlinLogging.logger {} + +class DialogService( + private val packetSender: PacketSender, +) { + + fun scriptParams(script: String): List? { + if (script == "0x0") return null + val known = + mapOf>( + "LittlerootTown_ProfessorBirchsLab_EventScript_Birch" to + listOf(ScriptPage(type = 0x04, unk1 = 0xAA74, unk2 = 0x1F10, unk3 = 0x0708)), + "LittlerootTown_ProfessorBirchsLab_EventScript_Aide" to + listOf(ScriptPage(type = 0x04, unk1 = 0xA6CE, unk2 = 0x1F10, unk3 = 0x04B0)), + "PlayersHouse_1F_EventScript_Mom" to + listOf( + ScriptPage(type = 0x04, unk1 = 0x087D, unk2 = 0x1F10, unk3 = 0x04B0), + ScriptPage(type = 0x04, unk1 = 0x7D5C, unk2 = 0x1F10, unk3 = 0x02BC), + ), + "RivalsHouse_1F_EventScript_RivalMom" to + listOf(ScriptPage(type = 0x04, unk1 = 0x8CE3, unk2 = 0x1E10, unk3 = 0x02BC)), + "RivalsHouse_1F_EventScript_RivalSibling" to + listOf(ScriptPage(type = 0x04, unk1 = 0x8B25, unk2 = 0x1E10, unk3 = 0x0708)), + "LittlerootTown_EventScript_Twin" to + listOf(ScriptPage(type = 0x04, unk1 = 0x6292, unk2 = 0x1F10, unk3 = 0x04B0)), + "LittlerootTown_EventScript_Boy" to + listOf(ScriptPage(type = 0x04, unk1 = 0x938D, unk2 = 0x1F10, unk3 = 0x04B0)), + ) + return known[script] + } + + fun sendInteractive( + ctx: ChannelHandlerContext, + id: Int, + entityId: Long, + type: Int = 0x04, + unk1: Int = 0xAA74, + unk2: Int = 0x1F10, + unk3: Int = 0x0708, + ) { + val buf = Unpooled.buffer(19) + buf.writeByte(id) + buf.writeByte(type) + buf.writeShortLE(unk1) + buf.writeShortLE(unk2) + buf.writeLongLE(entityId) + buf.writeShortLE(unk3) + buf.writeShortLE(0) + buf.writeByte(0) + val raw = ByteArray(buf.readableBytes()) + buf.readBytes(raw) + buf.release() + packetSender.sendRaw(ctx, 0x21u, raw) + } + + fun onInteractive(event: PacketEvent) { + val session = SessionManager.getSessionByChannel(event.ctx.channel()) + if (session == null) return + val charId = session.characterId ?: return + + if (session.inDialog) { + val respId = event.packet.id + log.info { + "Interactive response: id=$respId for char $charId (page ${session.dialogPageIndex + 1}/${session.dialogPages.size})" + } + val nextPageIndex = session.dialogPageIndex + 1 + if (nextPageIndex < session.dialogPages.size) { + val seqId = session.dialogSeqId++ + val page = session.dialogPages[nextPageIndex] + session.dialogPageIndex = nextPageIndex + sendInteractive( + event.ctx, + seqId, + session.dialogNpcEntityId, + page.type, + page.unk1, + page.unk2, + page.unk3, + ) + event.ctx.channel().flush() + } else { + event.ctx.channel().writeAndFlush(DialogStatePacket(false)) + session.inDialog = false + session.dialogNpcEntityId = 0 + session.dialogPages = emptyList() + session.dialogPageIndex = 0 + } + } + } + + fun onDialogChoice(event: PacketEvent) { + val session = SessionManager.getSessionByChannel(event.ctx.channel()) + if (session == null) return + log.info { "Dialog choice received: unk1=${event.packet.unk1}, unk2=${event.packet.unk2}" } + if (session.inDialog) { + event.ctx.channel().writeAndFlush(DialogStatePacket(false)) + session.inDialog = false + session.dialogNpcEntityId = 0 + } + } +} diff --git a/server.game/src/main/kotlin/de/fiereu/openmmo/server/game/services/InteractionService.kt b/server.game/src/main/kotlin/de/fiereu/openmmo/server/game/services/InteractionService.kt new file mode 100644 index 0000000..42d5e3a --- /dev/null +++ b/server.game/src/main/kotlin/de/fiereu/openmmo/server/game/services/InteractionService.kt @@ -0,0 +1,148 @@ +package de.fiereu.openmmo.server.game.services + +import de.fiereu.openmmo.common.enums.Direction +import de.fiereu.openmmo.protocols.game.packets.DialogStatePacket +import de.fiereu.openmmo.protocols.game.packets.EntityInteractPacket +import de.fiereu.openmmo.server.game.session.SessionManager +import de.fiereu.openmmo.server.game.storage.CharacterStore +import de.fiereu.openmmo.server.game.world.MapManager +import de.fiereu.openmmo.server.protocol.PacketEvent +import io.github.oshai.kotlinlogging.KotlinLogging +import io.netty.buffer.Unpooled + +private val log = KotlinLogging.logger {} + +class InteractionService( + private val npcService: NpcService, + private val dialogService: DialogService, + private val packetSender: PacketSender, +) { + + fun onEntityInteract(event: PacketEvent) { + val session = SessionManager.getSessionByChannel(event.ctx.channel()) + if (session == null) return + val charId = session.characterId ?: return + + val npcEntityId = event.packet.entityId + val stored = CharacterStore.getCharacter(charId) ?: return + val currentMap = + MapManager.getMap( + stored.info.positionRegionId, + stored.info.positionBankId, + stored.info.positionMapId, + ) + if (currentMap == null) return + + // Find which NPC this entityId belongs to + val bankId = stored.info.positionBankId.toInt() + val mapId = stored.info.positionMapId.toInt() + for (npc in currentMap.npcs) { + val expectedId = npcService.getNpcEntityId(bankId, mapId, npc.entityIdx) + if (expectedId == npcEntityId) { + log.info { + "Entity interaction: NPC entityIdx=${npc.entityIdx} entityId=$npcEntityId script=${npc.script}" + } + + if (npc.script != "0x0") { + val params = dialogService.scriptParams(npc.script) + if (params != null) { + log.info { + "NPC entityIdx=${npc.entityIdx} script=${npc.script} — starting dialog (${params.size} pages)" + } + session.inDialog = true + session.dialogNpcEntityId = npcEntityId + session.dialogPages = params + session.dialogPageIndex = 0 + val seqId = session.dialogSeqId++ + val page = params[0] + event.ctx.channel().write(DialogStatePacket(true)) + val confirmBuf = Unpooled.buffer(9) + confirmBuf.writeLongLE(npcEntityId) + confirmBuf.writeByte(0xFF) + val confirmBytes = ByteArray(9) + confirmBuf.readBytes(confirmBytes) + confirmBuf.release() + packetSender.sendRaw(event.ctx, 0x07u, confirmBytes) + dialogService.sendInteractive( + event.ctx, + seqId, + npcEntityId, + page.type, + page.unk1, + page.unk2, + page.unk3, + ) + event.ctx.channel().flush() + } else { + log.info { "NPC entityIdx=${npc.entityIdx} script=${npc.script} — no known params" } + } + } else { + log.info { "NPC entityIdx=${npc.entityIdx} has no script (0x0) — no interaction" } + } + return + } + } + + // No NPC found — check for bg_event at tile player is facing + val facingX = + when (session.facingDirection) { + Direction.RIGHT -> stored.info.positionX.toInt() + 1 + Direction.LEFT -> stored.info.positionX.toInt() - 1 + else -> stored.info.positionX.toInt() + } + val facingY = + when (session.facingDirection) { + Direction.UP -> stored.info.positionY.toInt() - 1 + Direction.DOWN -> stored.info.positionY.toInt() + 1 + else -> stored.info.positionY.toInt() + } + val facingDirOk: (String) -> Boolean = { dir -> + dir == "BG_EVENT_PLAYER_FACING_ANY" || + (dir == "BG_EVENT_PLAYER_FACING_NORTH" && session.facingDirection == Direction.UP) || + (dir == "BG_EVENT_PLAYER_FACING_SOUTH" && session.facingDirection == Direction.DOWN) || + (dir == "BG_EVENT_PLAYER_FACING_WEST" && session.facingDirection == Direction.LEFT) || + (dir == "BG_EVENT_PLAYER_FACING_EAST" && session.facingDirection == Direction.RIGHT) + } + val bgEvent = + currentMap.bgEvents.find { it.x == facingX && it.y == facingY && facingDirOk(it.facingDir) } + if (bgEvent != null) { + val params = dialogService.scriptParams(bgEvent.script) + if (params != null) { + log.info { + "BG event script=${bgEvent.script} at ($facingX,$facingY) — starting dialog (${params.size} pages)" + } + session.inDialog = true + session.dialogNpcEntityId = npcEntityId + session.dialogPages = params + session.dialogPageIndex = 0 + val seqId = session.dialogSeqId++ + val page = params[0] + event.ctx.channel().write(DialogStatePacket(true)) + val confirmBuf = Unpooled.buffer(9) + confirmBuf.writeLongLE(npcEntityId) + confirmBuf.writeByte(0xFF) + val confirmBytes = ByteArray(9) + confirmBuf.readBytes(confirmBytes) + confirmBuf.release() + packetSender.sendRaw(event.ctx, 0x07u, confirmBytes) + dialogService.sendInteractive( + event.ctx, + seqId, + npcEntityId, + page.type, + page.unk1, + page.unk2, + page.unk3, + ) + event.ctx.channel().flush() + } else { + log.info { + "BG event interaction: script=${bgEvent.script} at ($facingX,$facingY) — no known params" + } + } + return + } + + log.info { "Entity interaction for entity $npcEntityId — not found on current map" } + } +} diff --git a/server.game/src/main/kotlin/de/fiereu/openmmo/server/game/services/LoginService.kt b/server.game/src/main/kotlin/de/fiereu/openmmo/server/game/services/LoginService.kt new file mode 100644 index 0000000..9bf740d --- /dev/null +++ b/server.game/src/main/kotlin/de/fiereu/openmmo/server/game/services/LoginService.kt @@ -0,0 +1,380 @@ +package de.fiereu.openmmo.server.game.services + +import de.fiereu.openmmo.common.enums.ChatType +import de.fiereu.openmmo.common.enums.Language +import de.fiereu.openmmo.common.enums.PokemonContainer +import de.fiereu.openmmo.protocols.game.packets.CharacterEntry +import de.fiereu.openmmo.protocols.game.packets.CharacterListPacket +import de.fiereu.openmmo.protocols.game.packets.ChatMessagePacket +import de.fiereu.openmmo.protocols.game.packets.CreateCharacterPacket +import de.fiereu.openmmo.protocols.game.packets.JoinGamePacket +import de.fiereu.openmmo.protocols.game.packets.LoadEntityPacket +import de.fiereu.openmmo.protocols.game.packets.PokemonContainerPacket +import de.fiereu.openmmo.protocols.game.packets.RenderScreenPacket +import de.fiereu.openmmo.protocols.game.packets.RequestCharactersPacket +import de.fiereu.openmmo.protocols.game.packets.RequestPlayerPacket +import de.fiereu.openmmo.protocols.game.packets.SelectCharacterPacket +import de.fiereu.openmmo.protocols.game.packets.SelectedCharacterPacket +import de.fiereu.openmmo.protocols.game.packets.codecs.SkinSet +import de.fiereu.openmmo.server.game.protocol.game.ext.accept +import de.fiereu.openmmo.server.game.protocol.game.ext.buildAndRespond +import de.fiereu.openmmo.server.game.session.SessionManager +import de.fiereu.openmmo.server.game.storage.CharacterStore +import de.fiereu.openmmo.server.game.world.MapManager +import de.fiereu.openmmo.server.protocol.PacketEvent +import de.fiereu.openmmo.server.protocol.respond +import io.github.oshai.kotlinlogging.KotlinLogging +import java.time.LocalDateTime + +private val log = KotlinLogging.logger {} + +class LoginService( + private val mapLoadService: MapLoadService, + private val npcService: NpcService, + private val multiplayerService: MultiplayerService, + private val packetSender: PacketSender, +) { + + fun onJoinGame(event: PacketEvent) { + val join = event.packet + log.info { "Player joined the game." } + + val authData = join.authData + var userId = 0 + if (authData is de.fiereu.openmmo.protocols.game.packets.NewAuthData) { + userId = authData.userId + log.info { "User $userId joined with session key (${authData.sessionKey.size} bytes)" } + } + + if (userId > 0) { + SessionManager.createSession(event.ctx.channel(), userId) + log.info { "Session created for user $userId" } + } + + event.accept().withPlaytime(1337).withRewardPoints(420).withBalance(187).buildAndRespond(event) + } + + fun onCreateCharacter(event: PacketEvent) { + val session = SessionManager.getSessionByChannel(event.ctx.channel()) + if (session == null) { + log.warn { "Create character from unknown session" } + return + } + val name = event.packet.name + log.info { "Creating character '$name' for userId=${session.userId}" } + CharacterStore.createCharacter(session.userId, name) + log.info { "Created character '$name'" } + event.respond(buildCharacterList(session.userId)) + } + + fun onCharacterRequest(event: PacketEvent) { + val session = SessionManager.getSessionByChannel(event.ctx.channel()) + if (session != null) { + event.respond(buildCharacterList(session.userId)) + } else { + log.warn { "Character request from unauthenticated session" } + event.respond(CharacterListPacket(emptyList())) + } + } + + private fun buildCharacterList(userId: Int): CharacterListPacket { + val characters = CharacterStore.getCharactersByUser(userId) + val entries = + characters.map { stored -> + CharacterEntry( + characterInfo = stored.info, + skinSet = SkinSet(), + guildId = null, + pokemon = stored.pokemon.take(1), + ) + } + return CharacterListPacket(entries) + } + + fun onCharacterSelected(event: PacketEvent) { + val charId = event.packet.characterId + val stored = CharacterStore.getCharacter(charId) + + if (stored == null) { + log.warn { "Character $charId not found" } + return + } + + val session = SessionManager.getSessionByChannel(event.ctx.channel()) + if (session == null) { + log.warn { "No session for channel" } + return + } + + SessionManager.setActiveCharacter(event.ctx.channel(), charId) + log.info { "Player selected character '${stored.info.name}' (id=$charId)" } + + val info = stored.info + val now = LocalDateTime.now() + val updatedInfo = info.copy(lastLogin = now) + CharacterStore.updateCharacter(updatedInfo) + + val containers = + mapOf( + PokemonContainer.PARTY to stored.pokemon, + PokemonContainer.PC to stored.pcStorage, + PokemonContainer.BATTLE_BOX_1 to emptyList(), + PokemonContainer.BATTLE_BOX_2 to emptyList(), + PokemonContainer.DAYCARE to emptyList(), + ) + for ((container, pokemon) in containers) { + event.respond( + PokemonContainerPacket( + container = container, + hasChange = true, + delete = false, + pokemon = pokemon, + )) + } + + sendRawPackets(event, info) + preloadMapAndJoin(event, charId, session) + } + + private fun sendRawPackets( + event: PacketEvent, + info: de.fiereu.openmmo.common.CharacterInfo + ) { + packetSender.sendRaw(event.ctx, 0x40u, bytesOf(0x01, 0x01, 0x00, 0x00)) + packetSender.sendRaw(event.ctx, 0x55u, bytesOf(0x00, 0x00, 0x00)) + + listOf(PokemonContainer.UNKNOWN_13, PokemonContainer.UNKNOWN_14).forEach { container -> + event.respond( + PokemonContainerPacket( + container = container, + hasChange = true, + delete = false, + pokemon = emptyList(), + )) + } + + packetSender.sendRaw(event.ctx, 0x67u, bytesOf(0x00, 0x00)) + packetSender.sendRaw(event.ctx, 0x63u, bytesOf(0x00, 0x00)) + packetSender.sendRaw(event.ctx, 0x98u, bytesOf(0x00, 0x00, 0x00, 0x00, 0x00, 0x00)) + packetSender.sendRaw( + event.ctx, 0x0Au, bytesOf(0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00)) + packetSender.sendRaw(event.ctx, 0x29u, bytesOf(0x00, 0x00, 0x00)) + packetSender.sendRaw(event.ctx, 0x29u, hexToBytes("0101006F080100")) + packetSender.sendRaw(event.ctx, 0x29u, bytesOf(0x02, 0x00, 0x00)) + packetSender.sendRaw(event.ctx, 0x29u, bytesOf(0x03, 0x00, 0x00)) + packetSender.sendRaw(event.ctx, 0x29u, bytesOf(0x04, 0x00, 0x00)) + packetSender.sendRaw(event.ctx, 0x29u, bytesOf(0x0A, 0x00, 0x00)) + packetSender.sendRaw(event.ctx, 0x29u, bytesOf(0x80, 0x00, 0x00)) + packetSender.sendRaw(event.ctx, 0x1Cu, bytesOf(0x00, 0x00)) + + event.respond(SelectedCharacterPacket(info)) + + packetSender.sendRaw(event.ctx, 0xF1u, bytesOf(0x05)) + packetSender.sendRaw(event.ctx, 0x4Au, bytesOf(0x00)) + packetSender.sendRaw(event.ctx, 0x4Du, bytesOf(0x18)) + + event.respond( + ChatMessagePacket( + ChatType.GAME_NOTIFICATIONS, + Language.EN, + "Welcome to OpenMMO!", + "", + )) + + packetSender.sendRaw( + event.ctx, + 0xF5u, + bytesOf( + 0x77, + 0x1A, + 0x00, + 0x00, + 0x81, + 0x00, + 0x05, + 0x4A, + 0x00, + 0x6F, + 0x00, + 0x73, + 0x00, + 0x75, + 0x00, + 0x6B, + 0x00, + 0x65, + 0x00, + 0x00, + 0x00, + 0x10, + )) + + packetSender.sendRaw( + event.ctx, + 0x4Fu, + hexToBytes( + "B8009502029202019102029002008F02008C02008902008802028702008602008502008402008302008202008102008002027F02017E02027D02017B02017802037602037402037102026D02026C02016402026102015C02035602015102014F02014302013D02033B02033302023102022B02022902022102021602011202010E0202F10101F00103EE0100ED0100EC0102EB0100EA0100E90100E80101E70100E60100E50101E40100E30100E20100E10100E00100DF0103DE0102DB0103DA0102D90101D80101D50102D40101D10102D00102CE0102CD0101CC0103C60103C20102C00101BD0101BA0102B50101B40103B30103AE0102AD0102A80103A701029701038E01018B01028801018501038201008101018001007F01007E01007D01007C01007B01007A01007901007801017501016401035E01035601014E01034A01024401023F01033401022E01012901032301021E01011A0103170101100103040103010103FE0003FB0000FA0000F90000F80001F50001F40002F30001F20002ED0003E90002E80002E60001E30001E20003DD0003D60002D40001D30003D00003CF0002CD0002C70002C50002C40002C30002BA0002B20003AB0003A90002A000029700009600009500019200039100018F00038D00038700038600038200017900017100016E00016B00036500035E00015B00025200035000014C00034900024400024100033E00033B00033700033100032A00032600022400032200021F0002090003030002080600000F00000C00000B00000D00000700000800000E0000")) + + packetSender.sendRaw(event.ctx, 0xD3u, bytesOf(0x00)) + + packetSender.sendRaw( + event.ctx, + 0xFCu, + hexToBytes( + "10D6B660234D938A916F030CD1B64F9CDD0100040100007F0601000000000000000000000000000000621E0A")) + + packetSender.sendRaw(event.ctx, 0x59u, bytesOf(0x00, 0x00)) + packetSender.sendRaw(event.ctx, 0x59u, bytesOf(0x01, 0x00)) + + packetSender.sendRaw( + event.ctx, + 0x6Eu, + bytesOf( + 0x05, + 0x92, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0x00, + 0xF5, + 0x00, + 0x00)) + + packetSender.sendRaw(event.ctx, 0xB9u, bytesOf(0x00)) + } + + private fun preloadMapAndJoin( + event: PacketEvent, + charId: Long, + session: de.fiereu.openmmo.server.game.session.Session, + ) { + val info = CharacterStore.getCharacter(charId)?.info ?: return + + val map = MapManager.getMap(info.positionRegionId, info.positionBankId, info.positionMapId) + if (map != null) { + event.respond(MapManager.createLoadMapPacket(map, reloadPlayer = true, deleteCache = true)) + mapLoadService.preloadConnectedMaps(event.ctx, map) + } else { + log.warn { + "Map not found for position ${info.positionRegionId}:${info.positionBankId}:${info.positionMapId}" + } + } + + session.regionId = info.positionRegionId.toInt() + session.bankId = info.positionBankId.toInt() + session.mapId = info.positionMapId.toInt() + session.x = info.positionX + session.y = info.positionY + + multiplayerService.broadcastMessage( + ChatMessagePacket( + ChatType.GAME_NOTIFICATIONS, + Language.EN, + "Player ${info.name} joined the game.", + "", + )) + } + + fun onRequestPlayer(event: PacketEvent) { + log.info { "Received RequestPlayerPacket" } + val session = SessionManager.getSessionByChannel(event.ctx.channel()) + if (session == null) { + log.warn { "RequestPlayer from unknown session" } + return + } + + val charId = session.characterId + if (charId == null) { + log.warn { "RequestPlayer without active character" } + return + } + val stored = CharacterStore.getCharacter(charId) + if (stored == null) { + log.warn { "RequestPlayer for unknown character $charId" } + return + } + val info = stored.info + + log.info { "Sending LoadEntity + 0x90 for character '${info.name}'" } + val facing = session.facingDirection + val loadEntity = mapLoadService.createLoadEntity(info, facing) + + event.ctx.channel().writeAndFlush(loadEntity) + mapLoadService.send90(event.ctx, loadEntity.entityId, loadEntity.skin) + npcService.spawnNpcsForMap(event.ctx, info.positionBankId.toInt(), info.positionMapId.toInt()) + + val bankId = info.positionBankId.toInt() + val mapId = info.positionMapId.toInt() + val regionId = info.positionRegionId.toInt() + session.regionId = regionId + session.bankId = bankId + session.mapId = mapId + session.x = info.positionX + session.y = info.positionY + + val currentParty = CharacterStore.getCharacter(charId)?.pokemon ?: emptyList() + val hasFollower = currentParty.isNotEmpty() + val followerDexId = (currentParty.firstOrNull()?.dexId ?: 0).toShort() + + // Send LoadEntity of each existing player in this map to the new player + val others = SessionManager.getOthersInMap(charId, regionId, bankId, mapId) + for (other in others) { + val otherStored = CharacterStore.getCharacter(other.characterId ?: continue) ?: continue + val otherParty = otherStored.pokemon + event.ctx + .channel() + .write( + LoadEntityPacket( + entityId = other.characterId!!, + skin = SkinSet(), + name = otherStored.info.name, + regionId = other.regionId, + bankId = other.bankId, + mapId = other.mapId, + x = other.x.toInt(), + y = other.y.toInt(), + facing = other.facingDirection, + status = de.fiereu.openmmo.common.enums.EntityStatus.NONE, + hasFollower = otherParty.isNotEmpty(), + followerDexId = (otherParty.firstOrNull()?.dexId ?: 0).toShort(), + )) + } + + // Broadcast LoadEntity of new player to all existing players in this map + val selfEntity = + LoadEntityPacket( + entityId = charId, + skin = SkinSet(), + name = info.name, + regionId = regionId, + bankId = bankId, + mapId = mapId, + x = info.positionX.toInt(), + y = info.positionY.toInt(), + facing = facing, + status = de.fiereu.openmmo.common.enums.EntityStatus.NONE, + hasFollower = hasFollower, + followerDexId = followerDexId, + ) + for (other in others) { + other.channel.writeAndFlush(selfEntity) + } + + event.ctx.channel().writeAndFlush(RenderScreenPacket(true)) + log.info { "Player $charId spawned in bank=$bankId map=$mapId; ${others.size} others present" } + } + + private fun bytesOf(vararg ints: Int) = ByteArray(ints.size) { ints[it].toByte() } + + private fun hexToBytes(hex: String): ByteArray { + val hexStr = hex.replace(" ", "").replace("\n", "") + return ByteArray(hexStr.length / 2) { hexStr.substring(it * 2, it * 2 + 2).toInt(16).toByte() } + } +} diff --git a/server.game/src/main/kotlin/de/fiereu/openmmo/server/game/services/MapLoadService.kt b/server.game/src/main/kotlin/de/fiereu/openmmo/server/game/services/MapLoadService.kt new file mode 100644 index 0000000..73ccd37 --- /dev/null +++ b/server.game/src/main/kotlin/de/fiereu/openmmo/server/game/services/MapLoadService.kt @@ -0,0 +1,99 @@ +package de.fiereu.openmmo.server.game.services + +import de.fiereu.openmmo.common.CharacterInfo +import de.fiereu.openmmo.common.enums.Direction +import de.fiereu.openmmo.protocols.game.packets.LoadEntityPacket +import de.fiereu.openmmo.protocols.game.packets.MapData +import de.fiereu.openmmo.protocols.game.packets.codecs.SkinSet +import de.fiereu.openmmo.server.game.world.MapDef +import de.fiereu.openmmo.server.game.world.MapManager +import io.github.oshai.kotlinlogging.KotlinLogging +import io.netty.buffer.Unpooled +import io.netty.channel.ChannelHandlerContext + +private val log = KotlinLogging.logger {} + +class MapLoadService(private val packetSender: PacketSender) { + + fun createLoadEntity( + info: CharacterInfo, + facing: Direction = Direction.DOWN, + ): LoadEntityPacket { + return LoadEntityPacket( + entityId = info.id, + skin = SkinSet(), + name = info.name, + regionId = info.positionRegionId.toInt(), + bankId = info.positionBankId.toInt(), + mapId = info.positionMapId.toInt(), + x = info.positionX.toInt(), + y = info.positionY.toInt(), + facing = facing, + status = de.fiereu.openmmo.common.enums.EntityStatus.NONE, + hasFollower = false, + followerDexId = 0, + ) + } + + fun send90(ctx: ChannelHandlerContext, entityId: Long, skin: SkinSet) { + val raw90Buf = Unpooled.buffer() + raw90Buf.writeLongLE(entityId) + raw90Buf.writeByte(0x01) + raw90Buf.writeByte(0x00) + raw90Buf.writeByte(0x4C) + raw90Buf.writeByte(0x03) + raw90Buf.writeBytes( + byteArrayOf( + 0x13, + 0xA8.toByte(), + 0x0A, + 0x00, + 0x03, + 0x8C.toByte(), + 0x01, + 0x38.toByte(), + 0x02, + 0x4C, + 0x01)) + val raw90 = ByteArray(raw90Buf.readableBytes()) + raw90Buf.readBytes(raw90) + raw90Buf.release() + log.info { + ">> TX 0x90 payload (${raw90.size}b): ${raw90.joinToString("") { "%02X".format(it) }}" + } + packetSender.sendRaw(ctx, 0x90u, raw90) + } + + fun preloadConnectedMaps( + ctx: ChannelHandlerContext, + map: MapDef, + depth: Int = 2, + reloadPlayer: Boolean = false, + flush: Boolean = true, + ) { + val loaded = mutableSetOf() + loaded.add("${map.bankId}:${map.mapId}") + fun preload(connections: List, remaining: Int) { + if (remaining <= 0) return + for (conn in connections) { + val key = "${conn.targetBank}:${conn.targetMap}" + if (!loaded.add(key)) continue + val connected = MapManager.getMap(1, conn.targetBank.toByte(), conn.targetMap.toByte()) + if (connected != null) { + ctx.channel() + .write( + MapManager.createLoadMapPacket( + connected, + reloadPlayer = reloadPlayer, + deleteCache = false, + )) + preload(connected.connections, remaining - 1) + } + } + } + preload(map.connections, depth) + if (flush) { + ctx.channel().flush() + } + } +} diff --git a/server.game/src/main/kotlin/de/fiereu/openmmo/server/game/services/MovementService.kt b/server.game/src/main/kotlin/de/fiereu/openmmo/server/game/services/MovementService.kt new file mode 100644 index 0000000..f73880d --- /dev/null +++ b/server.game/src/main/kotlin/de/fiereu/openmmo/server/game/services/MovementService.kt @@ -0,0 +1,255 @@ +package de.fiereu.openmmo.server.game.services + +import de.fiereu.openmmo.common.enums.Direction +import de.fiereu.openmmo.protocols.game.packets.EntityMovePacket +import de.fiereu.openmmo.protocols.game.packets.FaceDirectionPacket +import de.fiereu.openmmo.protocols.game.packets.MapData +import de.fiereu.openmmo.protocols.game.packets.MovementPacket +import de.fiereu.openmmo.server.game.session.SessionManager +import de.fiereu.openmmo.server.game.storage.CharacterStore +import de.fiereu.openmmo.server.game.world.MapManager +import de.fiereu.openmmo.server.protocol.PacketEvent +import io.github.oshai.kotlinlogging.KotlinLogging +import io.netty.channel.ChannelHandlerContext +import java.util.concurrent.atomic.AtomicInteger + +private val log = KotlinLogging.logger {} + +class MovementService( + private val warpService: WarpService, + private val mapLoadService: MapLoadService, + private val npcService: NpcService, + private val multiplayerService: MultiplayerService, +) { + private val sequenceCounter = AtomicInteger(0) + + fun onMovement(event: PacketEvent) { + val session = SessionManager.getSessionByChannel(event.ctx.channel()) + if (session == null) return + + val charId = session.characterId ?: return + val msg = event.packet + + log.info { "Movement: char=$charId, x=${msg.x}, y=${msg.y}, dir=${msg.direction}" } + session.facingDirection = msg.direction + + // Store previous position for detecting wall bumps + val prevStored = CharacterStore.getCharacter(charId) + val prevX = prevStored?.info?.positionX?.toInt() + val prevY = prevStored?.info?.positionY?.toInt() + val isWallBump = prevX == msg.x && prevY == msg.y + + // Check for warps and edge transitions BEFORE updating position. + val stored = CharacterStore.getCharacter(charId) + if (stored != null) { + val currentMap = + MapManager.getMap( + stored.info.positionRegionId, + stored.info.positionBankId, + stored.info.positionMapId, + ) + if (currentMap != null) { + // Skip warp check for the first movement after a warp + if (session.justWarped) { + session.justWarped = false + } else { + // Direct warp: player walked onto a warp tile (not just standing on it) + val warp = + currentMap.warps.find { w -> + w.x == msg.x && + w.y == msg.y && + (w.facingDirection == null || w.facingDirection == msg.direction) && + !isWallBump + } + if (warp != null) { + log.info { + "DIRECT WARP at (${msg.x}, ${msg.y}) facing ${msg.direction} → ${warp.targetRegionId}:${warp.targetBankId}:${warp.targetMapId} (${warp.targetX}, ${warp.targetY})" + } + warpService.executeWarp(event.ctx, charId, warp) + return + } + + // Adjacent warp: player is standing in front of a door tile, facing it + val adjX = + msg.x + + when (msg.direction) { + Direction.RIGHT -> 1 + Direction.LEFT -> -1 + else -> 0 + } + val adjY = + msg.y + + when (msg.direction) { + Direction.UP -> -1 + Direction.DOWN -> 1 + else -> 0 + } + val adjWarp = + currentMap.warps.find { w -> + w.x == adjX && + w.y == adjY && + (w.facingDirection == null || w.facingDirection == msg.direction) + } + if (adjWarp != null) { + log.info { + "ADJACENT WARP at (${msg.x}, ${msg.y}) facing ${msg.direction} → tile ($adjX, $adjY) → ${adjWarp.targetRegionId}:${adjWarp.targetBankId}:${adjWarp.targetMapId} (${adjWarp.targetX}, ${adjWarp.targetY})" + } + warpService.executeWarp(event.ctx, charId, adjWarp) + return + } + } + + // Map edge transition + if (prevX != null && prevY != null && !isWallBump) { + val dx = kotlin.math.abs(msg.x - prevX) + val dy = kotlin.math.abs(msg.y - prevY) + log.info { + "EDGE CHECK: prev=($prevX, $prevY) msg=(${msg.x}, ${msg.y}) dx=$dx dy=$dy map=${currentMap.bankId}:${currentMap.mapId} h=${currentMap.height} w=${currentMap.width}" + } + if (dx > 1 || dy > 1) { + val gbaDirection = + when { + prevY == 0 -> 2 // North + prevY == currentMap.height - 1 -> 1 // South + prevX == 0 -> 3 // West + prevX == currentMap.width - 1 -> 4 // East + else -> null + } + log.info { "BIG JUMP: gbaDirection=$gbaDirection" } + if (gbaDirection != null) { + val connection = currentMap.connections.find { it.direction == gbaDirection } + log.info { "Connection found: $connection" } + if (connection != null) { + val targetMap = + MapManager.getMap( + 1, + connection.targetBank.toByte(), + connection.targetMap.toByte(), + ) + if (targetMap != null) { + val targetX = + when (gbaDirection) { + 3 -> targetMap.width - 1 + 4 -> 0 + else -> + (prevX - connection.unknown).coerceIn( + 0, + targetMap.width - 1, + ) + } + val targetY = + when (gbaDirection) { + 1 -> 0 + 2 -> targetMap.height - 1 + else -> + (prevY - connection.unknown).coerceIn( + 0, + targetMap.height - 1, + ) + } + log.info { + "MAP TRANSITION prev=($prevX, $prevY) dir=${msg.direction} → bank=${connection.targetBank} map=${connection.targetMap} ($targetX, $targetY)" + } + edgeTransition( + event.ctx, + charId, + connection, + targetX.toByte(), + targetY.toByte(), + msg.direction, + ) + return + } + } + } + } + } + } + } + + // No transition: normal movement update + EntityMove broadcast + CharacterStore.updatePosition(charId, msg.x.toShort(), msg.y.toShort()) + session.x = msg.x.toShort() + session.y = msg.y.toShort() + if (!isWallBump) { + val seq = sequenceCounter.incrementAndGet().toByte() + val movePkt = + EntityMovePacket( + entityId = charId, + x = msg.x.toByte(), + y = msg.y.toByte(), + direction = msg.direction, + seq = seq, + ) + event.ctx.channel().writeAndFlush(movePkt) + multiplayerService.broadcastExcept(event.ctx.channel(), movePkt) + } + } + + fun onFaceDirection(event: PacketEvent) { + val session = SessionManager.getSessionByChannel(event.ctx.channel()) + if (session == null) return + + val charId = session.characterId ?: return + val msg = event.packet + session.facingDirection = msg.direction + + val seq = sequenceCounter.incrementAndGet().toByte() + val stored = CharacterStore.getCharacter(charId) ?: return + val movePkt = + EntityMovePacket( + entityId = charId, + x = stored.info.positionX.toByte(), + y = stored.info.positionY.toByte(), + direction = msg.direction, + seq = seq, + ) + event.ctx.channel().writeAndFlush(movePkt) + multiplayerService.broadcastExcept(event.ctx.channel(), movePkt) + } + + private fun edgeTransition( + ctx: ChannelHandlerContext, + charId: Long, + connection: MapData.GbaConnection, + targetX: Byte, + targetY: Byte, + direction: Direction, + ) { + val targetBank = connection.targetBank.toByte() + val targetMap = connection.targetMap.toByte() + val map = MapManager.getMap(1, targetBank, targetMap) ?: return + + val session = SessionManager.getSessionByCharacterId(charId) + session?.bankId = targetBank.toInt() + session?.mapId = targetMap.toInt() + session?.x = targetX.toShort() + session?.y = targetY.toShort() + CharacterStore.updatePosition( + charId, + targetX.toShort(), + targetY.toShort(), + targetBank, + targetMap, + ) + + ctx.channel() + .write(MapManager.createLoadMapPacket(map, reloadPlayer = false, deleteCache = false)) + mapLoadService.preloadConnectedMaps(ctx, map, depth = 1, flush = false) + npcService.spawnNpcsForMap(ctx, targetBank.toInt(), targetMap.toInt()) + + val seq = sequenceCounter.incrementAndGet().toByte() + val movePkt = + EntityMovePacket( + entityId = charId, + x = targetX, + y = targetY, + direction = direction, + seq = seq, + ) + ctx.channel().write(movePkt) + multiplayerService.broadcastExcept(ctx.channel(), movePkt) + ctx.channel().flush() + log.info { "Player $charId edge-transitioned to bank=$targetBank map=$targetMap" } + } +} diff --git a/server.game/src/main/kotlin/de/fiereu/openmmo/server/game/services/MultiplayerService.kt b/server.game/src/main/kotlin/de/fiereu/openmmo/server/game/services/MultiplayerService.kt new file mode 100644 index 0000000..d5c38da --- /dev/null +++ b/server.game/src/main/kotlin/de/fiereu/openmmo/server/game/services/MultiplayerService.kt @@ -0,0 +1,25 @@ +package de.fiereu.openmmo.server.game.services + +import de.fiereu.openmmo.server.game.session.SessionManager +import io.netty.channel.Channel + +class MultiplayerService { + + fun broadcastMessage(packet: Any) { + for (characterId in SessionManager.getOnlineCharacterIds()) { + val s = SessionManager.getSessionByCharacterId(characterId) ?: continue + if (s.channel.isActive) { + s.channel.writeAndFlush(packet) + } + } + } + + fun broadcastExcept(channel: Channel, packet: Any) { + for (characterId in SessionManager.getOnlineCharacterIds()) { + val s = SessionManager.getSessionByCharacterId(characterId) ?: continue + if (s.channel.isActive && s.channel != channel) { + s.channel.writeAndFlush(packet) + } + } + } +} diff --git a/server.game/src/main/kotlin/de/fiereu/openmmo/server/game/services/NpcService.kt b/server.game/src/main/kotlin/de/fiereu/openmmo/server/game/services/NpcService.kt new file mode 100644 index 0000000..3191475 --- /dev/null +++ b/server.game/src/main/kotlin/de/fiereu/openmmo/server/game/services/NpcService.kt @@ -0,0 +1,117 @@ +package de.fiereu.openmmo.server.game.services + +import de.fiereu.openmmo.protocols.game.packets.NpcSpawnPacket +import de.fiereu.openmmo.server.game.world.MapManager +import io.github.oshai.kotlinlogging.KotlinLogging +import io.netty.channel.ChannelHandlerContext +import java.util.concurrent.atomic.AtomicLong + +private val log = KotlinLogging.logger {} + +class NpcService { + + private val npcEntityIdCounter = AtomicLong(0x1A69000000000000L) + private val npcEntityIds = mutableMapOf() + + fun getNpcEntityId(bankId: Int, mapId: Int, entityIdx: Int): Long? { + return npcEntityIds["$bankId:$mapId:$entityIdx"] + } + + fun spawnNpcsForMap(ctx: ChannelHandlerContext, bankId: Int, mapId: Int) { + val map = MapManager.getMap(1, bankId.toByte(), mapId.toByte()) + if (map == null) return + val entityIds = mutableListOf() + + // Petalburg Woods (bank=74, map=11) — send all 16 NPCs (0-15), + // using exact values from real server packets.db rows 3895-3910 + if (bankId == 74 && mapId == 11) { + data class NpcEntry( + val entityIdx: Int, + val x: Int, + val y: Int, + val gfx: Int, + val unk1: Int, + val unk3: Int, + val unk4: Int, + val facing: Int, + val unk6: Int + ) + val all16 = + listOf( + NpcEntry(7, 15, 19, 9, 1, 768, 513, 0, 8), + NpcEntry(6, 4, 8, 59, 1, 256, 0, 0, 8), + NpcEntry(5, 35, 20, 59, 1, 2048, 0, 0, 8), + NpcEntry(4, 45, 7, 59, 1, 2048, 0, 0, 8), + NpcEntry(3, 26, 20, 23, 1, 256, 0, 0, 0), + NpcEntry(2, 26, 17, 117, 1, 2563, 0, 3, 0), + NpcEntry(1, 19, 11, 82, 1, 256, 0, 0, 8), + NpcEntry(0, 19, 10, 82, 1, 256, 0, 0, 8), + NpcEntry(15, 16, 24, 0, 10, 25600, 0, 0, 8), + NpcEntry(14, 15, 24, 600, 10, 0, 0, 0, 0), + NpcEntry(13, 36, 23, 246, 10, 0, 0, 0, 8), + NpcEntry(12, 33, 5, 10, 1, 256, 257, 0, 8), + NpcEntry(11, 4, 26, 59, 1, 256, 257, 0, 8), + NpcEntry(10, 30, 34, 13, 1, 512, 258, 0, 8), + NpcEntry(9, 4, 14, 36, 1, 5121, 0, 1, 9), + NpcEntry(8, 7, 32, 36, 1, 5632, 0, 0, 8), + ) + val baseEntityId = 0x1A6BFE24CC88E000L + for (npc in all16) { + val entityId = baseEntityId or npc.entityIdx.toLong() + log.info { + ">> Petalburg NpcSpawn[${npc.entityIdx}] entId=0x${entityId.toString(16)} pos=(${npc.x},${npc.y}) gfx=${npc.gfx} unk3=${npc.unk3} unk4=${npc.unk4}" + } + val spawnPacket = + NpcSpawnPacket( + entityId = entityId, + unk1 = npc.unk1, + unk2 = npc.gfx, + unk3 = npc.unk3, + unk4 = npc.unk4, + regionId = 1, + bankId = bankId, + mapId = mapId, + x = npc.x, + y = npc.y, + facing = npc.facing, + unk5 = 2, + unk6 = npc.unk6, + ) + ctx.channel().write(spawnPacket) + entityIds.add(entityId) + } + return + } + + // All other maps: send visible NPCs from MapDef + for (npc in map.npcs) { + val key = "$bankId:$mapId:${npc.entityIdx}" + val entityId = npcEntityIds.getOrPut(key) { npcEntityIdCounter.incrementAndGet() } + val unk3 = ((npc.movementType and 0xFF) shl 8) or 0x02 + val unk4 = + if (npc.movementType in 1..6 || (npc.movementType in 25..52)) { + ((npc.movementRangeX and 0xFF) shl 8) or (npc.movementRangeY and 0xFF) + } else { + 0 + } + val spawnPacket = + NpcSpawnPacket( + entityId = entityId, + unk1 = 1, + unk2 = npc.graphicsId, + unk3 = unk3, + unk4 = unk4, + regionId = 1, + bankId = bankId, + mapId = mapId, + x = npc.x, + y = npc.y, + facing = npc.facing, + unk5 = 2, + unk6 = 8, + ) + ctx.channel().write(spawnPacket) + entityIds.add(entityId) + } + } +} diff --git a/server.game/src/main/kotlin/de/fiereu/openmmo/server/game/services/PacketSender.kt b/server.game/src/main/kotlin/de/fiereu/openmmo/server/game/services/PacketSender.kt new file mode 100644 index 0000000..77b0598 --- /dev/null +++ b/server.game/src/main/kotlin/de/fiereu/openmmo/server/game/services/PacketSender.kt @@ -0,0 +1,24 @@ +package de.fiereu.openmmo.server.game.services + +import de.fiereu.openmmo.server.netty.Compressor +import io.netty.buffer.Unpooled +import io.netty.channel.ChannelHandlerContext + +class PacketSender(private val compressor: Compressor) { + + fun sendRaw(ctx: ChannelHandlerContext, opcode: UByte, data: ByteArray) { + val buffer = ctx.alloc().buffer() + buffer.writeByte(opcode.toInt()) + val dataBuf = Unpooled.wrappedBuffer(data) + buffer.writeBytes(compressor.compress(dataBuf)) + ctx.write(buffer) + } + + fun sendRawAndFlush(ctx: ChannelHandlerContext, opcode: UByte, data: ByteArray) { + val buffer = ctx.alloc().buffer() + buffer.writeByte(opcode.toInt()) + val dataBuf = Unpooled.wrappedBuffer(data) + buffer.writeBytes(compressor.compress(dataBuf)) + ctx.writeAndFlush(buffer) + } +} diff --git a/server.game/src/main/kotlin/de/fiereu/openmmo/server/game/services/WarpService.kt b/server.game/src/main/kotlin/de/fiereu/openmmo/server/game/services/WarpService.kt new file mode 100644 index 0000000..b6ce901 --- /dev/null +++ b/server.game/src/main/kotlin/de/fiereu/openmmo/server/game/services/WarpService.kt @@ -0,0 +1,133 @@ +package de.fiereu.openmmo.server.game.services + +import de.fiereu.openmmo.common.enums.Direction +import de.fiereu.openmmo.protocols.game.packets.EntityLeavePacket +import de.fiereu.openmmo.protocols.game.packets.MapTransitionAckPacket +import de.fiereu.openmmo.protocols.game.packets.MapTransitionPacket +import de.fiereu.openmmo.protocols.game.packets.RenderScreenPacket +import de.fiereu.openmmo.server.game.session.SessionManager +import de.fiereu.openmmo.server.game.storage.CharacterStore +import de.fiereu.openmmo.server.game.world.MapManager +import de.fiereu.openmmo.server.game.world.WarpExitRules +import de.fiereu.openmmo.server.game.world.WarpTile +import io.github.oshai.kotlinlogging.KotlinLogging +import io.netty.channel.ChannelHandlerContext + +private val log = KotlinLogging.logger {} + +class WarpService( + private val mapLoadService: MapLoadService, +) { + + fun executeWarp(ctx: ChannelHandlerContext, charId: Long, warp: WarpTile) { + val session = SessionManager.getSessionByCharacterId(charId) + if (session != null) { + session.justWarped = true + } + val stored = CharacterStore.getCharacter(charId) ?: return + + val destMap = MapManager.getMap(warp.targetRegionId, warp.targetBankId, warp.targetMapId) + + val sourceMap = + MapManager.getMap( + stored.info.positionRegionId, stored.info.positionBankId, stored.info.positionMapId) + + val knownOverride = + WarpExitRules.getKnownOverride(sourceMap, destMap, warp.targetX, warp.targetY) + + val warpFacing = + knownOverride?.facing + ?: WarpExitRules.inferExitFacing( + destTileBehavior = null, + destMap = destMap, + destX = warp.targetX, + destY = warp.targetY, + sourceMap = sourceMap) + + session?.facingDirection = warpFacing + + var offsetX = warp.targetX + var offsetY = warp.targetY + + val shouldAutoStepOffWarp = + knownOverride?.autoStep + ?: WarpExitRules.shouldAutoStep( + sourceMap = sourceMap, + destMap = destMap, + ) + if (shouldAutoStepOffWarp) { + val destWarp = destMap?.warps?.find { it.x == offsetX && it.y == offsetY } + if (destWarp != null) { + when (warpFacing) { + Direction.UP -> offsetY-- + Direction.DOWN -> offsetY++ + Direction.LEFT -> offsetX-- + Direction.RIGHT -> offsetX++ + } + offsetX = offsetX.coerceIn(0, destMap!!.width - 1) + offsetY = offsetY.coerceIn(0, destMap!!.height - 1) + } + } + + log.info { + "WARP EXIT: source=${sourceMap?.bankId}:${sourceMap?.mapId} ${sourceMap?.mapType} " + + "dest=${destMap?.bankId}:${destMap?.mapId} ${destMap?.mapType} " + + "target=(${warp.targetX},${warp.targetY}) final=($offsetX,$offsetY) " + + "facing=$warpFacing autoStep=$shouldAutoStepOffWarp" + } + + val newInfo = + stored.info.copy( + positionRegionId = warp.targetRegionId, + positionBankId = warp.targetBankId, + positionMapId = warp.targetMapId, + positionX = offsetX.toShort(), + positionY = offsetY.toShort(), + ) + CharacterStore.updateCharacter(newInfo) + + // Multiplayer: broadcast EntityLeave to old-map players before position update + val oldRegionId = session?.regionId + val oldBankId = session?.bankId + val oldMapId = session?.mapId + if (oldBankId != null && oldMapId != null) { + val oldMapPlayers = + SessionManager.getOthersInMap(charId, oldRegionId ?: 1, oldBankId, oldMapId) + for (other in oldMapPlayers) { + other.channel.writeAndFlush(EntityLeavePacket(charId)) + } + } + + // Update session position for multiplayer tracking + if (session != null) { + session.regionId = warp.targetRegionId.toInt() + session.bankId = warp.targetBankId.toInt() + session.mapId = warp.targetMapId.toInt() + session.x = offsetX.toShort() + session.y = offsetY.toShort() + } + + // Real server warp sequence (from packets.db): + ctx.channel().writeAndFlush(MapTransitionPacket()) + ctx.channel().writeAndFlush(RenderScreenPacket(false)) + ctx.channel().writeAndFlush(mapLoadService.createLoadEntity(newInfo, warpFacing)) + ctx.channel().writeAndFlush(MapTransitionAckPacket(0)) + + if (destMap != null) { + ctx.channel() + .writeAndFlush( + MapManager.createLoadMapPacket( + destMap, + reloadPlayer = true, + deleteCache = true, + )) + mapLoadService.preloadConnectedMaps(ctx, destMap, depth = 1, reloadPlayer = true) + } else { + log.warn { + "Map not found for warp target ${warp.targetRegionId}:${warp.targetBankId}:${warp.targetMapId}" + } + } + + log.info { "Player $charId warped to bank=${warp.targetBankId} map=${warp.targetMapId}" } + } +} diff --git a/server.game/src/main/kotlin/de/fiereu/openmmo/server/game/storage/CharacterStore.kt b/server.game/src/main/kotlin/de/fiereu/openmmo/server/game/storage/CharacterStore.kt index f3ba9c7..ed72bfd 100644 --- a/server.game/src/main/kotlin/de/fiereu/openmmo/server/game/storage/CharacterStore.kt +++ b/server.game/src/main/kotlin/de/fiereu/openmmo/server/game/storage/CharacterStore.kt @@ -87,6 +87,8 @@ object CharacterStore { characterId: Long, x: Short, y: Short, + bankId: Byte? = null, + mapId: Byte? = null, ) { val stored = characters[characterId] ?: return val oldInfo = stored.info @@ -94,6 +96,8 @@ object CharacterStore { oldInfo.copy( positionX = x, positionY = y, + positionBankId = bankId ?: oldInfo.positionBankId, + positionMapId = mapId ?: oldInfo.positionMapId, ) characters[characterId] = stored.copy(info = newInfo) } diff --git a/server.game/src/main/kotlin/de/fiereu/openmmo/server/game/world/MapManager.kt b/server.game/src/main/kotlin/de/fiereu/openmmo/server/game/world/MapManager.kt index c46565d..4f285b2 100644 --- a/server.game/src/main/kotlin/de/fiereu/openmmo/server/game/world/MapManager.kt +++ b/server.game/src/main/kotlin/de/fiereu/openmmo/server/game/world/MapManager.kt @@ -33,9 +33,17 @@ class MapDef( val bgEvents: List = emptyList(), ) -data class WildEncounterTable(val encounterRate: Int, val pokemon: List) +data class WildEncounterTable( + val encounterRate: Int, + val pokemon: List, +) -data class WildPokemon(val dexId: Int, val minLevel: Int, val maxLevel: Int, val weight: Int) +data class WildPokemon( + val dexId: Int, + val minLevel: Int, + val maxLevel: Int, + val weight: Int, +) data class WarpTile( val x: Int, @@ -62,7 +70,12 @@ data class NpcDef( val script: String = "0x0", ) -data class BgEventDef(val x: Int, val y: Int, val facingDir: String, val script: String) +data class BgEventDef( + val x: Int, + val y: Int, + val facingDir: String, + val script: String, +) object MapManager { private val maps = mutableMapOf() @@ -91,33 +104,20 @@ object MapManager { height = 30, paletteIdx1 = 100, paletteIdx2 = 101, - unknownShort = 405, - unknownByte = 0, + unknownShort = 362, + unknownByte = 7, borderTiles = listOf( - Tile2D(0x01D4, 0), - Tile2D(0x01D5, 0), - Tile2D(0x01DC, 0), - Tile2D(0x01DD, 0), - ), + Tile2D(0x01D4, 0), Tile2D(0x01D5, 0), Tile2D(0x01DC, 0), Tile2D(0x01DD, 0)), lighting = Lighting.REGULAR, weather = Weather.REGULAR_WEATHER, mapType = MapType.CITY, - encounterType = EncounterType.GYM_STYLE, + encounterType = EncounterType.RANDOM, connections = listOf( GbaConnection( - direction = 3, - unknown = 0, - targetBank = 50, - targetMap = 19, - ), - GbaConnection( - direction = 4, - unknown = 0, - targetBank = 50, - targetMap = 17, - ), + direction = 3, unknown = -50, targetBank = 50, targetMap = 19), + GbaConnection(direction = 4, unknown = 10, targetBank = 50, targetMap = 17), ), warps = listOf( @@ -128,8 +128,7 @@ object MapManager { targetBankId = 58, targetMapId = 2, targetX = 3, - targetY = 8, - ), + targetY = 8), WarpTile( x = 7, y = 5, @@ -137,8 +136,7 @@ object MapManager { targetBankId = 58, targetMapId = 0, targetX = 3, - targetY = 7, - ), + targetY = 7), WarpTile( x = 15, y = 8, @@ -146,8 +144,7 @@ object MapManager { targetBankId = 58, targetMapId = 1, targetX = 4, - targetY = 111, - ), + targetY = 111), WarpTile( x = 20, y = 16, @@ -155,8 +152,7 @@ object MapManager { targetBankId = 58, targetMapId = 4, targetX = 7, - targetY = 8, - ), + targetY = 8), WarpTile( x = 20, y = 24, @@ -164,8 +160,7 @@ object MapManager { targetBankId = 58, targetMapId = 3, targetX = 3, - targetY = 7, - ), + targetY = 7), WarpTile( x = 25, y = 12, @@ -173,8 +168,7 @@ object MapManager { targetBankId = 58, targetMapId = 6, targetX = 3, - targetY = 7, - ), + targetY = 7), ), npcs = listOf( @@ -188,9 +182,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "PetalburgCity_EventScript_Boy", - ), + facing = 0, + script = "PetalburgCity_EventScript_Boy"), NpcDef( entityIdx = 3, graphicsId = 48, @@ -202,8 +195,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "PetalburgCity_EventScript_Gentleman", - ), + script = "PetalburgCity_EventScript_Gentleman"), NpcDef( entityIdx = 7, graphicsId = 9, @@ -215,8 +207,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "PetalburgCity_EventScript_GymBoy", - ), + script = "PetalburgCity_EventScript_GymBoy"), ), bgEvents = listOf( @@ -224,50 +215,42 @@ object MapManager { x = 17, y = 10, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "PetalburgCity_EventScript_GymSign", - ), + script = "PetalburgCity_EventScript_GymSign"), BgEventDef( x = 26, y = 12, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "Common_EventScript_ShowPokemartSign", - ), + script = "Common_EventScript_ShowPokemartSign"), BgEventDef( x = 21, y = 16, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "Common_EventScript_ShowPokemonCenterSign", - ), + script = "Common_EventScript_ShowPokemonCenterSign"), BgEventDef( x = 17, y = 16, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "PetalburgCity_EventScript_CitySign", - ), + script = "PetalburgCity_EventScript_CitySign"), BgEventDef( x = 22, y = 16, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "Common_EventScript_ShowPokemonCenterSign", - ), + script = "Common_EventScript_ShowPokemonCenterSign"), BgEventDef( x = 27, y = 12, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "Common_EventScript_ShowPokemartSign", - ), + script = "Common_EventScript_ShowPokemartSign"), BgEventDef( x = 8, y = 9, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "PetalburgCity_EventScript_WallyHouseSign", - ), + script = "PetalburgCity_EventScript_WallyHouseSign"), BgEventDef( x = 11, y = 29, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), ), ), // SlateportCity (MAP_SLATEPORT_CITY) @@ -277,41 +260,22 @@ object MapManager { mapId = 1, width = 40, height = 60, - paletteIdx1 = 86, - paletteIdx2 = 122, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 104, + unknownShort = 433, + unknownByte = 8, borderTiles = listOf( - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - ), + Tile2D(0x0170, 0), Tile2D(0x0170, 0), Tile2D(0x0170, 0), Tile2D(0x0170, 0)), lighting = Lighting.REGULAR, weather = Weather.REGULAR_WEATHER, mapType = MapType.CITY, - encounterType = EncounterType.GYM_STYLE, + encounterType = EncounterType.RANDOM, connections = listOf( - GbaConnection( - direction = 2, - unknown = 0, - targetBank = 50, - targetMap = 25, - ), - GbaConnection( - direction = 1, - unknown = 0, - targetBank = 50, - targetMap = 24, - ), - GbaConnection( - direction = 4, - unknown = 0, - targetBank = 50, - targetMap = 49, - ), + GbaConnection(direction = 2, unknown = 0, targetBank = 50, targetMap = 25), + GbaConnection(direction = 1, unknown = 0, targetBank = 50, targetMap = 24), + GbaConnection(direction = 4, unknown = 0, targetBank = 50, targetMap = 49), ), warps = listOf( @@ -322,8 +286,7 @@ object MapManager { targetBankId = 59, targetMapId = 11, targetX = 7, - targetY = 8, - ), + targetY = 8), WarpTile( x = 13, y = 26, @@ -331,8 +294,7 @@ object MapManager { targetBankId = 59, targetMapId = 13, targetX = 3, - targetY = 7, - ), + targetY = 7), WarpTile( x = 26, y = 38, @@ -340,8 +302,7 @@ object MapManager { targetBankId = 59, targetMapId = 0, targetX = 2, - targetY = 14, - ), + targetY = 14), WarpTile( x = 10, y = 12, @@ -349,8 +310,7 @@ object MapManager { targetBankId = 59, targetMapId = 2, targetX = 6, - targetY = 9, - ), + targetY = 9), WarpTile( x = 4, y = 26, @@ -358,8 +318,7 @@ object MapManager { targetBankId = 59, targetMapId = 6, targetX = 6, - targetY = 10, - ), + targetY = 10), WarpTile( x = 30, y = 26, @@ -367,8 +326,7 @@ object MapManager { targetBankId = 59, targetMapId = 7, targetX = 9, - targetY = 8, - ), + targetY = 8), WarpTile( x = 5, y = 19, @@ -376,8 +334,7 @@ object MapManager { targetBankId = 59, targetMapId = 5, targetX = 3, - targetY = 7, - ), + targetY = 7), WarpTile( x = 31, y = 26, @@ -385,8 +342,7 @@ object MapManager { targetBankId = 59, targetMapId = 7, targetX = 10, - targetY = 8, - ), + targetY = 8), WarpTile( x = 28, y = 12, @@ -394,8 +350,7 @@ object MapManager { targetBankId = 59, targetMapId = 9, targetX = 11, - targetY = 14, - ), + targetY = 14), WarpTile( x = 40, y = 7, @@ -403,8 +358,7 @@ object MapManager { targetBankId = 59, targetMapId = 9, targetX = 19, - targetY = 15, - ), + targetY = 15), WarpTile( x = 21, y = 44, @@ -412,8 +366,7 @@ object MapManager { targetBankId = 59, targetMapId = 10, targetX = 3, - targetY = 7, - ), + targetY = 7), ), npcs = listOf( @@ -428,8 +381,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "SlateportCity_EventScript_FatMan", - ), + script = "SlateportCity_EventScript_FatMan"), NpcDef( entityIdx = 1, graphicsId = 19, @@ -441,8 +393,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "SlateportCity_EventScript_Man1", - ), + script = "SlateportCity_EventScript_Man1"), NpcDef( entityIdx = 2, graphicsId = 15, @@ -454,8 +405,7 @@ object MapManager { movementRangeY = 2, trainerType = 0, facing = 0, - script = "SlateportCity_EventScript_RichBoy", - ), + script = "SlateportCity_EventScript_RichBoy"), NpcDef( entityIdx = 3, graphicsId = 26, @@ -467,8 +417,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "SlateportCity_EventScript_Woman1", - ), + script = "SlateportCity_EventScript_Woman1"), NpcDef( entityIdx = 5, graphicsId = 27, @@ -479,9 +428,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "SlateportCity_EventScript_Cook", - ), + facing = 0, + script = "SlateportCity_EventScript_Cook"), NpcDef( entityIdx = 6, graphicsId = 30, @@ -493,8 +441,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "SlateportCity_EventScript_OldWoman", - ), + script = "SlateportCity_EventScript_OldWoman"), NpcDef( entityIdx = 7, graphicsId = 8, @@ -506,8 +453,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "SlateportCity_EventScript_Girl", - ), + script = "SlateportCity_EventScript_Girl"), NpcDef( entityIdx = 11, graphicsId = 49, @@ -519,8 +465,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "SlateportCity_EventScript_Sailor1", - ), + script = "SlateportCity_EventScript_Sailor1"), NpcDef( entityIdx = 12, graphicsId = 49, @@ -532,8 +477,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "SlateportCity_EventScript_Sailor2", - ), + script = "SlateportCity_EventScript_Sailor2"), NpcDef( entityIdx = 13, graphicsId = 18, @@ -545,8 +489,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "SlateportCity_EventScript_PokefanF", - ), + script = "SlateportCity_EventScript_PokefanF"), NpcDef( entityIdx = 14, graphicsId = 33, @@ -558,8 +501,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "SlateportCity_EventScript_Man2", - ), + script = "SlateportCity_EventScript_Man2"), NpcDef( entityIdx = 15, graphicsId = 39, @@ -571,8 +513,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "SlateportCity_EventScript_Maniac", - ), + script = "SlateportCity_EventScript_Maniac"), NpcDef( entityIdx = 16, graphicsId = 34, @@ -584,8 +525,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "SlateportCity_EventScript_Woman2", - ), + script = "SlateportCity_EventScript_Woman2"), NpcDef( entityIdx = 19, graphicsId = 83, @@ -597,8 +537,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "SlateportCity_EventScript_DecorClerk", - ), + script = "SlateportCity_EventScript_DecorClerk"), NpcDef( entityIdx = 20, graphicsId = 83, @@ -609,9 +548,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "SlateportCity_EventScript_DollClerk", - ), + facing = 0, + script = "SlateportCity_EventScript_DollClerk"), NpcDef( entityIdx = 21, graphicsId = 66, @@ -622,9 +560,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "SlateportCity_EventScript_Man3", - ), + facing = 0, + script = "SlateportCity_EventScript_Man3"), NpcDef( entityIdx = 22, graphicsId = 34, @@ -635,9 +572,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "SlateportCity_EventScript_EffortRibbonWoman", - ), + facing = 0, + script = "SlateportCity_EventScript_EffortRibbonWoman"), NpcDef( entityIdx = 24, graphicsId = 25, @@ -648,9 +584,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "SlateportCity_EventScript_EnergyGuru", - ), + facing = 0, + script = "SlateportCity_EventScript_EnergyGuru"), NpcDef( entityIdx = 33, graphicsId = 18, @@ -662,8 +597,7 @@ object MapManager { movementRangeY = 2, trainerType = 0, facing = 2, - script = "SlateportCity_EventScript_BerryPowderClerk", - ), + script = "SlateportCity_EventScript_BerryPowderClerk"), ), bgEvents = listOf( @@ -671,80 +605,67 @@ object MapManager { x = 8, y = 19, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "SlateportCity_EventScript_NameRatersHouseSign", - ), + script = "SlateportCity_EventScript_NameRatersHouseSign"), BgEventDef( x = 20, y = 19, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "Common_EventScript_ShowPokemonCenterSign", - ), + script = "Common_EventScript_ShowPokemonCenterSign"), BgEventDef( x = 21, y = 19, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "Common_EventScript_ShowPokemonCenterSign", - ), + script = "Common_EventScript_ShowPokemonCenterSign"), BgEventDef( x = 14, y = 26, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "Common_EventScript_ShowPokemartSign", - ), + script = "Common_EventScript_ShowPokemartSign"), BgEventDef( x = 24, y = 12, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "SlateportCity_EventScript_HarborSign", - ), + script = "SlateportCity_EventScript_HarborSign"), BgEventDef( x = 15, y = 26, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "Common_EventScript_ShowPokemartSign", - ), + script = "Common_EventScript_ShowPokemartSign"), BgEventDef( x = 14, y = 51, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "SlateportCity_EventScript_MarketSign", - ), + script = "SlateportCity_EventScript_MarketSign"), BgEventDef( x = 26, y = 26, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "SlateportCity_EventScript_OceanicMuseumSign", - ), + script = "SlateportCity_EventScript_OceanicMuseumSign"), BgEventDef( x = 16, y = 22, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "SlateportCity_EventScript_CitySign", - ), + script = "SlateportCity_EventScript_CitySign"), BgEventDef( x = 8, y = 26, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "SlateportCity_EventScript_PokemonFanClubSign", - ), + script = "SlateportCity_EventScript_PokemonFanClubSign"), BgEventDef( x = 7, y = 13, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "SlateportCity_EventScript_BattleTentSign", - ), + script = "SlateportCity_EventScript_BattleTentSign"), BgEventDef( x = 23, y = 38, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "SlateportCity_EventScript_SternsShipyardSign", - ), + script = "SlateportCity_EventScript_SternsShipyardSign"), BgEventDef( x = 10, y = 36, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "SlateportCity_EventScript_BerryCrushRankingsSign", - ), + script = "SlateportCity_EventScript_BerryCrushRankingsSign"), ), ), // MauvilleCity (MAP_MAUVILLE_CITY) @@ -754,47 +675,23 @@ object MapManager { mapId = 2, width = 40, height = 20, - paletteIdx1 = 84, - paletteIdx2 = 120, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 105, + unknownShort = 399, + unknownByte = 9, borderTiles = listOf( - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - ), + Tile2D(0x0170, 0), Tile2D(0x0170, 0), Tile2D(0x0170, 0), Tile2D(0x0170, 0)), lighting = Lighting.REGULAR, weather = Weather.REGULAR_WEATHER, mapType = MapType.CITY, - encounterType = EncounterType.GYM_STYLE, + encounterType = EncounterType.RANDOM, connections = listOf( - GbaConnection( - direction = 2, - unknown = 0, - targetBank = 50, - targetMap = 26, - ), - GbaConnection( - direction = 1, - unknown = 0, - targetBank = 50, - targetMap = 25, - ), - GbaConnection( - direction = 3, - unknown = 0, - targetBank = 50, - targetMap = 32, - ), - GbaConnection( - direction = 4, - unknown = 0, - targetBank = 50, - targetMap = 33, - ), + GbaConnection(direction = 2, unknown = 0, targetBank = 50, targetMap = 26), + GbaConnection(direction = 1, unknown = 0, targetBank = 50, targetMap = 25), + GbaConnection(direction = 3, unknown = 0, targetBank = 50, targetMap = 32), + GbaConnection(direction = 4, unknown = 0, targetBank = 50, targetMap = 33), ), warps = listOf( @@ -805,8 +702,7 @@ object MapManager { targetBankId = 60, targetMapId = 0, targetX = 4, - targetY = 20, - ), + targetY = 20), WarpTile( x = 22, y = 5, @@ -814,8 +710,7 @@ object MapManager { targetBankId = 60, targetMapId = 5, targetX = 7, - targetY = 8, - ), + targetY = 8), WarpTile( x = 35, y = 5, @@ -823,8 +718,7 @@ object MapManager { targetBankId = 60, targetMapId = 1, targetX = 3, - targetY = 8, - ), + targetY = 8), WarpTile( x = 23, y = 14, @@ -832,8 +726,7 @@ object MapManager { targetBankId = 60, targetMapId = 7, targetX = 3, - targetY = 7, - ), + targetY = 7), WarpTile( x = 32, y = 14, @@ -841,8 +734,7 @@ object MapManager { targetBankId = 60, targetMapId = 2, targetX = 3, - targetY = 7, - ), + targetY = 7), WarpTile( x = 8, y = 13, @@ -850,8 +742,7 @@ object MapManager { targetBankId = 60, targetMapId = 3, targetX = 11, - targetY = 10, - ), + targetY = 10), WarpTile( x = 19, y = 14, @@ -859,8 +750,7 @@ object MapManager { targetBankId = 60, targetMapId = 4, targetX = 3, - targetY = 8, - ), + targetY = 8), ), npcs = listOf( @@ -875,8 +765,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "MauvilleCity_EventScript_Boy", - ), + script = "MauvilleCity_EventScript_Boy"), NpcDef( entityIdx = 1, graphicsId = 15, @@ -888,8 +777,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "MauvilleCity_EventScript_RichBoy", - ), + script = "MauvilleCity_EventScript_RichBoy"), NpcDef( entityIdx = 2, graphicsId = 39, @@ -901,8 +789,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "MauvilleCity_EventScript_Maniac", - ), + script = "MauvilleCity_EventScript_Maniac"), NpcDef( entityIdx = 3, graphicsId = 26, @@ -914,8 +801,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "MauvilleCity_EventScript_Woman", - ), + script = "MauvilleCity_EventScript_Woman"), NpcDef( entityIdx = 4, graphicsId = 38, @@ -926,9 +812,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "MauvilleCity_EventScript_SchoolKidM", - ), + facing = 0, + script = "MauvilleCity_EventScript_SchoolKidM"), NpcDef( entityIdx = 9, graphicsId = 17, @@ -940,8 +825,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 2, - script = "MauvilleCity_EventScript_RolloutTutor", - ), + script = "MauvilleCity_EventScript_RolloutTutor"), ), bgEvents = listOf( @@ -949,50 +833,42 @@ object MapManager { x = 23, y = 5, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "Common_EventScript_ShowPokemonCenterSign", - ), + script = "Common_EventScript_ShowPokemonCenterSign"), BgEventDef( x = 11, y = 6, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "MauvilleCity_EventScript_GymSign", - ), + script = "MauvilleCity_EventScript_GymSign"), BgEventDef( x = 24, y = 14, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "Common_EventScript_ShowPokemartSign", - ), + script = "Common_EventScript_ShowPokemartSign"), BgEventDef( x = 25, y = 14, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "Common_EventScript_ShowPokemartSign", - ), + script = "Common_EventScript_ShowPokemartSign"), BgEventDef( x = 24, y = 5, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "Common_EventScript_ShowPokemonCenterSign", - ), + script = "Common_EventScript_ShowPokemonCenterSign"), BgEventDef( x = 19, y = 7, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "MauvilleCity_EventScript_CitySign", - ), + script = "MauvilleCity_EventScript_CitySign"), BgEventDef( x = 33, y = 6, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "MauvilleCity_EventScript_BikeShopSign", - ), + script = "MauvilleCity_EventScript_BikeShopSign"), BgEventDef( x = 11, y = 15, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "MauvilleCity_EventScript_GameCornerSign", - ), + script = "MauvilleCity_EventScript_GameCornerSign"), ), ), // RustboroCity (MAP_RUSTBORO_CITY) @@ -1002,41 +878,22 @@ object MapManager { mapId = 3, width = 40, height = 60, - paletteIdx1 = 82, - paletteIdx2 = 118, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 102, + unknownShort = 399, + unknownByte = 10, borderTiles = listOf( - Tile2D(0x01D4, 0), - Tile2D(0x01D5, 0), - Tile2D(0x01DC, 0), - Tile2D(0x01DD, 0), - ), + Tile2D(0x01D4, 0), Tile2D(0x01D5, 0), Tile2D(0x01DC, 0), Tile2D(0x01DD, 0)), lighting = Lighting.REGULAR, weather = Weather.REGULAR_WEATHER, mapType = MapType.CITY, - encounterType = EncounterType.GYM_STYLE, + encounterType = EncounterType.RANDOM, connections = listOf( - GbaConnection( - direction = 2, - unknown = 0, - targetBank = 50, - targetMap = 30, - ), - GbaConnection( - direction = 1, - unknown = 0, - targetBank = 50, - targetMap = 19, - ), - GbaConnection( - direction = 4, - unknown = 0, - targetBank = 50, - targetMap = 31, - ), + GbaConnection(direction = 2, unknown = 0, targetBank = 50, targetMap = 30), + GbaConnection(direction = 1, unknown = 0, targetBank = 50, targetMap = 19), + GbaConnection(direction = 4, unknown = 0, targetBank = 50, targetMap = 31), ), warps = listOf( @@ -1047,8 +904,7 @@ object MapManager { targetBankId = 61, targetMapId = 3, targetX = 5, - targetY = 19, - ), + targetY = 19), WarpTile( x = 13, y = 30, @@ -1056,8 +912,7 @@ object MapManager { targetBankId = 61, targetMapId = 8, targetX = 6, - targetY = 7, - ), + targetY = 7), WarpTile( x = 16, y = 45, @@ -1065,8 +920,7 @@ object MapManager { targetBankId = 61, targetMapId = 7, targetX = 3, - targetY = 7, - ), + targetY = 7), WarpTile( x = 16, y = 38, @@ -1074,8 +928,7 @@ object MapManager { targetBankId = 61, targetMapId = 5, targetX = 7, - targetY = 8, - ), + targetY = 8), WarpTile( x = 27, y = 34, @@ -1083,8 +936,7 @@ object MapManager { targetBankId = 61, targetMapId = 4, targetX = 5, - targetY = 10, - ), + targetY = 10), WarpTile( x = 11, y = 15, @@ -1092,8 +944,7 @@ object MapManager { targetBankId = 61, targetMapId = 0, targetX = 5, - targetY = 8, - ), + targetY = 8), WarpTile( x = 12, y = 15, @@ -1101,8 +952,7 @@ object MapManager { targetBankId = 61, targetMapId = 0, targetX = 6, - targetY = 8, - ), + targetY = 8), WarpTile( x = 33, y = 19, @@ -1110,8 +960,7 @@ object MapManager { targetBankId = 61, targetMapId = 10, targetX = 5, - targetY = 7, - ), + targetY = 7), WarpTile( x = 9, y = 38, @@ -1119,8 +968,7 @@ object MapManager { targetBankId = 61, targetMapId = 11, targetX = 5, - targetY = 8, - ), + targetY = 8), WarpTile( x = 30, y = 28, @@ -1128,8 +976,7 @@ object MapManager { targetBankId = 61, targetMapId = 12, targetX = 5, - targetY = 8, - ), + targetY = 8), WarpTile( x = 5, y = 51, @@ -1137,8 +984,7 @@ object MapManager { targetBankId = 61, targetMapId = 13, targetX = 2, - targetY = 8, - ), + targetY = 8), WarpTile( x = 26, y = 46, @@ -1146,8 +992,7 @@ object MapManager { targetBankId = 61, targetMapId = 16, targetX = 5, - targetY = 8, - ), + targetY = 8), ), npcs = listOf( @@ -1162,8 +1007,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "RustboroCity_EventScript_Woman", - ), + script = "RustboroCity_EventScript_Woman"), NpcDef( entityIdx = 1, graphicsId = 17, @@ -1175,8 +1019,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "RustboroCity_EventScript_FatMan", - ), + script = "RustboroCity_EventScript_FatMan"), NpcDef( entityIdx = 2, graphicsId = 5, @@ -1187,9 +1030,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 0, - script = "RustboroCity_EventScript_NinjaBoy", - ), + facing = 1, + script = "RustboroCity_EventScript_NinjaBoy"), NpcDef( entityIdx = 3, graphicsId = 6, @@ -1201,8 +1043,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "RustboroCity_EventScript_Twin", - ), + script = "RustboroCity_EventScript_Twin"), NpcDef( entityIdx = 4, graphicsId = 9, @@ -1214,8 +1055,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "RustboroCity_EventScript_Boy2", - ), + script = "RustboroCity_EventScript_Boy2"), NpcDef( entityIdx = 5, graphicsId = 33, @@ -1227,8 +1067,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "RustboroCity_EventScript_Man1", - ), + script = "RustboroCity_EventScript_Man1"), NpcDef( entityIdx = 6, graphicsId = 11, @@ -1240,8 +1079,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "RustboroCity_EventScript_LittleBoy", - ), + script = "RustboroCity_EventScript_LittleBoy"), NpcDef( entityIdx = 7, graphicsId = 12, @@ -1253,8 +1091,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 2, - script = "RustboroCity_EventScript_LittleGirl", - ), + script = "RustboroCity_EventScript_LittleGirl"), NpcDef( entityIdx = 10, graphicsId = 0, @@ -1266,8 +1103,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "RustboroCity_EventScript_DevonEmployee2", - ), + script = "RustboroCity_EventScript_DevonEmployee2"), NpcDef( entityIdx = 12, graphicsId = 65, @@ -1278,9 +1114,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "RustboroCity_EventScript_Man2", - ), + facing = 0, + script = "RustboroCity_EventScript_Man2"), NpcDef( entityIdx = 15, graphicsId = 7, @@ -1292,8 +1127,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "RustboroCity_EventScript_Boy1", - ), + script = "RustboroCity_EventScript_Boy1"), ), bgEvents = listOf( @@ -1301,62 +1135,52 @@ object MapManager { x = 23, y = 19, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "RustboroCity_EventScript_GymSign", - ), + script = "RustboroCity_EventScript_GymSign"), BgEventDef( x = 25, y = 35, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "RustboroCity_EventScript_TrainersSchoolSign", - ), + script = "RustboroCity_EventScript_TrainersSchoolSign"), BgEventDef( x = 17, y = 45, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "Common_EventScript_ShowPokemartSign", - ), + script = "Common_EventScript_ShowPokemartSign"), BgEventDef( x = 18, y = 38, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "Common_EventScript_ShowPokemonCenterSign", - ), + script = "Common_EventScript_ShowPokemonCenterSign"), BgEventDef( x = 19, y = 49, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "RustboroCity_EventScript_CitySign", - ), + script = "RustboroCity_EventScript_CitySign"), BgEventDef( x = 18, y = 45, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "Common_EventScript_ShowPokemartSign", - ), + script = "Common_EventScript_ShowPokemartSign"), BgEventDef( x = 17, y = 38, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "Common_EventScript_ShowPokemonCenterSign", - ), + script = "Common_EventScript_ShowPokemonCenterSign"), BgEventDef( x = 17, y = 20, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "RustboroCity_EventScript_DevonCorpSign", - ), + script = "RustboroCity_EventScript_DevonCorpSign"), BgEventDef( x = 30, y = 8, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "RustboroCity_EventScript_TunnelSign", - ), + script = "RustboroCity_EventScript_TunnelSign"), BgEventDef( x = 12, y = 38, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "RustboroCity_EventScript_CuttersHouseSign", - ), + script = "RustboroCity_EventScript_CuttersHouseSign"), ), ), // FortreeCity (MAP_FORTREE_CITY) @@ -1366,35 +1190,21 @@ object MapManager { mapId = 4, width = 40, height = 20, - paletteIdx1 = 94, - paletteIdx2 = 126, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 108, + unknownShort = 382, + unknownByte = 11, borderTiles = listOf( - Tile2D(0x00C6, 0), - Tile2D(0x00C6, 0), - Tile2D(0x00C6, 0), - Tile2D(0x00C6, 0), - ), + Tile2D(0x00C6, 0), Tile2D(0x00C6, 0), Tile2D(0x00C6, 0), Tile2D(0x00C6, 0)), lighting = Lighting.REGULAR, weather = Weather.REGULAR_WEATHER, mapType = MapType.CITY, - encounterType = EncounterType.GYM_STYLE, + encounterType = EncounterType.RANDOM, connections = listOf( - GbaConnection( - direction = 3, - unknown = 0, - targetBank = 50, - targetMap = 34, - ), - GbaConnection( - direction = 4, - unknown = 0, - targetBank = 50, - targetMap = 35, - ), + GbaConnection(direction = 3, unknown = 0, targetBank = 50, targetMap = 34), + GbaConnection(direction = 4, unknown = 0, targetBank = 50, targetMap = 35), ), warps = listOf( @@ -1405,8 +1215,7 @@ object MapManager { targetBankId = 62, targetMapId = 2, targetX = 7, - targetY = 8, - ), + targetY = 8), WarpTile( x = 10, y = 3, @@ -1414,8 +1223,7 @@ object MapManager { targetBankId = 62, targetMapId = 0, targetX = 3, - targetY = 5, - ), + targetY = 5), WarpTile( x = 22, y = 11, @@ -1423,8 +1231,7 @@ object MapManager { targetBankId = 62, targetMapId = 1, targetX = 15, - targetY = 24, - ), + targetY = 24), WarpTile( x = 4, y = 14, @@ -1432,8 +1239,7 @@ object MapManager { targetBankId = 62, targetMapId = 4, targetX = 3, - targetY = 7, - ), + targetY = 7), WarpTile( x = 17, y = 3, @@ -1441,8 +1247,7 @@ object MapManager { targetBankId = 62, targetMapId = 5, targetX = 3, - targetY = 5, - ), + targetY = 5), WarpTile( x = 25, y = 3, @@ -1450,8 +1255,7 @@ object MapManager { targetBankId = 62, targetMapId = 6, targetX = 3, - targetY = 5, - ), + targetY = 5), WarpTile( x = 32, y = 2, @@ -1459,8 +1263,7 @@ object MapManager { targetBankId = 62, targetMapId = 7, targetX = 3, - targetY = 5, - ), + targetY = 5), WarpTile( x = 12, y = 13, @@ -1468,8 +1271,7 @@ object MapManager { targetBankId = 62, targetMapId = 8, targetX = 3, - targetY = 5, - ), + targetY = 5), WarpTile( x = 37, y = 13, @@ -1477,8 +1279,7 @@ object MapManager { targetBankId = 62, targetMapId = 9, targetX = 3, - targetY = 5, - ), + targetY = 5), ), npcs = listOf( @@ -1493,8 +1294,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "FortreeCity_EventScript_Man", - ), + script = "FortreeCity_EventScript_Man"), NpcDef( entityIdx = 1, graphicsId = 8, @@ -1506,8 +1306,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "FortreeCity_EventScript_Girl", - ), + script = "FortreeCity_EventScript_Girl"), NpcDef( entityIdx = 2, graphicsId = 34, @@ -1519,8 +1318,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "FortreeCity_EventScript_Woman", - ), + script = "FortreeCity_EventScript_Woman"), NpcDef( entityIdx = 3, graphicsId = 7, @@ -1532,8 +1330,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "FortreeCity_EventScript_Boy", - ), + script = "FortreeCity_EventScript_Boy"), NpcDef( entityIdx = 4, graphicsId = 29, @@ -1545,8 +1342,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "FortreeCity_EventScript_OldMan", - ), + script = "FortreeCity_EventScript_OldMan"), NpcDef( entityIdx = 5, graphicsId = 0, @@ -1557,9 +1353,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "FortreeCity_EventScript_GameboyKid", - ), + facing = 0, + script = "FortreeCity_EventScript_GameboyKid"), ), bgEvents = listOf( @@ -1567,38 +1362,32 @@ object MapManager { x = 6, y = 9, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "FortreeCity_EventScript_CitySign", - ), + script = "FortreeCity_EventScript_CitySign"), BgEventDef( x = 7, y = 6, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "Common_EventScript_ShowPokemonCenterSign", - ), + script = "Common_EventScript_ShowPokemonCenterSign"), BgEventDef( x = 5, y = 14, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "Common_EventScript_ShowPokemartSign", - ), + script = "Common_EventScript_ShowPokemartSign"), BgEventDef( x = 26, y = 10, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "FortreeCity_EventScript_GymSign", - ), + script = "FortreeCity_EventScript_GymSign"), BgEventDef( x = 6, y = 6, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "Common_EventScript_ShowPokemonCenterSign", - ), + script = "Common_EventScript_ShowPokemonCenterSign"), BgEventDef( x = 6, y = 14, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "Common_EventScript_ShowPokemartSign", - ), + script = "Common_EventScript_ShowPokemartSign"), ), ), // LilycoveCity (MAP_LILYCOVE_CITY) @@ -1608,35 +1397,22 @@ object MapManager { mapId = 5, width = 80, height = 40, - paletteIdx1 = 104, - paletteIdx2 = 136, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 109, + unknownShort = 408, + unknownByte = 12, borderTiles = listOf( - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - ), + Tile2D(0x0170, 0), Tile2D(0x0170, 0), Tile2D(0x0170, 0), Tile2D(0x0170, 0)), lighting = Lighting.REGULAR, weather = Weather.REGULAR_WEATHER, mapType = MapType.CITY, - encounterType = EncounterType.GYM_STYLE, + encounterType = EncounterType.RANDOM, connections = listOf( + GbaConnection(direction = 3, unknown = 10, targetBank = 50, targetMap = 36), GbaConnection( - direction = 3, - unknown = 0, - targetBank = 50, - targetMap = 36, - ), - GbaConnection( - direction = 4, - unknown = 0, - targetBank = 50, - targetMap = 39, - ), + direction = 4, unknown = -10, targetBank = 50, targetMap = 39), ), warps = listOf( @@ -1647,8 +1423,7 @@ object MapManager { targetBankId = 63, targetMapId = 16, targetX = 8, - targetY = 7, - ), + targetY = 7), WarpTile( x = 37, y = 24, @@ -1656,8 +1431,7 @@ object MapManager { targetBankId = 63, targetMapId = 0, targetX = 5, - targetY = 8, - ), + targetY = 8), WarpTile( x = 24, y = 14, @@ -1665,8 +1439,7 @@ object MapManager { targetBankId = 63, targetMapId = 6, targetX = 7, - targetY = 8, - ), + targetY = 8), WarpTile( x = 11, y = 5, @@ -1674,8 +1447,7 @@ object MapManager { targetBankId = 63, targetMapId = 2, targetX = 9, - targetY = 13, - ), + targetY = 13), WarpTile( x = 23, y = 24, @@ -1683,8 +1455,7 @@ object MapManager { targetBankId = 63, targetMapId = 4, targetX = 14, - targetY = 11, - ), + targetY = 11), WarpTile( x = 39, y = 14, @@ -1692,8 +1463,7 @@ object MapManager { targetBankId = 63, targetMapId = 9, targetX = 5, - targetY = 13, - ), + targetY = 13), WarpTile( x = 70, y = 5, @@ -1701,8 +1471,7 @@ object MapManager { targetBankId = 74, targetMapId = 23, targetX = 13, - targetY = 27, - ), + targetY = 27), WarpTile( x = 36, y = 6, @@ -1710,8 +1479,7 @@ object MapManager { targetBankId = 63, targetMapId = 11, targetX = 3, - targetY = 7, - ), + targetY = 7), WarpTile( x = 42, y = 6, @@ -1719,8 +1487,7 @@ object MapManager { targetBankId = 63, targetMapId = 12, targetX = 3, - targetY = 8, - ), + targetY = 8), WarpTile( x = 55, y = 15, @@ -1728,8 +1495,7 @@ object MapManager { targetBankId = 63, targetMapId = 13, targetX = 2, - targetY = 7, - ), + targetY = 7), WarpTile( x = 11, y = 22, @@ -1737,8 +1503,7 @@ object MapManager { targetBankId = 63, targetMapId = 14, targetX = 3, - targetY = 7, - ), + targetY = 7), WarpTile( x = 12, y = 14, @@ -1746,8 +1511,7 @@ object MapManager { targetBankId = 63, targetMapId = 15, targetX = 3, - targetY = 8, - ), + targetY = 8), WarpTile( x = 12, y = 32, @@ -1755,8 +1519,7 @@ object MapManager { targetBankId = 63, targetMapId = 10, targetX = 11, - targetY = 14, - ), + targetY = 14), WarpTile( x = 12, y = 5, @@ -1764,8 +1527,7 @@ object MapManager { targetBankId = 63, targetMapId = 2, targetX = 10, - targetY = 13, - ), + targetY = 13), ), npcs = listOf( @@ -1780,8 +1542,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "LilycoveCity_EventScript_Sailor2", - ), + script = "LilycoveCity_EventScript_Sailor2"), NpcDef( entityIdx = 1, graphicsId = 8, @@ -1793,8 +1554,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "LilycoveCity_EventScript_Girl", - ), + script = "LilycoveCity_EventScript_Girl"), NpcDef( entityIdx = 2, graphicsId = 19, @@ -1806,8 +1566,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "LilycoveCity_EventScript_Man3", - ), + script = "LilycoveCity_EventScript_Man3"), NpcDef( entityIdx = 3, graphicsId = 15, @@ -1819,8 +1578,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "LilycoveCity_EventScript_RichBoy", - ), + script = "LilycoveCity_EventScript_RichBoy"), NpcDef( entityIdx = 4, graphicsId = 23, @@ -1832,8 +1590,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "LilycoveCity_EventScript_Man2", - ), + script = "LilycoveCity_EventScript_Man2"), NpcDef( entityIdx = 5, graphicsId = 20, @@ -1845,8 +1602,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "LilycoveCity_EventScript_Woman2", - ), + script = "LilycoveCity_EventScript_Woman2"), NpcDef( entityIdx = 6, graphicsId = 21, @@ -1857,9 +1613,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "LilycoveCity_EventScript_ExpertM1", - ), + facing = 0, + script = "LilycoveCity_EventScript_ExpertM1"), NpcDef( entityIdx = 7, graphicsId = 22, @@ -1870,9 +1625,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "LilycoveCity_EventScript_ExpertF", - ), + facing = 0, + script = "LilycoveCity_EventScript_ExpertF"), NpcDef( entityIdx = 8, graphicsId = 21, @@ -1884,8 +1638,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "LilycoveCity_EventScript_ExpertM2", - ), + script = "LilycoveCity_EventScript_ExpertM2"), NpcDef( entityIdx = 15, graphicsId = 48, @@ -1897,8 +1650,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "LilycoveCity_EventScript_BerryGentleman", - ), + script = "LilycoveCity_EventScript_BerryGentleman"), NpcDef( entityIdx = 17, graphicsId = 38, @@ -1910,8 +1662,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 3, - script = "LilycoveCity_EventScript_SchoolKidM", - ), + script = "LilycoveCity_EventScript_SchoolKidM"), NpcDef( entityIdx = 18, graphicsId = 24, @@ -1923,8 +1674,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 2, - script = "LilycoveCity_EventScript_Woman1", - ), + script = "LilycoveCity_EventScript_Woman1"), NpcDef( entityIdx = 19, graphicsId = 23, @@ -1936,8 +1686,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 3, - script = "LilycoveCity_EventScript_Man1", - ), + script = "LilycoveCity_EventScript_Man1"), NpcDef( entityIdx = 20, graphicsId = 49, @@ -1948,9 +1697,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "LilycoveCity_EventScript_Sailor1", - ), + facing = 0, + script = "LilycoveCity_EventScript_Sailor1"), NpcDef( entityIdx = 21, graphicsId = 17, @@ -1961,9 +1709,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 0, - script = "LilycoveCity_EventScript_FatMan", - ), + facing = 1, + script = "LilycoveCity_EventScript_FatMan"), ), bgEvents = listOf( @@ -1971,80 +1718,67 @@ object MapManager { x = 19, y = 7, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "LilycoveCity_EventScript_MuseumSign", - ), + script = "LilycoveCity_EventScript_MuseumSign"), BgEventDef( x = 25, y = 14, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "Common_EventScript_ShowPokemonCenterSign", - ), + script = "Common_EventScript_ShowPokemonCenterSign"), BgEventDef( x = 29, y = 7, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "LilycoveCity_EventScript_DepartmentStoreSign", - ), + script = "LilycoveCity_EventScript_DepartmentStoreSign"), BgEventDef( x = 26, y = 14, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "Common_EventScript_ShowPokemonCenterSign", - ), + script = "Common_EventScript_ShowPokemonCenterSign"), BgEventDef( x = 6, y = 15, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "LilycoveCity_EventScript_CitySign", - ), + script = "LilycoveCity_EventScript_CitySign"), BgEventDef( x = 29, y = 24, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "LilycoveCity_EventScript_ContestHallSign", - ), + script = "LilycoveCity_EventScript_ContestHallSign"), BgEventDef( x = 35, y = 24, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "LilycoveCity_EventScript_MotelSign", - ), + script = "LilycoveCity_EventScript_MotelSign"), BgEventDef( x = 6, y = 30, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "LilycoveCity_EventScript_HarborSign", - ), + script = "LilycoveCity_EventScript_HarborSign"), BgEventDef( x = 36, y = 14, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "LilycoveCity_EventScript_TrainerFanClubSign", - ), + script = "LilycoveCity_EventScript_TrainerFanClubSign"), BgEventDef( x = 34, y = 6, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "LilycoveCity_EventScript_MoveDeletersHouseSign", - ), + script = "LilycoveCity_EventScript_MoveDeletersHouseSign"), BgEventDef( x = 36, y = 31, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 61, y = 7, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 64, y = 31, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), ), ), // MossdeepCity (MAP_MOSSDEEP_CITY) @@ -2054,41 +1788,23 @@ object MapManager { mapId = 6, width = 80, height = 40, - paletteIdx1 = 108, - paletteIdx2 = 138, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 110, + unknownShort = 399, + unknownByte = 13, borderTiles = listOf( - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - ), + Tile2D(0x0170, 0), Tile2D(0x0170, 0), Tile2D(0x0170, 0), Tile2D(0x0170, 0)), lighting = Lighting.REGULAR, weather = Weather.REGULAR_WEATHER, mapType = MapType.CITY, - encounterType = EncounterType.GYM_STYLE, + encounterType = EncounterType.RANDOM, connections = listOf( + GbaConnection(direction = 2, unknown = 0, targetBank = 50, targetMap = 40), + GbaConnection(direction = 1, unknown = 0, targetBank = 50, targetMap = 42), GbaConnection( - direction = 2, - unknown = 0, - targetBank = 50, - targetMap = 40, - ), - GbaConnection( - direction = 1, - unknown = 0, - targetBank = 50, - targetMap = 42, - ), - GbaConnection( - direction = 3, - unknown = 0, - targetBank = 50, - targetMap = 39, - ), + direction = 3, unknown = -40, targetBank = 50, targetMap = 39), ), warps = listOf( @@ -2099,8 +1815,7 @@ object MapManager { targetBankId = 64, targetMapId = 1, targetX = 3, - targetY = 7, - ), + targetY = 7), WarpTile( x = 38, y = 9, @@ -2108,8 +1823,7 @@ object MapManager { targetBankId = 64, targetMapId = 0, targetX = 6, - targetY = 35, - ), + targetY = 35), WarpTile( x = 28, y = 16, @@ -2117,8 +1831,7 @@ object MapManager { targetBankId = 64, targetMapId = 3, targetX = 7, - targetY = 8, - ), + targetY = 8), WarpTile( x = 67, y = 25, @@ -2126,8 +1839,7 @@ object MapManager { targetBankId = 64, targetMapId = 2, targetX = 3, - targetY = 8, - ), + targetY = 8), WarpTile( x = 37, y = 18, @@ -2135,8 +1847,7 @@ object MapManager { targetBankId = 64, targetMapId = 5, targetX = 3, - targetY = 7, - ), + targetY = 7), WarpTile( x = 49, y = 6, @@ -2144,8 +1855,7 @@ object MapManager { targetBankId = 64, targetMapId = 6, targetX = 3, - targetY = 7, - ), + targetY = 7), WarpTile( x = 19, y = 10, @@ -2153,8 +1863,7 @@ object MapManager { targetBankId = 64, targetMapId = 7, targetX = 3, - targetY = 7, - ), + targetY = 7), WarpTile( x = 18, y = 16, @@ -2162,8 +1871,7 @@ object MapManager { targetBankId = 64, targetMapId = 8, targetX = 3, - targetY = 7, - ), + targetY = 7), WarpTile( x = 64, y = 15, @@ -2171,8 +1879,7 @@ object MapManager { targetBankId = 64, targetMapId = 9, targetX = 7, - targetY = 9, - ), + targetY = 9), WarpTile( x = 36, y = 24, @@ -2180,8 +1887,7 @@ object MapManager { targetBankId = 64, targetMapId = 11, targetX = 5, - targetY = 9, - ), + targetY = 9), ), npcs = listOf( @@ -2196,8 +1902,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "MossdeepCity_EventScript_Sailor", - ), + script = "MossdeepCity_EventScript_Sailor"), NpcDef( entityIdx = 1, graphicsId = 21, @@ -2209,8 +1914,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "MossdeepCity_EventScript_ExpertM", - ), + script = "MossdeepCity_EventScript_ExpertM"), NpcDef( entityIdx = 2, graphicsId = 18, @@ -2222,8 +1926,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "MossdeepCity_EventScript_PokefanF", - ), + script = "MossdeepCity_EventScript_PokefanF"), NpcDef( entityIdx = 3, graphicsId = 5, @@ -2235,8 +1938,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "MossdeepCity_EventScript_NinjaBoy", - ), + script = "MossdeepCity_EventScript_NinjaBoy"), NpcDef( entityIdx = 4, graphicsId = 8, @@ -2248,8 +1950,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 2, - script = "MossdeepCity_EventScript_Girl", - ), + script = "MossdeepCity_EventScript_Girl"), NpcDef( entityIdx = 6, graphicsId = 19, @@ -2260,9 +1961,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 0, - script = "MossdeepCity_EventScript_Man", - ), + facing = 1, + script = "MossdeepCity_EventScript_Man"), NpcDef( entityIdx = 7, graphicsId = 16, @@ -2274,8 +1974,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 3, - script = "MossdeepCity_EventScript_Woman", - ), + script = "MossdeepCity_EventScript_Woman"), NpcDef( entityIdx = 8, graphicsId = 9, @@ -2287,8 +1986,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "MossdeepCity_EventScript_KingsRockBoy", - ), + script = "MossdeepCity_EventScript_KingsRockBoy"), NpcDef( entityIdx = 14, graphicsId = 44, @@ -2300,8 +1998,7 @@ object MapManager { movementRangeY = 3, trainerType = 0, facing = 0, - script = "MossdeepCity_EventScript_DynamicPunchTutor", - ), + script = "MossdeepCity_EventScript_DynamicPunchTutor"), NpcDef( entityIdx = 16, graphicsId = 44, @@ -2313,8 +2010,7 @@ object MapManager { movementRangeY = 3, trainerType = 0, facing = 0, - script = "MossdeepCity_EventScript_BlackBelt", - ), + script = "MossdeepCity_EventScript_BlackBelt"), ), bgEvents = listOf( @@ -2322,50 +2018,42 @@ object MapManager { x = 25, y = 16, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "MossdeepCity_EventScript_CitySign", - ), + script = "MossdeepCity_EventScript_CitySign"), BgEventDef( x = 34, y = 9, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "MossdeepCity_EventScript_GymSign", - ), + script = "MossdeepCity_EventScript_GymSign"), BgEventDef( x = 29, y = 16, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "Common_EventScript_ShowPokemonCenterSign", - ), + script = "Common_EventScript_ShowPokemonCenterSign"), BgEventDef( x = 38, y = 18, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "Common_EventScript_ShowPokemartSign", - ), + script = "Common_EventScript_ShowPokemartSign"), BgEventDef( x = 66, y = 16, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "MossdeepCity_EventScript_SpaceCenterSign", - ), + script = "MossdeepCity_EventScript_SpaceCenterSign"), BgEventDef( x = 30, y = 16, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "Common_EventScript_ShowPokemonCenterSign", - ), + script = "Common_EventScript_ShowPokemonCenterSign"), BgEventDef( x = 39, y = 18, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "Common_EventScript_ShowPokemartSign", - ), + script = "Common_EventScript_ShowPokemartSign"), BgEventDef( x = 57, y = 21, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "MossdeepCity_EventScript_WhiteRock", - ), + script = "MossdeepCity_EventScript_WhiteRock"), ), ), // SootopolisCity (MAP_SOOTOPOLIS_CITY) @@ -2375,21 +2063,17 @@ object MapManager { mapId = 7, width = 60, height = 60, - paletteIdx1 = 110, - paletteIdx2 = 140, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 113, + unknownShort = 445, + unknownByte = 14, borderTiles = listOf( - Tile2D(0x02D9, 0), - Tile2D(0x02D9, 0), - Tile2D(0x02D9, 0), - Tile2D(0x02D9, 0), - ), + Tile2D(0x02D9, 0), Tile2D(0x02D9, 0), Tile2D(0x02D9, 0), Tile2D(0x02D9, 0)), lighting = Lighting.REGULAR, weather = Weather.REGULAR_WEATHER, mapType = MapType.CITY, - encounterType = EncounterType.GYM_STYLE, + encounterType = EncounterType.RANDOM, connections = emptyList(), warps = listOf( @@ -2400,8 +2084,7 @@ object MapManager { targetBankId = 65, targetMapId = 2, targetX = 7, - targetY = 8, - ), + targetY = 8), WarpTile( x = 17, y = 29, @@ -2409,8 +2092,7 @@ object MapManager { targetBankId = 65, targetMapId = 4, targetX = 3, - targetY = 7, - ), + targetY = 7), WarpTile( x = 31, y = 32, @@ -2418,8 +2100,7 @@ object MapManager { targetBankId = 65, targetMapId = 0, targetX = 8, - targetY = 25, - ), + targetY = 25), WarpTile( x = 31, y = 16, @@ -2427,8 +2108,7 @@ object MapManager { targetBankId = 74, targetMapId = 37, targetX = 9, - targetY = 20, - ), + targetY = 20), WarpTile( x = 9, y = 6, @@ -2436,8 +2116,7 @@ object MapManager { targetBankId = 65, targetMapId = 5, targetX = 3, - targetY = 6, - ), + targetY = 6), WarpTile( x = 45, y = 6, @@ -2445,8 +2124,7 @@ object MapManager { targetBankId = 65, targetMapId = 6, targetX = 3, - targetY = 6, - ), + targetY = 6), WarpTile( x = 9, y = 17, @@ -2454,8 +2132,7 @@ object MapManager { targetBankId = 65, targetMapId = 7, targetX = 3, - targetY = 6, - ), + targetY = 6), WarpTile( x = 44, y = 17, @@ -2463,8 +2140,7 @@ object MapManager { targetBankId = 65, targetMapId = 8, targetX = 3, - targetY = 6, - ), + targetY = 6), WarpTile( x = 9, y = 26, @@ -2472,8 +2148,7 @@ object MapManager { targetBankId = 65, targetMapId = 9, targetX = 3, - targetY = 6, - ), + targetY = 6), WarpTile( x = 53, y = 28, @@ -2481,8 +2156,7 @@ object MapManager { targetBankId = 65, targetMapId = 10, targetX = 3, - targetY = 6, - ), + targetY = 6), WarpTile( x = 8, y = 35, @@ -2490,8 +2164,7 @@ object MapManager { targetBankId = 65, targetMapId = 11, targetX = 3, - targetY = 6, - ), + targetY = 6), WarpTile( x = 48, y = 25, @@ -2499,8 +2172,7 @@ object MapManager { targetBankId = 65, targetMapId = 12, targetX = 3, - targetY = 6, - ), + targetY = 6), WarpTile( x = 51, y = 36, @@ -2508,8 +2180,7 @@ object MapManager { targetBankId = 65, targetMapId = 13, targetX = 3, - targetY = 7, - ), + targetY = 7), ), npcs = listOf( @@ -2523,9 +2194,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "SootopolisCity_EventScript_CaveOfOriginExpert", - ), + facing = 0, + script = "SootopolisCity_EventScript_CaveOfOriginExpert"), NpcDef( entityIdx = 2, graphicsId = 10, @@ -2537,8 +2207,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "SootopolisCity_EventScript_Kiri", - ), + script = "SootopolisCity_EventScript_Kiri"), NpcDef( entityIdx = 3, graphicsId = 5, @@ -2549,9 +2218,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "SootopolisCity_EventScript_NinjaBoy", - ), + facing = 0, + script = "SootopolisCity_EventScript_NinjaBoy"), NpcDef( entityIdx = 4, graphicsId = 7, @@ -2563,8 +2231,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "SootopolisCity_EventScript_Boy1", - ), + script = "SootopolisCity_EventScript_Boy1"), NpcDef( entityIdx = 7, graphicsId = 34, @@ -2576,8 +2243,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "SootopolisCity_EventScript_Woman1", - ), + script = "SootopolisCity_EventScript_Woman1"), ), bgEvents = listOf( @@ -2585,38 +2251,32 @@ object MapManager { x = 33, y = 34, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "SootopolisCity_EventScript_GymSign", - ), + script = "SootopolisCity_EventScript_GymSign"), BgEventDef( x = 19, y = 29, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "Common_EventScript_ShowPokemartSign", - ), + script = "Common_EventScript_ShowPokemartSign"), BgEventDef( x = 44, y = 31, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "Common_EventScript_ShowPokemonCenterSign", - ), + script = "Common_EventScript_ShowPokemonCenterSign"), BgEventDef( x = 45, y = 31, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "Common_EventScript_ShowPokemonCenterSign", - ), + script = "Common_EventScript_ShowPokemonCenterSign"), BgEventDef( x = 18, y = 29, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "Common_EventScript_ShowPokemartSign", - ), + script = "Common_EventScript_ShowPokemartSign"), BgEventDef( x = 41, y = 37, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "SootopolisCity_EventScript_CitySign", - ), + script = "SootopolisCity_EventScript_CitySign"), ), ), // EverGrandeCity (MAP_EVER_GRANDE_CITY) @@ -2626,29 +2286,21 @@ object MapManager { mapId = 8, width = 40, height = 80, - paletteIdx1 = 96, - paletteIdx2 = 130, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 111, + unknownShort = 422, + unknownByte = 15, borderTiles = listOf( - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - ), + Tile2D(0x0170, 0), Tile2D(0x0170, 0), Tile2D(0x0170, 0), Tile2D(0x0170, 0)), lighting = Lighting.REGULAR, weather = Weather.REGULAR_WEATHER, mapType = MapType.CITY, - encounterType = EncounterType.GYM_STYLE, + encounterType = EncounterType.RANDOM, connections = listOf( - GbaConnection( - direction = 3, - unknown = 0, - targetBank = 50, - targetMap = 43, - )), + GbaConnection(direction = 3, unknown = 40, targetBank = 50, targetMap = 43), + ), warps = listOf( WarpTile( @@ -2658,8 +2310,7 @@ object MapManager { targetBankId = 66, targetMapId = 10, targetX = 9, - targetY = 11, - ), + targetY = 11), WarpTile( x = 27, y = 48, @@ -2667,8 +2318,7 @@ object MapManager { targetBankId = 66, targetMapId = 12, targetX = 7, - targetY = 8, - ), + targetY = 8), WarpTile( x = 18, y = 41, @@ -2676,8 +2326,7 @@ object MapManager { targetBankId = 74, targetMapId = 43, targetX = 15, - targetY = 40, - ), + targetY = 40), WarpTile( x = 18, y = 27, @@ -2685,8 +2334,7 @@ object MapManager { targetBankId = 74, targetMapId = 43, targetX = 39, - targetY = 5, - ), + targetY = 5), ), npcs = emptyList(), bgEvents = @@ -2695,32 +2343,27 @@ object MapManager { x = 19, y = 43, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "EverGrandeCity_EventScript_VictoryRoadSign", - ), + script = "EverGrandeCity_EventScript_VictoryRoadSign"), BgEventDef( x = 29, y = 48, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "Common_EventScript_ShowPokemonCenterSign", - ), + script = "Common_EventScript_ShowPokemonCenterSign"), BgEventDef( x = 18, y = 52, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "EverGrandeCity_EventScript_CitySign", - ), + script = "EverGrandeCity_EventScript_CitySign"), BgEventDef( x = 23, y = 15, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "EverGrandeCity_EventScript_PokemonLeagueSign", - ), + script = "EverGrandeCity_EventScript_PokemonLeagueSign"), BgEventDef( x = 28, y = 48, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "Common_EventScript_ShowPokemonCenterSign", - ), + script = "Common_EventScript_ShowPokemonCenterSign"), ), ), // LittlerootTown (MAP_LITTLEROOT_TOWN) @@ -2736,23 +2379,15 @@ object MapManager { unknownByte = 0, borderTiles = listOf( - Tile2D(0x01D4, 0), - Tile2D(0x01D5, 0), - Tile2D(0x01DC, 0), - Tile2D(0x01DD, 0), - ), + Tile2D(0x01D4, 0), Tile2D(0x01D5, 0), Tile2D(0x01DC, 0), Tile2D(0x01DD, 0)), lighting = Lighting.REGULAR, weather = Weather.REGULAR_WEATHER, - mapType = MapType.CITY, - encounterType = EncounterType.GYM_STYLE, + mapType = MapType.UNKNOWN_0x01, + encounterType = EncounterType.RANDOM, connections = listOf( - GbaConnection( - direction = 2, - unknown = 0, - targetBank = 50, - targetMap = 16, - )), + GbaConnection(direction = 2, unknown = 0, targetBank = 50, targetMap = 16), + ), warps = listOf( WarpTile( @@ -2762,8 +2397,7 @@ object MapManager { targetBankId = 51, targetMapId = 2, targetX = 2, - targetY = 8, - ), + targetY = 8), WarpTile( x = 5, y = 8, @@ -2771,8 +2405,7 @@ object MapManager { targetBankId = 51, targetMapId = 0, targetX = 8, - targetY = 8, - ), + targetY = 8), WarpTile( x = 7, y = 16, @@ -2780,8 +2413,7 @@ object MapManager { targetBankId = 51, targetMapId = 4, targetX = 6, - targetY = 12, - ), + targetY = 12), ), npcs = listOf( @@ -2796,8 +2428,7 @@ object MapManager { movementRangeY = 2, trainerType = 0, facing = 0, - script = "LittlerootTown_EventScript_Twin", - ), + script = "LittlerootTown_EventScript_Twin"), NpcDef( entityIdx = 2, graphicsId = 9, @@ -2809,8 +2440,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "LittlerootTown_EventScript_Boy", - ), + script = "LittlerootTown_EventScript_Boy"), ), bgEvents = listOf( @@ -2818,26 +2448,22 @@ object MapManager { x = 15, y = 13, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "LittlerootTown_EventScript_TownSign", - ), + script = "LittlerootTown_EventScript_TownSign"), BgEventDef( x = 6, y = 17, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "LittlerootTown_EventScript_BirchsLabSign", - ), + script = "LittlerootTown_EventScript_BirchsLabSign"), BgEventDef( x = 7, y = 8, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "LittlerootTown_EventScript_BrendansHouseSign", - ), + script = "LittlerootTown_EventScript_BrendansHouseSign"), BgEventDef( x = 12, y = 8, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "LittlerootTown_EventScript_MaysHouseSign", - ), + script = "LittlerootTown_EventScript_MaysHouseSign"), ), ), // OldaleTown (MAP_OLDALE_TOWN) @@ -2849,39 +2475,20 @@ object MapManager { height = 20, paletteIdx1 = 100, paletteIdx2 = 101, - unknownShort = 405, - unknownByte = 0, + unknownShort = 363, + unknownByte = 1, borderTiles = listOf( - Tile2D(0x01D4, 0), - Tile2D(0x01D5, 0), - Tile2D(0x01DC, 0), - Tile2D(0x01DD, 0), - ), + Tile2D(0x01D4, 0), Tile2D(0x01D5, 0), Tile2D(0x01DC, 0), Tile2D(0x01DD, 0)), lighting = Lighting.REGULAR, weather = Weather.REGULAR_WEATHER, - mapType = MapType.CITY, - encounterType = EncounterType.GYM_STYLE, + mapType = MapType.UNKNOWN_0x01, + encounterType = EncounterType.RANDOM, connections = listOf( - GbaConnection( - direction = 2, - unknown = 0, - targetBank = 50, - targetMap = 18, - ), - GbaConnection( - direction = 1, - unknown = 0, - targetBank = 50, - targetMap = 16, - ), - GbaConnection( - direction = 3, - unknown = 0, - targetBank = 50, - targetMap = 17, - ), + GbaConnection(direction = 2, unknown = 0, targetBank = 50, targetMap = 18), + GbaConnection(direction = 1, unknown = 0, targetBank = 50, targetMap = 16), + GbaConnection(direction = 3, unknown = 0, targetBank = 50, targetMap = 17), ), warps = listOf( @@ -2892,8 +2499,7 @@ object MapManager { targetBankId = 52, targetMapId = 0, targetX = 3, - targetY = 8, - ), + targetY = 8), WarpTile( x = 15, y = 16, @@ -2901,8 +2507,7 @@ object MapManager { targetBankId = 52, targetMapId = 1, targetX = 3, - targetY = 7, - ), + targetY = 7), WarpTile( x = 6, y = 16, @@ -2910,8 +2515,7 @@ object MapManager { targetBankId = 52, targetMapId = 2, targetX = 7, - targetY = 8, - ), + targetY = 8), WarpTile( x = 14, y = 6, @@ -2919,8 +2523,7 @@ object MapManager { targetBankId = 52, targetMapId = 4, targetX = 3, - targetY = 7, - ), + targetY = 7), ), npcs = listOf( @@ -2935,8 +2538,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 2, - script = "OldaleTown_EventScript_Girl", - ), + script = "OldaleTown_EventScript_Girl"), NpcDef( entityIdx = 1, graphicsId = 83, @@ -2947,9 +2549,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "OldaleTown_EventScript_MartEmployee", - ), + facing = 0, + script = "OldaleTown_EventScript_MartEmployee"), NpcDef( entityIdx = 2, graphicsId = 39, @@ -2961,8 +2562,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "OldaleTown_EventScript_FootprintsMan", - ), + script = "OldaleTown_EventScript_FootprintsMan"), ), bgEvents = listOf( @@ -2970,32 +2570,27 @@ object MapManager { x = 11, y = 9, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "OldaleTown_EventScript_TownSign", - ), + script = "OldaleTown_EventScript_TownSign"), BgEventDef( x = 7, y = 16, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "Common_EventScript_ShowPokemonCenterSign", - ), + script = "Common_EventScript_ShowPokemonCenterSign"), BgEventDef( x = 15, y = 6, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "Common_EventScript_ShowPokemartSign", - ), + script = "Common_EventScript_ShowPokemartSign"), BgEventDef( x = 8, y = 16, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "Common_EventScript_ShowPokemonCenterSign", - ), + script = "Common_EventScript_ShowPokemonCenterSign"), BgEventDef( x = 16, y = 6, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "Common_EventScript_ShowPokemartSign", - ), + script = "Common_EventScript_ShowPokemartSign"), ), ), // DewfordTown (MAP_DEWFORD_TOWN) @@ -3005,35 +2600,22 @@ object MapManager { mapId = 11, width = 20, height = 20, - paletteIdx1 = 90, - paletteIdx2 = 124, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 103, + unknownShort = 427, + unknownByte = 2, borderTiles = listOf( - Tile2D(0x0243, 0), - Tile2D(0x0243, 0), - Tile2D(0x0243, 0), - Tile2D(0x0243, 0), - ), + Tile2D(0x0243, 0), Tile2D(0x0243, 0), Tile2D(0x0243, 0), Tile2D(0x0243, 0)), lighting = Lighting.REGULAR, weather = Weather.REGULAR_WEATHER, - mapType = MapType.CITY, - encounterType = EncounterType.GYM_STYLE, + mapType = MapType.UNKNOWN_0x01, + encounterType = EncounterType.RANDOM, connections = listOf( GbaConnection( - direction = 2, - unknown = 0, - targetBank = 50, - targetMap = 21, - ), - GbaConnection( - direction = 4, - unknown = 0, - targetBank = 50, - targetMap = 22, - ), + direction = 2, unknown = -60, targetBank = 50, targetMap = 21), + GbaConnection(direction = 4, unknown = 0, targetBank = 50, targetMap = 22), ), warps = listOf( @@ -3044,8 +2626,7 @@ object MapManager { targetBankId = 53, targetMapId = 4, targetX = 5, - targetY = 8, - ), + targetY = 8), WarpTile( x = 2, y = 10, @@ -3053,8 +2634,7 @@ object MapManager { targetBankId = 53, targetMapId = 1, targetX = 7, - targetY = 8, - ), + targetY = 8), WarpTile( x = 8, y = 17, @@ -3062,8 +2642,7 @@ object MapManager { targetBankId = 53, targetMapId = 3, targetX = 5, - targetY = 27, - ), + targetY = 27), WarpTile( x = 17, y = 14, @@ -3071,8 +2650,7 @@ object MapManager { targetBankId = 53, targetMapId = 0, targetX = 3, - targetY = 7, - ), + targetY = 7), WarpTile( x = 8, y = 8, @@ -3080,8 +2658,7 @@ object MapManager { targetBankId = 53, targetMapId = 5, targetX = 3, - targetY = 8, - ), + targetY = 8), ), npcs = listOf( @@ -3096,8 +2673,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "DewfordTown_EventScript_Woman", - ), + script = "DewfordTown_EventScript_Woman"), NpcDef( entityIdx = 2, graphicsId = 50, @@ -3109,8 +2685,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "DewfordTown_EventScript_OldRodFisherman", - ), + script = "DewfordTown_EventScript_OldRodFisherman"), NpcDef( entityIdx = 4, graphicsId = 7, @@ -3122,8 +2697,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "DewfordTown_EventScript_TrendyPhraseBoy", - ), + script = "DewfordTown_EventScript_TrendyPhraseBoy"), ), bgEvents = listOf( @@ -3131,32 +2705,27 @@ object MapManager { x = 10, y = 10, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "DewfordTown_EventScript_TownSign", - ), + script = "DewfordTown_EventScript_TownSign"), BgEventDef( x = 11, y = 16, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "DewfordTown_EventScript_GymSign", - ), + script = "DewfordTown_EventScript_GymSign"), BgEventDef( x = 4, y = 10, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "Common_EventScript_ShowPokemonCenterSign", - ), + script = "Common_EventScript_ShowPokemonCenterSign"), BgEventDef( x = 3, y = 10, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "Common_EventScript_ShowPokemonCenterSign", - ), + script = "Common_EventScript_ShowPokemonCenterSign"), BgEventDef( x = 2, y = 4, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "DewfordTown_EventScript_HallSign", - ), + script = "DewfordTown_EventScript_HallSign"), ), ), // LavaridgeTown (MAP_LAVARIDGE_TOWN) @@ -3166,29 +2735,22 @@ object MapManager { mapId = 12, width = 20, height = 20, - paletteIdx1 = 92, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 106, + unknownShort = 363, + unknownByte = 3, borderTiles = listOf( - Tile2D(0x0271, 0), - Tile2D(0x0271, 0), - Tile2D(0x0271, 0), - Tile2D(0x0271, 0), - ), + Tile2D(0x0271, 0), Tile2D(0x0271, 0), Tile2D(0x0271, 0), Tile2D(0x0271, 0)), lighting = Lighting.REGULAR, weather = Weather.REGULAR_WEATHER, - mapType = MapType.CITY, - encounterType = EncounterType.GYM_STYLE, + mapType = MapType.UNKNOWN_0x01, + encounterType = EncounterType.RANDOM, connections = listOf( GbaConnection( - direction = 4, - unknown = 0, - targetBank = 50, - targetMap = 27, - )), + direction = 4, unknown = -40, targetBank = 50, targetMap = 27), + ), warps = listOf( WarpTile( @@ -3198,8 +2760,7 @@ object MapManager { targetBankId = 54, targetMapId = 0, targetX = 3, - targetY = 7, - ), + targetY = 7), WarpTile( x = 5, y = 15, @@ -3207,8 +2768,7 @@ object MapManager { targetBankId = 54, targetMapId = 1, targetX = 13, - targetY = 18, - ), + targetY = 18), WarpTile( x = 15, y = 5, @@ -3216,8 +2776,7 @@ object MapManager { targetBankId = 54, targetMapId = 4, targetX = 3, - targetY = 7, - ), + targetY = 7), WarpTile( x = 9, y = 6, @@ -3225,8 +2784,7 @@ object MapManager { targetBankId = 54, targetMapId = 5, targetX = 7, - targetY = 8, - ), + targetY = 8), WarpTile( x = 16, y = 15, @@ -3234,8 +2792,7 @@ object MapManager { targetBankId = 54, targetMapId = 3, targetX = 3, - targetY = 7, - ), + targetY = 7), WarpTile( x = 9, y = 2, @@ -3243,8 +2800,7 @@ object MapManager { targetBankId = 54, targetMapId = 5, targetX = 2, - targetY = 1, - ), + targetY = 1), ), npcs = listOf( @@ -3258,9 +2814,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "LavaridgeTown_EventScript_ExpertF", - ), + facing = 0, + script = "LavaridgeTown_EventScript_ExpertF"), NpcDef( entityIdx = 1, graphicsId = 21, @@ -3271,9 +2826,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "LavaridgeTown_EventScript_ExpertM", - ), + facing = 0, + script = "LavaridgeTown_EventScript_ExpertM"), NpcDef( entityIdx = 2, graphicsId = 29, @@ -3284,9 +2838,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "LavaridgeTown_EventScript_OldMan", - ), + facing = 0, + script = "LavaridgeTown_EventScript_OldMan"), NpcDef( entityIdx = 3, graphicsId = 6, @@ -3298,8 +2851,7 @@ object MapManager { movementRangeY = 2, trainerType = 0, facing = 0, - script = "LavaridgeTown_EventScript_Twin", - ), + script = "LavaridgeTown_EventScript_Twin"), NpcDef( entityIdx = 4, graphicsId = 0, @@ -3311,8 +2863,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "LavaridgeTown_EventScript_HotSpringsOldWoman1", - ), + script = "LavaridgeTown_EventScript_HotSpringsOldWoman1"), NpcDef( entityIdx = 5, graphicsId = 0, @@ -3324,8 +2875,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "LavaridgeTown_EventScript_HotSpringsOldWoman2", - ), + script = "LavaridgeTown_EventScript_HotSpringsOldWoman2"), NpcDef( entityIdx = 8, graphicsId = 22, @@ -3336,9 +2886,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "LavaridgeTown_EventScript_EggWoman", - ), + facing = 0, + script = "LavaridgeTown_EventScript_EggWoman"), ), bgEvents = listOf( @@ -3346,50 +2895,42 @@ object MapManager { x = 14, y = 16, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "LavaridgeTown_EventScript_HerbShopSign", - ), + script = "LavaridgeTown_EventScript_HerbShopSign"), BgEventDef( x = 7, y = 15, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "LavaridgeTown_EventScript_GymSign", - ), + script = "LavaridgeTown_EventScript_GymSign"), BgEventDef( x = 17, y = 5, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "Common_EventScript_ShowPokemartSign", - ), + script = "Common_EventScript_ShowPokemartSign"), BgEventDef( x = 13, y = 8, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "LavaridgeTown_EventScript_TownSign", - ), + script = "LavaridgeTown_EventScript_TownSign"), BgEventDef( x = 10, y = 6, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "Common_EventScript_ShowPokemonCenterSign", - ), + script = "Common_EventScript_ShowPokemonCenterSign"), BgEventDef( x = 16, y = 5, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "Common_EventScript_ShowPokemartSign", - ), + script = "Common_EventScript_ShowPokemartSign"), BgEventDef( x = 11, y = 6, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "Common_EventScript_ShowPokemonCenterSign", - ), + script = "Common_EventScript_ShowPokemonCenterSign"), BgEventDef( x = 4, y = 5, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), ), ), // FallarborTown (MAP_FALLARBOR_TOWN) @@ -3399,35 +2940,21 @@ object MapManager { mapId = 13, width = 20, height = 20, - paletteIdx1 = 88, - paletteIdx2 = 126, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 107, + unknownShort = 437, + unknownByte = 4, borderTiles = listOf( - Tile2D(0x026B, 0), - Tile2D(0x026C, 0), - Tile2D(0x0273, 0), - Tile2D(0x0274, 0), - ), + Tile2D(0x026B, 0), Tile2D(0x026C, 0), Tile2D(0x0273, 0), Tile2D(0x0274, 0)), lighting = Lighting.REGULAR, weather = Weather.REGULAR_WEATHER, - mapType = MapType.CITY, - encounterType = EncounterType.GYM_STYLE, + mapType = MapType.UNKNOWN_0x01, + encounterType = EncounterType.RANDOM, connections = listOf( - GbaConnection( - direction = 3, - unknown = 0, - targetBank = 50, - targetMap = 29, - ), - GbaConnection( - direction = 4, - unknown = 0, - targetBank = 50, - targetMap = 28, - ), + GbaConnection(direction = 3, unknown = 0, targetBank = 50, targetMap = 29), + GbaConnection(direction = 4, unknown = 0, targetBank = 50, targetMap = 28), ), warps = listOf( @@ -3438,8 +2965,7 @@ object MapManager { targetBankId = 55, targetMapId = 0, targetX = 3, - targetY = 7, - ), + targetY = 7), WarpTile( x = 8, y = 7, @@ -3447,8 +2973,7 @@ object MapManager { targetBankId = 55, targetMapId = 1, targetX = 6, - targetY = 9, - ), + targetY = 9), WarpTile( x = 14, y = 7, @@ -3456,8 +2981,7 @@ object MapManager { targetBankId = 55, targetMapId = 4, targetX = 7, - targetY = 8, - ), + targetY = 8), WarpTile( x = 6, y = 17, @@ -3465,8 +2989,7 @@ object MapManager { targetBankId = 55, targetMapId = 6, targetX = 3, - targetY = 8, - ), + targetY = 8), WarpTile( x = 1, y = 6, @@ -3474,8 +2997,7 @@ object MapManager { targetBankId = 55, targetMapId = 7, targetX = 3, - targetY = 7, - ), + targetY = 7), ), npcs = listOf( @@ -3489,9 +3011,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "FallarborTown_EventScript_Girl", - ), + facing = 0, + script = "FallarborTown_EventScript_Girl"), NpcDef( entityIdx = 1, graphicsId = 21, @@ -3503,8 +3024,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "FallarborTown_EventScript_ExpertM", - ), + script = "FallarborTown_EventScript_ExpertM"), NpcDef( entityIdx = 2, graphicsId = 48, @@ -3516,8 +3036,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "FallarborTown_EventScript_Gentleman", - ), + script = "FallarborTown_EventScript_Gentleman"), ), bgEvents = listOf( @@ -3525,50 +3044,42 @@ object MapManager { x = 16, y = 15, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "Common_EventScript_ShowPokemartSign", - ), + script = "Common_EventScript_ShowPokemartSign"), BgEventDef( x = 15, y = 7, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "Common_EventScript_ShowPokemonCenterSign", - ), + script = "Common_EventScript_ShowPokemonCenterSign"), BgEventDef( x = 6, y = 8, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "FallarborTown_EventScript_BattleTentSign", - ), + script = "FallarborTown_EventScript_BattleTentSign"), BgEventDef( x = 16, y = 7, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "Common_EventScript_ShowPokemonCenterSign", - ), + script = "Common_EventScript_ShowPokemonCenterSign"), BgEventDef( x = 10, y = 11, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "FallarborTown_EventScript_TownSign", - ), + script = "FallarborTown_EventScript_TownSign"), BgEventDef( x = 17, y = 15, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "Common_EventScript_ShowPokemartSign", - ), + script = "Common_EventScript_ShowPokemartSign"), BgEventDef( x = 3, y = 7, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "FallarborTown_EventScript_MoveTutorSign", - ), + script = "FallarborTown_EventScript_MoveTutorSign"), BgEventDef( x = 2, y = 15, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), ), ), // VerdanturfTown (MAP_VERDANTURF_TOWN) @@ -3578,35 +3089,22 @@ object MapManager { mapId = 14, width = 20, height = 20, - paletteIdx1 = 84, - paletteIdx2 = 120, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 105, + unknownShort = 398, + unknownByte = 5, borderTiles = listOf( - Tile2D(0x00C6, 0), - Tile2D(0x00C7, 0), - Tile2D(0x00C7, 0), - Tile2D(0x00C6, 0), - ), + Tile2D(0x00C6, 0), Tile2D(0x00C7, 0), Tile2D(0x00C7, 0), Tile2D(0x00C6, 0)), lighting = Lighting.REGULAR, weather = Weather.REGULAR_WEATHER, - mapType = MapType.CITY, - encounterType = EncounterType.GYM_STYLE, + mapType = MapType.UNKNOWN_0x01, + encounterType = EncounterType.RANDOM, connections = listOf( GbaConnection( - direction = 2, - unknown = 0, - targetBank = 50, - targetMap = 31, - ), - GbaConnection( - direction = 4, - unknown = 0, - targetBank = 50, - targetMap = 32, - ), + direction = 2, unknown = -80, targetBank = 50, targetMap = 31), + GbaConnection(direction = 4, unknown = 0, targetBank = 50, targetMap = 32), ), warps = listOf( @@ -3617,8 +3115,7 @@ object MapManager { targetBankId = 56, targetMapId = 0, targetX = 6, - targetY = 9, - ), + targetY = 9), WarpTile( x = 12, y = 3, @@ -3626,8 +3123,7 @@ object MapManager { targetBankId = 56, targetMapId = 3, targetX = 3, - targetY = 7, - ), + targetY = 7), WarpTile( x = 16, y = 3, @@ -3635,8 +3131,7 @@ object MapManager { targetBankId = 56, targetMapId = 4, targetX = 7, - targetY = 8, - ), + targetY = 8), WarpTile( x = 10, y = 14, @@ -3644,8 +3139,7 @@ object MapManager { targetBankId = 56, targetMapId = 6, targetX = 7, - targetY = 7, - ), + targetY = 7), WarpTile( x = 8, y = 1, @@ -3653,8 +3147,7 @@ object MapManager { targetBankId = 74, targetMapId = 4, targetX = 29, - targetY = 16, - ), + targetY = 16), WarpTile( x = 1, y = 14, @@ -3662,8 +3155,7 @@ object MapManager { targetBankId = 56, targetMapId = 7, targetX = 3, - targetY = 7, - ), + targetY = 7), WarpTile( x = 17, y = 15, @@ -3671,8 +3163,7 @@ object MapManager { targetBankId = 56, targetMapId = 8, targetX = 3, - targetY = 8, - ), + targetY = 8), ), npcs = listOf( @@ -3687,8 +3178,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "VerdanturfTown_EventScript_Man", - ), + script = "VerdanturfTown_EventScript_Man"), NpcDef( entityIdx = 1, graphicsId = 6, @@ -3700,8 +3190,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 2, - script = "VerdanturfTown_EventScript_Twin", - ), + script = "VerdanturfTown_EventScript_Twin"), NpcDef( entityIdx = 2, graphicsId = 7, @@ -3713,8 +3202,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "VerdanturfTown_EventScript_Boy", - ), + script = "VerdanturfTown_EventScript_Boy"), NpcDef( entityIdx = 3, graphicsId = 31, @@ -3726,8 +3214,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "VerdanturfTown_EventScript_Camper", - ), + script = "VerdanturfTown_EventScript_Camper"), ), bgEvents = listOf( @@ -3735,50 +3222,42 @@ object MapManager { x = 14, y = 3, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "Common_EventScript_ShowPokemartSign", - ), + script = "Common_EventScript_ShowPokemartSign"), BgEventDef( x = 14, y = 6, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "VerdanturfTown_EventScript_TownSign", - ), + script = "VerdanturfTown_EventScript_TownSign"), BgEventDef( x = 17, y = 3, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "Common_EventScript_ShowPokemonCenterSign", - ), + script = "Common_EventScript_ShowPokemonCenterSign"), BgEventDef( x = 7, y = 14, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "VerdanturfTown_EventScript_WandasHouseSign", - ), + script = "VerdanturfTown_EventScript_WandasHouseSign"), BgEventDef( x = 13, y = 3, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "Common_EventScript_ShowPokemartSign", - ), + script = "Common_EventScript_ShowPokemartSign"), BgEventDef( x = 18, y = 3, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "Common_EventScript_ShowPokemonCenterSign", - ), + script = "Common_EventScript_ShowPokemonCenterSign"), BgEventDef( x = 1, y = 8, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "VerdanturfTown_EventScript_BattleTentSign", - ), + script = "VerdanturfTown_EventScript_BattleTentSign"), BgEventDef( x = 7, y = 3, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "VerdanturfTown_EventScript_RusturfTunnelSign", - ), + script = "VerdanturfTown_EventScript_RusturfTunnelSign"), ), ), // PacifidlogTown (MAP_PACIFIDLOG_TOWN) @@ -3788,35 +3267,21 @@ object MapManager { mapId = 15, width = 20, height = 40, - paletteIdx1 = 112, - paletteIdx2 = 148, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 112, + unknownShort = 408, + unknownByte = 6, borderTiles = listOf( - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - ), + Tile2D(0x0170, 0), Tile2D(0x0170, 0), Tile2D(0x0170, 0), Tile2D(0x0170, 0)), lighting = Lighting.REGULAR, weather = Weather.REGULAR_WEATHER, - mapType = MapType.CITY, - encounterType = EncounterType.GYM_STYLE, + mapType = MapType.UNKNOWN_0x01, + encounterType = EncounterType.RANDOM, connections = listOf( - GbaConnection( - direction = 3, - unknown = 0, - targetBank = 50, - targetMap = 47, - ), - GbaConnection( - direction = 4, - unknown = 0, - targetBank = 50, - targetMap = 46, - ), + GbaConnection(direction = 3, unknown = 0, targetBank = 50, targetMap = 47), + GbaConnection(direction = 4, unknown = 0, targetBank = 50, targetMap = 46), ), warps = listOf( @@ -3827,8 +3292,7 @@ object MapManager { targetBankId = 57, targetMapId = 0, targetX = 7, - targetY = 8, - ), + targetY = 8), WarpTile( x = 16, y = 13, @@ -3836,8 +3300,7 @@ object MapManager { targetBankId = 57, targetMapId = 2, targetX = 4, - targetY = 8, - ), + targetY = 8), WarpTile( x = 3, y = 22, @@ -3845,8 +3308,7 @@ object MapManager { targetBankId = 57, targetMapId = 3, targetX = 4, - targetY = 8, - ), + targetY = 8), WarpTile( x = 12, y = 24, @@ -3854,8 +3316,7 @@ object MapManager { targetBankId = 57, targetMapId = 4, targetX = 4, - targetY = 8, - ), + targetY = 8), WarpTile( x = 2, y = 12, @@ -3863,8 +3324,7 @@ object MapManager { targetBankId = 57, targetMapId = 5, targetX = 4, - targetY = 8, - ), + targetY = 8), WarpTile( x = 17, y = 21, @@ -3872,8 +3332,7 @@ object MapManager { targetBankId = 57, targetMapId = 6, targetX = 4, - targetY = 8, - ), + targetY = 8), ), npcs = listOf( @@ -3888,8 +3347,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 2, - script = "PacifidlogTown_EventScript_Girl", - ), + script = "PacifidlogTown_EventScript_Girl"), NpcDef( entityIdx = 1, graphicsId = 50, @@ -3901,8 +3359,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "PacifidlogTown_EventScript_Fisherman", - ), + script = "PacifidlogTown_EventScript_Fisherman"), NpcDef( entityIdx = 2, graphicsId = 5, @@ -3913,9 +3370,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "PacifidlogTown_EventScript_NinjaBoy", - ), + facing = 0, + script = "PacifidlogTown_EventScript_NinjaBoy"), ), bgEvents = listOf( @@ -3923,20 +3379,17 @@ object MapManager { x = 9, y = 15, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "Common_EventScript_ShowPokemonCenterSign", - ), + script = "Common_EventScript_ShowPokemonCenterSign"), BgEventDef( x = 7, y = 16, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "PacifidlogTown_EventScript_TownSign", - ), + script = "PacifidlogTown_EventScript_TownSign"), BgEventDef( x = 10, y = 15, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "Common_EventScript_ShowPokemonCenterSign", - ), + script = "Common_EventScript_ShowPokemonCenterSign"), ), ), // Route101 (MAP_ROUTE101) @@ -3948,33 +3401,19 @@ object MapManager { height = 20, paletteIdx1 = 100, paletteIdx2 = 101, - unknownShort = 405, - unknownByte = 0, + unknownShort = 359, + unknownByte = 16, borderTiles = listOf( - Tile2D(0x01D4, 0), - Tile2D(0x01D5, 0), - Tile2D(0x01DC, 0), - Tile2D(0x01DD, 0), - ), + Tile2D(0x01D4, 0), Tile2D(0x01D5, 0), Tile2D(0x01DC, 0), Tile2D(0x01DD, 0)), lighting = Lighting.REGULAR, weather = Weather.REGULAR_WEATHER, mapType = MapType.ROUTE, encounterType = EncounterType.RANDOM, connections = listOf( - GbaConnection( - direction = 2, - unknown = 0, - targetBank = 50, - targetMap = 10, - ), - GbaConnection( - direction = 1, - unknown = 0, - targetBank = 50, - targetMap = 9, - ), + GbaConnection(direction = 2, unknown = 0, targetBank = 50, targetMap = 10), + GbaConnection(direction = 1, unknown = 0, targetBank = 50, targetMap = 9), ), warps = emptyList(), npcs = @@ -3990,16 +3429,16 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "Route101_EventScript_Youngster", - )), + script = "Route101_EventScript_Youngster"), + ), bgEvents = listOf( BgEventDef( x = 5, y = 9, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Route101_EventScript_RouteSign", - )), + script = "Route101_EventScript_RouteSign"), + ), ), // Route102 (MAP_ROUTE102) MapDef( @@ -4010,33 +3449,19 @@ object MapManager { height = 20, paletteIdx1 = 100, paletteIdx2 = 101, - unknownShort = 405, - unknownByte = 0, + unknownShort = 359, + unknownByte = 17, borderTiles = listOf( - Tile2D(0x01D4, 0), - Tile2D(0x01D5, 0), - Tile2D(0x01DC, 0), - Tile2D(0x01DD, 0), - ), + Tile2D(0x01D4, 0), Tile2D(0x01D5, 0), Tile2D(0x01DC, 0), Tile2D(0x01DD, 0)), lighting = Lighting.REGULAR, weather = Weather.REGULAR_WEATHER, mapType = MapType.ROUTE, encounterType = EncounterType.RANDOM, connections = listOf( - GbaConnection( - direction = 3, - unknown = 0, - targetBank = 50, - targetMap = 0, - ), - GbaConnection( - direction = 4, - unknown = 0, - targetBank = 50, - targetMap = 10, - ), + GbaConnection(direction = 3, unknown = -10, targetBank = 50, targetMap = 0), + GbaConnection(direction = 4, unknown = 0, targetBank = 50, targetMap = 10), ), warps = emptyList(), npcs = @@ -4052,8 +3477,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "Route102_EventScript_LittleBoy", - ), + script = "Route102_EventScript_LittleBoy"), NpcDef( entityIdx = 1, graphicsId = 35, @@ -4064,9 +3488,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 1, - facing = 1, - script = "Route102_EventScript_Calvin", - ), + facing = 0, + script = "Route102_EventScript_Calvin"), NpcDef( entityIdx = 2, graphicsId = 36, @@ -4077,9 +3500,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 1, - facing = 0, - script = "Route102_EventScript_Rick", - ), + facing = 1, + script = "Route102_EventScript_Rick"), NpcDef( entityIdx = 3, graphicsId = 47, @@ -4091,8 +3513,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "Route102_EventScript_Tiana", - ), + script = "Route102_EventScript_Tiana"), NpcDef( entityIdx = 4, graphicsId = 7, @@ -4104,8 +3525,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "Route102_EventScript_Boy", - ), + script = "Route102_EventScript_Boy"), NpcDef( entityIdx = 6, graphicsId = 60, @@ -4117,8 +3537,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 7, graphicsId = 60, @@ -4130,8 +3549,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 8, graphicsId = 35, @@ -4142,9 +3560,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 1, - facing = 1, - script = "Route102_EventScript_Allen", - ), + facing = 0, + script = "Route102_EventScript_Allen"), ), bgEvents = listOf( @@ -4152,14 +3569,12 @@ object MapManager { x = 17, y = 2, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Route102_EventScript_RouteSignPetalburg", - ), + script = "Route102_EventScript_RouteSignPetalburg"), BgEventDef( x = 40, y = 9, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Route102_EventScript_RouteSignOldale", - ), + script = "Route102_EventScript_RouteSignOldale"), ), ), // Route103 (MAP_ROUTE103) @@ -4171,33 +3586,20 @@ object MapManager { height = 22, paletteIdx1 = 100, paletteIdx2 = 101, - unknownShort = 405, - unknownByte = 0, + unknownShort = 359, + unknownByte = 18, borderTiles = listOf( - Tile2D(0x01D4, 0), - Tile2D(0x01D5, 0), - Tile2D(0x01DC, 0), - Tile2D(0x01DD, 0), - ), + Tile2D(0x01D4, 0), Tile2D(0x01D5, 0), Tile2D(0x01DC, 0), Tile2D(0x01DD, 0)), lighting = Lighting.REGULAR, weather = Weather.REGULAR_WEATHER, mapType = MapType.ROUTE, encounterType = EncounterType.RANDOM, connections = listOf( + GbaConnection(direction = 1, unknown = 0, targetBank = 50, targetMap = 10), GbaConnection( - direction = 1, - unknown = 0, - targetBank = 50, - targetMap = 10, - ), - GbaConnection( - direction = 4, - unknown = 0, - targetBank = 50, - targetMap = 25, - ), + direction = 4, unknown = -60, targetBank = 50, targetMap = 25), ), warps = listOf( @@ -4208,8 +3610,8 @@ object MapManager { targetBankId = 74, targetMapId = 106, targetX = 18, - targetY = 22, - )), + targetY = 22), + ), npcs = listOf( NpcDef( @@ -4223,8 +3625,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 2, - script = "Route103_EventScript_Man", - ), + script = "Route103_EventScript_Man"), NpcDef( entityIdx = 2, graphicsId = 20, @@ -4236,8 +3637,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "Route103_EventScript_Daisy", - ), + script = "Route103_EventScript_Daisy"), NpcDef( entityIdx = 3, graphicsId = 6, @@ -4248,9 +3648,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 1, - facing = 1, - script = "Route103_EventScript_Liv", - ), + facing = 0, + script = "Route103_EventScript_Liv"), NpcDef( entityIdx = 4, graphicsId = 6, @@ -4261,9 +3660,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 1, - facing = 1, - script = "Route103_EventScript_Amy", - ), + facing = 0, + script = "Route103_EventScript_Amy"), NpcDef( entityIdx = 5, graphicsId = 50, @@ -4275,8 +3673,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "Route103_EventScript_Andrew", - ), + script = "Route103_EventScript_Andrew"), NpcDef( entityIdx = 6, graphicsId = 60, @@ -4288,8 +3685,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 7, graphicsId = 60, @@ -4301,8 +3697,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 8, graphicsId = 60, @@ -4314,8 +3709,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 9, graphicsId = 7, @@ -4327,8 +3721,7 @@ object MapManager { movementRangeY = 2, trainerType = 0, facing = 0, - script = "Route103_EventScript_Boy", - ), + script = "Route103_EventScript_Boy"), NpcDef( entityIdx = 11, graphicsId = 25, @@ -4340,8 +3733,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 3, - script = "Route103_EventScript_Miguel", - ), + script = "Route103_EventScript_Miguel"), NpcDef( entityIdx = 15, graphicsId = 44, @@ -4352,9 +3744,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 1, - facing = 1, - script = "Route103_EventScript_Rhett", - ), + facing = 0, + script = "Route103_EventScript_Rhett"), NpcDef( entityIdx = 16, graphicsId = 66, @@ -4365,9 +3756,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 1, - facing = 0, - script = "Route103_EventScript_Marcos", - ), + facing = 1, + script = "Route103_EventScript_Marcos"), NpcDef( entityIdx = 17, graphicsId = 43, @@ -4379,8 +3769,7 @@ object MapManager { movementRangeY = 3, trainerType = 1, facing = 0, - script = "Route103_EventScript_Isabelle", - ), + script = "Route103_EventScript_Isabelle"), NpcDef( entityIdx = 18, graphicsId = 42, @@ -4392,8 +3781,7 @@ object MapManager { movementRangeY = 3, trainerType = 1, facing = 0, - script = "Route103_EventScript_Pete", - ), + script = "Route103_EventScript_Pete"), ), bgEvents = listOf( @@ -4401,8 +3789,8 @@ object MapManager { x = 11, y = 9, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Route103_EventScript_RouteSign", - )), + script = "Route103_EventScript_RouteSign"), + ), ), // Route104 (MAP_ROUTE104) MapDef( @@ -4411,41 +3799,22 @@ object MapManager { mapId = 19, width = 40, height = 80, - paletteIdx1 = 82, - paletteIdx2 = 118, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 102, + unknownShort = 401, + unknownByte = 19, borderTiles = listOf( - Tile2D(0x01D4, 0), - Tile2D(0x01D5, 0), - Tile2D(0x01DC, 0), - Tile2D(0x01DD, 0), - ), + Tile2D(0x01D4, 0), Tile2D(0x01D5, 0), Tile2D(0x01DC, 0), Tile2D(0x01DD, 0)), lighting = Lighting.REGULAR, weather = Weather.REGULAR_WEATHER, mapType = MapType.ROUTE, encounterType = EncounterType.RANDOM, connections = listOf( - GbaConnection( - direction = 2, - unknown = 0, - targetBank = 50, - targetMap = 3, - ), - GbaConnection( - direction = 1, - unknown = 0, - targetBank = 50, - targetMap = 20, - ), - GbaConnection( - direction = 4, - unknown = 0, - targetBank = 50, - targetMap = 0, - ), + GbaConnection(direction = 2, unknown = 0, targetBank = 50, targetMap = 3), + GbaConnection(direction = 1, unknown = 0, targetBank = 50, targetMap = 20), + GbaConnection(direction = 4, unknown = 50, targetBank = 50, targetMap = 0), ), warps = listOf( @@ -4456,8 +3825,7 @@ object MapManager { targetBankId = 67, targetMapId = 0, targetX = 5, - targetY = 8, - ), + targetY = 8), WarpTile( x = 5, y = 18, @@ -4465,8 +3833,7 @@ object MapManager { targetBankId = 67, targetMapId = 1, targetX = 2, - targetY = 8, - ), + targetY = 8), WarpTile( x = 10, y = 30, @@ -4474,8 +3841,7 @@ object MapManager { targetBankId = 74, targetMapId = 11, targetX = 14, - targetY = 5, - ), + targetY = 5), WarpTile( x = 11, y = 30, @@ -4483,8 +3849,7 @@ object MapManager { targetBankId = 74, targetMapId = 11, targetX = 15, - targetY = 5, - ), + targetY = 5), WarpTile( x = 10, y = 38, @@ -4492,8 +3857,7 @@ object MapManager { targetBankId = 74, targetMapId = 11, targetX = 16, - targetY = 38, - ), + targetY = 38), WarpTile( x = 11, y = 38, @@ -4501,8 +3865,7 @@ object MapManager { targetBankId = 74, targetMapId = 11, targetX = 17, - targetY = 38, - ), + targetY = 38), WarpTile( x = 32, y = 42, @@ -4510,8 +3873,7 @@ object MapManager { targetBankId = 74, targetMapId = 11, targetX = 36, - targetY = 38, - ), + targetY = 38), WarpTile( x = 33, y = 42, @@ -4519,8 +3881,7 @@ object MapManager { targetBankId = 74, targetMapId = 11, targetX = 37, - targetY = 38, - ), + targetY = 38), ), npcs = listOf( @@ -4535,8 +3896,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 2, - script = "Route104_EventScript_BugCatcher", - ), + script = "Route104_EventScript_BugCatcher"), NpcDef( entityIdx = 1, graphicsId = 10, @@ -4548,8 +3908,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "Route104_EventScript_Girl1", - ), + script = "Route104_EventScript_Girl1"), NpcDef( entityIdx = 2, graphicsId = 47, @@ -4561,8 +3920,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 2, - script = "Route104_EventScript_Haley", - ), + script = "Route104_EventScript_Haley"), NpcDef( entityIdx = 3, graphicsId = 7, @@ -4574,8 +3932,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "Route104_EventScript_Boy1", - ), + script = "Route104_EventScript_Boy1"), NpcDef( entityIdx = 4, graphicsId = 20, @@ -4587,8 +3944,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "Route104_EventScript_Woman", - ), + script = "Route104_EventScript_Woman"), NpcDef( entityIdx = 5, graphicsId = 14, @@ -4599,9 +3955,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 0, - script = "Route104_EventScript_Girl2", - ), + facing = 1, + script = "Route104_EventScript_Girl2"), NpcDef( entityIdx = 8, graphicsId = 50, @@ -4612,9 +3967,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 1, - facing = 1, - script = "Route104_EventScript_Ivan", - ), + facing = 0, + script = "Route104_EventScript_Ivan"), NpcDef( entityIdx = 9, graphicsId = 60, @@ -4626,8 +3980,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 10, graphicsId = 60, @@ -4639,8 +3992,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 11, graphicsId = 60, @@ -4652,8 +4004,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 12, graphicsId = 60, @@ -4665,8 +4016,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 13, graphicsId = 60, @@ -4678,8 +4028,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 14, graphicsId = 60, @@ -4691,8 +4040,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 15, graphicsId = 22, @@ -4704,8 +4052,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 2, - script = "Route104_EventScript_ExpertF", - ), + script = "Route104_EventScript_ExpertF"), NpcDef( entityIdx = 16, graphicsId = 60, @@ -4717,8 +4064,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 17, graphicsId = 60, @@ -4730,8 +4076,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 18, graphicsId = 60, @@ -4743,8 +4088,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 19, graphicsId = 60, @@ -4756,8 +4100,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 22, graphicsId = 6, @@ -4768,9 +4111,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 1, - facing = 1, - script = "Route104_EventScript_Gina", - ), + facing = 0, + script = "Route104_EventScript_Gina"), NpcDef( entityIdx = 23, graphicsId = 6, @@ -4781,9 +4123,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 1, - facing = 1, - script = "Route104_EventScript_Mia", - ), + facing = 0, + script = "Route104_EventScript_Mia"), NpcDef( entityIdx = 24, graphicsId = 15, @@ -4795,8 +4136,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "Route104_EventScript_Winston", - ), + script = "Route104_EventScript_Winston"), NpcDef( entityIdx = 25, graphicsId = 20, @@ -4808,8 +4148,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "Route104_EventScript_Cindy", - ), + script = "Route104_EventScript_Cindy"), NpcDef( entityIdx = 27, graphicsId = 35, @@ -4821,8 +4160,7 @@ object MapManager { movementRangeY = 6, trainerType = 1, facing = 0, - script = "Route104_EventScript_Billy", - ), + script = "Route104_EventScript_Billy"), NpcDef( entityIdx = 31, graphicsId = 9, @@ -4834,8 +4172,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "Route104_EventScript_Boy2", - ), + script = "Route104_EventScript_Boy2"), NpcDef( entityIdx = 32, graphicsId = 50, @@ -4847,8 +4184,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 2, - script = "Route104_EventScript_Darian", - ), + script = "Route104_EventScript_Darian"), ), bgEvents = listOf( @@ -4856,62 +4192,52 @@ object MapManager { x = 20, y = 50, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Route104_EventScript_BrineysCottageSign", - ), + script = "Route104_EventScript_BrineysCottageSign"), BgEventDef( x = 27, y = 66, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Route104_EventScript_RouteSignPetalburg", - ), + script = "Route104_EventScript_RouteSignPetalburg"), BgEventDef( x = 23, y = 5, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Route104_EventScript_RouteSignRustboro", - ), + script = "Route104_EventScript_RouteSignRustboro"), BgEventDef( x = 7, y = 20, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Route104_EventScript_FlowerShopSign", - ), + script = "Route104_EventScript_FlowerShopSign"), BgEventDef( x = 17, y = 23, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Route104_EventScript_TrainerTipsDoubleBattles", - ), + script = "Route104_EventScript_TrainerTipsDoubleBattles"), BgEventDef( x = 7, y = 6, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 3, y = 9, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 14, y = 55, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 16, y = 72, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 16, y = 64, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), ), ), // Route105 (MAP_ROUTE105) @@ -4921,41 +4247,22 @@ object MapManager { mapId = 20, width = 40, height = 80, - paletteIdx1 = 90, - paletteIdx2 = 124, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 103, + unknownShort = 401, + unknownByte = 20, borderTiles = listOf( - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - ), + Tile2D(0x0170, 0), Tile2D(0x0170, 0), Tile2D(0x0170, 0), Tile2D(0x0170, 0)), lighting = Lighting.REGULAR, weather = Weather.REGULAR_WEATHER, mapType = MapType.ROUTE, encounterType = EncounterType.RANDOM, connections = listOf( - GbaConnection( - direction = 2, - unknown = 0, - targetBank = 50, - targetMap = 19, - ), - GbaConnection( - direction = 1, - unknown = 0, - targetBank = 50, - targetMap = 21, - ), - GbaConnection( - direction = 5, - unknown = 0, - targetBank = 50, - targetMap = 55, - ), + GbaConnection(direction = 2, unknown = 0, targetBank = 50, targetMap = 19), + GbaConnection(direction = 1, unknown = 0, targetBank = 50, targetMap = 21), + GbaConnection(direction = 5, unknown = 0, targetBank = 50, targetMap = 55), ), warps = listOf( @@ -4966,8 +4273,8 @@ object MapManager { targetBankId = 74, targetMapId = 67, targetX = 8, - targetY = 29, - )), + targetY = 29), + ), npcs = listOf( NpcDef( @@ -4981,8 +4288,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 3, - script = "Route105_EventScript_Luis", - ), + script = "Route105_EventScript_Luis"), NpcDef( entityIdx = 1, graphicsId = 42, @@ -4994,8 +4300,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "Route105_EventScript_Dominik", - ), + script = "Route105_EventScript_Dominik"), NpcDef( entityIdx = 2, graphicsId = 43, @@ -5007,8 +4312,7 @@ object MapManager { movementRangeY = 7, trainerType = 1, facing = 0, - script = "Route105_EventScript_Beverly", - ), + script = "Route105_EventScript_Beverly"), NpcDef( entityIdx = 3, graphicsId = 43, @@ -5020,8 +4324,7 @@ object MapManager { movementRangeY = 5, trainerType = 1, facing = 0, - script = "Route105_EventScript_Imani", - ), + script = "Route105_EventScript_Imani"), NpcDef( entityIdx = 5, graphicsId = 55, @@ -5033,8 +4336,7 @@ object MapManager { movementRangeY = 7, trainerType = 1, facing = 0, - script = "Route105_EventScript_Foster", - ), + script = "Route105_EventScript_Foster"), NpcDef( entityIdx = 6, graphicsId = 66, @@ -5045,9 +4347,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 2, trainerType = 1, - facing = 1, - script = "Route105_EventScript_Josue", - ), + facing = 0, + script = "Route105_EventScript_Josue"), NpcDef( entityIdx = 7, graphicsId = 55, @@ -5058,9 +4359,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 2, trainerType = 1, - facing = 0, - script = "Route105_EventScript_Andres", - ), + facing = 1, + script = "Route105_EventScript_Andres"), ), bgEvents = listOf( @@ -5068,14 +4368,12 @@ object MapManager { x = 15, y = 68, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 5, y = 56, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), ), ), // Route106 (MAP_ROUTE106) @@ -5085,35 +4383,21 @@ object MapManager { mapId = 21, width = 80, height = 20, - paletteIdx1 = 90, - paletteIdx2 = 124, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 103, + unknownShort = 401, + unknownByte = 21, borderTiles = listOf( - Tile2D(0x0243, 0), - Tile2D(0x0243, 0), - Tile2D(0x0243, 0), - Tile2D(0x0243, 0), - ), + Tile2D(0x0243, 0), Tile2D(0x0243, 0), Tile2D(0x0243, 0), Tile2D(0x0243, 0)), lighting = Lighting.REGULAR, weather = Weather.REGULAR_WEATHER, mapType = MapType.ROUTE, encounterType = EncounterType.RANDOM, connections = listOf( - GbaConnection( - direction = 2, - unknown = 0, - targetBank = 50, - targetMap = 20, - ), - GbaConnection( - direction = 1, - unknown = 0, - targetBank = 50, - targetMap = 11, - ), + GbaConnection(direction = 2, unknown = 0, targetBank = 50, targetMap = 20), + GbaConnection(direction = 1, unknown = 60, targetBank = 50, targetMap = 11), ), warps = listOf( @@ -5124,8 +4408,8 @@ object MapManager { targetBankId = 74, targetMapId = 7, targetX = 37, - targetY = 12, - )), + targetY = 12), + ), npcs = listOf( NpcDef( @@ -5139,8 +4423,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "Route106_EventScript_Douglas", - ), + script = "Route106_EventScript_Douglas"), NpcDef( entityIdx = 1, graphicsId = 43, @@ -5152,8 +4435,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "Route106_EventScript_Kyla", - ), + script = "Route106_EventScript_Kyla"), NpcDef( entityIdx = 2, graphicsId = 50, @@ -5165,8 +4447,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 3, - script = "Route106_EventScript_Elliot", - ), + script = "Route106_EventScript_Elliot"), NpcDef( entityIdx = 3, graphicsId = 50, @@ -5178,8 +4459,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "Route106_EventScript_Ned", - ), + script = "Route106_EventScript_Ned"), ), bgEvents = listOf( @@ -5187,26 +4467,22 @@ object MapManager { x = 41, y = 11, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 53, y = 12, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 68, y = 15, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 59, y = 13, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Route106_EventScript_TrainerTipsSign", - ), + script = "Route106_EventScript_TrainerTipsSign"), ), ), // Route107 (MAP_ROUTE107) @@ -5216,35 +4492,21 @@ object MapManager { mapId = 22, width = 60, height = 20, - paletteIdx1 = 90, - paletteIdx2 = 124, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 103, + unknownShort = 401, + unknownByte = 22, borderTiles = listOf( - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - ), + Tile2D(0x0170, 0), Tile2D(0x0170, 0), Tile2D(0x0170, 0), Tile2D(0x0170, 0)), lighting = Lighting.REGULAR, weather = Weather.REGULAR_WEATHER, mapType = MapType.ROUTE, encounterType = EncounterType.RANDOM, connections = listOf( - GbaConnection( - direction = 3, - unknown = 0, - targetBank = 50, - targetMap = 11, - ), - GbaConnection( - direction = 4, - unknown = 0, - targetBank = 50, - targetMap = 23, - ), + GbaConnection(direction = 3, unknown = 0, targetBank = 50, targetMap = 11), + GbaConnection(direction = 4, unknown = 0, targetBank = 50, targetMap = 23), ), warps = emptyList(), npcs = @@ -5260,8 +4522,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "Route107_EventScript_Darrin", - ), + script = "Route107_EventScript_Darrin"), NpcDef( entityIdx = 1, graphicsId = 42, @@ -5273,8 +4534,7 @@ object MapManager { movementRangeY = 2, trainerType = 1, facing = 0, - script = "Route107_EventScript_Tony", - ), + script = "Route107_EventScript_Tony"), NpcDef( entityIdx = 2, graphicsId = 43, @@ -5286,8 +4546,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "Route107_EventScript_Denise", - ), + script = "Route107_EventScript_Denise"), NpcDef( entityIdx = 3, graphicsId = 43, @@ -5299,8 +4558,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 1, - script = "Route107_EventScript_Beth", - ), + script = "Route107_EventScript_Beth"), NpcDef( entityIdx = 4, graphicsId = 43, @@ -5311,9 +4569,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 1, - facing = 1, - script = "Route107_EventScript_Lisa", - ), + facing = 0, + script = "Route107_EventScript_Lisa"), NpcDef( entityIdx = 5, graphicsId = 0, @@ -5324,9 +4581,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 1, - facing = 1, - script = "Route107_EventScript_Ray", - ), + facing = 0, + script = "Route107_EventScript_Ray"), NpcDef( entityIdx = 6, graphicsId = 42, @@ -5338,8 +4594,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "Route107_EventScript_Camron", - ), + script = "Route107_EventScript_Camron"), ), bgEvents = emptyList(), ), @@ -5350,35 +4605,22 @@ object MapManager { mapId = 23, width = 60, height = 20, - paletteIdx1 = 86, - paletteIdx2 = 122, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 104, + unknownShort = 401, + unknownByte = 23, borderTiles = listOf( - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - ), + Tile2D(0x0170, 0), Tile2D(0x0170, 0), Tile2D(0x0170, 0), Tile2D(0x0170, 0)), lighting = Lighting.REGULAR, weather = Weather.REGULAR_WEATHER, mapType = MapType.ROUTE, encounterType = EncounterType.RANDOM, connections = listOf( + GbaConnection(direction = 3, unknown = 0, targetBank = 50, targetMap = 22), GbaConnection( - direction = 3, - unknown = 0, - targetBank = 50, - targetMap = 22, - ), - GbaConnection( - direction = 4, - unknown = 0, - targetBank = 50, - targetMap = 24, - ), + direction = 4, unknown = -40, targetBank = 50, targetMap = 24), ), warps = listOf( @@ -5389,8 +4631,8 @@ object MapManager { targetBankId = 74, targetMapId = 54, targetX = 13, - targetY = 15, - )), + targetY = 15), + ), npcs = listOf( NpcDef( @@ -5404,8 +4646,7 @@ object MapManager { movementRangeY = 3, trainerType = 1, facing = 0, - script = "Route108_EventScript_Jerome", - ), + script = "Route108_EventScript_Jerome"), NpcDef( entityIdx = 1, graphicsId = 43, @@ -5417,8 +4658,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "Route108_EventScript_Tara", - ), + script = "Route108_EventScript_Tara"), NpcDef( entityIdx = 2, graphicsId = 42, @@ -5430,8 +4670,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "Route108_EventScript_Matthew", - ), + script = "Route108_EventScript_Matthew"), NpcDef( entityIdx = 3, graphicsId = 43, @@ -5443,8 +4682,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "Route108_EventScript_Missy", - ), + script = "Route108_EventScript_Missy"), NpcDef( entityIdx = 4, graphicsId = 34, @@ -5456,8 +4694,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 3, - script = "Route108_EventScript_Carolina", - ), + script = "Route108_EventScript_Carolina"), NpcDef( entityIdx = 5, graphicsId = 49, @@ -5469,8 +4706,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 2, - script = "Route108_EventScript_Cory", - ), + script = "Route108_EventScript_Cory"), ), bgEvents = listOf( @@ -5478,8 +4714,8 @@ object MapManager { x = 38, y = 14, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - )), + script = "undefined"), + ), ), // Route109 (MAP_ROUTE109) MapDef( @@ -5488,35 +4724,21 @@ object MapManager { mapId = 24, width = 40, height = 63, - paletteIdx1 = 86, - paletteIdx2 = 122, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 104, + unknownShort = 401, + unknownByte = 24, borderTiles = listOf( - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - ), + Tile2D(0x0170, 0), Tile2D(0x0170, 0), Tile2D(0x0170, 0), Tile2D(0x0170, 0)), lighting = Lighting.REGULAR, weather = Weather.REGULAR_WEATHER, mapType = MapType.ROUTE, encounterType = EncounterType.RANDOM, connections = listOf( - GbaConnection( - direction = 2, - unknown = 0, - targetBank = 50, - targetMap = 1, - ), - GbaConnection( - direction = 3, - unknown = 0, - targetBank = 50, - targetMap = 23, - ), + GbaConnection(direction = 2, unknown = 0, targetBank = 50, targetMap = 1), + GbaConnection(direction = 3, unknown = 40, targetBank = 50, targetMap = 23), ), warps = listOf( @@ -5527,8 +4749,8 @@ object MapManager { targetBankId = 78, targetMapId = 0, targetX = 6, - targetY = 9, - )), + targetY = 9), + ), npcs = listOf( NpcDef( @@ -5542,8 +4764,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 3, - script = "Route109_EventScript_David", - ), + script = "Route109_EventScript_David"), NpcDef( entityIdx = 3, graphicsId = 43, @@ -5555,8 +4776,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "Route109_EventScript_Alice", - ), + script = "Route109_EventScript_Alice"), NpcDef( entityIdx = 4, graphicsId = 49, @@ -5567,9 +4787,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 1, - facing = 1, - script = "Route109_EventScript_Huey", - ), + facing = 0, + script = "Route109_EventScript_Huey"), NpcDef( entityIdx = 5, graphicsId = 49, @@ -5581,8 +4800,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 2, - script = "Route109_EventScript_Edmond", - ), + script = "Route109_EventScript_Edmond"), NpcDef( entityIdx = 6, graphicsId = 54, @@ -5593,9 +4811,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 1, - facing = 1, - script = "Route109_EventScript_Ricky", - ), + facing = 0, + script = "Route109_EventScript_Ricky"), NpcDef( entityIdx = 7, graphicsId = 53, @@ -5607,8 +4824,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "Route109_EventScript_Lola", - ), + script = "Route109_EventScript_Lola"), NpcDef( entityIdx = 8, graphicsId = 12, @@ -5619,9 +4835,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "Route109_EventScript_SeashoreHouseGirl", - ), + facing = 0, + script = "Route109_EventScript_SeashoreHouseGirl"), NpcDef( entityIdx = 10, graphicsId = 53, @@ -5633,8 +4848,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "Route109_EventScript_Gwen", - ), + script = "Route109_EventScript_Gwen"), NpcDef( entityIdx = 11, graphicsId = 53, @@ -5646,8 +4860,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "Route109_EventScript_Austina", - ), + script = "Route109_EventScript_Austina"), NpcDef( entityIdx = 12, graphicsId = 50, @@ -5659,8 +4872,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 2, - script = "Route109_EventScript_Carter", - ), + script = "Route109_EventScript_Carter"), NpcDef( entityIdx = 13, graphicsId = 54, @@ -5672,8 +4884,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 3, - script = "Route109_EventScript_SandCastleBoy", - ), + script = "Route109_EventScript_SandCastleBoy"), NpcDef( entityIdx = 14, graphicsId = 53, @@ -5685,8 +4896,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 2, - script = "Route109_EventScript_SoftSandGirl", - ), + script = "Route109_EventScript_SoftSandGirl"), NpcDef( entityIdx = 15, graphicsId = 18, @@ -5697,9 +4907,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "Route109_EventScript_Woman", - ), + facing = 0, + script = "Route109_EventScript_Woman"), NpcDef( entityIdx = 16, graphicsId = 26, @@ -5710,9 +4919,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 1, - facing = 1, - script = "Route109_EventScript_Mel", - ), + facing = 0, + script = "Route109_EventScript_Mel"), NpcDef( entityIdx = 17, graphicsId = 65, @@ -5723,9 +4931,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 1, - facing = 1, - script = "Route109_EventScript_Paul", - ), + facing = 0, + script = "Route109_EventScript_Paul"), NpcDef( entityIdx = 18, graphicsId = 29, @@ -5737,8 +4944,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "Route109_EventScript_OldMan", - ), + script = "Route109_EventScript_OldMan"), NpcDef( entityIdx = 19, graphicsId = 0, @@ -5750,8 +4956,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "Route109_EventScript_Zigzagoon", - ), + script = "Route109_EventScript_Zigzagoon"), NpcDef( entityIdx = 20, graphicsId = 53, @@ -5763,8 +4968,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "Route109_EventScript_Hailey", - ), + script = "Route109_EventScript_Hailey"), NpcDef( entityIdx = 21, graphicsId = 54, @@ -5776,8 +4980,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "Route109_EventScript_Chandler", - ), + script = "Route109_EventScript_Chandler"), NpcDef( entityIdx = 23, graphicsId = 66, @@ -5789,8 +4992,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "Route109_EventScript_Elijah", - ), + script = "Route109_EventScript_Elijah"), ), bgEvents = listOf( @@ -5798,50 +5000,42 @@ object MapManager { x = 15, y = 5, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Route109_EventScript_SeashoreHouseSign", - ), + script = "Route109_EventScript_SeashoreHouseSign"), BgEventDef( x = 29, y = 10, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Route109_EventScript_TrainerTipsSign", - ), + script = "Route109_EventScript_TrainerTipsSign"), BgEventDef( x = 16, y = 23, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 33, y = 5, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 9, y = 10, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 28, y = 20, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 13, y = 16, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 8, y = 42, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), ), ), // Route110 (MAP_ROUTE110) @@ -5851,41 +5045,22 @@ object MapManager { mapId = 25, width = 40, height = 100, - paletteIdx1 = 84, - paletteIdx2 = 120, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 105, + unknownShort = 360, + unknownByte = 25, borderTiles = listOf( - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - ), + Tile2D(0x0170, 0), Tile2D(0x0170, 0), Tile2D(0x0170, 0), Tile2D(0x0170, 0)), lighting = Lighting.REGULAR, weather = Weather.REGULAR_WEATHER, mapType = MapType.ROUTE, encounterType = EncounterType.RANDOM, connections = listOf( - GbaConnection( - direction = 2, - unknown = 0, - targetBank = 50, - targetMap = 2, - ), - GbaConnection( - direction = 1, - unknown = 0, - targetBank = 50, - targetMap = 1, - ), - GbaConnection( - direction = 3, - unknown = 0, - targetBank = 50, - targetMap = 18, - ), + GbaConnection(direction = 2, unknown = 0, targetBank = 50, targetMap = 2), + GbaConnection(direction = 1, unknown = 0, targetBank = 50, targetMap = 1), + GbaConnection(direction = 3, unknown = 60, targetBank = 50, targetMap = 18), ), warps = listOf( @@ -5896,8 +5071,7 @@ object MapManager { targetBankId = 74, targetMapId = 52, targetX = 4, - targetY = 6, - ), + targetY = 6), WarpTile( x = 11, y = 66, @@ -5905,8 +5079,7 @@ object MapManager { targetBankId = 79, targetMapId = 0, targetX = 5, - targetY = 7, - ), + targetY = 7), WarpTile( x = 15, y = 16, @@ -5914,8 +5087,7 @@ object MapManager { targetBankId = 79, targetMapId = 12, targetX = 1, - targetY = 5, - ), + targetY = 5), WarpTile( x = 18, y = 16, @@ -5923,8 +5095,7 @@ object MapManager { targetBankId = 79, targetMapId = 12, targetX = 12, - targetY = 5, - ), + targetY = 5), WarpTile( x = 16, y = 88, @@ -5932,8 +5103,7 @@ object MapManager { targetBankId = 79, targetMapId = 11, targetX = 1, - targetY = 5, - ), + targetY = 5), WarpTile( x = 19, y = 88, @@ -5941,8 +5111,7 @@ object MapManager { targetBankId = 79, targetMapId = 11, targetX = 12, - targetY = 5, - ), + targetY = 5), ), npcs = listOf( @@ -5956,9 +5125,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "Route110_EventScript_Boy2", - ), + facing = 0, + script = "Route110_EventScript_Boy2"), NpcDef( entityIdx = 1, graphicsId = 56, @@ -5969,9 +5137,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "Route110_EventScript_CyclingGuy2", - ), + facing = 0, + script = "Route110_EventScript_CyclingGuy2"), NpcDef( entityIdx = 2, graphicsId = 22, @@ -5983,8 +5150,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "Route110_EventScript_OldWoman", - ), + script = "Route110_EventScript_OldWoman"), NpcDef( entityIdx = 3, graphicsId = 56, @@ -5996,8 +5162,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "Route110_EventScript_CyclingGuy1", - ), + script = "Route110_EventScript_CyclingGuy1"), NpcDef( entityIdx = 4, graphicsId = 21, @@ -6009,8 +5174,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "Route110_EventScript_OldMan", - ), + script = "Route110_EventScript_OldMan"), NpcDef( entityIdx = 5, graphicsId = 57, @@ -6022,8 +5186,7 @@ object MapManager { movementRangeY = 3, trainerType = 0, facing = 0, - script = "Route110_EventScript_CyclingGirl1", - ), + script = "Route110_EventScript_CyclingGirl1"), NpcDef( entityIdx = 6, graphicsId = 13, @@ -6035,8 +5198,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "Route110_EventScript_Boy1", - ), + script = "Route110_EventScript_Boy1"), NpcDef( entityIdx = 7, graphicsId = 57, @@ -6048,8 +5210,7 @@ object MapManager { movementRangeY = 14, trainerType = 1, facing = 0, - script = "Route110_EventScript_Jasmine", - ), + script = "Route110_EventScript_Jasmine"), NpcDef( entityIdx = 8, graphicsId = 56, @@ -6061,8 +5222,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "Route110_EventScript_Anthony", - ), + script = "Route110_EventScript_Anthony"), NpcDef( entityIdx = 9, graphicsId = 57, @@ -6074,8 +5234,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 2, - script = "Route110_EventScript_Abigail", - ), + script = "Route110_EventScript_Abigail"), NpcDef( entityIdx = 10, graphicsId = 56, @@ -6087,8 +5246,7 @@ object MapManager { movementRangeY = 4, trainerType = 1, facing = 0, - script = "Route110_EventScript_Benjamin", - ), + script = "Route110_EventScript_Benjamin"), NpcDef( entityIdx = 11, graphicsId = 37, @@ -6100,8 +5258,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 3, - script = "Route110_EventScript_Edward", - ), + script = "Route110_EventScript_Edward"), NpcDef( entityIdx = 12, graphicsId = 47, @@ -6113,8 +5270,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 2, - script = "Route110_EventScript_Jaclyn", - ), + script = "Route110_EventScript_Jaclyn"), NpcDef( entityIdx = 13, graphicsId = 39, @@ -6126,8 +5282,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 3, - script = "Route110_EventScript_Edwin", - ), + script = "Route110_EventScript_Edwin"), NpcDef( entityIdx = 14, graphicsId = 50, @@ -6138,9 +5293,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 1, - facing = 1, - script = "Route110_EventScript_Dale", - ), + facing = 0, + script = "Route110_EventScript_Dale"), NpcDef( entityIdx = 15, graphicsId = 60, @@ -6152,8 +5306,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 16, graphicsId = 60, @@ -6165,8 +5318,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 17, graphicsId = 60, @@ -6178,8 +5330,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 20, graphicsId = 56, @@ -6190,9 +5341,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "Route110_EventScript_ChallengeGuy", - ), + facing = 0, + script = "Route110_EventScript_ChallengeGuy"), NpcDef( entityIdx = 26, graphicsId = 56, @@ -6204,8 +5354,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "Route110_EventScript_Jacob", - ), + script = "Route110_EventScript_Jacob"), NpcDef( entityIdx = 29, graphicsId = 35, @@ -6217,8 +5366,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "Route110_EventScript_Timmy", - ), + script = "Route110_EventScript_Timmy"), NpcDef( entityIdx = 30, graphicsId = 18, @@ -6230,8 +5378,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 2, - script = "Route110_EventScript_Isabel", - ), + script = "Route110_EventScript_Isabel"), NpcDef( entityIdx = 31, graphicsId = 25, @@ -6243,8 +5390,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 3, - script = "Route110_EventScript_Kaleb", - ), + script = "Route110_EventScript_Kaleb"), NpcDef( entityIdx = 32, graphicsId = 57, @@ -6256,8 +5402,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 2, - script = "Route110_EventScript_Alyssa", - ), + script = "Route110_EventScript_Alyssa"), NpcDef( entityIdx = 33, graphicsId = 66, @@ -6269,8 +5414,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 2, - script = "Route110_EventScript_Joseph", - ), + script = "Route110_EventScript_Joseph"), ), bgEvents = listOf( @@ -6278,104 +5422,87 @@ object MapManager { x = 15, y = 25, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Route110_EventScript_VandalizedSign", - ), + script = "Route110_EventScript_VandalizedSign"), BgEventDef( x = 9, y = 51, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Route110_EventScript_SeasideParkingSign", - ), + script = "Route110_EventScript_SeasideParkingSign"), BgEventDef( x = 14, y = 88, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Route110_EventScript_CyclingRoadSign", - ), + script = "Route110_EventScript_CyclingRoadSign"), BgEventDef( x = 20, y = 94, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Route110_EventScript_SlateportCitySign", - ), + script = "Route110_EventScript_SlateportCitySign"), BgEventDef( x = 7, y = 79, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Route110_EventScript_Route103Sign", - ), + script = "Route110_EventScript_Route103Sign"), BgEventDef( x = 3, y = 17, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Route110_EventScript_MauvilleCitySign", - ), + script = "Route110_EventScript_MauvilleCitySign"), BgEventDef( x = 16, y = 25, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 17, y = 25, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 33, y = 39, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Route110_EventScript_TrainerTipsPrlzSleep", - ), + script = "Route110_EventScript_TrainerTipsPrlzSleep"), BgEventDef( x = 37, y = 70, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Route110_EventScript_TrainerTipsRegisterItems", - ), + script = "Route110_EventScript_TrainerTipsRegisterItems"), BgEventDef( x = 8, y = 67, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Route110_EventScript_TrickHouseSign", - ), + script = "Route110_EventScript_TrickHouseSign"), BgEventDef( x = 32, y = 93, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Route110_EventScript_CyclingRoadResultsSign", - ), + script = "Route110_EventScript_CyclingRoadResultsSign"), BgEventDef( x = 35, y = 39, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 33, y = 45, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 4, y = 35, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 37, y = 67, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 13, y = 16, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Route110_EventScript_CyclingRoadSign", - ), + script = "Route110_EventScript_CyclingRoadSign"), ), ), // Route111 (MAP_ROUTE111) @@ -6385,41 +5512,22 @@ object MapManager { mapId = 26, width = 40, height = 140, - paletteIdx1 = 84, - paletteIdx2 = 120, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 105, + unknownShort = 360, + unknownByte = 26, borderTiles = listOf( - Tile2D(0x0071, 0), - Tile2D(0x0071, 0), - Tile2D(0x0071, 0), - Tile2D(0x0071, 0), - ), + Tile2D(0x0071, 0), Tile2D(0x0071, 0), Tile2D(0x0071, 0), Tile2D(0x0071, 0)), lighting = Lighting.REGULAR, weather = Weather.REGULAR_WEATHER, mapType = MapType.ROUTE, encounterType = EncounterType.RANDOM, connections = listOf( - GbaConnection( - direction = 1, - unknown = 0, - targetBank = 50, - targetMap = 2, - ), - GbaConnection( - direction = 3, - unknown = 0, - targetBank = 50, - targetMap = 28, - ), - GbaConnection( - direction = 3, - unknown = 0, - targetBank = 50, - targetMap = 27, - ), + GbaConnection(direction = 1, unknown = 0, targetBank = 50, targetMap = 2), + GbaConnection(direction = 3, unknown = 0, targetBank = 50, targetMap = 28), + GbaConnection(direction = 3, unknown = 20, targetBank = 50, targetMap = 27), ), warps = listOf( @@ -6430,8 +5538,7 @@ object MapManager { targetBankId = 68, targetMapId = 0, targetX = 3, - targetY = 7, - ), + targetY = 7), WarpTile( x = 29, y = 87, @@ -6439,8 +5546,7 @@ object MapManager { targetBankId = 74, targetMapId = 6, targetX = 8, - targetY = 29, - ), + targetY = 29), WarpTile( x = 26, y = 18, @@ -6448,8 +5554,7 @@ object MapManager { targetBankId = 68, targetMapId = 1, targetX = 3, - targetY = 7, - ), + targetY = 7), WarpTile( x = 19, y = 58, @@ -6457,8 +5562,7 @@ object MapManager { targetBankId = 74, targetMapId = 94, targetX = 10, - targetY = 14, - ), + targetY = 14), WarpTile( x = 31, y = 113, @@ -6466,8 +5570,7 @@ object MapManager { targetBankId = 76, targetMapId = 60, targetX = 9, - targetY = 16, - ), + targetY = 16), ), npcs = listOf( @@ -6482,8 +5585,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "Route111_EventScript_Heidi", - ), + script = "Route111_EventScript_Heidi"), NpcDef( entityIdx = 5, graphicsId = 60, @@ -6495,8 +5597,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 6, graphicsId = 60, @@ -6508,8 +5609,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 7, graphicsId = 33, @@ -6521,8 +5621,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "Route111_EventScript_Man1", - ), + script = "Route111_EventScript_Man1"), NpcDef( entityIdx = 8, graphicsId = 31, @@ -6534,8 +5633,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "Route111_EventScript_Drew", - ), + script = "Route111_EventScript_Drew"), NpcDef( entityIdx = 9, graphicsId = 55, @@ -6547,8 +5645,7 @@ object MapManager { movementRangeY = 2, trainerType = 1, facing = 0, - script = "Route111_EventScript_Dusty", - ), + script = "Route111_EventScript_Dusty"), NpcDef( entityIdx = 10, graphicsId = 31, @@ -6560,8 +5657,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 2, - script = "Route111_EventScript_Beau", - ), + script = "Route111_EventScript_Beau"), NpcDef( entityIdx = 11, graphicsId = 32, @@ -6573,8 +5669,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "Route111_EventScript_Becky", - ), + script = "Route111_EventScript_Becky"), NpcDef( entityIdx = 16, graphicsId = 8, @@ -6586,8 +5681,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "Route111_EventScript_Girl", - ), + script = "Route111_EventScript_Girl"), NpcDef( entityIdx = 18, graphicsId = 60, @@ -6599,8 +5693,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 19, graphicsId = 60, @@ -6612,8 +5705,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 27, graphicsId = 32, @@ -6625,8 +5717,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "Route111_EventScript_Irene", - ), + script = "Route111_EventScript_Irene"), NpcDef( entityIdx = 28, graphicsId = 31, @@ -6638,8 +5729,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "Route111_EventScript_Travis", - ), + script = "Route111_EventScript_Travis"), NpcDef( entityIdx = 29, graphicsId = 44, @@ -6651,8 +5741,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "Route111_EventScript_Daisuke", - ), + script = "Route111_EventScript_Daisuke"), NpcDef( entityIdx = 30, graphicsId = 34, @@ -6663,9 +5752,8 @@ object MapManager { movementRangeX = 4, movementRangeY = 0, trainerType = 1, - facing = 0, - script = "Route111_EventScript_Brooke", - ), + facing = 1, + script = "Route111_EventScript_Brooke"), NpcDef( entityIdx = 31, graphicsId = 33, @@ -6677,8 +5765,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "Route111_EventScript_Wilton", - ), + script = "Route111_EventScript_Wilton"), NpcDef( entityIdx = 33, graphicsId = 65, @@ -6690,8 +5777,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "Route111_EventScript_Man2", - ), + script = "Route111_EventScript_Man2"), NpcDef( entityIdx = 34, graphicsId = 31, @@ -6703,8 +5789,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 2, - script = "Route111_EventScript_Tyron", - ), + script = "Route111_EventScript_Tyron"), NpcDef( entityIdx = 35, graphicsId = 20, @@ -6716,8 +5801,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 3, - script = "Route111_EventScript_Celina", - ), + script = "Route111_EventScript_Celina"), NpcDef( entityIdx = 36, graphicsId = 32, @@ -6728,9 +5812,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 1, - facing = 0, - script = "Route111_EventScript_Bianca", - ), + facing = 1, + script = "Route111_EventScript_Bianca"), NpcDef( entityIdx = 37, graphicsId = 66, @@ -6742,8 +5825,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 3, - script = "Route111_EventScript_Hayden", - ), + script = "Route111_EventScript_Hayden"), NpcDef( entityIdx = 38, graphicsId = 55, @@ -6755,8 +5837,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "Route111_EventScript_Bryan", - ), + script = "Route111_EventScript_Bryan"), NpcDef( entityIdx = 39, graphicsId = 32, @@ -6768,8 +5849,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 3, - script = "Route111_EventScript_Celia", - ), + script = "Route111_EventScript_Celia"), NpcDef( entityIdx = 40, graphicsId = 31, @@ -6781,8 +5861,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 2, - script = "Route111_EventScript_Branden", - ), + script = "Route111_EventScript_Branden"), NpcDef( entityIdx = 42, graphicsId = 55, @@ -6794,8 +5873,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "Route111_EventScript_Hiker", - ), + script = "Route111_EventScript_Hiker"), ), bgEvents = listOf( @@ -6803,110 +5881,92 @@ object MapManager { x = 16, y = 114, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Route111_EventScript_WinstrateHouseSign", - ), + script = "Route111_EventScript_WinstrateHouseSign"), BgEventDef( x = 24, y = 126, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Route111_EventScript_RouteSignMauville", - ), + script = "Route111_EventScript_RouteSignMauville"), BgEventDef( x = 7, y = 66, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Route111_EventScript_RouteSign112", - ), + script = "Route111_EventScript_RouteSign112"), BgEventDef( x = 13, y = 6, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Route111_EventScript_RouteSign113", - ), + script = "Route111_EventScript_RouteSign113"), BgEventDef( x = 24, y = 36, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 34, y = 50, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 33, y = 34, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 25, y = 19, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Route111_EventScript_OldLadysRestStopSign", - ), + script = "Route111_EventScript_OldLadysRestStopSign"), BgEventDef( x = 35, y = 1, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 35, y = 31, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 26, y = 70, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 27, y = 27, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 7, y = 84, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Route111_EventScript_TrainerTipsSpAtkSpDef", - ), + script = "Route111_EventScript_TrainerTipsSpAtkSpDef"), BgEventDef( x = 14, y = 19, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 13, y = 19, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 19, y = 55, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 35, y = 66, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 24, y = 116, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Route111_EventScript_TrainerHillSign", - ), + script = "Route111_EventScript_TrainerHillSign"), ), ), // Route112 (MAP_ROUTE112) @@ -6916,17 +5976,13 @@ object MapManager { mapId = 27, width = 40, height = 60, - paletteIdx1 = 92, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 106, + unknownShort = 360, + unknownByte = 27, borderTiles = listOf( - Tile2D(0x0271, 0), - Tile2D(0x0271, 0), - Tile2D(0x0271, 0), - Tile2D(0x0271, 0), - ), + Tile2D(0x0271, 0), Tile2D(0x0271, 0), Tile2D(0x0271, 0), Tile2D(0x0271, 0)), lighting = Lighting.REGULAR, weather = Weather.REGULAR_WEATHER, mapType = MapType.ROUTE, @@ -6934,23 +5990,10 @@ object MapManager { connections = listOf( GbaConnection( - direction = 2, - unknown = 0, - targetBank = 50, - targetMap = 28, - ), + direction = 2, unknown = -60, targetBank = 50, targetMap = 28), + GbaConnection(direction = 3, unknown = 40, targetBank = 50, targetMap = 12), GbaConnection( - direction = 3, - unknown = 0, - targetBank = 50, - targetMap = 12, - ), - GbaConnection( - direction = 4, - unknown = 0, - targetBank = 50, - targetMap = 26, - ), + direction = 4, unknown = -20, targetBank = 50, targetMap = 26), ), warps = listOf( @@ -6961,8 +6004,7 @@ object MapManager { targetBankId = 69, targetMapId = 0, targetX = 6, - targetY = 11, - ), + targetY = 11), WarpTile( x = 29, y = 27, @@ -6970,8 +6012,7 @@ object MapManager { targetBankId = 69, targetMapId = 0, targetX = 7, - targetY = 11, - ), + targetY = 11), WarpTile( x = 6, y = 46, @@ -6979,8 +6020,7 @@ object MapManager { targetBankId = 74, targetMapId = 13, targetX = 14, - targetY = 40, - ), + targetY = 40), WarpTile( x = 7, y = 46, @@ -6988,8 +6028,7 @@ object MapManager { targetBankId = 74, targetMapId = 13, targetX = 15, - targetY = 40, - ), + targetY = 40), WarpTile( x = 11, y = 36, @@ -6997,8 +6036,7 @@ object MapManager { targetBankId = 74, targetMapId = 14, targetX = 26, - targetY = 36, - ), + targetY = 36), WarpTile( x = 22, y = 10, @@ -7006,8 +6044,7 @@ object MapManager { targetBankId = 74, targetMapId = 14, targetX = 26, - targetY = 4, - ), + targetY = 4), ), npcs = listOf( @@ -7022,8 +6059,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "Route112_EventScript_Brice", - ), + script = "Route112_EventScript_Brice"), NpcDef( entityIdx = 2, graphicsId = 31, @@ -7034,9 +6070,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 1, - facing = 1, - script = "Route112_EventScript_Larry", - ), + facing = 0, + script = "Route112_EventScript_Larry"), NpcDef( entityIdx = 3, graphicsId = 32, @@ -7048,8 +6083,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "Route112_EventScript_Carol", - ), + script = "Route112_EventScript_Carol"), NpcDef( entityIdx = 4, graphicsId = 55, @@ -7061,8 +6095,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "Route112_EventScript_Trent", - ), + script = "Route112_EventScript_Trent"), NpcDef( entityIdx = 6, graphicsId = 60, @@ -7074,8 +6107,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 7, graphicsId = 60, @@ -7087,8 +6119,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 8, graphicsId = 60, @@ -7100,8 +6131,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 9, graphicsId = 60, @@ -7113,8 +6143,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 10, graphicsId = 55, @@ -7126,8 +6155,7 @@ object MapManager { movementRangeY = 3, trainerType = 0, facing = 0, - script = "Route112_EventScript_Hiker", - ), + script = "Route112_EventScript_Hiker"), NpcDef( entityIdx = 12, graphicsId = 66, @@ -7139,8 +6167,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "Route112_EventScript_Bryant", - ), + script = "Route112_EventScript_Bryant"), NpcDef( entityIdx = 13, graphicsId = 20, @@ -7152,8 +6179,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "Route112_EventScript_Shayla", - ), + script = "Route112_EventScript_Shayla"), ), bgEvents = listOf( @@ -7161,20 +6187,17 @@ object MapManager { x = 19, y = 44, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Route112_EventScript_MtChimneySign", - ), + script = "Route112_EventScript_MtChimneySign"), BgEventDef( x = 22, y = 37, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Route112_EventScript_MtChimneyCableCarSign", - ), + script = "Route112_EventScript_MtChimneyCableCarSign"), BgEventDef( x = 4, y = 49, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Route112_EventScript_RouteSignLavaridge", - ), + script = "Route112_EventScript_RouteSignLavaridge"), ), ), // Route113 (MAP_ROUTE113) @@ -7184,41 +6207,22 @@ object MapManager { mapId = 28, width = 100, height = 20, - paletteIdx1 = 88, - paletteIdx2 = 126, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 107, + unknownShort = 418, + unknownByte = 28, borderTiles = listOf( - Tile2D(0x026D, 0), - Tile2D(0x026E, 0), - Tile2D(0x0275, 0), - Tile2D(0x0276, 0), - ), + Tile2D(0x026D, 0), Tile2D(0x026E, 0), Tile2D(0x0275, 0), Tile2D(0x0276, 0)), lighting = Lighting.REGULAR, weather = Weather.REGULAR_WEATHER, mapType = MapType.ROUTE, encounterType = EncounterType.RANDOM, connections = listOf( - GbaConnection( - direction = 1, - unknown = 0, - targetBank = 50, - targetMap = 27, - ), - GbaConnection( - direction = 3, - unknown = 0, - targetBank = 50, - targetMap = 13, - ), - GbaConnection( - direction = 4, - unknown = 0, - targetBank = 50, - targetMap = 26, - ), + GbaConnection(direction = 1, unknown = 60, targetBank = 50, targetMap = 27), + GbaConnection(direction = 3, unknown = 0, targetBank = 50, targetMap = 13), + GbaConnection(direction = 4, unknown = 0, targetBank = 50, targetMap = 26), ), warps = listOf( @@ -7229,8 +6233,7 @@ object MapManager { targetBankId = 80, targetMapId = 0, targetX = 3, - targetY = 8, - ), + targetY = 8), WarpTile( x = 41, y = 12, @@ -7238,8 +6241,7 @@ object MapManager { targetBankId = 74, targetMapId = 104, targetX = 8, - targetY = 18, - ), + targetY = 18), WarpTile( x = 88, y = 5, @@ -7247,8 +6249,7 @@ object MapManager { targetBankId = 74, targetMapId = 104, targetX = 8, - targetY = 18, - ), + targetY = 18), ), npcs = listOf( @@ -7263,8 +6264,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "Route113_EventScript_NinjaBoy", - ), + script = "Route113_EventScript_NinjaBoy"), NpcDef( entityIdx = 1, graphicsId = 48, @@ -7276,8 +6276,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "Route113_EventScript_Gentleman", - ), + script = "Route113_EventScript_Gentleman"), NpcDef( entityIdx = 2, graphicsId = 35, @@ -7288,9 +6287,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 1, - facing = 1, - script = "Route113_EventScript_Jaylen", - ), + facing = 0, + script = "Route113_EventScript_Jaylen"), NpcDef( entityIdx = 3, graphicsId = 35, @@ -7302,8 +6300,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "Route113_EventScript_Dillon", - ), + script = "Route113_EventScript_Dillon"), NpcDef( entityIdx = 4, graphicsId = 34, @@ -7315,8 +6312,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "Route113_EventScript_Madeline", - ), + script = "Route113_EventScript_Madeline"), NpcDef( entityIdx = 7, graphicsId = 5, @@ -7328,8 +6324,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "Route113_EventScript_Lao", - ), + script = "Route113_EventScript_Lao"), NpcDef( entityIdx = 8, graphicsId = 5, @@ -7341,8 +6336,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "Route113_EventScript_Lung", - ), + script = "Route113_EventScript_Lung"), NpcDef( entityIdx = 9, graphicsId = 6, @@ -7353,9 +6347,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 1, - facing = 1, - script = "Route113_EventScript_Tori", - ), + facing = 0, + script = "Route113_EventScript_Tori"), NpcDef( entityIdx = 10, graphicsId = 6, @@ -7366,9 +6359,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 1, - facing = 1, - script = "Route113_EventScript_Tia", - ), + facing = 0, + script = "Route113_EventScript_Tia"), NpcDef( entityIdx = 12, graphicsId = 39, @@ -7380,8 +6372,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 2, - script = "Route113_EventScript_Wyatt", - ), + script = "Route113_EventScript_Wyatt"), NpcDef( entityIdx = 13, graphicsId = 31, @@ -7392,9 +6383,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 1, - facing = 0, - script = "Route113_EventScript_Lawrence", - ), + facing = 1, + script = "Route113_EventScript_Lawrence"), NpcDef( entityIdx = 14, graphicsId = 32, @@ -7406,8 +6396,7 @@ object MapManager { movementRangeY = 3, trainerType = 1, facing = 0, - script = "Route113_EventScript_Sophie", - ), + script = "Route113_EventScript_Sophie"), NpcDef( entityIdx = 15, graphicsId = 66, @@ -7419,8 +6408,7 @@ object MapManager { movementRangeY = 3, trainerType = 1, facing = 0, - script = "Route113_EventScript_Coby", - ), + script = "Route113_EventScript_Coby"), ), bgEvents = listOf( @@ -7428,50 +6416,42 @@ object MapManager { x = 85, y = 6, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Route113_EventScript_RouteSign111", - ), + script = "Route113_EventScript_RouteSign111"), BgEventDef( x = 12, y = 9, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Route113_EventScript_RouteSignFallarbor", - ), + script = "Route113_EventScript_RouteSignFallarbor"), BgEventDef( x = 58, y = 4, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Route113_EventScript_TrainerTipsRegisterKeyItems", - ), + script = "Route113_EventScript_TrainerTipsRegisterKeyItems"), BgEventDef( x = 31, y = 5, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Route113_EventScript_GlassWorkshopSign", - ), + script = "Route113_EventScript_GlassWorkshopSign"), BgEventDef( x = 49, y = 8, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 66, y = 3, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 22, y = 5, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 73, y = 3, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), ), ), // Route114 (MAP_ROUTE114) @@ -7481,35 +6461,21 @@ object MapManager { mapId = 29, width = 40, height = 80, - paletteIdx1 = 88, - paletteIdx2 = 126, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 107, + unknownShort = 360, + unknownByte = 29, borderTiles = listOf( - Tile2D(0x026B, 0), - Tile2D(0x026C, 0), - Tile2D(0x0273, 0), - Tile2D(0x0274, 0), - ), + Tile2D(0x026B, 0), Tile2D(0x026C, 0), Tile2D(0x0273, 0), Tile2D(0x0274, 0)), lighting = Lighting.REGULAR, weather = Weather.REGULAR_WEATHER, mapType = MapType.ROUTE, encounterType = EncounterType.RANDOM, connections = listOf( - GbaConnection( - direction = 3, - unknown = 0, - targetBank = 50, - targetMap = 30, - ), - GbaConnection( - direction = 4, - unknown = 0, - targetBank = 50, - targetMap = 13, - ), + GbaConnection(direction = 3, unknown = 40, targetBank = 50, targetMap = 30), + GbaConnection(direction = 4, unknown = 0, targetBank = 50, targetMap = 13), ), warps = listOf( @@ -7520,8 +6486,7 @@ object MapManager { targetBankId = 74, targetMapId = 0, targetX = 27, - targetY = 18, - ), + targetY = 18), WarpTile( x = 29, y = 5, @@ -7529,8 +6494,7 @@ object MapManager { targetBankId = 70, targetMapId = 0, targetX = 4, - targetY = 7, - ), + targetY = 7), WarpTile( x = 27, y = 36, @@ -7538,8 +6502,7 @@ object MapManager { targetBankId = 70, targetMapId = 2, targetX = 5, - targetY = 7, - ), + targetY = 7), WarpTile( x = 6, y = 46, @@ -7547,8 +6510,7 @@ object MapManager { targetBankId = 74, targetMapId = 104, targetX = 8, - targetY = 18, - ), + targetY = 18), WarpTile( x = 7, y = 4, @@ -7556,8 +6518,7 @@ object MapManager { targetBankId = 74, targetMapId = 104, targetX = 8, - targetY = 18, - ), + targetY = 18), ), npcs = listOf( @@ -7572,8 +6533,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 1, graphicsId = 60, @@ -7585,8 +6545,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 2, graphicsId = 55, @@ -7598,8 +6557,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 3, - script = "Route114_EventScript_Lenny", - ), + script = "Route114_EventScript_Lenny"), NpcDef( entityIdx = 3, graphicsId = 55, @@ -7611,8 +6569,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 2, - script = "Route114_EventScript_Lucas", - ), + script = "Route114_EventScript_Lucas"), NpcDef( entityIdx = 4, graphicsId = 31, @@ -7624,8 +6581,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 3, - script = "Route114_EventScript_Shane", - ), + script = "Route114_EventScript_Shane"), NpcDef( entityIdx = 5, graphicsId = 32, @@ -7637,8 +6593,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "Route114_EventScript_Nancy", - ), + script = "Route114_EventScript_Nancy"), NpcDef( entityIdx = 6, graphicsId = 39, @@ -7649,9 +6604,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 1, - facing = 0, - script = "Route114_EventScript_Steve", - ), + facing = 1, + script = "Route114_EventScript_Steve"), NpcDef( entityIdx = 7, graphicsId = 60, @@ -7663,8 +6617,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 11, graphicsId = 48, @@ -7676,8 +6629,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "Route114_EventScript_RoarGentleman", - ), + script = "Route114_EventScript_RoarGentleman"), NpcDef( entityIdx = 12, graphicsId = 0, @@ -7689,8 +6641,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "Route114_EventScript_Poochyena", - ), + script = "Route114_EventScript_Poochyena"), NpcDef( entityIdx = 13, graphicsId = 65, @@ -7702,8 +6653,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "Route114_EventScript_Man", - ), + script = "Route114_EventScript_Man"), NpcDef( entityIdx = 14, graphicsId = 50, @@ -7714,9 +6664,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 1, - facing = 1, - script = "Route114_EventScript_Nolan", - ), + facing = 0, + script = "Route114_EventScript_Nolan"), NpcDef( entityIdx = 15, graphicsId = 50, @@ -7728,8 +6677,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 2, - script = "Route114_EventScript_Claude", - ), + script = "Route114_EventScript_Claude"), NpcDef( entityIdx = 16, graphicsId = 66, @@ -7741,8 +6689,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "Route114_EventScript_Bernie", - ), + script = "Route114_EventScript_Bernie"), NpcDef( entityIdx = 21, graphicsId = 47, @@ -7753,9 +6700,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 1, - facing = 1, - script = "Route114_EventScript_Ivy", - ), + facing = 0, + script = "Route114_EventScript_Ivy"), NpcDef( entityIdx = 22, graphicsId = 47, @@ -7766,9 +6712,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 1, - facing = 1, - script = "Route114_EventScript_Tyra", - ), + facing = 0, + script = "Route114_EventScript_Tyra"), NpcDef( entityIdx = 23, graphicsId = 32, @@ -7779,9 +6724,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 1, - facing = 0, - script = "Route114_EventScript_Charlotte", - ), + facing = 1, + script = "Route114_EventScript_Charlotte"), NpcDef( entityIdx = 24, graphicsId = 32, @@ -7793,8 +6737,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "Route114_EventScript_Angelina", - ), + script = "Route114_EventScript_Angelina"), NpcDef( entityIdx = 26, graphicsId = 50, @@ -7806,8 +6749,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "Route114_EventScript_Kai", - ), + script = "Route114_EventScript_Kai"), ), bgEvents = listOf( @@ -7815,74 +6757,62 @@ object MapManager { x = 7, y = 64, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Route114_EventScript_MeteorFallsSign", - ), + script = "Route114_EventScript_MeteorFallsSign"), BgEventDef( x = 31, y = 7, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Route114_EventScript_FossilManiacsHouseSign", - ), + script = "Route114_EventScript_FossilManiacsHouseSign"), BgEventDef( x = 9, y = 47, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 30, y = 51, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 11, y = 62, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 19, y = 70, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 11, y = 27, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 12, y = 27, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 25, y = 38, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Route114_EventScript_LanettesHouseSign", - ), + script = "Route114_EventScript_LanettesHouseSign"), BgEventDef( x = 20, y = 57, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 32, y = 57, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 7, y = 30, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), ), ), // Route115 (MAP_ROUTE115) @@ -7892,35 +6822,22 @@ object MapManager { mapId = 30, width = 40, height = 80, - paletteIdx1 = 88, - paletteIdx2 = 126, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 107, + unknownShort = 401, + unknownByte = 30, borderTiles = listOf( - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - ), + Tile2D(0x0170, 0), Tile2D(0x0170, 0), Tile2D(0x0170, 0), Tile2D(0x0170, 0)), lighting = Lighting.REGULAR, weather = Weather.REGULAR_WEATHER, mapType = MapType.ROUTE, encounterType = EncounterType.RANDOM, connections = listOf( + GbaConnection(direction = 1, unknown = 0, targetBank = 50, targetMap = 3), GbaConnection( - direction = 1, - unknown = 0, - targetBank = 50, - targetMap = 3, - ), - GbaConnection( - direction = 4, - unknown = 0, - targetBank = 50, - targetMap = 29, - ), + direction = 4, unknown = -40, targetBank = 50, targetMap = 29), ), warps = listOf( @@ -7931,8 +6848,7 @@ object MapManager { targetBankId = 74, targetMapId = 0, targetX = 6, - targetY = 39, - ), + targetY = 39), WarpTile( x = 21, y = 6, @@ -7940,8 +6856,7 @@ object MapManager { targetBankId = 74, targetMapId = 104, targetX = 8, - targetY = 18, - ), + targetY = 18), WarpTile( x = 36, y = 10, @@ -7949,8 +6864,7 @@ object MapManager { targetBankId = 74, targetMapId = 104, targetX = 8, - targetY = 18, - ), + targetY = 18), ), npcs = listOf( @@ -7965,8 +6879,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "Route115_EventScript_Woman", - ), + script = "Route115_EventScript_Woman"), NpcDef( entityIdx = 1, graphicsId = 21, @@ -7978,8 +6891,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 3, - script = "Route115_EventScript_Timothy", - ), + script = "Route115_EventScript_Timothy"), NpcDef( entityIdx = 2, graphicsId = 44, @@ -7991,8 +6903,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "Route115_EventScript_Nob", - ), + script = "Route115_EventScript_Nob"), NpcDef( entityIdx = 3, graphicsId = 60, @@ -8004,8 +6915,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 4, graphicsId = 60, @@ -8017,8 +6927,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 5, graphicsId = 60, @@ -8030,8 +6939,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 6, graphicsId = 14, @@ -8043,8 +6951,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "Route115_EventScript_Cyndy", - ), + script = "Route115_EventScript_Cyndy"), NpcDef( entityIdx = 7, graphicsId = 44, @@ -8056,8 +6963,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "Route115_EventScript_Koichi", - ), + script = "Route115_EventScript_Koichi"), NpcDef( entityIdx = 8, graphicsId = 39, @@ -8069,8 +6975,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "Route115_EventScript_Hector", - ), + script = "Route115_EventScript_Hector"), NpcDef( entityIdx = 12, graphicsId = 60, @@ -8082,8 +6987,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 13, graphicsId = 60, @@ -8095,8 +6999,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 16, graphicsId = 52, @@ -8108,8 +7011,7 @@ object MapManager { movementRangeY = 3, trainerType = 1, facing = 0, - script = "Route115_EventScript_Kyra", - ), + script = "Route115_EventScript_Kyra"), NpcDef( entityIdx = 17, graphicsId = 5, @@ -8121,8 +7023,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "Route115_EventScript_Jaiden", - ), + script = "Route115_EventScript_Jaiden"), NpcDef( entityIdx = 18, graphicsId = 14, @@ -8134,8 +7035,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 2, - script = "Route115_EventScript_Helene", - ), + script = "Route115_EventScript_Helene"), NpcDef( entityIdx = 19, graphicsId = 47, @@ -8147,8 +7047,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 3, - script = "Route115_EventScript_Alix", - ), + script = "Route115_EventScript_Alix"), NpcDef( entityIdx = 20, graphicsId = 47, @@ -8160,8 +7059,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 2, - script = "Route115_EventScript_Marlene", - ), + script = "Route115_EventScript_Marlene"), ), bgEvents = listOf( @@ -8169,86 +7067,72 @@ object MapManager { x = 32, y = 6, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 21, y = 18, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 16, y = 64, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Route115_EventScript_RouteSignRustboro", - ), + script = "Route115_EventScript_RouteSignRustboro"), BgEventDef( x = 25, y = 38, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Route115_EventScript_MeteorFallsSign", - ), + script = "Route115_EventScript_MeteorFallsSign"), BgEventDef( x = 8, y = 30, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 32, y = 39, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 26, y = 15, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 23, y = 8, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 32, y = 46, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 7, y = 20, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 8, y = 20, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 25, y = 24, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 20, y = 53, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 15, y = 49, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), ), ), // Route116 (MAP_ROUTE116) @@ -8258,35 +7142,21 @@ object MapManager { mapId = 31, width = 100, height = 20, - paletteIdx1 = 82, - paletteIdx2 = 118, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 102, + unknownShort = 401, + unknownByte = 31, borderTiles = listOf( - Tile2D(0x01D4, 0), - Tile2D(0x01D5, 0), - Tile2D(0x01DC, 0), - Tile2D(0x01DD, 0), - ), + Tile2D(0x01D4, 0), Tile2D(0x01D5, 0), Tile2D(0x01DC, 0), Tile2D(0x01DD, 0)), lighting = Lighting.REGULAR, weather = Weather.REGULAR_WEATHER, mapType = MapType.ROUTE, encounterType = EncounterType.RANDOM, connections = listOf( - GbaConnection( - direction = 1, - unknown = 0, - targetBank = 50, - targetMap = 14, - ), - GbaConnection( - direction = 3, - unknown = 0, - targetBank = 50, - targetMap = 3, - ), + GbaConnection(direction = 1, unknown = 80, targetBank = 50, targetMap = 14), + GbaConnection(direction = 3, unknown = 0, targetBank = 50, targetMap = 3), ), warps = listOf( @@ -8297,8 +7167,7 @@ object MapManager { targetBankId = 74, targetMapId = 4, targetX = 4, - targetY = 10, - ), + targetY = 10), WarpTile( x = 38, y = 8, @@ -8306,8 +7175,7 @@ object MapManager { targetBankId = 71, targetMapId = 0, targetX = 4, - targetY = 8, - ), + targetY = 8), WarpTile( x = 65, y = 10, @@ -8315,8 +7183,7 @@ object MapManager { targetBankId = 74, targetMapId = 4, targetX = 18, - targetY = 20, - ), + targetY = 20), WarpTile( x = 59, y = 13, @@ -8324,8 +7191,7 @@ object MapManager { targetBankId = 74, targetMapId = 104, targetX = 8, - targetY = 18, - ), + targetY = 18), WarpTile( x = 79, y = 6, @@ -8333,8 +7199,7 @@ object MapManager { targetBankId = 74, targetMapId = 104, targetX = 8, - targetY = 18, - ), + targetY = 18), ), npcs = listOf( @@ -8349,8 +7214,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 1, graphicsId = 60, @@ -8362,8 +7226,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 2, graphicsId = 35, @@ -8375,8 +7238,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "Route116_EventScript_Joey", - ), + script = "Route116_EventScript_Joey"), NpcDef( entityIdx = 5, graphicsId = 36, @@ -8388,8 +7250,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "Route116_EventScript_Jose", - ), + script = "Route116_EventScript_Jose"), NpcDef( entityIdx = 8, graphicsId = 60, @@ -8401,8 +7262,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 9, graphicsId = 60, @@ -8414,8 +7274,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 12, graphicsId = 55, @@ -8427,8 +7286,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "Route116_EventScript_Clark", - ), + script = "Route116_EventScript_Clark"), NpcDef( entityIdx = 15, graphicsId = 47, @@ -8440,8 +7298,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 3, - script = "Route116_EventScript_Janice", - ), + script = "Route116_EventScript_Janice"), NpcDef( entityIdx = 16, graphicsId = 14, @@ -8453,8 +7310,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "Route116_EventScript_Karen", - ), + script = "Route116_EventScript_Karen"), NpcDef( entityIdx = 17, graphicsId = 38, @@ -8465,9 +7321,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 1, - facing = 0, - script = "Route116_EventScript_Jerry", - ), + facing = 1, + script = "Route116_EventScript_Jerry"), NpcDef( entityIdx = 22, graphicsId = 20, @@ -8478,9 +7333,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 1, - facing = 0, - script = "Route116_EventScript_Sarah", - ), + facing = 1, + script = "Route116_EventScript_Sarah"), NpcDef( entityIdx = 23, graphicsId = 9, @@ -8491,9 +7345,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 1, - facing = 1, - script = "Route116_EventScript_Dawson", - ), + facing = 0, + script = "Route116_EventScript_Dawson"), NpcDef( entityIdx = 26, graphicsId = 35, @@ -8505,8 +7358,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "Route116_EventScript_Johnson", - ), + script = "Route116_EventScript_Johnson"), NpcDef( entityIdx = 27, graphicsId = 55, @@ -8518,8 +7370,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 2, - script = "Route116_EventScript_Devan", - ), + script = "Route116_EventScript_Devan"), ), bgEvents = listOf( @@ -8527,68 +7378,57 @@ object MapManager { x = 5, y = 10, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Route116_EventScript_RouteSignRustboro", - ), + script = "Route116_EventScript_RouteSignRustboro"), BgEventDef( x = 48, y = 9, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Route116_EventScript_RusturfTunnelSign", - ), + script = "Route116_EventScript_RusturfTunnelSign"), BgEventDef( x = 40, y = 9, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Route116_EventScript_TunnelersRestHouseSign", - ), + script = "Route116_EventScript_TunnelersRestHouseSign"), BgEventDef( x = 71, y = 4, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 79, y = 11, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 16, y = 12, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Route116_EventScript_TrainerTipsBToStopEvolution", - ), + script = "Route116_EventScript_TrainerTipsBToStopEvolution"), BgEventDef( x = 29, y = 10, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Route116_EventScript_TrainerTipsBagHasPockets", - ), + script = "Route116_EventScript_TrainerTipsBagHasPockets"), BgEventDef( x = 56, y = 6, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 55, y = 15, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 22, y = 9, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 70, y = 13, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), ), ), // Route117 (MAP_ROUTE117) @@ -8598,35 +7438,21 @@ object MapManager { mapId = 32, width = 60, height = 20, - paletteIdx1 = 84, - paletteIdx2 = 120, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 105, + unknownShort = 360, + unknownByte = 32, borderTiles = listOf( - Tile2D(0x00C6, 0), - Tile2D(0x00C6, 0), - Tile2D(0x00C6, 0), - Tile2D(0x00C6, 0), - ), + Tile2D(0x00C6, 0), Tile2D(0x00C6, 0), Tile2D(0x00C6, 0), Tile2D(0x00C6, 0)), lighting = Lighting.REGULAR, weather = Weather.REGULAR_WEATHER, mapType = MapType.ROUTE, encounterType = EncounterType.RANDOM, connections = listOf( - GbaConnection( - direction = 3, - unknown = 0, - targetBank = 50, - targetMap = 14, - ), - GbaConnection( - direction = 4, - unknown = 0, - targetBank = 50, - targetMap = 2, - ), + GbaConnection(direction = 3, unknown = 0, targetBank = 50, targetMap = 14), + GbaConnection(direction = 4, unknown = 0, targetBank = 50, targetMap = 2), ), warps = listOf( @@ -8637,8 +7463,8 @@ object MapManager { targetBankId = 72, targetMapId = 0, targetX = 2, - targetY = 8, - )), + targetY = 8), + ), npcs = listOf( NpcDef( @@ -8651,9 +7477,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "Route117_EventScript_Woman", - ), + facing = 0, + script = "Route117_EventScript_Woman"), NpcDef( entityIdx = 1, graphicsId = 11, @@ -8665,8 +7490,7 @@ object MapManager { movementRangeY = 2, trainerType = 0, facing = 0, - script = "Route117_EventScript_LittleBoy", - ), + script = "Route117_EventScript_LittleBoy"), NpcDef( entityIdx = 2, graphicsId = 29, @@ -8677,9 +7501,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "Route117_EventScript_DaycareMan", - ), + facing = 0, + script = "Route117_EventScript_DaycareMan"), NpcDef( entityIdx = 3, graphicsId = 0, @@ -8691,8 +7514,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "0x0", - ), + script = "0x0"), NpcDef( entityIdx = 4, graphicsId = 0, @@ -8704,8 +7526,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "0x0", - ), + script = "0x0"), NpcDef( entityIdx = 5, graphicsId = 0, @@ -8717,8 +7538,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "0x0", - ), + script = "0x0"), NpcDef( entityIdx = 6, graphicsId = 0, @@ -8730,8 +7550,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "0x0", - ), + script = "0x0"), NpcDef( entityIdx = 7, graphicsId = 51, @@ -8743,8 +7562,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "Route117_EventScript_Dylan", - ), + script = "Route117_EventScript_Dylan"), NpcDef( entityIdx = 8, graphicsId = 20, @@ -8756,8 +7574,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "Route117_EventScript_Lydia", - ), + script = "Route117_EventScript_Lydia"), NpcDef( entityIdx = 9, graphicsId = 65, @@ -8769,8 +7586,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "Route117_EventScript_Isaac", - ), + script = "Route117_EventScript_Isaac"), NpcDef( entityIdx = 10, graphicsId = 60, @@ -8782,8 +7598,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 11, graphicsId = 60, @@ -8795,8 +7610,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 12, graphicsId = 60, @@ -8808,8 +7622,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 16, graphicsId = 52, @@ -8821,8 +7634,7 @@ object MapManager { movementRangeY = 2, trainerType = 1, facing = 0, - script = "Route117_EventScript_Maria", - ), + script = "Route117_EventScript_Maria"), NpcDef( entityIdx = 17, graphicsId = 39, @@ -8833,9 +7645,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 1, - facing = 0, - script = "Route117_EventScript_Derek", - ), + facing = 1, + script = "Route117_EventScript_Derek"), NpcDef( entityIdx = 18, graphicsId = 47, @@ -8846,9 +7657,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 1, - facing = 1, - script = "Route117_EventScript_Meg", - ), + facing = 0, + script = "Route117_EventScript_Meg"), NpcDef( entityIdx = 19, graphicsId = 47, @@ -8859,9 +7669,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 1, - facing = 1, - script = "Route117_EventScript_Anna", - ), + facing = 0, + script = "Route117_EventScript_Anna"), NpcDef( entityIdx = 20, graphicsId = 10, @@ -8873,8 +7682,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "Route117_EventScript_Girl", - ), + script = "Route117_EventScript_Girl"), NpcDef( entityIdx = 21, graphicsId = 47, @@ -8886,8 +7694,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 3, - script = "Route117_EventScript_Brandi", - ), + script = "Route117_EventScript_Brandi"), NpcDef( entityIdx = 22, graphicsId = 14, @@ -8899,8 +7706,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 2, - script = "Route117_EventScript_Aisha", - ), + script = "Route117_EventScript_Aisha"), NpcDef( entityIdx = 23, graphicsId = 52, @@ -8912,8 +7718,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "Route117_EventScript_Melina", - ), + script = "Route117_EventScript_Melina"), ), bgEvents = listOf( @@ -8921,26 +7726,22 @@ object MapManager { x = 16, y = 6, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Route117_EventScript_RouteSignVerdanturf", - ), + script = "Route117_EventScript_RouteSignVerdanturf"), BgEventDef( x = 49, y = 12, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Route117_EventScript_RouteSignMauville", - ), + script = "Route117_EventScript_RouteSignMauville"), BgEventDef( x = 49, y = 5, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Route117_EventScript_DayCareSign", - ), + script = "Route117_EventScript_DayCareSign"), BgEventDef( x = 3, y = 18, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), ), ), // Route118 (MAP_ROUTE118) @@ -8950,41 +7751,22 @@ object MapManager { mapId = 33, width = 80, height = 20, - paletteIdx1 = 84, - paletteIdx2 = 120, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 105, + unknownShort = 0, + unknownByte = 33, borderTiles = listOf( - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - ), + Tile2D(0x0170, 0), Tile2D(0x0170, 0), Tile2D(0x0170, 0), Tile2D(0x0170, 0)), lighting = Lighting.REGULAR, weather = Weather.REGULAR_WEATHER, mapType = MapType.ROUTE, encounterType = EncounterType.RANDOM, connections = listOf( - GbaConnection( - direction = 2, - unknown = 0, - targetBank = 50, - targetMap = 34, - ), - GbaConnection( - direction = 3, - unknown = 0, - targetBank = 50, - targetMap = 2, - ), - GbaConnection( - direction = 4, - unknown = 0, - targetBank = 50, - targetMap = 38, - ), + GbaConnection(direction = 2, unknown = 40, targetBank = 50, targetMap = 34), + GbaConnection(direction = 3, unknown = 0, targetBank = 50, targetMap = 2), + GbaConnection(direction = 4, unknown = 0, targetBank = 50, targetMap = 38), ), warps = listOf( @@ -8995,8 +7777,7 @@ object MapManager { targetBankId = 74, targetMapId = 104, targetX = 8, - targetY = 18, - ), + targetY = 18), WarpTile( x = 9, y = 6, @@ -9004,8 +7785,7 @@ object MapManager { targetBankId = 74, targetMapId = 104, targetX = 8, - targetY = 18, - ), + targetY = 18), ), npcs = listOf( @@ -9020,8 +7800,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 1, graphicsId = 60, @@ -9033,8 +7812,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 2, graphicsId = 60, @@ -9046,8 +7824,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 3, graphicsId = 66, @@ -9058,9 +7835,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 1, - facing = 1, - script = "Route118_EventScript_Perry", - ), + facing = 0, + script = "Route118_EventScript_Perry"), NpcDef( entityIdx = 6, graphicsId = 10, @@ -9072,8 +7848,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "Route118_EventScript_Girl", - ), + script = "Route118_EventScript_Girl"), NpcDef( entityIdx = 12, graphicsId = 50, @@ -9085,8 +7860,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 2, - script = "Route118_EventScript_GoodRodFisherman", - ), + script = "Route118_EventScript_GoodRodFisherman"), NpcDef( entityIdx = 13, graphicsId = 20, @@ -9097,9 +7871,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 1, - facing = 0, - script = "Route118_EventScript_Rose", - ), + facing = 1, + script = "Route118_EventScript_Rose"), NpcDef( entityIdx = 14, graphicsId = 50, @@ -9110,9 +7883,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 1, - facing = 1, - script = "Route118_EventScript_Wade", - ), + facing = 0, + script = "Route118_EventScript_Wade"), NpcDef( entityIdx = 15, graphicsId = 66, @@ -9124,8 +7896,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "Route118_EventScript_Chester", - ), + script = "Route118_EventScript_Chester"), NpcDef( entityIdx = 16, graphicsId = 50, @@ -9137,8 +7908,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "Route118_EventScript_Barny", - ), + script = "Route118_EventScript_Barny"), NpcDef( entityIdx = 17, graphicsId = 66, @@ -9150,8 +7920,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "Route118_EventScript_Dalton", - ), + script = "Route118_EventScript_Dalton"), NpcDef( entityIdx = 20, graphicsId = 35, @@ -9162,9 +7931,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 1, - facing = 1, - script = "Route118_EventScript_Deandre", - ), + facing = 0, + script = "Route118_EventScript_Deandre"), ), bgEvents = listOf( @@ -9172,56 +7940,47 @@ object MapManager { x = 47, y = 14, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 13, y = 6, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Route118_EventScript_RouteSignMauville", - ), + script = "Route118_EventScript_RouteSignMauville"), BgEventDef( x = 56, y = 8, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Route118_EventScript_RouteSign119", - ), + script = "Route118_EventScript_RouteSign119"), BgEventDef( x = 67, y = 6, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 29, y = 5, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 47, y = 5, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 46, y = 5, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 31, y = 13, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 12, y = 14, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), ), ), // Route119 (MAP_ROUTE119) @@ -9231,17 +7990,13 @@ object MapManager { mapId = 34, width = 40, height = 140, - paletteIdx1 = 94, - paletteIdx2 = 126, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 108, + unknownShort = 402, + unknownByte = 34, borderTiles = listOf( - Tile2D(0x00C6, 0), - Tile2D(0x00C7, 0), - Tile2D(0x00C7, 0), - Tile2D(0x00C6, 0), - ), + Tile2D(0x00C6, 0), Tile2D(0x00C7, 0), Tile2D(0x00C7, 0), Tile2D(0x00C6, 0)), lighting = Lighting.REGULAR, weather = Weather.REGULAR_WEATHER, mapType = MapType.ROUTE, @@ -9249,17 +8004,8 @@ object MapManager { connections = listOf( GbaConnection( - direction = 1, - unknown = 0, - targetBank = 50, - targetMap = 33, - ), - GbaConnection( - direction = 4, - unknown = 0, - targetBank = 50, - targetMap = 4, - ), + direction = 1, unknown = -40, targetBank = 50, targetMap = 33), + GbaConnection(direction = 4, unknown = 0, targetBank = 50, targetMap = 4), ), warps = listOf( @@ -9270,8 +8016,7 @@ object MapManager { targetBankId = 82, targetMapId = 0, targetX = 9, - targetY = 12, - ), + targetY = 12), WarpTile( x = 33, y = 109, @@ -9279,8 +8024,7 @@ object MapManager { targetBankId = 82, targetMapId = 2, targetX = 3, - targetY = 8, - ), + targetY = 8), ), npcs = listOf( @@ -9295,8 +8039,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 1, graphicsId = 60, @@ -9308,8 +8051,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 2, graphicsId = 60, @@ -9321,8 +8063,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 3, graphicsId = 36, @@ -9334,8 +8075,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "Route119_EventScript_Greg", - ), + script = "Route119_EventScript_Greg"), NpcDef( entityIdx = 4, graphicsId = 39, @@ -9347,8 +8087,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "Route119_EventScript_Taylor", - ), + script = "Route119_EventScript_Taylor"), NpcDef( entityIdx = 5, graphicsId = 39, @@ -9360,8 +8099,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "Route119_EventScript_Donald", - ), + script = "Route119_EventScript_Donald"), NpcDef( entityIdx = 6, graphicsId = 31, @@ -9373,8 +8111,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "Route119_EventScript_Jackson", - ), + script = "Route119_EventScript_Jackson"), NpcDef( entityIdx = 7, graphicsId = 39, @@ -9386,8 +8123,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "Route119_EventScript_Brent", - ), + script = "Route119_EventScript_Brent"), NpcDef( entityIdx = 8, graphicsId = 32, @@ -9398,9 +8134,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 1, - facing = 1, - script = "Route119_EventScript_Catherine", - ), + facing = 0, + script = "Route119_EventScript_Catherine"), NpcDef( entityIdx = 9, graphicsId = 36, @@ -9412,8 +8147,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "Route119_EventScript_Doug", - ), + script = "Route119_EventScript_Doug"), NpcDef( entityIdx = 10, graphicsId = 36, @@ -9425,8 +8159,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "Route119_EventScript_Kent", - ), + script = "Route119_EventScript_Kent"), NpcDef( entityIdx = 11, graphicsId = 5, @@ -9438,8 +8171,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "Route119_EventScript_Yasu", - ), + script = "Route119_EventScript_Yasu"), NpcDef( entityIdx = 12, graphicsId = 5, @@ -9451,8 +8183,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "Route119_EventScript_Takashi", - ), + script = "Route119_EventScript_Takashi"), NpcDef( entityIdx = 13, graphicsId = 66, @@ -9464,8 +8195,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 3, - script = "Route119_EventScript_Hugh", - ), + script = "Route119_EventScript_Hugh"), NpcDef( entityIdx = 14, graphicsId = 66, @@ -9476,9 +8206,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 1, - facing = 1, - script = "Route119_EventScript_Phil", - ), + facing = 0, + script = "Route119_EventScript_Phil"), NpcDef( entityIdx = 25, graphicsId = 13, @@ -9489,9 +8218,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "Route119_EventScript_Boy1", - ), + facing = 0, + script = "Route119_EventScript_Boy1"), NpcDef( entityIdx = 26, graphicsId = 60, @@ -9503,8 +8231,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 27, graphicsId = 60, @@ -9516,8 +8243,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 28, graphicsId = 60, @@ -9529,8 +8255,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 29, graphicsId = 60, @@ -9542,8 +8267,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 30, graphicsId = 56, @@ -9555,8 +8279,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "Route119_EventScript_CyclingTriathleteM", - ), + script = "Route119_EventScript_CyclingTriathleteM"), NpcDef( entityIdx = 32, graphicsId = 9, @@ -9568,8 +8291,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "Route119_EventScript_Boy2", - ), + script = "Route119_EventScript_Boy2"), NpcDef( entityIdx = 33, graphicsId = 5, @@ -9581,8 +8303,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "Route119_EventScript_Hideo", - ), + script = "Route119_EventScript_Hideo"), NpcDef( entityIdx = 36, graphicsId = 50, @@ -9594,8 +8315,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 3, - script = "Route119_EventScript_Chris", - ), + script = "Route119_EventScript_Chris"), NpcDef( entityIdx = 37, graphicsId = 20, @@ -9606,9 +8326,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 1, - facing = 0, - script = "Route119_EventScript_Rachel", - ), + facing = 1, + script = "Route119_EventScript_Rachel"), NpcDef( entityIdx = 38, graphicsId = 66, @@ -9620,8 +8339,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 3, - script = "Route119_EventScript_Dayton", - ), + script = "Route119_EventScript_Dayton"), NpcDef( entityIdx = 39, graphicsId = 66, @@ -9633,8 +8351,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 2, - script = "Route119_EventScript_Fabian", - ), + script = "Route119_EventScript_Fabian"), ), bgEvents = listOf( @@ -9642,122 +8359,102 @@ object MapManager { x = 9, y = 33, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Route119_EventScript_WeatherInstituteSign", - ), + script = "Route119_EventScript_WeatherInstituteSign"), BgEventDef( x = 27, y = 19, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Route119_EventScript_RouteSignFortree", - ), + script = "Route119_EventScript_RouteSignFortree"), BgEventDef( x = 5, y = 2, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 4, y = 89, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 5, y = 15, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 7, y = 101, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 34, y = 24, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 31, y = 73, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 16, y = 81, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 16, y = 28, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 17, y = 82, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 38, y = 63, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 26, y = 81, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 19, y = 76, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 18, y = 76, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 4, y = 15, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 6, y = 2, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 26, y = 120, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 20, y = 29, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 28, y = 9, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Route119_EventScript_TrainerTipsDecoration", - ), + script = "Route119_EventScript_TrainerTipsDecoration"), ), ), // Route120 (MAP_ROUTE120) @@ -9767,35 +8464,21 @@ object MapManager { mapId = 35, width = 40, height = 100, - paletteIdx1 = 94, - paletteIdx2 = 126, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 108, + unknownShort = 361, + unknownByte = 35, borderTiles = listOf( - Tile2D(0x00C6, 0), - Tile2D(0x00C7, 0), - Tile2D(0x00C7, 0), - Tile2D(0x00C6, 0), - ), + Tile2D(0x00C6, 0), Tile2D(0x00C7, 0), Tile2D(0x00C7, 0), Tile2D(0x00C6, 0)), lighting = Lighting.REGULAR, weather = Weather.REGULAR_WEATHER, mapType = MapType.ROUTE, encounterType = EncounterType.RANDOM, connections = listOf( - GbaConnection( - direction = 3, - unknown = 0, - targetBank = 50, - targetMap = 4, - ), - GbaConnection( - direction = 4, - unknown = 0, - targetBank = 50, - targetMap = 36, - ), + GbaConnection(direction = 3, unknown = 0, targetBank = 50, targetMap = 4), + GbaConnection(direction = 4, unknown = 80, targetBank = 50, targetMap = 36), ), warps = listOf( @@ -9806,8 +8489,7 @@ object MapManager { targetBankId = 74, targetMapId = 68, targetX = 8, - targetY = 29, - ), + targetY = 29), WarpTile( x = 19, y = 23, @@ -9815,8 +8497,7 @@ object MapManager { targetBankId = 74, targetMapId = 73, targetX = 7, - targetY = 16, - ), + targetY = 16), ), npcs = listOf( @@ -9831,8 +8512,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 1, graphicsId = 60, @@ -9844,8 +8524,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 2, graphicsId = 60, @@ -9857,8 +8536,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 3, graphicsId = 60, @@ -9870,8 +8548,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 4, graphicsId = 60, @@ -9883,8 +8560,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 5, graphicsId = 60, @@ -9896,8 +8572,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 6, graphicsId = 60, @@ -9909,8 +8584,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 7, graphicsId = 60, @@ -9922,8 +8596,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 8, graphicsId = 60, @@ -9935,8 +8608,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 9, graphicsId = 60, @@ -9948,8 +8620,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 10, graphicsId = 66, @@ -9961,8 +8632,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "Route120_EventScript_Colin", - ), + script = "Route120_EventScript_Colin"), NpcDef( entityIdx = 11, graphicsId = 66, @@ -9974,8 +8644,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 3, - script = "Route120_EventScript_Robert", - ), + script = "Route120_EventScript_Robert"), NpcDef( entityIdx = 12, graphicsId = 31, @@ -9987,8 +8656,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 2, - script = "Route120_EventScript_Lorenzo", - ), + script = "Route120_EventScript_Lorenzo"), NpcDef( entityIdx = 13, graphicsId = 32, @@ -10000,8 +8668,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 2, - script = "Route120_EventScript_Jenna", - ), + script = "Route120_EventScript_Jenna"), NpcDef( entityIdx = 14, graphicsId = 39, @@ -10013,8 +8680,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "Route120_EventScript_Jeffrey", - ), + script = "Route120_EventScript_Jeffrey"), NpcDef( entityIdx = 22, graphicsId = 45, @@ -10026,8 +8692,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "Route120_EventScript_BerryBeauty", - ), + script = "Route120_EventScript_BerryBeauty"), NpcDef( entityIdx = 23, graphicsId = 34, @@ -10039,8 +8704,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "Route120_EventScript_Jennifer", - ), + script = "Route120_EventScript_Jennifer"), NpcDef( entityIdx = 24, graphicsId = 55, @@ -10052,8 +8716,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "Route120_EventScript_Chip", - ), + script = "Route120_EventScript_Chip"), NpcDef( entityIdx = 25, graphicsId = 34, @@ -10065,8 +8728,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "Route120_EventScript_Clarissa", - ), + script = "Route120_EventScript_Clarissa"), NpcDef( entityIdx = 26, graphicsId = 34, @@ -10078,8 +8740,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 2, - script = "Route120_EventScript_Angelica", - ), + script = "Route120_EventScript_Angelica"), NpcDef( entityIdx = 33, graphicsId = 5, @@ -10091,8 +8752,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "Route120_EventScript_Keigo", - ), + script = "Route120_EventScript_Keigo"), NpcDef( entityIdx = 34, graphicsId = 5, @@ -10104,8 +8764,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "Route120_EventScript_Riley", - ), + script = "Route120_EventScript_Riley"), NpcDef( entityIdx = 41, graphicsId = 14, @@ -10116,9 +8775,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 1, - facing = 0, - script = "Route120_EventScript_Callie", - ), + facing = 1, + script = "Route120_EventScript_Callie"), NpcDef( entityIdx = 42, graphicsId = 33, @@ -10130,8 +8788,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 3, - script = "Route120_EventScript_Leonel", - ), + script = "Route120_EventScript_Leonel"), ), bgEvents = listOf( @@ -10139,86 +8796,72 @@ object MapManager { x = 27, y = 3, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Route120_EventScript_RouteSignFortree", - ), + script = "Route120_EventScript_RouteSignFortree"), BgEventDef( x = 38, y = 88, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Route120_EventScript_RouteSign121", - ), + script = "Route120_EventScript_RouteSign121"), BgEventDef( x = 28, y = 62, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 30, y = 62, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 26, y = 10, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 29, y = 85, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 18, y = 12, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 38, y = 54, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 31, y = 23, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 9, y = 1, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 31, y = 11, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 0, y = 86, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 24, y = 42, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 5, y = 76, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), ), ), // Route121 (MAP_ROUTE121) @@ -10228,41 +8871,23 @@ object MapManager { mapId = 36, width = 80, height = 20, - paletteIdx1 = 104, - paletteIdx2 = 136, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 109, + unknownShort = 361, + unknownByte = 36, borderTiles = listOf( - Tile2D(0x01D4, 0), - Tile2D(0x01D5, 0), - Tile2D(0x01DC, 0), - Tile2D(0x01DD, 0), - ), + Tile2D(0x01D4, 0), Tile2D(0x01D5, 0), Tile2D(0x01DC, 0), Tile2D(0x01DD, 0)), lighting = Lighting.REGULAR, weather = Weather.REGULAR_WEATHER, mapType = MapType.ROUTE, encounterType = EncounterType.RANDOM, connections = listOf( + GbaConnection(direction = 1, unknown = 20, targetBank = 50, targetMap = 37), GbaConnection( - direction = 1, - unknown = 0, - targetBank = 50, - targetMap = 37, - ), - GbaConnection( - direction = 3, - unknown = 0, - targetBank = 50, - targetMap = 35, - ), - GbaConnection( - direction = 4, - unknown = 0, - targetBank = 50, - targetMap = 5, - ), + direction = 3, unknown = -80, targetBank = 50, targetMap = 35), + GbaConnection(direction = 4, unknown = -10, targetBank = 50, targetMap = 5), ), warps = listOf( @@ -10273,8 +8898,8 @@ object MapManager { targetBankId = 73, targetMapId = 0, targetX = 14, - targetY = 13, - )), + targetY = 13), + ), npcs = listOf( NpcDef( @@ -10288,8 +8913,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 3, - script = "Route121_EventScript_Woman", - ), + script = "Route121_EventScript_Woman"), NpcDef( entityIdx = 1, graphicsId = 60, @@ -10301,8 +8925,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 2, graphicsId = 60, @@ -10314,8 +8937,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 3, graphicsId = 60, @@ -10327,8 +8949,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 4, graphicsId = 60, @@ -10340,8 +8961,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 5, graphicsId = 60, @@ -10353,8 +8973,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 6, graphicsId = 60, @@ -10366,8 +8985,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 7, graphicsId = 60, @@ -10379,8 +8997,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 8, graphicsId = 60, @@ -10392,8 +9009,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 9, graphicsId = 47, @@ -10404,9 +9020,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 1, - facing = 1, - script = "Route121_EventScript_Kate", - ), + facing = 0, + script = "Route121_EventScript_Kate"), NpcDef( entityIdx = 10, graphicsId = 47, @@ -10417,9 +9032,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 1, - facing = 1, - script = "Route121_EventScript_Joy", - ), + facing = 0, + script = "Route121_EventScript_Joy"), NpcDef( entityIdx = 16, graphicsId = 18, @@ -10431,8 +9045,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 2, - script = "Route121_EventScript_Vanessa", - ), + script = "Route121_EventScript_Vanessa"), NpcDef( entityIdx = 17, graphicsId = 48, @@ -10444,8 +9057,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 2, - script = "Route121_EventScript_Walter", - ), + script = "Route121_EventScript_Walter"), NpcDef( entityIdx = 18, graphicsId = 40, @@ -10456,9 +9068,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 1, - facing = 0, - script = "Route121_EventScript_Tammy", - ), + facing = 1, + script = "Route121_EventScript_Tammy"), NpcDef( entityIdx = 19, graphicsId = 45, @@ -10470,8 +9081,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "Route121_EventScript_Jessica", - ), + script = "Route121_EventScript_Jessica"), NpcDef( entityIdx = 22, graphicsId = 39, @@ -10483,8 +9093,7 @@ object MapManager { movementRangeY = 4, trainerType = 1, facing = 0, - script = "Route121_EventScript_Cale", - ), + script = "Route121_EventScript_Cale"), NpcDef( entityIdx = 23, graphicsId = 65, @@ -10495,9 +9104,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 1, - facing = 1, - script = "Route121_EventScript_Myles", - ), + facing = 0, + script = "Route121_EventScript_Myles"), NpcDef( entityIdx = 24, graphicsId = 20, @@ -10508,9 +9116,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 1, - facing = 0, - script = "Route121_EventScript_Pat", - ), + facing = 1, + script = "Route121_EventScript_Pat"), NpcDef( entityIdx = 25, graphicsId = 33, @@ -10522,8 +9129,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "Route121_EventScript_Marcel", - ), + script = "Route121_EventScript_Marcel"), NpcDef( entityIdx = 26, graphicsId = 34, @@ -10535,8 +9141,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "Route121_EventScript_Cristin", - ), + script = "Route121_EventScript_Cristin"), ), bgEvents = listOf( @@ -10544,62 +9149,52 @@ object MapManager { x = 32, y = 14, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Route121_EventScript_MtPyrePierSign", - ), + script = "Route121_EventScript_MtPyrePierSign"), BgEventDef( x = 40, y = 11, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 18, y = 13, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 43, y = 7, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 42, y = 7, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 39, y = 6, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Route121_EventScript_SafariZoneSign", - ), + script = "Route121_EventScript_SafariZoneSign"), BgEventDef( x = 23, y = 10, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 58, y = 3, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 72, y = 5, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 68, y = 8, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), ), ), // Route122 (MAP_ROUTE122) @@ -10609,17 +9204,13 @@ object MapManager { mapId = 37, width = 40, height = 40, - paletteIdx1 = 104, - paletteIdx2 = 136, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 109, + unknownShort = 374, + unknownByte = 37, borderTiles = listOf( - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - ), + Tile2D(0x0170, 0), Tile2D(0x0170, 0), Tile2D(0x0170, 0), Tile2D(0x0170, 0)), lighting = Lighting.REGULAR, weather = Weather.REGULAR_WEATHER, mapType = MapType.ROUTE, @@ -10627,17 +9218,9 @@ object MapManager { connections = listOf( GbaConnection( - direction = 2, - unknown = 0, - targetBank = 50, - targetMap = 36, - ), + direction = 2, unknown = -20, targetBank = 50, targetMap = 36), GbaConnection( - direction = 1, - unknown = 0, - targetBank = 50, - targetMap = 38, - ), + direction = 1, unknown = -100, targetBank = 50, targetMap = 38), ), warps = listOf( @@ -10648,8 +9231,8 @@ object MapManager { targetBankId = 74, targetMapId = 15, targetX = 17, - targetY = 18, - )), + targetY = 18), + ), npcs = emptyList(), bgEvents = emptyList(), ), @@ -10660,17 +9243,13 @@ object MapManager { mapId = 38, width = 140, height = 20, - paletteIdx1 = 104, - paletteIdx2 = 136, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 109, + unknownShort = 374, + unknownByte = 38, borderTiles = listOf( - Tile2D(0x00C6, 0), - Tile2D(0x00C7, 0), - Tile2D(0x00C7, 0), - Tile2D(0x00C6, 0), - ), + Tile2D(0x00C6, 0), Tile2D(0x00C7, 0), Tile2D(0x00C7, 0), Tile2D(0x00C6, 0)), lighting = Lighting.REGULAR, weather = Weather.REGULAR_WEATHER, mapType = MapType.ROUTE, @@ -10678,17 +9257,8 @@ object MapManager { connections = listOf( GbaConnection( - direction = 2, - unknown = 0, - targetBank = 50, - targetMap = 37, - ), - GbaConnection( - direction = 3, - unknown = 0, - targetBank = 50, - targetMap = 33, - ), + direction = 2, unknown = 100, targetBank = 50, targetMap = 37), + GbaConnection(direction = 3, unknown = 0, targetBank = 50, targetMap = 33), ), warps = listOf( @@ -10699,8 +9269,8 @@ object MapManager { targetBankId = 81, targetMapId = 0, targetX = 3, - targetY = 7, - )), + targetY = 7), + ), npcs = listOf( NpcDef( @@ -10714,8 +9284,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 1, graphicsId = 60, @@ -10727,8 +9296,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 2, graphicsId = 60, @@ -10740,8 +9308,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 3, graphicsId = 60, @@ -10753,8 +9320,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 4, graphicsId = 60, @@ -10766,8 +9332,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 5, graphicsId = 60, @@ -10779,8 +9344,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 6, graphicsId = 60, @@ -10792,8 +9356,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 7, graphicsId = 34, @@ -10805,8 +9368,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "Route123_EventScript_Wendy", - ), + script = "Route123_EventScript_Wendy"), NpcDef( entityIdx = 8, graphicsId = 33, @@ -10818,8 +9380,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "Route123_EventScript_Braxton", - ), + script = "Route123_EventScript_Braxton"), NpcDef( entityIdx = 9, graphicsId = 60, @@ -10831,8 +9392,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 10, graphicsId = 60, @@ -10844,8 +9404,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 11, graphicsId = 60, @@ -10857,8 +9416,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 12, graphicsId = 60, @@ -10870,8 +9428,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 13, graphicsId = 60, @@ -10883,8 +9440,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 14, graphicsId = 60, @@ -10896,8 +9452,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 15, graphicsId = 60, @@ -10909,8 +9464,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 16, graphicsId = 60, @@ -10922,8 +9476,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 21, graphicsId = 14, @@ -10935,8 +9488,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "Route123_EventScript_GigaDrainGirl", - ), + script = "Route123_EventScript_GigaDrainGirl"), NpcDef( entityIdx = 22, graphicsId = 60, @@ -10948,8 +9500,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 23, graphicsId = 60, @@ -10961,8 +9512,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 24, graphicsId = 60, @@ -10974,8 +9524,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BerryTreeScript", - ), + script = "BerryTreeScript"), NpcDef( entityIdx = 25, graphicsId = 20, @@ -10987,8 +9536,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "Route123_EventScript_Violet", - ), + script = "Route123_EventScript_Violet"), NpcDef( entityIdx = 26, graphicsId = 6, @@ -10999,9 +9547,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 1, - facing = 1, - script = "Route123_EventScript_Yuki", - ), + facing = 0, + script = "Route123_EventScript_Yuki"), NpcDef( entityIdx = 27, graphicsId = 6, @@ -11012,9 +9559,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 1, - facing = 1, - script = "Route123_EventScript_Miu", - ), + facing = 0, + script = "Route123_EventScript_Miu"), NpcDef( entityIdx = 28, graphicsId = 37, @@ -11026,8 +9572,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 2, - script = "Route123_EventScript_Cameron", - ), + script = "Route123_EventScript_Cameron"), NpcDef( entityIdx = 29, graphicsId = 47, @@ -11038,9 +9583,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 1, - facing = 1, - script = "Route123_EventScript_Jacki", - ), + facing = 0, + script = "Route123_EventScript_Jacki"), NpcDef( entityIdx = 30, graphicsId = 40, @@ -11051,9 +9595,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 1, - facing = 1, - script = "Route123_EventScript_Kindra", - ), + facing = 0, + script = "Route123_EventScript_Kindra"), NpcDef( entityIdx = 33, graphicsId = 5, @@ -11065,8 +9608,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "Route123_EventScript_Jonas", - ), + script = "Route123_EventScript_Jonas"), NpcDef( entityIdx = 34, graphicsId = 20, @@ -11077,9 +9619,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 1, - facing = 0, - script = "Route123_EventScript_Kayley", - ), + facing = 1, + script = "Route123_EventScript_Kayley"), NpcDef( entityIdx = 35, graphicsId = 39, @@ -11090,9 +9631,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 1, - facing = 0, - script = "Route123_EventScript_Ed", - ), + facing = 1, + script = "Route123_EventScript_Ed"), NpcDef( entityIdx = 36, graphicsId = 66, @@ -11103,9 +9643,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 1, - facing = 1, - script = "Route123_EventScript_Fernando", - ), + facing = 0, + script = "Route123_EventScript_Fernando"), NpcDef( entityIdx = 37, graphicsId = 66, @@ -11116,9 +9655,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 1, - facing = 0, - script = "Route123_EventScript_Alberto", - ), + facing = 1, + script = "Route123_EventScript_Alberto"), NpcDef( entityIdx = 38, graphicsId = 21, @@ -11129,9 +9667,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 1, - facing = 0, - script = "Route123_EventScript_Frederick", - ), + facing = 1, + script = "Route123_EventScript_Frederick"), NpcDef( entityIdx = 40, graphicsId = 34, @@ -11142,9 +9679,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 1, - facing = 0, - script = "Route123_EventScript_Jazmyn", - ), + facing = 1, + script = "Route123_EventScript_Jazmyn"), NpcDef( entityIdx = 41, graphicsId = 35, @@ -11156,8 +9692,7 @@ object MapManager { movementRangeY = 3, trainerType = 1, facing = 0, - script = "Route123_EventScript_Davis", - ), + script = "Route123_EventScript_Davis"), ), bgEvents = listOf( @@ -11165,68 +9700,57 @@ object MapManager { x = 117, y = 10, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Route123_EventScript_RouteSignMtPyre", - ), + script = "Route123_EventScript_RouteSignMtPyre"), BgEventDef( x = 47, y = 3, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 49, y = 3, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 10, y = 12, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Route123_EventScript_RouteSign", - ), + script = "Route123_EventScript_RouteSign"), BgEventDef( x = 75, y = 1, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 20, y = 7, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Route123_EventScript_BerryMastersHouseSign", - ), + script = "Route123_EventScript_BerryMastersHouseSign"), BgEventDef( x = 57, y = 5, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 12, y = 1, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 91, y = 15, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 139, y = 15, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 138, y = 18, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), ), ), // Route124 (MAP_ROUTE124) @@ -11236,53 +9760,24 @@ object MapManager { mapId = 39, width = 80, height = 80, - paletteIdx1 = 108, - paletteIdx2 = 138, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 110, + unknownShort = 361, + unknownByte = 39, borderTiles = listOf( - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - ), + Tile2D(0x0170, 0), Tile2D(0x0170, 0), Tile2D(0x0170, 0), Tile2D(0x0170, 0)), lighting = Lighting.REGULAR, weather = Weather.REGULAR_WEATHER, mapType = MapType.ROUTE, encounterType = EncounterType.RANDOM, connections = listOf( - GbaConnection( - direction = 1, - unknown = 0, - targetBank = 50, - targetMap = 41, - ), - GbaConnection( - direction = 3, - unknown = 0, - targetBank = 50, - targetMap = 5, - ), - GbaConnection( - direction = 4, - unknown = 0, - targetBank = 50, - targetMap = 40, - ), - GbaConnection( - direction = 4, - unknown = 0, - targetBank = 50, - targetMap = 6, - ), - GbaConnection( - direction = 5, - unknown = 0, - targetBank = 50, - targetMap = 50, - ), + GbaConnection(direction = 1, unknown = 0, targetBank = 50, targetMap = 41), + GbaConnection(direction = 3, unknown = 10, targetBank = 50, targetMap = 5), + GbaConnection(direction = 4, unknown = 0, targetBank = 50, targetMap = 40), + GbaConnection(direction = 4, unknown = 40, targetBank = 50, targetMap = 6), + GbaConnection(direction = 5, unknown = 0, targetBank = 50, targetMap = 50), ), warps = listOf( @@ -11293,8 +9788,8 @@ object MapManager { targetBankId = 83, targetMapId = 0, targetX = 3, - targetY = 8, - )), + targetY = 8), + ), npcs = listOf( NpcDef( @@ -11308,8 +9803,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "Route124_EventScript_Spencer", - ), + script = "Route124_EventScript_Spencer"), NpcDef( entityIdx = 1, graphicsId = 42, @@ -11321,8 +9815,7 @@ object MapManager { movementRangeY = 3, trainerType = 1, facing = 3, - script = "Route124_EventScript_Roland", - ), + script = "Route124_EventScript_Roland"), NpcDef( entityIdx = 2, graphicsId = 43, @@ -11334,8 +9827,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "Route124_EventScript_Jenny", - ), + script = "Route124_EventScript_Jenny"), NpcDef( entityIdx = 3, graphicsId = 43, @@ -11347,8 +9839,7 @@ object MapManager { movementRangeY = 8, trainerType = 1, facing = 0, - script = "Route124_EventScript_Grace", - ), + script = "Route124_EventScript_Grace"), NpcDef( entityIdx = 4, graphicsId = 42, @@ -11360,8 +9851,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "Route124_EventScript_Chad", - ), + script = "Route124_EventScript_Chad"), NpcDef( entityIdx = 8, graphicsId = 43, @@ -11372,9 +9862,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 1, - facing = 1, - script = "Route124_EventScript_Lila", - ), + facing = 0, + script = "Route124_EventScript_Lila"), NpcDef( entityIdx = 9, graphicsId = 0, @@ -11385,9 +9874,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 1, - facing = 1, - script = "Route124_EventScript_Roy", - ), + facing = 0, + script = "Route124_EventScript_Roy"), NpcDef( entityIdx = 10, graphicsId = 42, @@ -11398,9 +9886,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 1, - facing = 0, - script = "Route124_EventScript_Declan", - ), + facing = 1, + script = "Route124_EventScript_Declan"), NpcDef( entityIdx = 11, graphicsId = 43, @@ -11412,8 +9899,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 2, - script = "Route124_EventScript_Isabella", - ), + script = "Route124_EventScript_Isabella"), ), bgEvents = listOf( @@ -11421,8 +9907,8 @@ object MapManager { x = 73, y = 48, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Route124_EventScript_HuntersHouseSign", - )), + script = "Route124_EventScript_HuntersHouseSign"), + ), ), // Route125 (MAP_ROUTE125) MapDef( @@ -11431,41 +9917,22 @@ object MapManager { mapId = 40, width = 80, height = 40, - paletteIdx1 = 108, - paletteIdx2 = 138, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 110, + unknownShort = 361, + unknownByte = 40, borderTiles = listOf( - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - ), + Tile2D(0x0170, 0), Tile2D(0x0170, 0), Tile2D(0x0170, 0), Tile2D(0x0170, 0)), lighting = Lighting.REGULAR, weather = Weather.REGULAR_WEATHER, mapType = MapType.ROUTE, encounterType = EncounterType.RANDOM, connections = listOf( - GbaConnection( - direction = 1, - unknown = 0, - targetBank = 50, - targetMap = 6, - ), - GbaConnection( - direction = 3, - unknown = 0, - targetBank = 50, - targetMap = 39, - ), - GbaConnection( - direction = 5, - unknown = 0, - targetBank = 50, - targetMap = 56, - ), + GbaConnection(direction = 1, unknown = 0, targetBank = 50, targetMap = 6), + GbaConnection(direction = 3, unknown = 0, targetBank = 50, targetMap = 39), + GbaConnection(direction = 5, unknown = 0, targetBank = 50, targetMap = 56), ), warps = listOf( @@ -11476,8 +9943,8 @@ object MapManager { targetBankId = 74, targetMapId = 46, targetX = 20, - targetY = 30, - )), + targetY = 30), + ), npcs = listOf( NpcDef( @@ -11491,8 +9958,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "Route125_EventScript_Nolen", - ), + script = "Route125_EventScript_Nolen"), NpcDef( entityIdx = 1, graphicsId = 42, @@ -11504,8 +9970,7 @@ object MapManager { movementRangeY = 5, trainerType = 1, facing = 3, - script = "Route125_EventScript_Stan", - ), + script = "Route125_EventScript_Stan"), NpcDef( entityIdx = 2, graphicsId = 43, @@ -11517,8 +9982,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "Route125_EventScript_Tanya", - ), + script = "Route125_EventScript_Tanya"), NpcDef( entityIdx = 3, graphicsId = 43, @@ -11530,8 +9994,7 @@ object MapManager { movementRangeY = 9, trainerType = 1, facing = 0, - script = "Route125_EventScript_Sharon", - ), + script = "Route125_EventScript_Sharon"), NpcDef( entityIdx = 4, graphicsId = 49, @@ -11543,8 +10006,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "Route125_EventScript_Ernest", - ), + script = "Route125_EventScript_Ernest"), NpcDef( entityIdx = 5, graphicsId = 47, @@ -11555,9 +10017,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 1, - facing = 1, - script = "Route125_EventScript_Kim", - ), + facing = 0, + script = "Route125_EventScript_Kim"), NpcDef( entityIdx = 6, graphicsId = 47, @@ -11568,9 +10029,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 1, - facing = 1, - script = "Route125_EventScript_Iris", - ), + facing = 0, + script = "Route125_EventScript_Iris"), NpcDef( entityIdx = 7, graphicsId = 66, @@ -11582,8 +10042,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "Route125_EventScript_Presley", - ), + script = "Route125_EventScript_Presley"), NpcDef( entityIdx = 8, graphicsId = 21, @@ -11595,8 +10054,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "Route125_EventScript_Auron", - ), + script = "Route125_EventScript_Auron"), ), bgEvents = listOf( @@ -11604,26 +10062,22 @@ object MapManager { x = 53, y = 10, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 55, y = 11, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 7, y = 25, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 24, y = 32, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), ), ), // Route126 (MAP_ROUTE126) @@ -11633,41 +10087,22 @@ object MapManager { mapId = 41, width = 80, height = 80, - paletteIdx1 = 108, - paletteIdx2 = 138, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 110, + unknownShort = 361, + unknownByte = 41, borderTiles = listOf( - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - ), + Tile2D(0x0170, 0), Tile2D(0x0170, 0), Tile2D(0x0170, 0), Tile2D(0x0170, 0)), lighting = Lighting.REGULAR, weather = Weather.REGULAR_WEATHER, mapType = MapType.ROUTE, encounterType = EncounterType.RANDOM, connections = listOf( - GbaConnection( - direction = 2, - unknown = 0, - targetBank = 50, - targetMap = 39, - ), - GbaConnection( - direction = 4, - unknown = 0, - targetBank = 50, - targetMap = 42, - ), - GbaConnection( - direction = 5, - unknown = 0, - targetBank = 50, - targetMap = 51, - ), + GbaConnection(direction = 2, unknown = 0, targetBank = 50, targetMap = 39), + GbaConnection(direction = 4, unknown = 0, targetBank = 50, targetMap = 42), + GbaConnection(direction = 5, unknown = 0, targetBank = 50, targetMap = 51), ), warps = emptyList(), npcs = @@ -11683,8 +10118,7 @@ object MapManager { movementRangeY = 3, trainerType = 1, facing = 0, - script = "Route126_EventScript_Barry", - ), + script = "Route126_EventScript_Barry"), NpcDef( entityIdx = 1, graphicsId = 42, @@ -11696,8 +10130,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "Route126_EventScript_Dean", - ), + script = "Route126_EventScript_Dean"), NpcDef( entityIdx = 2, graphicsId = 43, @@ -11709,8 +10142,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "Route126_EventScript_Nikki", - ), + script = "Route126_EventScript_Nikki"), NpcDef( entityIdx = 3, graphicsId = 43, @@ -11721,9 +10153,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 1, - facing = 0, - script = "Route126_EventScript_Brenda", - ), + facing = 1, + script = "Route126_EventScript_Brenda"), NpcDef( entityIdx = 5, graphicsId = 43, @@ -11735,8 +10166,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 2, - script = "Route126_EventScript_Sienna", - ), + script = "Route126_EventScript_Sienna"), NpcDef( entityIdx = 6, graphicsId = 42, @@ -11748,8 +10178,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 3, - script = "Route126_EventScript_Pablo", - ), + script = "Route126_EventScript_Pablo"), NpcDef( entityIdx = 7, graphicsId = 43, @@ -11761,8 +10190,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 2, - script = "Route126_EventScript_Isobel", - ), + script = "Route126_EventScript_Isobel"), NpcDef( entityIdx = 8, graphicsId = 42, @@ -11774,8 +10202,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 3, - script = "Route126_EventScript_Leonardo", - ), + script = "Route126_EventScript_Leonardo"), ), bgEvents = emptyList(), ), @@ -11786,47 +10213,23 @@ object MapManager { mapId = 42, width = 80, height = 80, - paletteIdx1 = 108, - paletteIdx2 = 138, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 110, + unknownShort = 361, + unknownByte = 42, borderTiles = listOf( - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - ), + Tile2D(0x0170, 0), Tile2D(0x0170, 0), Tile2D(0x0170, 0), Tile2D(0x0170, 0)), lighting = Lighting.REGULAR, weather = Weather.REGULAR_WEATHER, mapType = MapType.ROUTE, encounterType = EncounterType.RANDOM, connections = listOf( - GbaConnection( - direction = 2, - unknown = 0, - targetBank = 50, - targetMap = 6, - ), - GbaConnection( - direction = 1, - unknown = 0, - targetBank = 50, - targetMap = 43, - ), - GbaConnection( - direction = 3, - unknown = 0, - targetBank = 50, - targetMap = 41, - ), - GbaConnection( - direction = 5, - unknown = 0, - targetBank = 50, - targetMap = 52, - ), + GbaConnection(direction = 2, unknown = 0, targetBank = 50, targetMap = 6), + GbaConnection(direction = 1, unknown = 0, targetBank = 50, targetMap = 43), + GbaConnection(direction = 3, unknown = 0, targetBank = 50, targetMap = 41), + GbaConnection(direction = 5, unknown = 0, targetBank = 50, targetMap = 52), ), warps = emptyList(), npcs = @@ -11842,8 +10245,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "Route127_EventScript_Camden", - ), + script = "Route127_EventScript_Camden"), NpcDef( entityIdx = 1, graphicsId = 43, @@ -11855,8 +10257,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "Route127_EventScript_Donny", - ), + script = "Route127_EventScript_Donny"), NpcDef( entityIdx = 4, graphicsId = 50, @@ -11868,8 +10269,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 2, - script = "Route127_EventScript_Jonah", - ), + script = "Route127_EventScript_Jonah"), NpcDef( entityIdx = 5, graphicsId = 50, @@ -11881,8 +10281,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 3, - script = "Route127_EventScript_Roger", - ), + script = "Route127_EventScript_Roger"), NpcDef( entityIdx = 6, graphicsId = 50, @@ -11893,9 +10292,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 1, - facing = 0, - script = "Route127_EventScript_Henry", - ), + facing = 1, + script = "Route127_EventScript_Henry"), NpcDef( entityIdx = 7, graphicsId = 66, @@ -11907,8 +10305,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 2, - script = "Route127_EventScript_Aidan", - ), + script = "Route127_EventScript_Aidan"), NpcDef( entityIdx = 8, graphicsId = 44, @@ -11920,8 +10317,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "Route127_EventScript_Koji", - ), + script = "Route127_EventScript_Koji"), NpcDef( entityIdx = 9, graphicsId = 34, @@ -11933,8 +10329,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 3, - script = "Route127_EventScript_Athena", - ), + script = "Route127_EventScript_Athena"), ), bgEvents = listOf( @@ -11942,32 +10337,27 @@ object MapManager { x = 59, y = 67, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 59, y = 72, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 67, y = 63, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 61, y = 21, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 45, y = 24, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), ), ), // Route128 (MAP_ROUTE128) @@ -11977,47 +10367,23 @@ object MapManager { mapId = 43, width = 120, height = 40, - paletteIdx1 = 108, - paletteIdx2 = 138, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 110, + unknownShort = 361, + unknownByte = 43, borderTiles = listOf( - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - ), + Tile2D(0x0170, 0), Tile2D(0x0170, 0), Tile2D(0x0170, 0), Tile2D(0x0170, 0)), lighting = Lighting.REGULAR, weather = Weather.REGULAR_WEATHER, mapType = MapType.ROUTE, encounterType = EncounterType.RANDOM, connections = listOf( - GbaConnection( - direction = 2, - unknown = 0, - targetBank = 50, - targetMap = 42, - ), - GbaConnection( - direction = 1, - unknown = 0, - targetBank = 50, - targetMap = 44, - ), - GbaConnection( - direction = 4, - unknown = 0, - targetBank = 50, - targetMap = 8, - ), - GbaConnection( - direction = 5, - unknown = 0, - targetBank = 50, - targetMap = 53, - ), + GbaConnection(direction = 2, unknown = 0, targetBank = 50, targetMap = 42), + GbaConnection(direction = 1, unknown = 0, targetBank = 50, targetMap = 44), + GbaConnection(direction = 4, unknown = -40, targetBank = 50, targetMap = 8), + GbaConnection(direction = 5, unknown = 0, targetBank = 50, targetMap = 53), ), warps = emptyList(), npcs = @@ -12033,8 +10399,7 @@ object MapManager { movementRangeY = 5, trainerType = 1, facing = 0, - script = "Route128_EventScript_Isaiah", - ), + script = "Route128_EventScript_Isaiah"), NpcDef( entityIdx = 1, graphicsId = 43, @@ -12046,8 +10411,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "Route128_EventScript_Katelyn", - ), + script = "Route128_EventScript_Katelyn"), NpcDef( entityIdx = 5, graphicsId = 50, @@ -12058,9 +10422,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 1, - facing = 0, - script = "Route128_EventScript_Wayne", - ), + facing = 1, + script = "Route128_EventScript_Wayne"), NpcDef( entityIdx = 6, graphicsId = 33, @@ -12072,8 +10435,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 3, - script = "Route128_EventScript_Ruben", - ), + script = "Route128_EventScript_Ruben"), NpcDef( entityIdx = 7, graphicsId = 34, @@ -12085,8 +10447,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "Route128_EventScript_Alexa", - ), + script = "Route128_EventScript_Alexa"), NpcDef( entityIdx = 8, graphicsId = 43, @@ -12098,8 +10459,7 @@ object MapManager { movementRangeY = 3, trainerType = 1, facing = 0, - script = "Route128_EventScript_Carlee", - ), + script = "Route128_EventScript_Carlee"), NpcDef( entityIdx = 9, graphicsId = 42, @@ -12111,8 +10471,7 @@ object MapManager { movementRangeY = 3, trainerType = 1, facing = 0, - script = "Route128_EventScript_Harrison", - ), + script = "Route128_EventScript_Harrison"), ), bgEvents = listOf( @@ -12120,20 +10479,17 @@ object MapManager { x = 49, y = 9, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 57, y = 21, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 31, y = 33, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), ), ), // Route129 (MAP_ROUTE129) @@ -12143,41 +10499,22 @@ object MapManager { mapId = 44, width = 80, height = 40, - paletteIdx1 = 108, - paletteIdx2 = 138, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 110, + unknownShort = 402, + unknownByte = 44, borderTiles = listOf( - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - ), + Tile2D(0x0170, 0), Tile2D(0x0170, 0), Tile2D(0x0170, 0), Tile2D(0x0170, 0)), lighting = Lighting.REGULAR, weather = Weather.REGULAR_WEATHER, mapType = MapType.ROUTE, encounterType = EncounterType.RANDOM, connections = listOf( - GbaConnection( - direction = 2, - unknown = 0, - targetBank = 50, - targetMap = 43, - ), - GbaConnection( - direction = 3, - unknown = 0, - targetBank = 50, - targetMap = 45, - ), - GbaConnection( - direction = 5, - unknown = 0, - targetBank = 50, - targetMap = 54, - ), + GbaConnection(direction = 2, unknown = 0, targetBank = 50, targetMap = 43), + GbaConnection(direction = 3, unknown = 0, targetBank = 50, targetMap = 45), + GbaConnection(direction = 5, unknown = 0, targetBank = 50, targetMap = 54), ), warps = emptyList(), npcs = @@ -12193,8 +10530,7 @@ object MapManager { movementRangeY = 4, trainerType = 1, facing = 0, - script = "Route129_EventScript_Chase", - ), + script = "Route129_EventScript_Chase"), NpcDef( entityIdx = 1, graphicsId = 43, @@ -12206,8 +10542,7 @@ object MapManager { movementRangeY = 2, trainerType = 1, facing = 0, - script = "Route129_EventScript_Allison", - ), + script = "Route129_EventScript_Allison"), NpcDef( entityIdx = 2, graphicsId = 43, @@ -12219,8 +10554,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "Route129_EventScript_Tisha", - ), + script = "Route129_EventScript_Tisha"), NpcDef( entityIdx = 3, graphicsId = 42, @@ -12232,8 +10566,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "Route129_EventScript_Reed", - ), + script = "Route129_EventScript_Reed"), NpcDef( entityIdx = 4, graphicsId = 42, @@ -12245,8 +10578,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 1, - script = "Route129_EventScript_Clarence", - ), + script = "Route129_EventScript_Clarence"), ), bgEvents = emptyList(), ), @@ -12257,35 +10589,21 @@ object MapManager { mapId = 45, width = 80, height = 40, - paletteIdx1 = 134, - paletteIdx2 = 112, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 119, + unknownShort = 402, + unknownByte = 45, borderTiles = listOf( - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - ), + Tile2D(0x0170, 0), Tile2D(0x0170, 0), Tile2D(0x0170, 0), Tile2D(0x0170, 0)), lighting = Lighting.REGULAR, weather = Weather.REGULAR_WEATHER, mapType = MapType.ROUTE, encounterType = EncounterType.RANDOM, connections = listOf( - GbaConnection( - direction = 3, - unknown = 0, - targetBank = 50, - targetMap = 46, - ), - GbaConnection( - direction = 4, - unknown = 0, - targetBank = 50, - targetMap = 44, - ), + GbaConnection(direction = 3, unknown = 0, targetBank = 50, targetMap = 46), + GbaConnection(direction = 4, unknown = 0, targetBank = 50, targetMap = 44), ), warps = emptyList(), npcs = @@ -12301,8 +10619,7 @@ object MapManager { movementRangeY = 6, trainerType = 1, facing = 0, - script = "Route130_EventScript_Rodney", - ), + script = "Route130_EventScript_Rodney"), NpcDef( entityIdx = 1, graphicsId = 43, @@ -12314,8 +10631,7 @@ object MapManager { movementRangeY = 4, trainerType = 1, facing = 0, - script = "Route130_EventScript_Katie", - ), + script = "Route130_EventScript_Katie"), NpcDef( entityIdx = 3, graphicsId = 42, @@ -12327,8 +10643,7 @@ object MapManager { movementRangeY = 4, trainerType = 1, facing = 0, - script = "Route130_EventScript_Santiago", - ), + script = "Route130_EventScript_Santiago"), ), bgEvents = emptyList(), ), @@ -12339,35 +10654,21 @@ object MapManager { mapId = 46, width = 60, height = 40, - paletteIdx1 = 112, - paletteIdx2 = 148, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 112, + unknownShort = 402, + unknownByte = 46, borderTiles = listOf( - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - ), + Tile2D(0x0170, 0), Tile2D(0x0170, 0), Tile2D(0x0170, 0), Tile2D(0x0170, 0)), lighting = Lighting.REGULAR, weather = Weather.REGULAR_WEATHER, mapType = MapType.ROUTE, encounterType = EncounterType.RANDOM, connections = listOf( - GbaConnection( - direction = 3, - unknown = 0, - targetBank = 50, - targetMap = 15, - ), - GbaConnection( - direction = 4, - unknown = 0, - targetBank = 50, - targetMap = 45, - ), + GbaConnection(direction = 3, unknown = 0, targetBank = 50, targetMap = 15), + GbaConnection(direction = 4, unknown = 0, targetBank = 50, targetMap = 45), ), warps = listOf( @@ -12378,8 +10679,8 @@ object MapManager { targetBankId = 74, targetMapId = 77, targetX = 6, - targetY = 16, - )), + targetY = 16), + ), npcs = listOf( NpcDef( @@ -12393,8 +10694,7 @@ object MapManager { movementRangeY = 7, trainerType = 1, facing = 0, - script = "Route131_EventScript_Richard", - ), + script = "Route131_EventScript_Richard"), NpcDef( entityIdx = 1, graphicsId = 42, @@ -12406,8 +10706,7 @@ object MapManager { movementRangeY = 7, trainerType = 1, facing = 0, - script = "Route131_EventScript_Herman", - ), + script = "Route131_EventScript_Herman"), NpcDef( entityIdx = 2, graphicsId = 43, @@ -12419,8 +10718,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "Route131_EventScript_Susie", - ), + script = "Route131_EventScript_Susie"), NpcDef( entityIdx = 3, graphicsId = 43, @@ -12432,8 +10730,7 @@ object MapManager { movementRangeY = 5, trainerType = 1, facing = 0, - script = "Route131_EventScript_Kara", - ), + script = "Route131_EventScript_Kara"), NpcDef( entityIdx = 4, graphicsId = 43, @@ -12444,9 +10741,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 1, - facing = 1, - script = "Route131_EventScript_Reli", - ), + facing = 0, + script = "Route131_EventScript_Reli"), NpcDef( entityIdx = 5, graphicsId = 0, @@ -12457,9 +10753,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 1, - facing = 1, - script = "Route131_EventScript_Ian", - ), + facing = 0, + script = "Route131_EventScript_Ian"), NpcDef( entityIdx = 6, graphicsId = 42, @@ -12471,8 +10766,7 @@ object MapManager { movementRangeY = 3, trainerType = 1, facing = 0, - script = "Route131_EventScript_Kevin", - ), + script = "Route131_EventScript_Kevin"), NpcDef( entityIdx = 7, graphicsId = 43, @@ -12484,8 +10778,7 @@ object MapManager { movementRangeY = 3, trainerType = 1, facing = 0, - script = "Route131_EventScript_Talia", - ), + script = "Route131_EventScript_Talia"), ), bgEvents = emptyList(), ), @@ -12496,35 +10789,21 @@ object MapManager { mapId = 47, width = 80, height = 40, - paletteIdx1 = 112, - paletteIdx2 = 148, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 112, + unknownShort = 402, + unknownByte = 47, borderTiles = listOf( - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - ), + Tile2D(0x0170, 0), Tile2D(0x0170, 0), Tile2D(0x0170, 0), Tile2D(0x0170, 0)), lighting = Lighting.REGULAR, weather = Weather.REGULAR_WEATHER, mapType = MapType.ROUTE, encounterType = EncounterType.RANDOM, connections = listOf( - GbaConnection( - direction = 3, - unknown = 0, - targetBank = 50, - targetMap = 48, - ), - GbaConnection( - direction = 4, - unknown = 0, - targetBank = 50, - targetMap = 15, - ), + GbaConnection(direction = 3, unknown = 0, targetBank = 50, targetMap = 48), + GbaConnection(direction = 4, unknown = 0, targetBank = 50, targetMap = 15), ), warps = emptyList(), npcs = @@ -12540,8 +10819,7 @@ object MapManager { movementRangeY = 3, trainerType = 1, facing = 0, - script = "Route132_EventScript_Gilbert", - ), + script = "Route132_EventScript_Gilbert"), NpcDef( entityIdx = 1, graphicsId = 43, @@ -12553,8 +10831,7 @@ object MapManager { movementRangeY = 3, trainerType = 1, facing = 0, - script = "Route132_EventScript_Dana", - ), + script = "Route132_EventScript_Dana"), NpcDef( entityIdx = 3, graphicsId = 44, @@ -12565,9 +10842,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 1, - facing = 1, - script = "Route132_EventScript_Kiyo", - ), + facing = 0, + script = "Route132_EventScript_Kiyo"), NpcDef( entityIdx = 4, graphicsId = 50, @@ -12579,8 +10855,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 3, - script = "Route132_EventScript_Ronald", - ), + script = "Route132_EventScript_Ronald"), NpcDef( entityIdx = 5, graphicsId = 21, @@ -12591,9 +10866,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 1, - facing = 1, - script = "Route132_EventScript_Paxton", - ), + facing = 0, + script = "Route132_EventScript_Paxton"), NpcDef( entityIdx = 6, graphicsId = 34, @@ -12605,8 +10879,7 @@ object MapManager { movementRangeY = 4, trainerType = 1, facing = 0, - script = "Route132_EventScript_Darcy", - ), + script = "Route132_EventScript_Darcy"), NpcDef( entityIdx = 7, graphicsId = 22, @@ -12617,9 +10890,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 1, - facing = 0, - script = "Route132_EventScript_Makayla", - ), + facing = 1, + script = "Route132_EventScript_Makayla"), NpcDef( entityIdx = 8, graphicsId = 33, @@ -12631,8 +10903,7 @@ object MapManager { movementRangeY = 4, trainerType = 1, facing = 0, - script = "Route132_EventScript_Jonathan", - ), + script = "Route132_EventScript_Jonathan"), ), bgEvents = emptyList(), ), @@ -12643,35 +10914,21 @@ object MapManager { mapId = 48, width = 80, height = 40, - paletteIdx1 = 112, - paletteIdx2 = 148, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 112, + unknownShort = 402, + unknownByte = 48, borderTiles = listOf( - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - ), + Tile2D(0x0170, 0), Tile2D(0x0170, 0), Tile2D(0x0170, 0), Tile2D(0x0170, 0)), lighting = Lighting.REGULAR, weather = Weather.REGULAR_WEATHER, mapType = MapType.ROUTE, encounterType = EncounterType.RANDOM, connections = listOf( - GbaConnection( - direction = 3, - unknown = 0, - targetBank = 50, - targetMap = 49, - ), - GbaConnection( - direction = 4, - unknown = 0, - targetBank = 50, - targetMap = 47, - ), + GbaConnection(direction = 3, unknown = 0, targetBank = 50, targetMap = 49), + GbaConnection(direction = 4, unknown = 0, targetBank = 50, targetMap = 47), ), warps = emptyList(), npcs = @@ -12687,8 +10944,7 @@ object MapManager { movementRangeY = 2, trainerType = 1, facing = 0, - script = "Route133_EventScript_Franklin", - ), + script = "Route133_EventScript_Franklin"), NpcDef( entityIdx = 1, graphicsId = 43, @@ -12699,9 +10955,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 1, - facing = 1, - script = "Route133_EventScript_Linda", - ), + facing = 0, + script = "Route133_EventScript_Linda"), NpcDef( entityIdx = 2, graphicsId = 43, @@ -12713,8 +10968,7 @@ object MapManager { movementRangeY = 2, trainerType = 1, facing = 0, - script = "Route133_EventScript_Debra", - ), + script = "Route133_EventScript_Debra"), NpcDef( entityIdx = 5, graphicsId = 66, @@ -12726,8 +10980,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "Route133_EventScript_Beck", - ), + script = "Route133_EventScript_Beck"), NpcDef( entityIdx = 6, graphicsId = 33, @@ -12739,8 +10992,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "Route133_EventScript_Warren", - ), + script = "Route133_EventScript_Warren"), NpcDef( entityIdx = 7, graphicsId = 22, @@ -12751,9 +11003,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 1, - facing = 1, - script = "Route133_EventScript_Mollie", - ), + facing = 0, + script = "Route133_EventScript_Mollie"), NpcDef( entityIdx = 8, graphicsId = 21, @@ -12765,8 +11016,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "Route133_EventScript_Conor", - ), + script = "Route133_EventScript_Conor"), ), bgEvents = emptyList(), ), @@ -12777,35 +11027,21 @@ object MapManager { mapId = 49, width = 80, height = 40, - paletteIdx1 = 112, - paletteIdx2 = 148, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 112, + unknownShort = 402, + unknownByte = 49, borderTiles = listOf( - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - ), + Tile2D(0x0170, 0), Tile2D(0x0170, 0), Tile2D(0x0170, 0), Tile2D(0x0170, 0)), lighting = Lighting.REGULAR, weather = Weather.REGULAR_WEATHER, mapType = MapType.ROUTE, encounterType = EncounterType.RANDOM, connections = listOf( - GbaConnection( - direction = 3, - unknown = 0, - targetBank = 50, - targetMap = 1, - ), - GbaConnection( - direction = 4, - unknown = 0, - targetBank = 50, - targetMap = 48, - ), + GbaConnection(direction = 3, unknown = 0, targetBank = 50, targetMap = 1), + GbaConnection(direction = 4, unknown = 0, targetBank = 50, targetMap = 48), ), warps = emptyList(), npcs = @@ -12821,8 +11057,7 @@ object MapManager { movementRangeY = 5, trainerType = 1, facing = 0, - script = "Route134_EventScript_Jack", - ), + script = "Route134_EventScript_Jack"), NpcDef( entityIdx = 1, graphicsId = 43, @@ -12834,8 +11069,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "Route134_EventScript_Laurel", - ), + script = "Route134_EventScript_Laurel"), NpcDef( entityIdx = 2, graphicsId = 33, @@ -12847,8 +11081,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 3, - script = "Route134_EventScript_Aaron", - ), + script = "Route134_EventScript_Aaron"), NpcDef( entityIdx = 3, graphicsId = 66, @@ -12860,8 +11093,7 @@ object MapManager { movementRangeY = 3, trainerType = 1, facing = 0, - script = "Route134_EventScript_Alex", - ), + script = "Route134_EventScript_Alex"), NpcDef( entityIdx = 4, graphicsId = 44, @@ -12873,8 +11105,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "Route134_EventScript_Hitoshi", - ), + script = "Route134_EventScript_Hitoshi"), NpcDef( entityIdx = 5, graphicsId = 34, @@ -12886,8 +11117,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 2, - script = "Route134_EventScript_Marley", - ), + script = "Route134_EventScript_Marley"), NpcDef( entityIdx = 6, graphicsId = 49, @@ -12899,8 +11129,7 @@ object MapManager { movementRangeY = 3, trainerType = 1, facing = 0, - script = "Route134_EventScript_Kelvin", - ), + script = "Route134_EventScript_Kelvin"), NpcDef( entityIdx = 7, graphicsId = 14, @@ -12912,8 +11141,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "Route134_EventScript_Reyna", - ), + script = "Route134_EventScript_Reyna"), NpcDef( entityIdx = 8, graphicsId = 49, @@ -12925,8 +11153,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "Route134_EventScript_Hudson", - ), + script = "Route134_EventScript_Hudson"), ), bgEvents = emptyList(), ), @@ -12937,35 +11164,21 @@ object MapManager { mapId = 50, width = 80, height = 80, - paletteIdx1 = 120, - paletteIdx2 = 114, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 144, + unknownShort = 411, + unknownByte = 50, borderTiles = listOf( - Tile2D(0x0213, 0), - Tile2D(0x0213, 0), - Tile2D(0x0213, 0), - Tile2D(0x0213, 0), - ), + Tile2D(0x0213, 0), Tile2D(0x0213, 0), Tile2D(0x0213, 0), Tile2D(0x0213, 0)), lighting = Lighting.REGULAR, weather = Weather.UNDERWATER_MIST, mapType = MapType.UNDERWATER, encounterType = EncounterType.UNKNOWN_0x03, connections = listOf( - GbaConnection( - direction = 1, - unknown = 0, - targetBank = 50, - targetMap = 51, - ), - GbaConnection( - direction = 6, - unknown = 0, - targetBank = 50, - targetMap = 39, - ), + GbaConnection(direction = 1, unknown = 0, targetBank = 50, targetMap = 51), + GbaConnection(direction = 6, unknown = 0, targetBank = 50, targetMap = 39), ), warps = emptyList(), npcs = emptyList(), @@ -12975,44 +11188,37 @@ object MapManager { x = 42, y = 51, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 14, y = 40, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 66, y = 34, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 64, y = 54, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 70, y = 64, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 42, y = 5, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 45, y = 36, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), ), ), // Underwater_Route126 (MAP_UNDERWATER_ROUTE126) @@ -13022,41 +11228,22 @@ object MapManager { mapId = 51, width = 80, height = 80, - paletteIdx1 = 120, - paletteIdx2 = 114, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 144, + unknownShort = 411, + unknownByte = 51, borderTiles = listOf( - Tile2D(0x0213, 0), - Tile2D(0x0213, 0), - Tile2D(0x0213, 0), - Tile2D(0x0213, 0), - ), + Tile2D(0x0213, 0), Tile2D(0x0213, 0), Tile2D(0x0213, 0), Tile2D(0x0213, 0)), lighting = Lighting.REGULAR, weather = Weather.UNDERWATER_MIST, mapType = MapType.UNDERWATER, encounterType = EncounterType.UNKNOWN_0x03, connections = listOf( - GbaConnection( - direction = 2, - unknown = 0, - targetBank = 50, - targetMap = 50, - ), - GbaConnection( - direction = 4, - unknown = 0, - targetBank = 50, - targetMap = 52, - ), - GbaConnection( - direction = 6, - unknown = 0, - targetBank = 50, - targetMap = 41, - ), + GbaConnection(direction = 2, unknown = 0, targetBank = 50, targetMap = 50), + GbaConnection(direction = 4, unknown = 0, targetBank = 50, targetMap = 52), + GbaConnection(direction = 6, unknown = 0, targetBank = 50, targetMap = 41), ), warps = listOf( @@ -13067,8 +11254,8 @@ object MapManager { targetBankId = 74, targetMapId = 5, targetX = 9, - targetY = 8, - )), + targetY = 8), + ), npcs = emptyList(), bgEvents = listOf( @@ -13076,50 +11263,42 @@ object MapManager { x = 30, y = 17, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 41, y = 19, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 63, y = 19, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 10, y = 36, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 11, y = 39, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 12, y = 35, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 65, y = 60, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 9, y = 77, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), ), ), // Underwater_Route127 (MAP_UNDERWATER_ROUTE127) @@ -13129,41 +11308,22 @@ object MapManager { mapId = 52, width = 80, height = 80, - paletteIdx1 = 120, - paletteIdx2 = 114, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 144, + unknownShort = 411, + unknownByte = 52, borderTiles = listOf( - Tile2D(0x0213, 0), - Tile2D(0x0213, 0), - Tile2D(0x0213, 0), - Tile2D(0x0213, 0), - ), + Tile2D(0x0213, 0), Tile2D(0x0213, 0), Tile2D(0x0213, 0), Tile2D(0x0213, 0)), lighting = Lighting.REGULAR, weather = Weather.UNDERWATER_MIST, mapType = MapType.UNDERWATER, encounterType = EncounterType.UNKNOWN_0x03, connections = listOf( - GbaConnection( - direction = 6, - unknown = 0, - targetBank = 50, - targetMap = 42, - ), - GbaConnection( - direction = 3, - unknown = 0, - targetBank = 50, - targetMap = 51, - ), - GbaConnection( - direction = 1, - unknown = 0, - targetBank = 50, - targetMap = 53, - ), + GbaConnection(direction = 6, unknown = 0, targetBank = 50, targetMap = 42), + GbaConnection(direction = 3, unknown = 0, targetBank = 50, targetMap = 51), + GbaConnection(direction = 1, unknown = 0, targetBank = 50, targetMap = 53), ), warps = listOf( @@ -13174,8 +11334,7 @@ object MapManager { targetBankId = 74, targetMapId = 101, targetX = 9, - targetY = 8, - ), + targetY = 8), WarpTile( x = 67, y = 38, @@ -13183,8 +11342,7 @@ object MapManager { targetBankId = 74, targetMapId = 101, targetX = 9, - targetY = 8, - ), + targetY = 8), ), npcs = emptyList(), bgEvents = @@ -13193,26 +11351,22 @@ object MapManager { x = 12, y = 42, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 50, y = 36, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 34, y = 72, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 72, y = 20, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), ), ), // Underwater_Route128 (MAP_UNDERWATER_ROUTE128) @@ -13222,35 +11376,21 @@ object MapManager { mapId = 53, width = 120, height = 40, - paletteIdx1 = 120, - paletteIdx2 = 114, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 144, + unknownShort = 411, + unknownByte = 53, borderTiles = listOf( - Tile2D(0x0213, 0), - Tile2D(0x0213, 0), - Tile2D(0x0213, 0), - Tile2D(0x0213, 0), - ), + Tile2D(0x0213, 0), Tile2D(0x0213, 0), Tile2D(0x0213, 0), Tile2D(0x0213, 0)), lighting = Lighting.REGULAR, weather = Weather.UNDERWATER_MIST, mapType = MapType.UNDERWATER, encounterType = EncounterType.UNKNOWN_0x03, connections = listOf( - GbaConnection( - direction = 2, - unknown = 0, - targetBank = 50, - targetMap = 52, - ), - GbaConnection( - direction = 6, - unknown = 0, - targetBank = 50, - targetMap = 43, - ), + GbaConnection(direction = 2, unknown = 0, targetBank = 50, targetMap = 52), + GbaConnection(direction = 6, unknown = 0, targetBank = 50, targetMap = 43), ), warps = listOf( @@ -13261,8 +11401,8 @@ object MapManager { targetBankId = 74, targetMapId = 26, targetX = 6, - targetY = 7, - )), + targetY = 7), + ), npcs = emptyList(), bgEvents = listOf( @@ -13270,14 +11410,12 @@ object MapManager { x = 38, y = 19, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 69, y = 18, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), ), ), // Underwater_Route129 (MAP_UNDERWATER_ROUTE129) @@ -13287,29 +11425,21 @@ object MapManager { mapId = 54, width = 80, height = 40, - paletteIdx1 = 120, - paletteIdx2 = 114, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 144, + unknownShort = 411, + unknownByte = 208, borderTiles = listOf( - Tile2D(0x0213, 0), - Tile2D(0x0213, 0), - Tile2D(0x0213, 0), - Tile2D(0x0213, 0), - ), + Tile2D(0x0213, 0), Tile2D(0x0213, 0), Tile2D(0x0213, 0), Tile2D(0x0213, 0)), lighting = Lighting.REGULAR, weather = Weather.UNDERWATER_MIST, mapType = MapType.UNDERWATER, encounterType = EncounterType.UNKNOWN_0x03, connections = listOf( - GbaConnection( - direction = 6, - unknown = 0, - targetBank = 50, - targetMap = 44, - )), + GbaConnection(direction = 6, unknown = 0, targetBank = 50, targetMap = 44), + ), warps = listOf( WarpTile( @@ -13319,8 +11449,7 @@ object MapManager { targetBankId = 74, targetMapId = 101, targetX = 9, - targetY = 8, - ), + targetY = 8), WarpTile( x = 32, y = 21, @@ -13328,8 +11457,7 @@ object MapManager { targetBankId = 74, targetMapId = 101, targetX = 9, - targetY = 8, - ), + targetY = 8), ), npcs = emptyList(), bgEvents = emptyList(), @@ -13341,29 +11469,21 @@ object MapManager { mapId = 55, width = 40, height = 80, - paletteIdx1 = 120, - paletteIdx2 = 114, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 144, + unknownShort = 411, + unknownByte = 206, borderTiles = listOf( - Tile2D(0x0213, 0), - Tile2D(0x0213, 0), - Tile2D(0x0213, 0), - Tile2D(0x0213, 0), - ), + Tile2D(0x0213, 0), Tile2D(0x0213, 0), Tile2D(0x0213, 0), Tile2D(0x0213, 0)), lighting = Lighting.REGULAR, weather = Weather.UNDERWATER_MIST, mapType = MapType.UNDERWATER, encounterType = EncounterType.UNKNOWN_0x03, connections = listOf( - GbaConnection( - direction = 6, - unknown = 0, - targetBank = 50, - targetMap = 20, - )), + GbaConnection(direction = 6, unknown = 0, targetBank = 50, targetMap = 20), + ), warps = listOf( WarpTile( @@ -13373,8 +11493,7 @@ object MapManager { targetBankId = 74, targetMapId = 101, targetX = 9, - targetY = 8, - ), + targetY = 8), WarpTile( x = 17, y = 66, @@ -13382,8 +11501,7 @@ object MapManager { targetBankId = 74, targetMapId = 101, targetX = 9, - targetY = 8, - ), + targetY = 8), ), npcs = emptyList(), bgEvents = emptyList(), @@ -13395,29 +11513,21 @@ object MapManager { mapId = 56, width = 80, height = 40, - paletteIdx1 = 120, - paletteIdx2 = 114, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 144, + unknownShort = 411, + unknownByte = 207, borderTiles = listOf( - Tile2D(0x0213, 0), - Tile2D(0x0213, 0), - Tile2D(0x0213, 0), - Tile2D(0x0213, 0), - ), + Tile2D(0x0213, 0), Tile2D(0x0213, 0), Tile2D(0x0213, 0), Tile2D(0x0213, 0)), lighting = Lighting.REGULAR, weather = Weather.UNDERWATER_MIST, mapType = MapType.UNDERWATER, encounterType = EncounterType.UNKNOWN_0x03, connections = listOf( - GbaConnection( - direction = 6, - unknown = 0, - targetBank = 50, - targetMap = 40, - )), + GbaConnection(direction = 6, unknown = 0, targetBank = 50, targetMap = 40), + ), warps = listOf( WarpTile( @@ -13427,8 +11537,7 @@ object MapManager { targetBankId = 74, targetMapId = 101, targetX = 9, - targetY = 8, - ), + targetY = 8), WarpTile( x = 45, y = 30, @@ -13436,8 +11545,7 @@ object MapManager { targetBankId = 74, targetMapId = 101, targetX = 9, - targetY = 8, - ), + targetY = 8), ), npcs = emptyList(), bgEvents = emptyList(), @@ -13455,11 +11563,7 @@ object MapManager { unknownByte = 0, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -13474,8 +11578,7 @@ object MapManager { targetBankId = 50, targetMapId = 9, targetX = 5, - targetY = 8, - ), + targetY = 8), WarpTile( x = 8, y = 8, @@ -13483,8 +11586,7 @@ object MapManager { targetBankId = 50, targetMapId = 9, targetX = 5, - targetY = 8, - ), + targetY = 8), WarpTile( x = 8, y = 2, @@ -13492,8 +11594,7 @@ object MapManager { targetBankId = 51, targetMapId = 1, targetX = 7, - targetY = 1, - ), + targetY = 1), ), npcs = listOf( @@ -13508,8 +11609,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "RivalsHouse_1F_EventScript_RivalMom", - ), + script = "RivalsHouse_1F_EventScript_RivalMom"), NpcDef( entityIdx = 5, graphicsId = 5, @@ -13521,8 +11621,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "RivalsHouse_1F_EventScript_RivalSibling", - ), + script = "RivalsHouse_1F_EventScript_RivalSibling"), ), bgEvents = emptyList(), ), @@ -13539,11 +11638,7 @@ object MapManager { unknownByte = 0, borderTiles = listOf( - Tile2D(0x021F, 0), - Tile2D(0x021F, 0), - Tile2D(0x021F, 0), - Tile2D(0x021F, 0), - ), + Tile2D(0x021F, 0), Tile2D(0x021F, 0), Tile2D(0x021F, 0), Tile2D(0x021F, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -13558,8 +11653,8 @@ object MapManager { targetBankId = 51, targetMapId = 0, targetX = 8, - targetY = 2, - )), + targetY = 2), + ), npcs = emptyList(), bgEvents = listOf( @@ -13567,26 +11662,22 @@ object MapManager { x = 0, y = 1, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "LittlerootTown_BrendansHouse_2F_EventScript_PC", - ), + script = "LittlerootTown_BrendansHouse_2F_EventScript_PC"), BgEventDef( x = 1, y = 1, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "PlayersHouse_2F_EventScript_Notebook", - ), + script = "PlayersHouse_2F_EventScript_Notebook"), BgEventDef( x = 5, y = 1, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "LittlerootTown_BrendansHouse_2F_EventScript_WallClock", - ), + script = "LittlerootTown_BrendansHouse_2F_EventScript_WallClock"), BgEventDef( x = 3, y = 1, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "PlayersHouse_2F_EventScript_GameCube", - ), + script = "PlayersHouse_2F_EventScript_GameCube"), ), ), // LittlerootTown_MaysHouse_1F (MAP_LITTLEROOT_TOWN_MAYS_HOUSE_1F) @@ -13602,11 +11693,7 @@ object MapManager { unknownByte = 0, borderTiles = listOf( - Tile2D(0x021F, 0), - Tile2D(0x021F, 0), - Tile2D(0x021F, 0), - Tile2D(0x021F, 0), - ), + Tile2D(0x021F, 0), Tile2D(0x021F, 0), Tile2D(0x021F, 0), Tile2D(0x021F, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -13621,8 +11708,7 @@ object MapManager { targetBankId = 50, targetMapId = 9, targetX = 14, - targetY = 8, - ), + targetY = 8), WarpTile( x = 2, y = 8, @@ -13630,8 +11716,7 @@ object MapManager { targetBankId = 50, targetMapId = 9, targetX = 14, - targetY = 8, - ), + targetY = 8), WarpTile( x = 2, y = 2, @@ -13639,8 +11724,7 @@ object MapManager { targetBankId = 51, targetMapId = 3, targetX = 1, - targetY = 1, - ), + targetY = 1), ), npcs = listOf( @@ -13655,8 +11739,8 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 2, - script = "PlayersHouse_1F_EventScript_Mom", - )), + script = "PlayersHouse_1F_EventScript_Mom"), + ), bgEvents = emptyList(), ), ) @@ -13679,11 +11763,7 @@ object MapManager { unknownByte = 0, borderTiles = listOf( - Tile2D(0x021F, 0), - Tile2D(0x021F, 0), - Tile2D(0x021F, 0), - Tile2D(0x021F, 0), - ), + Tile2D(0x021F, 0), Tile2D(0x021F, 0), Tile2D(0x021F, 0), Tile2D(0x021F, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -13698,8 +11778,8 @@ object MapManager { targetBankId = 51, targetMapId = 2, targetX = 2, - targetY = 2, - )), + targetY = 2), + ), npcs = emptyList(), bgEvents = listOf( @@ -13707,26 +11787,22 @@ object MapManager { x = 5, y = 1, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "PlayersHouse_2F_EventScript_GameCube", - ), + script = "PlayersHouse_2F_EventScript_GameCube"), BgEventDef( x = 7, y = 1, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "PlayersHouse_2F_EventScript_Notebook", - ), + script = "PlayersHouse_2F_EventScript_Notebook"), BgEventDef( x = 3, y = 1, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "LittlerootTown_MaysHouse_2F_EventScript_WallClock", - ), + script = "LittlerootTown_MaysHouse_2F_EventScript_WallClock"), BgEventDef( x = 8, y = 1, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "LittlerootTown_MaysHouse_2F_EventScript_PC", - ), + script = "LittlerootTown_MaysHouse_2F_EventScript_PC"), ), ), // LittlerootTown_ProfessorBirchsLab (MAP_LITTLEROOT_TOWN_PROFESSOR_BIRCHS_LAB) @@ -13742,11 +11818,7 @@ object MapManager { unknownByte = 0, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -13761,8 +11833,7 @@ object MapManager { targetBankId = 50, targetMapId = 9, targetX = 7, - targetY = 16, - ), + targetY = 16), WarpTile( x = 7, y = 12, @@ -13770,8 +11841,7 @@ object MapManager { targetBankId = 50, targetMapId = 9, targetX = 7, - targetY = 16, - ), + targetY = 16), ), npcs = listOf( @@ -13786,100 +11856,85 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "LittlerootTown_ProfessorBirchsLab_EventScript_Aide", - )), + script = "LittlerootTown_ProfessorBirchsLab_EventScript_Aide"), + ), bgEvents = listOf( BgEventDef( x = 10, y = 7, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "LittlerootTown_ProfessorBirchsLab_EventScript_Machine", - ), + script = "LittlerootTown_ProfessorBirchsLab_EventScript_Machine"), BgEventDef( x = 11, y = 7, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "LittlerootTown_ProfessorBirchsLab_EventScript_Machine", - ), + script = "LittlerootTown_ProfessorBirchsLab_EventScript_Machine"), BgEventDef( x = 7, y = 1, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "LittlerootTown_ProfessorBirchsLab_EventScript_Book", - ), + script = "LittlerootTown_ProfessorBirchsLab_EventScript_Book"), BgEventDef( x = 8, y = 1, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "LittlerootTown_ProfessorBirchsLab_EventScript_Book", - ), + script = "LittlerootTown_ProfessorBirchsLab_EventScript_Book"), BgEventDef( x = 1, y = 1, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "LittlerootTown_ProfessorBirchsLab_EventScript_Bookshelf", - ), + script = "LittlerootTown_ProfessorBirchsLab_EventScript_Bookshelf"), BgEventDef( x = 0, y = 7, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "LittlerootTown_ProfessorBirchsLab_EventScript_Bookshelf", - ), + script = "LittlerootTown_ProfessorBirchsLab_EventScript_Bookshelf"), BgEventDef( x = 1, y = 7, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "LittlerootTown_ProfessorBirchsLab_EventScript_Bookshelf", - ), + script = "LittlerootTown_ProfessorBirchsLab_EventScript_Bookshelf"), BgEventDef( x = 2, y = 7, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "LittlerootTown_ProfessorBirchsLab_EventScript_Bookshelf", - ), + script = "LittlerootTown_ProfessorBirchsLab_EventScript_Bookshelf"), BgEventDef( x = 3, y = 7, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "LittlerootTown_ProfessorBirchsLab_EventScript_Bookshelf", - ), + script = "LittlerootTown_ProfessorBirchsLab_EventScript_Bookshelf"), BgEventDef( x = 4, y = 1, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "LittlerootTown_ProfessorBirchsLab_EventScript_PC", - ), + script = "LittlerootTown_ProfessorBirchsLab_EventScript_PC"), BgEventDef( x = 3, y = 1, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "LittlerootTown_ProfessorBirchsLab_EventScript_PC", - ), + script = "LittlerootTown_ProfessorBirchsLab_EventScript_PC"), BgEventDef( x = 1, y = 10, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "LittlerootTown_ProfessorBirchsLab_EventScript_PC", - ), + script = "LittlerootTown_ProfessorBirchsLab_EventScript_PC"), BgEventDef( x = 1, y = 9, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "LittlerootTown_ProfessorBirchsLab_EventScript_PC", - ), + script = "LittlerootTown_ProfessorBirchsLab_EventScript_PC"), BgEventDef( x = 11, y = 10, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "LittlerootTown_ProfessorBirchsLab_EventScript_PC", - ), + script = "LittlerootTown_ProfessorBirchsLab_EventScript_PC"), BgEventDef( x = 11, y = 9, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "LittlerootTown_ProfessorBirchsLab_EventScript_PC", - ), + script = "LittlerootTown_ProfessorBirchsLab_EventScript_PC"), ), ), // OldaleTown_House1 (MAP_OLDALE_TOWN_HOUSE1) @@ -13889,17 +11944,13 @@ object MapManager { mapId = 0, width = 10, height = 9, - paletteIdx1 = 98, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 147, + unknownShort = 363, + unknownByte = 1, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -13914,8 +11965,7 @@ object MapManager { targetBankId = 50, targetMapId = 10, targetX = 5, - targetY = 7, - ), + targetY = 7), WarpTile( x = 4, y = 8, @@ -13923,8 +11973,7 @@ object MapManager { targetBankId = 50, targetMapId = 10, targetX = 5, - targetY = 7, - ), + targetY = 7), ), npcs = listOf( @@ -13939,8 +11988,8 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "OldaleTown_House1_EventScript_Woman", - )), + script = "OldaleTown_House1_EventScript_Woman"), + ), bgEvents = emptyList(), ), // OldaleTown_House2 (MAP_OLDALE_TOWN_HOUSE2) @@ -13950,17 +11999,13 @@ object MapManager { mapId = 1, width = 11, height = 8, - paletteIdx1 = 98, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 147, + unknownShort = 363, + unknownByte = 1, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -13975,8 +12020,7 @@ object MapManager { targetBankId = 50, targetMapId = 10, targetX = 15, - targetY = 16, - ), + targetY = 16), WarpTile( x = 4, y = 7, @@ -13984,8 +12028,7 @@ object MapManager { targetBankId = 50, targetMapId = 10, targetX = 15, - targetY = 16, - ), + targetY = 16), ), npcs = listOf( @@ -14000,8 +12043,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "OldaleTown_House2_EventScript_Woman", - ), + script = "OldaleTown_House2_EventScript_Woman"), NpcDef( entityIdx = 1, graphicsId = 38, @@ -14013,8 +12055,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 2, - script = "OldaleTown_House2_EventScript_Man", - ), + script = "OldaleTown_House2_EventScript_Man"), ), bgEvents = emptyList(), ), @@ -14025,17 +12066,13 @@ object MapManager { mapId = 2, width = 14, height = 9, - paletteIdx1 = 87, - paletteIdx2 = 121, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 118, + unknownShort = 400, + unknownByte = 1, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -14050,8 +12087,7 @@ object MapManager { targetBankId = 50, targetMapId = 10, targetX = 6, - targetY = 16, - ), + targetY = 16), WarpTile( x = 6, y = 8, @@ -14059,8 +12095,7 @@ object MapManager { targetBankId = 50, targetMapId = 10, targetX = 6, - targetY = 16, - ), + targetY = 16), WarpTile( x = 1, y = 6, @@ -14068,8 +12103,7 @@ object MapManager { targetBankId = 52, targetMapId = 3, targetX = 1, - targetY = 6, - ), + targetY = 6), ), npcs = listOf( @@ -14083,9 +12117,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "OldaleTown_PokemonCenter_1F_EventScript_Nurse", - ), + facing = 0, + script = "OldaleTown_PokemonCenter_1F_EventScript_Nurse"), NpcDef( entityIdx = 1, graphicsId = 48, @@ -14096,9 +12129,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "OldaleTown_PokemonCenter_1F_EventScript_Gentleman", - ), + facing = 0, + script = "OldaleTown_PokemonCenter_1F_EventScript_Gentleman"), NpcDef( entityIdx = 2, graphicsId = 7, @@ -14110,8 +12142,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "OldaleTown_PokemonCenter_1F_EventScript_Boy", - ), + script = "OldaleTown_PokemonCenter_1F_EventScript_Boy"), NpcDef( entityIdx = 3, graphicsId = 14, @@ -14123,8 +12154,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 3, - script = "OldaleTown_PokemonCenter_1F_EventScript_Girl", - ), + script = "OldaleTown_PokemonCenter_1F_EventScript_Girl"), ), bgEvents = emptyList(), ), @@ -14135,17 +12165,13 @@ object MapManager { mapId = 3, width = 14, height = 10, - paletteIdx1 = 87, - paletteIdx2 = 121, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 118, + unknownShort = 400, + unknownByte = 1, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -14160,8 +12186,7 @@ object MapManager { targetBankId = 52, targetMapId = 2, targetX = 1, - targetY = 6, - ), + targetY = 6), WarpTile( x = 5, y = 1, @@ -14169,8 +12194,7 @@ object MapManager { targetBankId = 75, targetMapId = 60, targetX = 7, - targetY = 11, - ), + targetY = 11), WarpTile( x = 9, y = 1, @@ -14178,8 +12202,7 @@ object MapManager { targetBankId = 75, targetMapId = 25, targetX = 5, - targetY = 8, - ), + targetY = 8), ), npcs = listOf( @@ -14193,9 +12216,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "Common_EventScript_UnionRoomAttendant", - ), + facing = 0, + script = "Common_EventScript_UnionRoomAttendant"), NpcDef( entityIdx = 1, graphicsId = 0, @@ -14206,9 +12228,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "Common_EventScript_WirelessClubAttendant", - ), + facing = 0, + script = "Common_EventScript_WirelessClubAttendant"), NpcDef( entityIdx = 2, graphicsId = 0, @@ -14219,9 +12240,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "Common_EventScript_DirectCornerAttendant", - ), + facing = 0, + script = "Common_EventScript_DirectCornerAttendant"), ), bgEvents = emptyList(), ), @@ -14232,17 +12252,13 @@ object MapManager { mapId = 4, width = 11, height = 8, - paletteIdx1 = 95, - paletteIdx2 = 87, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 117, + unknownShort = 404, + unknownByte = 1, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -14257,8 +12273,7 @@ object MapManager { targetBankId = 50, targetMapId = 10, targetX = 14, - targetY = 6, - ), + targetY = 6), WarpTile( x = 4, y = 7, @@ -14266,8 +12281,7 @@ object MapManager { targetBankId = 50, targetMapId = 10, targetX = 14, - targetY = 6, - ), + targetY = 6), ), npcs = listOf( @@ -14282,8 +12296,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "OldaleTown_Mart_EventScript_Clerk", - ), + script = "OldaleTown_Mart_EventScript_Clerk"), NpcDef( entityIdx = 1, graphicsId = 34, @@ -14295,8 +12308,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "OldaleTown_Mart_EventScript_Woman", - ), + script = "OldaleTown_Mart_EventScript_Woman"), NpcDef( entityIdx = 2, graphicsId = 7, @@ -14308,8 +12320,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "OldaleTown_Mart_EventScript_Boy", - ), + script = "OldaleTown_Mart_EventScript_Boy"), ), bgEvents = emptyList(), ), @@ -14320,17 +12331,13 @@ object MapManager { mapId = 0, width = 10, height = 8, - paletteIdx1 = 98, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 147, + unknownShort = 427, + unknownByte = 2, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -14345,8 +12352,7 @@ object MapManager { targetBankId = 50, targetMapId = 11, targetX = 17, - targetY = 14, - ), + targetY = 14), WarpTile( x = 4, y = 7, @@ -14354,8 +12360,7 @@ object MapManager { targetBankId = 50, targetMapId = 11, targetX = 17, - targetY = 14, - ), + targetY = 14), ), npcs = listOf( @@ -14370,8 +12375,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 2, - script = "DewfordTown_House1_EventScript_Woman", - ), + script = "DewfordTown_House1_EventScript_Woman"), NpcDef( entityIdx = 1, graphicsId = 19, @@ -14383,8 +12387,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "DewfordTown_House1_EventScript_Man", - ), + script = "DewfordTown_House1_EventScript_Man"), NpcDef( entityIdx = 2, graphicsId = 0, @@ -14395,9 +12398,8 @@ object MapManager { movementRangeX = 3, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "DewfordTown_House1_EventScript_Zigzagoon", - ), + facing = 0, + script = "DewfordTown_House1_EventScript_Zigzagoon"), ), bgEvents = emptyList(), ), @@ -14408,17 +12410,13 @@ object MapManager { mapId = 1, width = 14, height = 9, - paletteIdx1 = 87, - paletteIdx2 = 121, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 118, + unknownShort = 400, + unknownByte = 2, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -14433,8 +12431,7 @@ object MapManager { targetBankId = 50, targetMapId = 11, targetX = 2, - targetY = 10, - ), + targetY = 10), WarpTile( x = 6, y = 8, @@ -14442,8 +12439,7 @@ object MapManager { targetBankId = 50, targetMapId = 11, targetX = 2, - targetY = 10, - ), + targetY = 10), WarpTile( x = 1, y = 6, @@ -14451,8 +12447,7 @@ object MapManager { targetBankId = 53, targetMapId = 2, targetX = 1, - targetY = 6, - ), + targetY = 6), ), npcs = listOf( @@ -14466,9 +12461,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "DewfordTown_PokemonCenter_1F_EventScript_Nurse", - ), + facing = 0, + script = "DewfordTown_PokemonCenter_1F_EventScript_Nurse"), NpcDef( entityIdx = 1, graphicsId = 18, @@ -14480,8 +12474,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "DewfordTown_PokemonCenter_1F_EventScript_PokefanF", - ), + script = "DewfordTown_PokemonCenter_1F_EventScript_PokefanF"), NpcDef( entityIdx = 2, graphicsId = 33, @@ -14493,8 +12486,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "DewfordTown_PokemonCenter_1F_EventScript_Man", - ), + script = "DewfordTown_PokemonCenter_1F_EventScript_Man"), ), bgEvents = emptyList(), ), @@ -14505,17 +12497,13 @@ object MapManager { mapId = 2, width = 14, height = 10, - paletteIdx1 = 87, - paletteIdx2 = 121, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 118, + unknownShort = 400, + unknownByte = 2, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -14530,8 +12518,7 @@ object MapManager { targetBankId = 53, targetMapId = 1, targetX = 1, - targetY = 6, - ), + targetY = 6), WarpTile( x = 5, y = 1, @@ -14539,8 +12526,7 @@ object MapManager { targetBankId = 75, targetMapId = 60, targetX = 7, - targetY = 11, - ), + targetY = 11), WarpTile( x = 9, y = 1, @@ -14548,8 +12534,7 @@ object MapManager { targetBankId = 75, targetMapId = 25, targetX = 5, - targetY = 8, - ), + targetY = 8), ), npcs = listOf( @@ -14563,9 +12548,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "Common_EventScript_UnionRoomAttendant", - ), + facing = 0, + script = "Common_EventScript_UnionRoomAttendant"), NpcDef( entityIdx = 1, graphicsId = 0, @@ -14576,9 +12560,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "Common_EventScript_WirelessClubAttendant", - ), + facing = 0, + script = "Common_EventScript_WirelessClubAttendant"), NpcDef( entityIdx = 2, graphicsId = 0, @@ -14589,9 +12572,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "Common_EventScript_DirectCornerAttendant", - ), + facing = 0, + script = "Common_EventScript_DirectCornerAttendant"), ), bgEvents = emptyList(), ), @@ -14602,17 +12584,13 @@ object MapManager { mapId = 3, width = 18, height = 28, - paletteIdx1 = 90, - paletteIdx2 = 124, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 150, + unknownShort = 364, + unknownByte = 2, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -14627,8 +12605,7 @@ object MapManager { targetBankId = 50, targetMapId = 11, targetX = 8, - targetY = 17, - ), + targetY = 17), WarpTile( x = 6, y = 27, @@ -14636,8 +12613,7 @@ object MapManager { targetBankId = 50, targetMapId = 11, targetX = 8, - targetY = 17, - ), + targetY = 17), ), npcs = listOf( @@ -14651,9 +12627,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "DewfordTown_Gym_EventScript_Brawly", - ), + facing = 0, + script = "DewfordTown_Gym_EventScript_Brawly"), NpcDef( entityIdx = 1, graphicsId = 44, @@ -14664,9 +12639,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 1, - facing = 0, - script = "DewfordTown_Gym_EventScript_Takao", - ), + facing = 1, + script = "DewfordTown_Gym_EventScript_Takao"), NpcDef( entityIdx = 2, graphicsId = 14, @@ -14677,9 +12651,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 1, - facing = 1, - script = "DewfordTown_Gym_EventScript_Jocelyn", - ), + facing = 0, + script = "DewfordTown_Gym_EventScript_Jocelyn"), NpcDef( entityIdx = 3, graphicsId = 14, @@ -14690,9 +12663,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 1, - facing = 0, - script = "DewfordTown_Gym_EventScript_Laura", - ), + facing = 1, + script = "DewfordTown_Gym_EventScript_Laura"), NpcDef( entityIdx = 4, graphicsId = 23, @@ -14703,9 +12675,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "DewfordTown_Gym_EventScript_GymGuide", - ), + facing = 0, + script = "DewfordTown_Gym_EventScript_GymGuide"), NpcDef( entityIdx = 5, graphicsId = 44, @@ -14717,8 +12688,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 3, - script = "DewfordTown_Gym_EventScript_Cristian", - ), + script = "DewfordTown_Gym_EventScript_Cristian"), NpcDef( entityIdx = 6, graphicsId = 14, @@ -14729,9 +12699,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 1, - facing = 1, - script = "DewfordTown_Gym_EventScript_Lilith", - ), + facing = 0, + script = "DewfordTown_Gym_EventScript_Lilith"), NpcDef( entityIdx = 7, graphicsId = 49, @@ -14743,8 +12712,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 3, - script = "DewfordTown_Gym_EventScript_Brenden", - ), + script = "DewfordTown_Gym_EventScript_Brenden"), ), bgEvents = listOf( @@ -14752,26 +12720,22 @@ object MapManager { x = 4, y = 23, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "DewfordTown_Gym_EventScript_LeftGymStatue", - ), + script = "DewfordTown_Gym_EventScript_LeftGymStatue"), BgEventDef( x = 7, y = 23, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "DewfordTown_Gym_EventScript_RightGymStatue", - ), + script = "DewfordTown_Gym_EventScript_RightGymStatue"), BgEventDef( x = 4, y = 24, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "DewfordTown_Gym_EventScript_LeftGymStatue", - ), + script = "DewfordTown_Gym_EventScript_LeftGymStatue"), BgEventDef( x = 7, y = 24, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "DewfordTown_Gym_EventScript_RightGymStatue", - ), + script = "DewfordTown_Gym_EventScript_RightGymStatue"), ), ), // DewfordTown_Hall (MAP_DEWFORD_TOWN_HALL) @@ -14781,17 +12745,13 @@ object MapManager { mapId = 4, width = 17, height = 9, - paletteIdx1 = 98, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 147, + unknownShort = 427, + unknownByte = 2, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -14806,8 +12766,7 @@ object MapManager { targetBankId = 50, targetMapId = 11, targetX = 3, - targetY = 3, - ), + targetY = 3), WarpTile( x = 6, y = 8, @@ -14815,8 +12774,7 @@ object MapManager { targetBankId = 50, targetMapId = 11, targetX = 3, - targetY = 3, - ), + targetY = 3), ), npcs = listOf( @@ -14830,9 +12788,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 0, - script = "DewfordTown_Hall_EventScript_Girl", - ), + facing = 1, + script = "DewfordTown_Hall_EventScript_Girl"), NpcDef( entityIdx = 1, graphicsId = 20, @@ -14844,8 +12801,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "DewfordTown_Hall_EventScript_Woman", - ), + script = "DewfordTown_Hall_EventScript_Woman"), NpcDef( entityIdx = 2, graphicsId = 19, @@ -14857,8 +12813,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 2, - script = "DewfordTown_Hall_EventScript_Man", - ), + script = "DewfordTown_Hall_EventScript_Man"), NpcDef( entityIdx = 3, graphicsId = 21, @@ -14869,9 +12824,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 0, - script = "DewfordTown_Hall_EventScript_ExpertM", - ), + facing = 1, + script = "DewfordTown_Hall_EventScript_ExpertM"), NpcDef( entityIdx = 4, graphicsId = 6, @@ -14882,9 +12836,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 0, - script = "DewfordTown_Hall_EventScript_Twin", - ), + facing = 1, + script = "DewfordTown_Hall_EventScript_Twin"), NpcDef( entityIdx = 5, graphicsId = 11, @@ -14896,8 +12849,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "DewfordTown_Hall_EventScript_LittleBoy", - ), + script = "DewfordTown_Hall_EventScript_LittleBoy"), NpcDef( entityIdx = 6, graphicsId = 38, @@ -14909,8 +12861,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "DewfordTown_Hall_EventScript_SchoolKidM", - ), + script = "DewfordTown_Hall_EventScript_SchoolKidM"), NpcDef( entityIdx = 7, graphicsId = 37, @@ -14922,8 +12873,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 2, - script = "DewfordTown_Hall_EventScript_PsychicM", - ), + script = "DewfordTown_Hall_EventScript_PsychicM"), ), bgEvents = listOf( @@ -14931,14 +12881,12 @@ object MapManager { x = 0, y = 1, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "DewfordTown_Hall_EventScript_Bookshelf", - ), + script = "DewfordTown_Hall_EventScript_Bookshelf"), BgEventDef( x = 7, y = 1, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "DewfordTown_Hall_EventScript_Painting", - ), + script = "DewfordTown_Hall_EventScript_Painting"), ), ), // DewfordTown_House2 (MAP_DEWFORD_TOWN_HOUSE2) @@ -14948,17 +12896,13 @@ object MapManager { mapId = 5, width = 10, height = 9, - paletteIdx1 = 98, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 147, + unknownShort = 427, + unknownByte = 2, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -14973,8 +12917,7 @@ object MapManager { targetBankId = 50, targetMapId = 11, targetX = 8, - targetY = 8, - ), + targetY = 8), WarpTile( x = 4, y = 8, @@ -14982,8 +12925,7 @@ object MapManager { targetBankId = 50, targetMapId = 11, targetX = 8, - targetY = 8, - ), + targetY = 8), ), npcs = listOf( @@ -14998,8 +12940,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "DewfordTown_House2_EventScript_Man", - ), + script = "DewfordTown_House2_EventScript_Man"), NpcDef( entityIdx = 1, graphicsId = 9, @@ -15011,8 +12952,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "DewfordTown_House2_EventScript_Boy", - ), + script = "DewfordTown_House2_EventScript_Boy"), ), bgEvents = emptyList(), ), @@ -15023,17 +12963,13 @@ object MapManager { mapId = 0, width = 11, height = 8, - paletteIdx1 = 95, - paletteIdx2 = 87, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 117, + unknownShort = 363, + unknownByte = 3, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -15048,8 +12984,7 @@ object MapManager { targetBankId = 50, targetMapId = 12, targetX = 12, - targetY = 15, - ), + targetY = 15), WarpTile( x = 4, y = 7, @@ -15057,8 +12992,7 @@ object MapManager { targetBankId = 50, targetMapId = 12, targetX = 12, - targetY = 15, - ), + targetY = 15), ), npcs = listOf( @@ -15072,9 +13006,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "LavaridgeTown_HerbShop_EventScript_Clerk", - ), + facing = 0, + script = "LavaridgeTown_HerbShop_EventScript_Clerk"), NpcDef( entityIdx = 1, graphicsId = 29, @@ -15086,8 +13019,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "LavaridgeTown_HerbShop_EventScript_OldMan", - ), + script = "LavaridgeTown_HerbShop_EventScript_OldMan"), NpcDef( entityIdx = 2, graphicsId = 21, @@ -15099,8 +13031,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "LavaridgeTown_HerbShop_EventScript_ExpertM", - ), + script = "LavaridgeTown_HerbShop_EventScript_ExpertM"), ), bgEvents = emptyList(), ), @@ -15111,17 +13042,13 @@ object MapManager { mapId = 1, width = 17, height = 19, - paletteIdx1 = 92, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 152, + unknownShort = 364, + unknownByte = 3, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.STEADY_MIST, mapType = MapType.INSIDE, @@ -15136,8 +13063,7 @@ object MapManager { targetBankId = 50, targetMapId = 12, targetX = 5, - targetY = 15, - ), + targetY = 15), WarpTile( x = 14, y = 18, @@ -15145,8 +13071,7 @@ object MapManager { targetBankId = 50, targetMapId = 12, targetX = 5, - targetY = 15, - ), + targetY = 15), WarpTile( x = 10, y = 18, @@ -15154,8 +13079,7 @@ object MapManager { targetBankId = 54, targetMapId = 2, targetX = 10, - targetY = 18, - ), + targetY = 18), WarpTile( x = 8, y = 9, @@ -15163,8 +13087,7 @@ object MapManager { targetBankId = 54, targetMapId = 2, targetX = 8, - targetY = 9, - ), + targetY = 9), WarpTile( x = 4, y = 18, @@ -15172,8 +13095,7 @@ object MapManager { targetBankId = 54, targetMapId = 2, targetX = 4, - targetY = 18, - ), + targetY = 18), WarpTile( x = 5, y = 14, @@ -15181,8 +13103,7 @@ object MapManager { targetBankId = 54, targetMapId = 2, targetX = 5, - targetY = 14, - ), + targetY = 14), WarpTile( x = 0, y = 17, @@ -15190,8 +13111,7 @@ object MapManager { targetBankId = 54, targetMapId = 2, targetX = 0, - targetY = 17, - ), + targetY = 17), WarpTile( x = 5, y = 9, @@ -15199,8 +13119,7 @@ object MapManager { targetBankId = 54, targetMapId = 2, targetX = 5, - targetY = 9, - ), + targetY = 9), WarpTile( x = 2, y = 15, @@ -15208,8 +13127,7 @@ object MapManager { targetBankId = 54, targetMapId = 2, targetX = 2, - targetY = 15, - ), + targetY = 15), WarpTile( x = 3, y = 14, @@ -15217,8 +13135,7 @@ object MapManager { targetBankId = 54, targetMapId = 2, targetX = 3, - targetY = 14, - ), + targetY = 14), WarpTile( x = 1, y = 14, @@ -15226,8 +13143,7 @@ object MapManager { targetBankId = 54, targetMapId = 2, targetX = 1, - targetY = 14, - ), + targetY = 14), WarpTile( x = 0, y = 10, @@ -15235,8 +13151,7 @@ object MapManager { targetBankId = 54, targetMapId = 2, targetX = 0, - targetY = 10, - ), + targetY = 10), WarpTile( x = 3, y = 10, @@ -15244,8 +13159,7 @@ object MapManager { targetBankId = 54, targetMapId = 2, targetX = 3, - targetY = 10, - ), + targetY = 10), WarpTile( x = 0, y = 6, @@ -15253,8 +13167,7 @@ object MapManager { targetBankId = 54, targetMapId = 2, targetX = 0, - targetY = 6, - ), + targetY = 6), WarpTile( x = 3, y = 6, @@ -15262,8 +13175,7 @@ object MapManager { targetBankId = 54, targetMapId = 2, targetX = 3, - targetY = 6, - ), + targetY = 6), WarpTile( x = 5, y = 6, @@ -15271,8 +13183,7 @@ object MapManager { targetBankId = 54, targetMapId = 2, targetX = 5, - targetY = 6, - ), + targetY = 6), WarpTile( x = 2, y = 3, @@ -15280,8 +13191,7 @@ object MapManager { targetBankId = 54, targetMapId = 2, targetX = 2, - targetY = 3, - ), + targetY = 3), WarpTile( x = 5, y = 2, @@ -15289,8 +13199,7 @@ object MapManager { targetBankId = 54, targetMapId = 2, targetX = 5, - targetY = 2, - ), + targetY = 2), WarpTile( x = 7, y = 2, @@ -15298,8 +13207,7 @@ object MapManager { targetBankId = 54, targetMapId = 2, targetX = 7, - targetY = 2, - ), + targetY = 2), WarpTile( x = 8, y = 6, @@ -15307,8 +13215,7 @@ object MapManager { targetBankId = 54, targetMapId = 2, targetX = 8, - targetY = 6, - ), + targetY = 6), WarpTile( x = 10, y = 6, @@ -15316,8 +13223,7 @@ object MapManager { targetBankId = 54, targetMapId = 2, targetX = 10, - targetY = 6, - ), + targetY = 6), WarpTile( x = 4, y = 16, @@ -15325,8 +13231,7 @@ object MapManager { targetBankId = 54, targetMapId = 2, targetX = 4, - targetY = 16, - ), + targetY = 16), WarpTile( x = 12, y = 3, @@ -15334,8 +13239,7 @@ object MapManager { targetBankId = 54, targetMapId = 2, targetX = 12, - targetY = 3, - ), + targetY = 3), WarpTile( x = 14, y = 6, @@ -15343,8 +13247,7 @@ object MapManager { targetBankId = 54, targetMapId = 2, targetX = 14, - targetY = 6, - ), + targetY = 6), WarpTile( x = 13, y = 17, @@ -15352,8 +13255,7 @@ object MapManager { targetBankId = 54, targetMapId = 2, targetX = 13, - targetY = 17, - ), + targetY = 17), WarpTile( x = 12, y = 12, @@ -15361,8 +13263,7 @@ object MapManager { targetBankId = 54, targetMapId = 2, targetX = 12, - targetY = 12, - ), + targetY = 12), ), npcs = listOf( @@ -15376,9 +13277,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "LavaridgeTown_Gym_1F_EventScript_Flannery", - ), + facing = 0, + script = "LavaridgeTown_Gym_1F_EventScript_Flannery"), NpcDef( entityIdx = 1, graphicsId = 66, @@ -15389,9 +13289,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 1, - facing = 1, - script = "LavaridgeTown_Gym_1F_EventScript_Cole", - ), + facing = 0, + script = "LavaridgeTown_Gym_1F_EventScript_Cole"), NpcDef( entityIdx = 2, graphicsId = 33, @@ -15402,9 +13301,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 1, - facing = 1, - script = "LavaridgeTown_Gym_1F_EventScript_Gerald", - ), + facing = 0, + script = "LavaridgeTown_Gym_1F_EventScript_Gerald"), NpcDef( entityIdx = 3, graphicsId = 66, @@ -15415,9 +13313,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 1, - facing = 1, - script = "LavaridgeTown_Gym_1F_EventScript_Axle", - ), + facing = 0, + script = "LavaridgeTown_Gym_1F_EventScript_Axle"), NpcDef( entityIdx = 4, graphicsId = 14, @@ -15428,9 +13325,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 1, - facing = 1, - script = "LavaridgeTown_Gym_1F_EventScript_Danielle", - ), + facing = 0, + script = "LavaridgeTown_Gym_1F_EventScript_Danielle"), NpcDef( entityIdx = 5, graphicsId = 23, @@ -15442,8 +13338,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "LavaridgeTown_Gym_1F_EventScript_GymGuide", - ), + script = "LavaridgeTown_Gym_1F_EventScript_GymGuide"), ), bgEvents = listOf( @@ -15451,14 +13346,12 @@ object MapManager { x = 10, y = 15, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "LavaridgeTown_Gym_1F_EventScript_LeftGymStatue", - ), + script = "LavaridgeTown_Gym_1F_EventScript_LeftGymStatue"), BgEventDef( x = 16, y = 15, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "LavaridgeTown_Gym_1F_EventScript_RightGymStatue", - ), + script = "LavaridgeTown_Gym_1F_EventScript_RightGymStatue"), ), ), // LavaridgeTown_Gym_B1F (MAP_LAVARIDGE_TOWN_GYM_B1F) @@ -15468,17 +13361,13 @@ object MapManager { mapId = 2, width = 17, height = 19, - paletteIdx1 = 92, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 152, + unknownShort = 364, + unknownByte = 3, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.STEADY_MIST, mapType = MapType.INSIDE, @@ -15493,8 +13382,7 @@ object MapManager { targetBankId = 54, targetMapId = 1, targetX = 10, - targetY = 18, - ), + targetY = 18), WarpTile( x = 0, y = 17, @@ -15502,8 +13390,7 @@ object MapManager { targetBankId = 54, targetMapId = 1, targetX = 0, - targetY = 17, - ), + targetY = 17), WarpTile( x = 8, y = 9, @@ -15511,8 +13398,7 @@ object MapManager { targetBankId = 54, targetMapId = 1, targetX = 8, - targetY = 9, - ), + targetY = 9), WarpTile( x = 5, y = 14, @@ -15520,8 +13406,7 @@ object MapManager { targetBankId = 54, targetMapId = 1, targetX = 5, - targetY = 14, - ), + targetY = 14), WarpTile( x = 4, y = 18, @@ -15529,8 +13414,7 @@ object MapManager { targetBankId = 54, targetMapId = 1, targetX = 4, - targetY = 18, - ), + targetY = 18), WarpTile( x = 5, y = 9, @@ -15538,8 +13422,7 @@ object MapManager { targetBankId = 54, targetMapId = 1, targetX = 5, - targetY = 9, - ), + targetY = 9), WarpTile( x = 2, y = 15, @@ -15547,8 +13430,7 @@ object MapManager { targetBankId = 54, targetMapId = 1, targetX = 2, - targetY = 15, - ), + targetY = 15), WarpTile( x = 3, y = 14, @@ -15556,8 +13438,7 @@ object MapManager { targetBankId = 54, targetMapId = 1, targetX = 3, - targetY = 14, - ), + targetY = 14), WarpTile( x = 1, y = 14, @@ -15565,8 +13446,7 @@ object MapManager { targetBankId = 54, targetMapId = 1, targetX = 1, - targetY = 14, - ), + targetY = 14), WarpTile( x = 0, y = 10, @@ -15574,8 +13454,7 @@ object MapManager { targetBankId = 54, targetMapId = 1, targetX = 0, - targetY = 10, - ), + targetY = 10), WarpTile( x = 3, y = 10, @@ -15583,8 +13462,7 @@ object MapManager { targetBankId = 54, targetMapId = 1, targetX = 3, - targetY = 10, - ), + targetY = 10), WarpTile( x = 0, y = 6, @@ -15592,8 +13470,7 @@ object MapManager { targetBankId = 54, targetMapId = 1, targetX = 0, - targetY = 6, - ), + targetY = 6), WarpTile( x = 3, y = 6, @@ -15601,8 +13478,7 @@ object MapManager { targetBankId = 54, targetMapId = 1, targetX = 3, - targetY = 6, - ), + targetY = 6), WarpTile( x = 5, y = 6, @@ -15610,8 +13486,7 @@ object MapManager { targetBankId = 54, targetMapId = 1, targetX = 5, - targetY = 6, - ), + targetY = 6), WarpTile( x = 2, y = 3, @@ -15619,8 +13494,7 @@ object MapManager { targetBankId = 54, targetMapId = 1, targetX = 2, - targetY = 3, - ), + targetY = 3), WarpTile( x = 5, y = 2, @@ -15628,8 +13502,7 @@ object MapManager { targetBankId = 54, targetMapId = 1, targetX = 5, - targetY = 2, - ), + targetY = 2), WarpTile( x = 7, y = 2, @@ -15637,8 +13510,7 @@ object MapManager { targetBankId = 54, targetMapId = 1, targetX = 7, - targetY = 2, - ), + targetY = 2), WarpTile( x = 8, y = 6, @@ -15646,8 +13518,7 @@ object MapManager { targetBankId = 54, targetMapId = 1, targetX = 8, - targetY = 6, - ), + targetY = 6), WarpTile( x = 10, y = 6, @@ -15655,8 +13526,7 @@ object MapManager { targetBankId = 54, targetMapId = 1, targetX = 10, - targetY = 6, - ), + targetY = 6), WarpTile( x = 12, y = 3, @@ -15664,8 +13534,7 @@ object MapManager { targetBankId = 54, targetMapId = 1, targetX = 12, - targetY = 3, - ), + targetY = 3), WarpTile( x = 4, y = 16, @@ -15673,8 +13542,7 @@ object MapManager { targetBankId = 54, targetMapId = 1, targetX = 4, - targetY = 16, - ), + targetY = 16), WarpTile( x = 14, y = 6, @@ -15682,8 +13550,7 @@ object MapManager { targetBankId = 54, targetMapId = 1, targetX = 14, - targetY = 6, - ), + targetY = 6), WarpTile( x = 13, y = 17, @@ -15691,8 +13558,7 @@ object MapManager { targetBankId = 54, targetMapId = 1, targetX = 13, - targetY = 17, - ), + targetY = 17), WarpTile( x = 12, y = 12, @@ -15700,8 +13566,7 @@ object MapManager { targetBankId = 54, targetMapId = 1, targetX = 12, - targetY = 12, - ), + targetY = 12), ), npcs = listOf( @@ -15715,9 +13580,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 1, - facing = 1, - script = "LavaridgeTown_Gym_B1F_EventScript_Jace", - ), + facing = 0, + script = "LavaridgeTown_Gym_B1F_EventScript_Jace"), NpcDef( entityIdx = 1, graphicsId = 66, @@ -15728,9 +13592,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 1, - facing = 1, - script = "LavaridgeTown_Gym_B1F_EventScript_Keegan", - ), + facing = 0, + script = "LavaridgeTown_Gym_B1F_EventScript_Keegan"), NpcDef( entityIdx = 2, graphicsId = 66, @@ -15741,9 +13604,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 1, - facing = 1, - script = "LavaridgeTown_Gym_B1F_EventScript_Jeff", - ), + facing = 0, + script = "LavaridgeTown_Gym_B1F_EventScript_Jeff"), NpcDef( entityIdx = 3, graphicsId = 55, @@ -15754,9 +13616,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 1, - facing = 1, - script = "LavaridgeTown_Gym_B1F_EventScript_Eli", - ), + facing = 0, + script = "LavaridgeTown_Gym_B1F_EventScript_Eli"), ), bgEvents = emptyList(), ), @@ -15767,17 +13628,13 @@ object MapManager { mapId = 3, width = 10, height = 8, - paletteIdx1 = 98, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 147, + unknownShort = 363, + unknownByte = 3, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -15792,8 +13649,7 @@ object MapManager { targetBankId = 50, targetMapId = 12, targetX = 16, - targetY = 15, - ), + targetY = 15), WarpTile( x = 4, y = 7, @@ -15801,8 +13657,7 @@ object MapManager { targetBankId = 50, targetMapId = 12, targetX = 16, - targetY = 15, - ), + targetY = 15), ), npcs = listOf( @@ -15817,8 +13672,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "LavaridgeTown_House_EventScript_OldMan", - ), + script = "LavaridgeTown_House_EventScript_OldMan"), NpcDef( entityIdx = 1, graphicsId = 0, @@ -15830,8 +13684,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "LavaridgeTown_House_EventScript_Zigzagoon", - ), + script = "LavaridgeTown_House_EventScript_Zigzagoon"), NpcDef( entityIdx = 2, graphicsId = 5, @@ -15843,8 +13696,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "LavaridgeTown_House_EventScript_MimicTutor", - ), + script = "LavaridgeTown_House_EventScript_MimicTutor"), ), bgEvents = emptyList(), ), @@ -15855,17 +13707,13 @@ object MapManager { mapId = 4, width = 11, height = 8, - paletteIdx1 = 95, - paletteIdx2 = 87, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 117, + unknownShort = 404, + unknownByte = 3, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -15880,8 +13728,7 @@ object MapManager { targetBankId = 50, targetMapId = 12, targetX = 15, - targetY = 5, - ), + targetY = 5), WarpTile( x = 4, y = 7, @@ -15889,8 +13736,7 @@ object MapManager { targetBankId = 50, targetMapId = 12, targetX = 15, - targetY = 5, - ), + targetY = 5), ), npcs = listOf( @@ -15905,8 +13751,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "LavaridgeTown_Mart_EventScript_Clerk", - ), + script = "LavaridgeTown_Mart_EventScript_Clerk"), NpcDef( entityIdx = 1, graphicsId = 21, @@ -15917,9 +13762,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "LavaridgeTown_Mart_EventScript_ExpertM", - ), + facing = 0, + script = "LavaridgeTown_Mart_EventScript_ExpertM"), NpcDef( entityIdx = 2, graphicsId = 30, @@ -15931,8 +13775,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "LavaridgeTown_Mart_EventScript_OldWoman", - ), + script = "LavaridgeTown_Mart_EventScript_OldWoman"), ), bgEvents = emptyList(), ), @@ -15943,17 +13786,13 @@ object MapManager { mapId = 5, width = 14, height = 9, - paletteIdx1 = 87, - paletteIdx2 = 121, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 118, + unknownShort = 400, + unknownByte = 3, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -15968,8 +13807,7 @@ object MapManager { targetBankId = 50, targetMapId = 12, targetX = 9, - targetY = 6, - ), + targetY = 6), WarpTile( x = 6, y = 8, @@ -15977,8 +13815,7 @@ object MapManager { targetBankId = 50, targetMapId = 12, targetX = 9, - targetY = 6, - ), + targetY = 6), WarpTile( x = 1, y = 6, @@ -15986,8 +13823,7 @@ object MapManager { targetBankId = 54, targetMapId = 6, targetX = 1, - targetY = 6, - ), + targetY = 6), WarpTile( x = 2, y = 1, @@ -15995,8 +13831,7 @@ object MapManager { targetBankId = 50, targetMapId = 12, targetX = 9, - targetY = 2, - ), + targetY = 2), ), npcs = listOf( @@ -16010,9 +13845,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "LavaridgeTown_PokemonCenter_1F_EventScript_Nurse", - ), + facing = 0, + script = "LavaridgeTown_PokemonCenter_1F_EventScript_Nurse"), NpcDef( entityIdx = 1, graphicsId = 35, @@ -16023,9 +13857,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 0, - script = "LavaridgeTown_PokemonCenter_1F_EventScript_Youngster", - ), + facing = 1, + script = "LavaridgeTown_PokemonCenter_1F_EventScript_Youngster"), NpcDef( entityIdx = 2, graphicsId = 24, @@ -16037,8 +13870,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 2, - script = "LavaridgeTown_PokemonCenter_1F_EventScript_Woman", - ), + script = "LavaridgeTown_PokemonCenter_1F_EventScript_Woman"), NpcDef( entityIdx = 3, graphicsId = 48, @@ -16050,8 +13882,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "LavaridgeTown_PokemonCenter_1F_EventScript_Gentleman", - ), + script = "LavaridgeTown_PokemonCenter_1F_EventScript_Gentleman"), ), bgEvents = emptyList(), ), @@ -16062,17 +13893,13 @@ object MapManager { mapId = 6, width = 14, height = 10, - paletteIdx1 = 87, - paletteIdx2 = 121, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 118, + unknownShort = 400, + unknownByte = 3, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -16087,8 +13914,7 @@ object MapManager { targetBankId = 54, targetMapId = 5, targetX = 1, - targetY = 6, - ), + targetY = 6), WarpTile( x = 5, y = 1, @@ -16096,8 +13922,7 @@ object MapManager { targetBankId = 75, targetMapId = 60, targetX = 7, - targetY = 11, - ), + targetY = 11), WarpTile( x = 9, y = 1, @@ -16105,8 +13930,7 @@ object MapManager { targetBankId = 75, targetMapId = 25, targetX = 5, - targetY = 8, - ), + targetY = 8), ), npcs = listOf( @@ -16120,9 +13944,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "Common_EventScript_UnionRoomAttendant", - ), + facing = 0, + script = "Common_EventScript_UnionRoomAttendant"), NpcDef( entityIdx = 1, graphicsId = 0, @@ -16133,9 +13956,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "Common_EventScript_WirelessClubAttendant", - ), + facing = 0, + script = "Common_EventScript_WirelessClubAttendant"), NpcDef( entityIdx = 2, graphicsId = 0, @@ -16146,9 +13968,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "Common_EventScript_DirectCornerAttendant", - ), + facing = 0, + script = "Common_EventScript_DirectCornerAttendant"), ), bgEvents = emptyList(), ), @@ -16159,17 +13980,13 @@ object MapManager { mapId = 0, width = 11, height = 8, - paletteIdx1 = 95, - paletteIdx2 = 87, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 117, + unknownShort = 404, + unknownByte = 4, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -16184,8 +14001,7 @@ object MapManager { targetBankId = 50, targetMapId = 13, targetX = 15, - targetY = 15, - ), + targetY = 15), WarpTile( x = 4, y = 7, @@ -16193,8 +14009,7 @@ object MapManager { targetBankId = 50, targetMapId = 13, targetX = 15, - targetY = 15, - ), + targetY = 15), ), npcs = listOf( @@ -16209,8 +14024,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "FallarborTown_Mart_EventScript_Clerk", - ), + script = "FallarborTown_Mart_EventScript_Clerk"), NpcDef( entityIdx = 1, graphicsId = 20, @@ -16222,8 +14036,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "FallarborTown_Mart_EventScript_Woman", - ), + script = "FallarborTown_Mart_EventScript_Woman"), NpcDef( entityIdx = 2, graphicsId = 25, @@ -16234,9 +14047,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "FallarborTown_Mart_EventScript_PokefanM", - ), + facing = 0, + script = "FallarborTown_Mart_EventScript_PokefanM"), NpcDef( entityIdx = 3, graphicsId = 0, @@ -16248,8 +14060,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "FallarborTown_Mart_EventScript_Skitty", - ), + script = "FallarborTown_Mart_EventScript_Skitty"), NpcDef( entityIdx = 4, graphicsId = 10, @@ -16260,9 +14071,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 0, - script = "FallarborTown_Mart_EventScript_MetronomeTutor", - ), + facing = 1, + script = "FallarborTown_Mart_EventScript_MetronomeTutor"), ), bgEvents = emptyList(), ), @@ -16273,17 +14083,13 @@ object MapManager { mapId = 1, width = 13, height = 10, - paletteIdx1 = 132, - paletteIdx2 = 108, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 172, + unknownShort = 384, + unknownByte = 4, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -16298,8 +14104,7 @@ object MapManager { targetBankId = 50, targetMapId = 13, targetX = 8, - targetY = 7, - ), + targetY = 7), WarpTile( x = 7, y = 9, @@ -16307,8 +14112,7 @@ object MapManager { targetBankId = 50, targetMapId = 13, targetX = 8, - targetY = 7, - ), + targetY = 7), ), npcs = listOf( @@ -16322,9 +14126,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "FallarborTown_BattleTentLobby_EventScript_Attendant", - ), + facing = 0, + script = "FallarborTown_BattleTentLobby_EventScript_Attendant"), NpcDef( entityIdx = 1, graphicsId = 55, @@ -16336,8 +14139,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "FallarborTown_BattleTentLobby_EventScript_Hiker", - ), + script = "FallarborTown_BattleTentLobby_EventScript_Hiker"), NpcDef( entityIdx = 2, graphicsId = 11, @@ -16349,8 +14151,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "FallarborTown_BattleTentLobby_EventScript_LittleBoy", - ), + script = "FallarborTown_BattleTentLobby_EventScript_LittleBoy"), NpcDef( entityIdx = 3, graphicsId = 47, @@ -16361,9 +14162,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "FallarborTown_BattleTentLobby_EventScript_Lass", - ), + facing = 0, + script = "FallarborTown_BattleTentLobby_EventScript_Lass"), ), bgEvents = listOf( @@ -16371,8 +14171,8 @@ object MapManager { x = 4, y = 5, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "FallarborTown_BattleTentLobby_EventScript_RulesBoard", - )), + script = "FallarborTown_BattleTentLobby_EventScript_RulesBoard"), + ), ), // FallarborTown_BattleTentCorridor (MAP_FALLARBOR_TOWN_BATTLE_TENT_CORRIDOR) MapDef( @@ -16381,17 +14181,13 @@ object MapManager { mapId = 2, width = 5, height = 8, - paletteIdx1 = 132, - paletteIdx2 = 108, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 172, + unknownShort = 384, + unknownByte = 4, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -16410,9 +14206,9 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 0, - script = "0x0", - )), + facing = 1, + script = "0x0"), + ), bgEvents = emptyList(), ), // FallarborTown_BattleTentBattleRoom (MAP_FALLARBOR_TOWN_BATTLE_TENT_BATTLE_ROOM) @@ -16422,17 +14218,13 @@ object MapManager { mapId = 3, width = 10, height = 9, - paletteIdx1 = 132, - paletteIdx2 = 108, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 172, + unknownShort = 384, + unknownByte = 4, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -16451,9 +14243,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 0, - script = "0x0", - ), + facing = 1, + script = "0x0"), NpcDef( entityIdx = 1, graphicsId = 44, @@ -16464,9 +14255,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "0x0", - ), + facing = 0, + script = "0x0"), NpcDef( entityIdx = 2, graphicsId = 240, @@ -16477,9 +14267,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "0x0", - ), + facing = 0, + script = "0x0"), ), bgEvents = emptyList(), ), @@ -16490,17 +14279,13 @@ object MapManager { mapId = 4, width = 14, height = 9, - paletteIdx1 = 87, - paletteIdx2 = 121, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 118, + unknownShort = 400, + unknownByte = 4, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -16515,8 +14300,7 @@ object MapManager { targetBankId = 50, targetMapId = 13, targetX = 14, - targetY = 7, - ), + targetY = 7), WarpTile( x = 6, y = 8, @@ -16524,8 +14308,7 @@ object MapManager { targetBankId = 50, targetMapId = 13, targetX = 14, - targetY = 7, - ), + targetY = 7), WarpTile( x = 1, y = 6, @@ -16533,8 +14316,7 @@ object MapManager { targetBankId = 55, targetMapId = 5, targetX = 1, - targetY = 6, - ), + targetY = 6), ), npcs = listOf( @@ -16548,9 +14330,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "FallarborTown_PokemonCenter_1F_EventScript_Nurse", - ), + facing = 0, + script = "FallarborTown_PokemonCenter_1F_EventScript_Nurse"), NpcDef( entityIdx = 1, graphicsId = 14, @@ -16562,8 +14343,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "FallarborTown_PokemonCenter_1F_EventScript_Girl", - ), + script = "FallarborTown_PokemonCenter_1F_EventScript_Girl"), NpcDef( entityIdx = 2, graphicsId = 21, @@ -16574,9 +14354,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "FallarborTown_PokemonCenter_1F_EventScript_ExpertM", - ), + facing = 0, + script = "FallarborTown_PokemonCenter_1F_EventScript_ExpertM"), ), bgEvents = emptyList(), ), @@ -16587,17 +14366,13 @@ object MapManager { mapId = 5, width = 14, height = 10, - paletteIdx1 = 87, - paletteIdx2 = 121, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 118, + unknownShort = 400, + unknownByte = 4, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -16612,8 +14387,7 @@ object MapManager { targetBankId = 55, targetMapId = 4, targetX = 1, - targetY = 6, - ), + targetY = 6), WarpTile( x = 5, y = 1, @@ -16621,8 +14395,7 @@ object MapManager { targetBankId = 75, targetMapId = 60, targetX = 7, - targetY = 11, - ), + targetY = 11), WarpTile( x = 9, y = 1, @@ -16630,8 +14403,7 @@ object MapManager { targetBankId = 75, targetMapId = 25, targetX = 5, - targetY = 8, - ), + targetY = 8), ), npcs = listOf( @@ -16645,9 +14417,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "Common_EventScript_UnionRoomAttendant", - ), + facing = 0, + script = "Common_EventScript_UnionRoomAttendant"), NpcDef( entityIdx = 1, graphicsId = 0, @@ -16658,9 +14429,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "Common_EventScript_WirelessClubAttendant", - ), + facing = 0, + script = "Common_EventScript_WirelessClubAttendant"), NpcDef( entityIdx = 2, graphicsId = 0, @@ -16671,9 +14441,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "Common_EventScript_DirectCornerAttendant", - ), + facing = 0, + script = "Common_EventScript_DirectCornerAttendant"), ), bgEvents = emptyList(), ), @@ -16684,17 +14453,13 @@ object MapManager { mapId = 6, width = 10, height = 9, - paletteIdx1 = 98, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 147, + unknownShort = 437, + unknownByte = 4, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -16709,8 +14474,7 @@ object MapManager { targetBankId = 50, targetMapId = 13, targetX = 6, - targetY = 17, - ), + targetY = 17), WarpTile( x = 4, y = 8, @@ -16718,8 +14482,7 @@ object MapManager { targetBankId = 50, targetMapId = 13, targetX = 6, - targetY = 17, - ), + targetY = 17), ), npcs = listOf( @@ -16734,8 +14497,8 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "FallarborTown_CozmosHouse_EventScript_CozmosWife", - )), + script = "FallarborTown_CozmosHouse_EventScript_CozmosWife"), + ), bgEvents = emptyList(), ), // FallarborTown_MoveRelearnersHouse (MAP_FALLARBOR_TOWN_MOVE_RELEARNERS_HOUSE) @@ -16745,17 +14508,13 @@ object MapManager { mapId = 7, width = 11, height = 8, - paletteIdx1 = 98, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 147, + unknownShort = 437, + unknownByte = 4, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -16770,8 +14529,7 @@ object MapManager { targetBankId = 50, targetMapId = 13, targetX = 1, - targetY = 6, - ), + targetY = 6), WarpTile( x = 4, y = 7, @@ -16779,8 +14537,7 @@ object MapManager { targetBankId = 50, targetMapId = 13, targetX = 1, - targetY = 6, - ), + targetY = 6), ), npcs = listOf( @@ -16794,9 +14551,9 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "FallarborTown_MoveRelearnersHouse_EventScript_MoveRelearner", - )), + facing = 0, + script = "FallarborTown_MoveRelearnersHouse_EventScript_MoveRelearner"), + ), bgEvents = emptyList(), ), // VerdanturfTown_BattleTentLobby (MAP_VERDANTURF_TOWN_BATTLE_TENT_LOBBY) @@ -16806,17 +14563,13 @@ object MapManager { mapId = 0, width = 13, height = 10, - paletteIdx1 = 132, - paletteIdx2 = 108, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 172, + unknownShort = 384, + unknownByte = 5, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -16831,8 +14584,7 @@ object MapManager { targetBankId = 50, targetMapId = 14, targetX = 3, - targetY = 7, - ), + targetY = 7), WarpTile( x = 7, y = 9, @@ -16840,8 +14592,7 @@ object MapManager { targetBankId = 50, targetMapId = 14, targetX = 3, - targetY = 7, - ), + targetY = 7), ), npcs = listOf( @@ -16855,9 +14606,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "VerdanturfTown_BattleTentLobby_EventScript_Attendant", - ), + facing = 0, + script = "VerdanturfTown_BattleTentLobby_EventScript_Attendant"), NpcDef( entityIdx = 1, graphicsId = 8, @@ -16869,8 +14619,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "VerdanturfTown_BattleTentLobby_EventScript_AttractGiver", - ), + script = "VerdanturfTown_BattleTentLobby_EventScript_AttractGiver"), NpcDef( entityIdx = 2, graphicsId = 13, @@ -16882,8 +14631,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "VerdanturfTown_BattleTentLobby_EventScript_Boy1", - ), + script = "VerdanturfTown_BattleTentLobby_EventScript_Boy1"), NpcDef( entityIdx = 3, graphicsId = 9, @@ -16895,8 +14643,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 3, - script = "VerdanturfTown_BattleTentLobby_EventScript_Boy2", - ), + script = "VerdanturfTown_BattleTentLobby_EventScript_Boy2"), NpcDef( entityIdx = 5, graphicsId = 11, @@ -16908,8 +14655,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 2, - script = "VerdanturfTown_BattleTentLobby_EventScript_LittleBoy", - ), + script = "VerdanturfTown_BattleTentLobby_EventScript_LittleBoy"), ), bgEvents = listOf( @@ -16917,8 +14663,8 @@ object MapManager { x = 4, y = 5, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "VerdanturfTown_BattleTentLobby_EventScript_RulesBoard", - )), + script = "VerdanturfTown_BattleTentLobby_EventScript_RulesBoard"), + ), ), // VerdanturfTown_BattleTentCorridor (MAP_VERDANTURF_TOWN_BATTLE_TENT_CORRIDOR) MapDef( @@ -16927,17 +14673,13 @@ object MapManager { mapId = 1, width = 5, height = 8, - paletteIdx1 = 132, - paletteIdx2 = 108, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 172, + unknownShort = 384, + unknownByte = 5, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -16956,9 +14698,9 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 0, - script = "0x0", - )), + facing = 1, + script = "0x0"), + ), bgEvents = emptyList(), ), // VerdanturfTown_BattleTentBattleRoom (MAP_VERDANTURF_TOWN_BATTLE_TENT_BATTLE_ROOM) @@ -16968,17 +14710,13 @@ object MapManager { mapId = 2, width = 13, height = 9, - paletteIdx1 = 108, - paletteIdx2 = 112, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 172, + unknownShort = 384, + unknownByte = 5, borderTiles = listOf( - Tile2D(0x0023, 0), - Tile2D(0x0023, 0), - Tile2D(0x0023, 0), - Tile2D(0x0023, 0), - ), + Tile2D(0x0023, 0), Tile2D(0x0023, 0), Tile2D(0x0023, 0), Tile2D(0x0023, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -16997,9 +14735,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 0, - script = "0x0", - ), + facing = 1, + script = "0x0"), NpcDef( entityIdx = 1, graphicsId = 240, @@ -17010,9 +14747,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "0x0", - ), + facing = 0, + script = "0x0"), NpcDef( entityIdx = 2, graphicsId = 21, @@ -17024,8 +14760,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 3, - script = "0x0", - ), + script = "0x0"), ), bgEvents = emptyList(), ), @@ -17036,17 +14771,13 @@ object MapManager { mapId = 3, width = 11, height = 8, - paletteIdx1 = 95, - paletteIdx2 = 87, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 117, + unknownShort = 404, + unknownByte = 5, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -17061,8 +14792,7 @@ object MapManager { targetBankId = 50, targetMapId = 14, targetX = 12, - targetY = 3, - ), + targetY = 3), WarpTile( x = 4, y = 7, @@ -17070,8 +14800,7 @@ object MapManager { targetBankId = 50, targetMapId = 14, targetX = 12, - targetY = 3, - ), + targetY = 3), ), npcs = listOf( @@ -17086,8 +14815,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "VerdanturfTown_Mart_EventScript_Clerk", - ), + script = "VerdanturfTown_Mart_EventScript_Clerk"), NpcDef( entityIdx = 1, graphicsId = 9, @@ -17099,8 +14827,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "VerdanturfTown_Mart_EventScript_Boy", - ), + script = "VerdanturfTown_Mart_EventScript_Boy"), NpcDef( entityIdx = 2, graphicsId = 22, @@ -17112,8 +14839,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 2, - script = "VerdanturfTown_Mart_EventScript_ExpertF", - ), + script = "VerdanturfTown_Mart_EventScript_ExpertF"), NpcDef( entityIdx = 3, graphicsId = 47, @@ -17125,8 +14851,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 2, - script = "VerdanturfTown_Mart_EventScript_Lass", - ), + script = "VerdanturfTown_Mart_EventScript_Lass"), ), bgEvents = emptyList(), ), @@ -17137,17 +14862,13 @@ object MapManager { mapId = 4, width = 14, height = 9, - paletteIdx1 = 87, - paletteIdx2 = 121, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 118, + unknownShort = 400, + unknownByte = 5, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -17162,8 +14883,7 @@ object MapManager { targetBankId = 50, targetMapId = 14, targetX = 16, - targetY = 3, - ), + targetY = 3), WarpTile( x = 6, y = 8, @@ -17171,8 +14891,7 @@ object MapManager { targetBankId = 50, targetMapId = 14, targetX = 16, - targetY = 3, - ), + targetY = 3), WarpTile( x = 1, y = 6, @@ -17180,8 +14899,7 @@ object MapManager { targetBankId = 56, targetMapId = 5, targetX = 1, - targetY = 6, - ), + targetY = 6), ), npcs = listOf( @@ -17195,9 +14913,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "VerdanturfTown_PokemonCenter_1F_EventScript_Nurse", - ), + facing = 0, + script = "VerdanturfTown_PokemonCenter_1F_EventScript_Nurse"), NpcDef( entityIdx = 1, graphicsId = 48, @@ -17209,8 +14926,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "VerdanturfTown_PokemonCenter_1F_EventScript_Gentleman", - ), + script = "VerdanturfTown_PokemonCenter_1F_EventScript_Gentleman"), NpcDef( entityIdx = 2, graphicsId = 21, @@ -17221,9 +14937,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 0, - script = "VerdanturfTown_PokemonCenter_1F_EventScript_ExpertM", - ), + facing = 1, + script = "VerdanturfTown_PokemonCenter_1F_EventScript_ExpertM"), NpcDef( entityIdx = 3, graphicsId = 11, @@ -17235,8 +14950,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 2, - script = "VerdanturfTown_PokemonCenter_1F_EventScript_FuryCutterTutor", - ), + script = "VerdanturfTown_PokemonCenter_1F_EventScript_FuryCutterTutor"), ), bgEvents = emptyList(), ), @@ -17247,17 +14961,13 @@ object MapManager { mapId = 5, width = 14, height = 10, - paletteIdx1 = 87, - paletteIdx2 = 121, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 118, + unknownShort = 400, + unknownByte = 5, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -17272,8 +14982,7 @@ object MapManager { targetBankId = 56, targetMapId = 4, targetX = 1, - targetY = 6, - ), + targetY = 6), WarpTile( x = 5, y = 1, @@ -17281,8 +14990,7 @@ object MapManager { targetBankId = 75, targetMapId = 60, targetX = 7, - targetY = 11, - ), + targetY = 11), WarpTile( x = 9, y = 1, @@ -17290,8 +14998,7 @@ object MapManager { targetBankId = 75, targetMapId = 25, targetX = 5, - targetY = 8, - ), + targetY = 8), ), npcs = listOf( @@ -17305,9 +15012,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "Common_EventScript_UnionRoomAttendant", - ), + facing = 0, + script = "Common_EventScript_UnionRoomAttendant"), NpcDef( entityIdx = 1, graphicsId = 0, @@ -17318,9 +15024,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "Common_EventScript_WirelessClubAttendant", - ), + facing = 0, + script = "Common_EventScript_WirelessClubAttendant"), NpcDef( entityIdx = 2, graphicsId = 0, @@ -17331,9 +15036,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "Common_EventScript_DirectCornerAttendant", - ), + facing = 0, + script = "Common_EventScript_DirectCornerAttendant"), ), bgEvents = emptyList(), ), @@ -17344,17 +15048,13 @@ object MapManager { mapId = 6, width = 17, height = 8, - paletteIdx1 = 98, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 147, + unknownShort = 398, + unknownByte = 5, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -17369,8 +15069,7 @@ object MapManager { targetBankId = 50, targetMapId = 14, targetX = 10, - targetY = 14, - ), + targetY = 14), WarpTile( x = 8, y = 7, @@ -17378,8 +15077,7 @@ object MapManager { targetBankId = 50, targetMapId = 14, targetX = 10, - targetY = 14, - ), + targetY = 14), ), npcs = listOf( @@ -17394,29 +15092,24 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "VerdanturfTown_WandasHouse_EventScript_WallysAunt", - )), + script = "VerdanturfTown_WandasHouse_EventScript_WallysAunt"), + ), bgEvents = emptyList(), ), - // VerdanturfTown_FriendshipRatersHouse - // (MAP_VERDANTURF_TOWN_FRIENDSHIP_RATERS_HOUSE) + // VerdanturfTown_FriendshipRatersHouse (MAP_VERDANTURF_TOWN_FRIENDSHIP_RATERS_HOUSE) MapDef( regionId = 1, bankId = 56, mapId = 7, width = 11, height = 8, - paletteIdx1 = 98, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 147, + unknownShort = 398, + unknownByte = 5, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -17431,8 +15124,7 @@ object MapManager { targetBankId = 50, targetMapId = 14, targetX = 1, - targetY = 14, - ), + targetY = 14), WarpTile( x = 4, y = 7, @@ -17440,8 +15132,7 @@ object MapManager { targetBankId = 50, targetMapId = 14, targetX = 1, - targetY = 14, - ), + targetY = 14), ), npcs = listOf( @@ -17455,10 +15146,9 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, + facing = 0, script = - "VerdanturfTown_FriendshipRatersHouse_EventScript_FriendshipRater", - ), + "VerdanturfTown_FriendshipRatersHouse_EventScript_FriendshipRater"), NpcDef( entityIdx = 1, graphicsId = 0, @@ -17469,9 +15159,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "VerdanturfTown_FriendshipRatersHouse_EventScript_Pikachu", - ), + facing = 0, + script = "VerdanturfTown_FriendshipRatersHouse_EventScript_Pikachu"), ), bgEvents = emptyList(), ), @@ -17482,17 +15171,13 @@ object MapManager { mapId = 8, width = 10, height = 9, - paletteIdx1 = 98, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 147, + unknownShort = 398, + unknownByte = 5, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -17507,8 +15192,7 @@ object MapManager { targetBankId = 50, targetMapId = 14, targetX = 17, - targetY = 15, - ), + targetY = 15), WarpTile( x = 4, y = 8, @@ -17516,8 +15200,7 @@ object MapManager { targetBankId = 50, targetMapId = 14, targetX = 17, - targetY = 15, - ), + targetY = 15), ), npcs = listOf( @@ -17531,9 +15214,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 0, - script = "VerdanturfTown_House_EventScript_Woman1", - ), + facing = 1, + script = "VerdanturfTown_House_EventScript_Woman1"), NpcDef( entityIdx = 1, graphicsId = 34, @@ -17544,9 +15226,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "VerdanturfTown_House_EventScript_Woman2", - ), + facing = 0, + script = "VerdanturfTown_House_EventScript_Woman2"), ), bgEvents = emptyList(), ), @@ -17557,17 +15238,13 @@ object MapManager { mapId = 0, width = 14, height = 9, - paletteIdx1 = 87, - paletteIdx2 = 121, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 118, + unknownShort = 400, + unknownByte = 6, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -17582,8 +15259,7 @@ object MapManager { targetBankId = 50, targetMapId = 15, targetX = 8, - targetY = 15, - ), + targetY = 15), WarpTile( x = 6, y = 8, @@ -17591,8 +15267,7 @@ object MapManager { targetBankId = 50, targetMapId = 15, targetX = 8, - targetY = 15, - ), + targetY = 15), WarpTile( x = 1, y = 6, @@ -17600,8 +15275,7 @@ object MapManager { targetBankId = 57, targetMapId = 1, targetX = 1, - targetY = 6, - ), + targetY = 6), ), npcs = listOf( @@ -17615,9 +15289,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "PacifidlogTown_PokemonCenter_1F_EventScript_Nurse", - ), + facing = 0, + script = "PacifidlogTown_PokemonCenter_1F_EventScript_Nurse"), NpcDef( entityIdx = 1, graphicsId = 29, @@ -17629,8 +15302,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 2, - script = "PacifidlogTown_PokemonCenter_1F_EventScript_OldMan", - ), + script = "PacifidlogTown_PokemonCenter_1F_EventScript_OldMan"), NpcDef( entityIdx = 2, graphicsId = 10, @@ -17641,9 +15313,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 0, - script = "PacifidlogTown_PokemonCenter_1F_EventScript_Girl", - ), + facing = 1, + script = "PacifidlogTown_PokemonCenter_1F_EventScript_Girl"), NpcDef( entityIdx = 3, graphicsId = 16, @@ -17655,8 +15326,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "PacifidlogTown_PokemonCenter_1F_EventScript_Woman", - ), + script = "PacifidlogTown_PokemonCenter_1F_EventScript_Woman"), NpcDef( entityIdx = 4, graphicsId = 66, @@ -17667,9 +15337,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 0, - script = "PacifidlogTown_PokemonCenter_1F_EventScript_ExplosionTutor", - ), + facing = 1, + script = "PacifidlogTown_PokemonCenter_1F_EventScript_ExplosionTutor"), ), bgEvents = emptyList(), ), @@ -17680,17 +15349,13 @@ object MapManager { mapId = 1, width = 14, height = 10, - paletteIdx1 = 87, - paletteIdx2 = 121, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 118, + unknownShort = 400, + unknownByte = 6, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -17705,8 +15370,7 @@ object MapManager { targetBankId = 57, targetMapId = 0, targetX = 1, - targetY = 6, - ), + targetY = 6), WarpTile( x = 5, y = 1, @@ -17714,8 +15378,7 @@ object MapManager { targetBankId = 75, targetMapId = 60, targetX = 7, - targetY = 11, - ), + targetY = 11), WarpTile( x = 9, y = 1, @@ -17723,8 +15386,7 @@ object MapManager { targetBankId = 75, targetMapId = 25, targetX = 5, - targetY = 8, - ), + targetY = 8), ), npcs = listOf( @@ -17738,9 +15400,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "Common_EventScript_UnionRoomAttendant", - ), + facing = 0, + script = "Common_EventScript_UnionRoomAttendant"), NpcDef( entityIdx = 1, graphicsId = 0, @@ -17751,9 +15412,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "Common_EventScript_WirelessClubAttendant", - ), + facing = 0, + script = "Common_EventScript_WirelessClubAttendant"), NpcDef( entityIdx = 2, graphicsId = 0, @@ -17764,9 +15424,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "Common_EventScript_DirectCornerAttendant", - ), + facing = 0, + script = "Common_EventScript_DirectCornerAttendant"), ), bgEvents = emptyList(), ), @@ -17777,17 +15436,13 @@ object MapManager { mapId = 2, width = 10, height = 9, - paletteIdx1 = 98, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 147, + unknownShort = 408, + unknownByte = 6, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -17802,8 +15457,7 @@ object MapManager { targetBankId = 50, targetMapId = 15, targetX = 16, - targetY = 13, - ), + targetY = 13), WarpTile( x = 5, y = 8, @@ -17811,8 +15465,7 @@ object MapManager { targetBankId = 50, targetMapId = 15, targetX = 16, - targetY = 13, - ), + targetY = 13), ), npcs = listOf( @@ -17826,9 +15479,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "PacifidlogTown_House1_EventScript_Man", - ), + facing = 0, + script = "PacifidlogTown_House1_EventScript_Man"), NpcDef( entityIdx = 1, graphicsId = 26, @@ -17840,8 +15492,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 2, - script = "PacifidlogTown_House1_EventScript_Woman", - ), + script = "PacifidlogTown_House1_EventScript_Woman"), ), bgEvents = emptyList(), ), @@ -17852,17 +15503,13 @@ object MapManager { mapId = 3, width = 10, height = 9, - paletteIdx1 = 98, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 147, + unknownShort = 408, + unknownByte = 6, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -17877,8 +15524,7 @@ object MapManager { targetBankId = 50, targetMapId = 15, targetX = 3, - targetY = 22, - ), + targetY = 22), WarpTile( x = 5, y = 8, @@ -17886,8 +15532,7 @@ object MapManager { targetBankId = 50, targetMapId = 15, targetX = 3, - targetY = 22, - ), + targetY = 22), ), npcs = listOf( @@ -17901,9 +15546,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "PacifidlogTown_House2_EventScript_FanClubYoungerBrother", - ), + facing = 0, + script = "PacifidlogTown_House2_EventScript_FanClubYoungerBrother"), NpcDef( entityIdx = 1, graphicsId = 0, @@ -17915,8 +15559,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "PacifidlogTown_House2_EventScript_HappyAzurill", - ), + script = "PacifidlogTown_House2_EventScript_HappyAzurill"), NpcDef( entityIdx = 2, graphicsId = 0, @@ -17928,8 +15571,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "PacifidlogTown_House2_EventScript_UnhappyAzurill", - ), + script = "PacifidlogTown_House2_EventScript_UnhappyAzurill"), ), bgEvents = emptyList(), ), @@ -17940,17 +15582,13 @@ object MapManager { mapId = 4, width = 10, height = 9, - paletteIdx1 = 98, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 147, + unknownShort = 408, + unknownByte = 6, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -17965,8 +15603,7 @@ object MapManager { targetBankId = 50, targetMapId = 15, targetX = 12, - targetY = 24, - ), + targetY = 24), WarpTile( x = 5, y = 8, @@ -17974,8 +15611,7 @@ object MapManager { targetBankId = 50, targetMapId = 15, targetX = 12, - targetY = 24, - ), + targetY = 24), ), npcs = listOf( @@ -17990,8 +15626,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "PacifidlogTown_House3_EventScript_Girl", - ), + script = "PacifidlogTown_House3_EventScript_Girl"), NpcDef( entityIdx = 1, graphicsId = 33, @@ -18003,8 +15638,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 3, - script = "PacifidlogTown_House3_EventScript_Trader", - ), + script = "PacifidlogTown_House3_EventScript_Trader"), ), bgEvents = emptyList(), ), @@ -18015,17 +15649,13 @@ object MapManager { mapId = 5, width = 10, height = 9, - paletteIdx1 = 98, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 147, + unknownShort = 408, + unknownByte = 6, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -18040,8 +15670,7 @@ object MapManager { targetBankId = 50, targetMapId = 15, targetX = 2, - targetY = 12, - ), + targetY = 12), WarpTile( x = 5, y = 8, @@ -18049,8 +15678,7 @@ object MapManager { targetBankId = 50, targetMapId = 15, targetX = 2, - targetY = 12, - ), + targetY = 12), ), npcs = listOf( @@ -18064,9 +15692,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "PacifidlogTown_House4_EventScript_Woman", - ), + facing = 0, + script = "PacifidlogTown_House4_EventScript_Woman"), NpcDef( entityIdx = 1, graphicsId = 12, @@ -18078,8 +15705,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "PacifidlogTown_House4_EventScript_LittleGirl", - ), + script = "PacifidlogTown_House4_EventScript_LittleGirl"), NpcDef( entityIdx = 2, graphicsId = 7, @@ -18091,8 +15717,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "PacifidlogTown_House4_EventScript_Boy", - ), + script = "PacifidlogTown_House4_EventScript_Boy"), ), bgEvents = emptyList(), ), @@ -18103,17 +15728,13 @@ object MapManager { mapId = 6, width = 10, height = 9, - paletteIdx1 = 98, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 147, + unknownShort = 408, + unknownByte = 6, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -18128,8 +15749,7 @@ object MapManager { targetBankId = 50, targetMapId = 15, targetX = 17, - targetY = 21, - ), + targetY = 21), WarpTile( x = 5, y = 8, @@ -18137,8 +15757,7 @@ object MapManager { targetBankId = 50, targetMapId = 15, targetX = 17, - targetY = 21, - ), + targetY = 21), ), npcs = listOf( @@ -18153,8 +15772,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "PacifidlogTown_House5_EventScript_MirageIslandWatcher", - ), + script = "PacifidlogTown_House5_EventScript_MirageIslandWatcher"), NpcDef( entityIdx = 1, graphicsId = 48, @@ -18166,8 +15784,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "PacifidlogTown_House5_EventScript_Gentleman", - ), + script = "PacifidlogTown_House5_EventScript_Gentleman"), ), bgEvents = emptyList(), ), @@ -18178,17 +15795,13 @@ object MapManager { mapId = 0, width = 11, height = 8, - paletteIdx1 = 98, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 147, + unknownShort = 362, + unknownByte = 7, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -18203,8 +15816,7 @@ object MapManager { targetBankId = 50, targetMapId = 0, targetX = 7, - targetY = 5, - ), + targetY = 5), WarpTile( x = 4, y = 7, @@ -18212,8 +15824,7 @@ object MapManager { targetBankId = 50, targetMapId = 0, targetX = 7, - targetY = 5, - ), + targetY = 5), ), npcs = listOf( @@ -18228,8 +15839,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "PetalburgCity_WallysHouse_EventScript_WallysDad", - ), + script = "PetalburgCity_WallysHouse_EventScript_WallysDad"), NpcDef( entityIdx = 1, graphicsId = 26, @@ -18241,8 +15851,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 2, - script = "PetalburgCity_WallysHouse_EventScript_WallysMom", - ), + script = "PetalburgCity_WallysHouse_EventScript_WallysMom"), ), bgEvents = emptyList(), ), @@ -18253,17 +15862,13 @@ object MapManager { mapId = 1, width = 9, height = 112, - paletteIdx1 = 126, - paletteIdx2 = 100, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 145, + unknownShort = 364, + unknownByte = 7, borderTiles = listOf( - Tile2D(0x0208, 0), - Tile2D(0x0208, 0), - Tile2D(0x0208, 0), - Tile2D(0x0208, 0), - ), + Tile2D(0x0208, 0), Tile2D(0x0208, 0), Tile2D(0x0208, 0), Tile2D(0x0208, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -18278,8 +15883,7 @@ object MapManager { targetBankId = 50, targetMapId = 0, targetX = 15, - targetY = 8, - ), + targetY = 8), WarpTile( x = 5, y = 111, @@ -18287,8 +15891,7 @@ object MapManager { targetBankId = 50, targetMapId = 0, targetX = 15, - targetY = 8, - ), + targetY = 8), WarpTile( x = 1, y = 105, @@ -18296,8 +15899,7 @@ object MapManager { targetBankId = 58, targetMapId = 1, targetX = 7, - targetY = 85, - ), + targetY = 85), WarpTile( x = 7, y = 85, @@ -18305,8 +15907,7 @@ object MapManager { targetBankId = 58, targetMapId = 1, targetX = 1, - targetY = 105, - ), + targetY = 105), WarpTile( x = 6, y = 85, @@ -18314,8 +15915,7 @@ object MapManager { targetBankId = 58, targetMapId = 1, targetX = 1, - targetY = 105, - ), + targetY = 105), WarpTile( x = 7, y = 105, @@ -18323,8 +15923,7 @@ object MapManager { targetBankId = 58, targetMapId = 1, targetX = 1, - targetY = 98, - ), + targetY = 98), WarpTile( x = 1, y = 98, @@ -18332,8 +15931,7 @@ object MapManager { targetBankId = 58, targetMapId = 1, targetX = 7, - targetY = 105, - ), + targetY = 105), WarpTile( x = 2, y = 98, @@ -18341,8 +15939,7 @@ object MapManager { targetBankId = 58, targetMapId = 1, targetX = 7, - targetY = 105, - ), + targetY = 105), WarpTile( x = 1, y = 79, @@ -18350,8 +15947,7 @@ object MapManager { targetBankId = 58, targetMapId = 1, targetX = 7, - targetY = 46, - ), + targetY = 46), WarpTile( x = 7, y = 79, @@ -18359,8 +15955,7 @@ object MapManager { targetBankId = 58, targetMapId = 1, targetX = 1, - targetY = 59, - ), + targetY = 59), WarpTile( x = 7, y = 46, @@ -18368,8 +15963,7 @@ object MapManager { targetBankId = 58, targetMapId = 1, targetX = 1, - targetY = 79, - ), + targetY = 79), WarpTile( x = 6, y = 46, @@ -18377,8 +15971,7 @@ object MapManager { targetBankId = 58, targetMapId = 1, targetX = 1, - targetY = 79, - ), + targetY = 79), WarpTile( x = 1, y = 59, @@ -18386,8 +15979,7 @@ object MapManager { targetBankId = 58, targetMapId = 1, targetX = 7, - targetY = 79, - ), + targetY = 79), WarpTile( x = 2, y = 59, @@ -18395,8 +15987,7 @@ object MapManager { targetBankId = 58, targetMapId = 1, targetX = 7, - targetY = 79, - ), + targetY = 79), WarpTile( x = 1, y = 92, @@ -18404,8 +15995,7 @@ object MapManager { targetBankId = 58, targetMapId = 1, targetX = 7, - targetY = 59, - ), + targetY = 59), WarpTile( x = 7, y = 92, @@ -18413,8 +16003,7 @@ object MapManager { targetBankId = 58, targetMapId = 1, targetX = 1, - targetY = 72, - ), + targetY = 72), WarpTile( x = 7, y = 59, @@ -18422,8 +16011,7 @@ object MapManager { targetBankId = 58, targetMapId = 1, targetX = 1, - targetY = 92, - ), + targetY = 92), WarpTile( x = 6, y = 59, @@ -18431,8 +16019,7 @@ object MapManager { targetBankId = 58, targetMapId = 1, targetX = 1, - targetY = 92, - ), + targetY = 92), WarpTile( x = 1, y = 72, @@ -18440,8 +16027,7 @@ object MapManager { targetBankId = 58, targetMapId = 1, targetX = 7, - targetY = 92, - ), + targetY = 92), WarpTile( x = 2, y = 72, @@ -18449,8 +16035,7 @@ object MapManager { targetBankId = 58, targetMapId = 1, targetX = 7, - targetY = 92, - ), + targetY = 92), WarpTile( x = 7, y = 40, @@ -18458,8 +16043,7 @@ object MapManager { targetBankId = 58, targetMapId = 1, targetX = 1, - targetY = 20, - ), + targetY = 20), WarpTile( x = 1, y = 53, @@ -18467,8 +16051,7 @@ object MapManager { targetBankId = 58, targetMapId = 1, targetX = 7, - targetY = 20, - ), + targetY = 20), WarpTile( x = 7, y = 53, @@ -18476,8 +16059,7 @@ object MapManager { targetBankId = 58, targetMapId = 1, targetX = 1, - targetY = 33, - ), + targetY = 33), WarpTile( x = 1, y = 66, @@ -18485,8 +16067,7 @@ object MapManager { targetBankId = 58, targetMapId = 1, targetX = 7, - targetY = 33, - ), + targetY = 33), WarpTile( x = 1, y = 20, @@ -18494,8 +16075,7 @@ object MapManager { targetBankId = 58, targetMapId = 1, targetX = 7, - targetY = 40, - ), + targetY = 40), WarpTile( x = 2, y = 20, @@ -18503,8 +16083,7 @@ object MapManager { targetBankId = 58, targetMapId = 1, targetX = 7, - targetY = 40, - ), + targetY = 40), WarpTile( x = 7, y = 20, @@ -18512,8 +16091,7 @@ object MapManager { targetBankId = 58, targetMapId = 1, targetX = 1, - targetY = 53, - ), + targetY = 53), WarpTile( x = 6, y = 20, @@ -18521,8 +16099,7 @@ object MapManager { targetBankId = 58, targetMapId = 1, targetX = 1, - targetY = 53, - ), + targetY = 53), WarpTile( x = 1, y = 33, @@ -18530,8 +16107,7 @@ object MapManager { targetBankId = 58, targetMapId = 1, targetX = 7, - targetY = 53, - ), + targetY = 53), WarpTile( x = 2, y = 33, @@ -18539,8 +16115,7 @@ object MapManager { targetBankId = 58, targetMapId = 1, targetX = 7, - targetY = 53, - ), + targetY = 53), WarpTile( x = 7, y = 33, @@ -18548,8 +16123,7 @@ object MapManager { targetBankId = 58, targetMapId = 1, targetX = 1, - targetY = 66, - ), + targetY = 66), WarpTile( x = 6, y = 33, @@ -18557,8 +16131,7 @@ object MapManager { targetBankId = 58, targetMapId = 1, targetX = 1, - targetY = 66, - ), + targetY = 66), WarpTile( x = 7, y = 14, @@ -18566,8 +16139,7 @@ object MapManager { targetBankId = 58, targetMapId = 1, targetX = 1, - targetY = 7, - ), + targetY = 7), WarpTile( x = 1, y = 27, @@ -18575,8 +16147,7 @@ object MapManager { targetBankId = 58, targetMapId = 1, targetX = 7, - targetY = 7, - ), + targetY = 7), WarpTile( x = 1, y = 7, @@ -18584,8 +16155,7 @@ object MapManager { targetBankId = 58, targetMapId = 1, targetX = 7, - targetY = 14, - ), + targetY = 14), WarpTile( x = 2, y = 7, @@ -18593,8 +16163,7 @@ object MapManager { targetBankId = 58, targetMapId = 1, targetX = 7, - targetY = 14, - ), + targetY = 14), WarpTile( x = 7, y = 7, @@ -18602,8 +16171,7 @@ object MapManager { targetBankId = 58, targetMapId = 1, targetX = 1, - targetY = 27, - ), + targetY = 27), WarpTile( x = 6, y = 7, @@ -18611,8 +16179,7 @@ object MapManager { targetBankId = 58, targetMapId = 1, targetX = 1, - targetY = 27, - ), + targetY = 27), ), npcs = listOf( @@ -18626,9 +16193,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 1, - facing = 1, - script = "PetalburgCity_Gym_EventScript_Mary", - ), + facing = 0, + script = "PetalburgCity_Gym_EventScript_Mary"), NpcDef( entityIdx = 2, graphicsId = 33, @@ -18639,9 +16205,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 1, - facing = 1, - script = "PetalburgCity_Gym_EventScript_Randall", - ), + facing = 0, + script = "PetalburgCity_Gym_EventScript_Randall"), NpcDef( entityIdx = 3, graphicsId = 33, @@ -18652,9 +16217,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 1, - facing = 1, - script = "PetalburgCity_Gym_EventScript_Parker", - ), + facing = 0, + script = "PetalburgCity_Gym_EventScript_Parker"), NpcDef( entityIdx = 4, graphicsId = 34, @@ -18665,9 +16229,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 1, - facing = 1, - script = "PetalburgCity_Gym_EventScript_Alexia", - ), + facing = 0, + script = "PetalburgCity_Gym_EventScript_Alexia"), NpcDef( entityIdx = 5, graphicsId = 33, @@ -18678,9 +16241,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 1, - facing = 1, - script = "PetalburgCity_Gym_EventScript_George", - ), + facing = 0, + script = "PetalburgCity_Gym_EventScript_George"), NpcDef( entityIdx = 6, graphicsId = 34, @@ -18691,9 +16253,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 1, - facing = 1, - script = "PetalburgCity_Gym_EventScript_Jody", - ), + facing = 0, + script = "PetalburgCity_Gym_EventScript_Jody"), NpcDef( entityIdx = 7, graphicsId = 33, @@ -18704,9 +16265,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 1, - facing = 1, - script = "PetalburgCity_Gym_EventScript_Berke", - ), + facing = 0, + script = "PetalburgCity_Gym_EventScript_Berke"), ), bgEvents = listOf( @@ -18714,86 +16274,72 @@ object MapManager { x = 1, y = 105, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "PetalburgCity_Gym_EventScript_SpeedRoomDoor", - ), + script = "PetalburgCity_Gym_EventScript_SpeedRoomDoor"), BgEventDef( x = 7, y = 105, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "PetalburgCity_Gym_EventScript_AccuracyRoomDoor", - ), + script = "PetalburgCity_Gym_EventScript_AccuracyRoomDoor"), BgEventDef( x = 1, y = 79, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "PetalburgCity_Gym_EventScript_ConfusionRoomDoor", - ), + script = "PetalburgCity_Gym_EventScript_ConfusionRoomDoor"), BgEventDef( x = 7, y = 79, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "PetalburgCity_Gym_EventScript_LeftDefenseRoomDoor", - ), + script = "PetalburgCity_Gym_EventScript_LeftDefenseRoomDoor"), BgEventDef( x = 1, y = 92, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "PetalburgCity_Gym_EventScript_RightDefenseRoomDoor", - ), + script = "PetalburgCity_Gym_EventScript_RightDefenseRoomDoor"), BgEventDef( x = 7, y = 92, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "PetalburgCity_Gym_EventScript_RecoveryRoomDoor", - ), + script = "PetalburgCity_Gym_EventScript_RecoveryRoomDoor"), BgEventDef( x = 7, y = 40, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "PetalburgCity_Gym_EventScript_LeftStrengthRoomDoor", - ), + script = "PetalburgCity_Gym_EventScript_LeftStrengthRoomDoor"), BgEventDef( x = 1, y = 53, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "PetalburgCity_Gym_EventScript_RightStrengthRoomDoor", - ), + script = "PetalburgCity_Gym_EventScript_RightStrengthRoomDoor"), BgEventDef( x = 7, y = 53, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "PetalburgCity_Gym_EventScript_LeftOHKORoomDoor", - ), + script = "PetalburgCity_Gym_EventScript_LeftOHKORoomDoor"), BgEventDef( x = 1, y = 66, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "PetalburgCity_Gym_EventScript_RightOHKORoomDoor", - ), + script = "PetalburgCity_Gym_EventScript_RightOHKORoomDoor"), BgEventDef( x = 7, y = 14, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "PetalburgCity_Gym_EventScript_LeftGymLeadersRoomDoor", - ), + script = "PetalburgCity_Gym_EventScript_LeftGymLeadersRoomDoor"), BgEventDef( x = 1, y = 27, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "PetalburgCity_Gym_EventScript_RightGymLeadersRoomDoor", - ), + script = "PetalburgCity_Gym_EventScript_RightGymLeadersRoomDoor"), BgEventDef( x = 1, y = 110, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "PetalburgCity_Gym_EventScript_LeftGymStatue", - ), + script = "PetalburgCity_Gym_EventScript_LeftGymStatue"), BgEventDef( x = 7, y = 110, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "PetalburgCity_Gym_EventScript_RightGymStatue", - ), + script = "PetalburgCity_Gym_EventScript_RightGymStatue"), ), ), // PetalburgCity_House1 (MAP_PETALBURG_CITY_HOUSE1) @@ -18803,17 +16349,13 @@ object MapManager { mapId = 2, width = 10, height = 9, - paletteIdx1 = 98, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 147, + unknownShort = 362, + unknownByte = 7, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -18828,8 +16370,7 @@ object MapManager { targetBankId = 50, targetMapId = 0, targetX = 10, - targetY = 19, - ), + targetY = 19), WarpTile( x = 4, y = 8, @@ -18837,8 +16378,7 @@ object MapManager { targetBankId = 50, targetMapId = 0, targetX = 10, - targetY = 19, - ), + targetY = 19), ), npcs = listOf( @@ -18853,8 +16393,7 @@ object MapManager { movementRangeY = 2, trainerType = 0, facing = 0, - script = "PetalburgCity_House1_EventScript_Woman", - ), + script = "PetalburgCity_House1_EventScript_Woman"), NpcDef( entityIdx = 1, graphicsId = 21, @@ -18865,9 +16404,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "PetalburgCity_House1_EventScript_Man", - ), + facing = 0, + script = "PetalburgCity_House1_EventScript_Man"), ), bgEvents = emptyList(), ), @@ -18878,17 +16416,13 @@ object MapManager { mapId = 3, width = 10, height = 8, - paletteIdx1 = 98, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 147, + unknownShort = 362, + unknownByte = 7, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -18903,8 +16437,7 @@ object MapManager { targetBankId = 50, targetMapId = 0, targetX = 20, - targetY = 24, - ), + targetY = 24), WarpTile( x = 4, y = 7, @@ -18912,8 +16445,7 @@ object MapManager { targetBankId = 50, targetMapId = 0, targetX = 20, - targetY = 24, - ), + targetY = 24), ), npcs = listOf( @@ -18928,8 +16460,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "PetalburgCity_House2_EventScript_Woman", - ), + script = "PetalburgCity_House2_EventScript_Woman"), NpcDef( entityIdx = 1, graphicsId = 38, @@ -18940,9 +16471,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "PetalburgCity_House2_EventScript_SchoolKid", - ), + facing = 0, + script = "PetalburgCity_House2_EventScript_SchoolKid"), ), bgEvents = emptyList(), ), @@ -18953,17 +16483,13 @@ object MapManager { mapId = 4, width = 14, height = 9, - paletteIdx1 = 87, - paletteIdx2 = 121, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 118, + unknownShort = 400, + unknownByte = 7, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -18978,8 +16504,7 @@ object MapManager { targetBankId = 50, targetMapId = 0, targetX = 20, - targetY = 16, - ), + targetY = 16), WarpTile( x = 6, y = 8, @@ -18987,8 +16512,7 @@ object MapManager { targetBankId = 50, targetMapId = 0, targetX = 20, - targetY = 16, - ), + targetY = 16), WarpTile( x = 1, y = 6, @@ -18996,8 +16520,7 @@ object MapManager { targetBankId = 58, targetMapId = 5, targetX = 1, - targetY = 6, - ), + targetY = 6), ), npcs = listOf( @@ -19011,9 +16534,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "PetalburgCity_PokemonCenter_1F_EventScript_Nurse", - ), + facing = 0, + script = "PetalburgCity_PokemonCenter_1F_EventScript_Nurse"), NpcDef( entityIdx = 1, graphicsId = 65, @@ -19024,9 +16546,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "ProfileMan_EventScript_Man", - ), + facing = 0, + script = "ProfileMan_EventScript_Man"), NpcDef( entityIdx = 2, graphicsId = 17, @@ -19037,9 +16558,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "PetalburgCity_PokemonCenter_1F_EventScript_FatMan", - ), + facing = 0, + script = "PetalburgCity_PokemonCenter_1F_EventScript_FatMan"), NpcDef( entityIdx = 3, graphicsId = 35, @@ -19051,8 +16571,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "PetalburgCity_PokemonCenter_1F_EventScript_Youngster", - ), + script = "PetalburgCity_PokemonCenter_1F_EventScript_Youngster"), NpcDef( entityIdx = 4, graphicsId = 34, @@ -19064,8 +16583,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "PetalburgCity_PokemonCenter_1F_EventScript_Woman", - ), + script = "PetalburgCity_PokemonCenter_1F_EventScript_Woman"), ), bgEvents = emptyList(), ), @@ -19076,17 +16594,13 @@ object MapManager { mapId = 5, width = 14, height = 10, - paletteIdx1 = 87, - paletteIdx2 = 121, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 118, + unknownShort = 400, + unknownByte = 7, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -19101,8 +16615,7 @@ object MapManager { targetBankId = 58, targetMapId = 4, targetX = 1, - targetY = 6, - ), + targetY = 6), WarpTile( x = 5, y = 1, @@ -19110,8 +16623,7 @@ object MapManager { targetBankId = 75, targetMapId = 60, targetX = 7, - targetY = 11, - ), + targetY = 11), WarpTile( x = 9, y = 1, @@ -19119,8 +16631,7 @@ object MapManager { targetBankId = 75, targetMapId = 25, targetX = 5, - targetY = 8, - ), + targetY = 8), ), npcs = listOf( @@ -19134,9 +16645,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "Common_EventScript_UnionRoomAttendant", - ), + facing = 0, + script = "Common_EventScript_UnionRoomAttendant"), NpcDef( entityIdx = 1, graphicsId = 0, @@ -19147,9 +16657,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "Common_EventScript_WirelessClubAttendant", - ), + facing = 0, + script = "Common_EventScript_WirelessClubAttendant"), NpcDef( entityIdx = 2, graphicsId = 0, @@ -19160,9 +16669,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "Common_EventScript_DirectCornerAttendant", - ), + facing = 0, + script = "Common_EventScript_DirectCornerAttendant"), ), bgEvents = emptyList(), ), @@ -19173,17 +16681,13 @@ object MapManager { mapId = 6, width = 11, height = 8, - paletteIdx1 = 95, - paletteIdx2 = 87, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 117, + unknownShort = 404, + unknownByte = 7, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -19198,8 +16702,7 @@ object MapManager { targetBankId = 50, targetMapId = 0, targetX = 25, - targetY = 12, - ), + targetY = 12), WarpTile( x = 4, y = 7, @@ -19207,8 +16710,7 @@ object MapManager { targetBankId = 50, targetMapId = 0, targetX = 25, - targetY = 12, - ), + targetY = 12), ), npcs = listOf( @@ -19223,8 +16725,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "PetalburgCity_Mart_EventScript_Clerk", - ), + script = "PetalburgCity_Mart_EventScript_Clerk"), NpcDef( entityIdx = 1, graphicsId = 19, @@ -19236,8 +16737,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "PetalburgCity_Mart_EventScript_Man", - ), + script = "PetalburgCity_Mart_EventScript_Man"), NpcDef( entityIdx = 2, graphicsId = 7, @@ -19248,9 +16748,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "PetalburgCity_Mart_EventScript_Boy", - ), + facing = 0, + script = "PetalburgCity_Mart_EventScript_Boy"), NpcDef( entityIdx = 3, graphicsId = 20, @@ -19262,8 +16761,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "PetalburgCity_Mart_EventScript_Woman", - ), + script = "PetalburgCity_Mart_EventScript_Woman"), ), bgEvents = emptyList(), ), @@ -19274,17 +16772,13 @@ object MapManager { mapId = 0, width = 21, height = 15, - paletteIdx1 = 128, - paletteIdx2 = 94, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 129, + unknownShort = 433, + unknownByte = 8, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -19299,8 +16793,7 @@ object MapManager { targetBankId = 50, targetMapId = 1, targetX = 26, - targetY = 38, - ), + targetY = 38), WarpTile( x = 3, y = 14, @@ -19308,8 +16801,7 @@ object MapManager { targetBankId = 50, targetMapId = 1, targetX = 26, - targetY = 38, - ), + targetY = 38), WarpTile( x = 3, y = 1, @@ -19317,8 +16809,7 @@ object MapManager { targetBankId = 59, targetMapId = 1, targetX = 3, - targetY = 1, - ), + targetY = 1), ), npcs = listOf( @@ -19332,9 +16823,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "SlateportCity_SternsShipyard_1F_EventScript_Dock", - ), + facing = 0, + script = "SlateportCity_SternsShipyard_1F_EventScript_Dock"), NpcDef( entityIdx = 1, graphicsId = 46, @@ -19345,9 +16835,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 0, - script = "SlateportCity_SternsShipyard_1F_EventScript_Scientist1", - ), + facing = 1, + script = "SlateportCity_SternsShipyard_1F_EventScript_Scientist1"), NpcDef( entityIdx = 2, graphicsId = 46, @@ -19359,8 +16848,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "SlateportCity_SternsShipyard_1F_EventScript_Scientist2", - ), + script = "SlateportCity_SternsShipyard_1F_EventScript_Scientist2"), ), bgEvents = emptyList(), ), @@ -19371,17 +16859,13 @@ object MapManager { mapId = 1, width = 17, height = 15, - paletteIdx1 = 128, - paletteIdx2 = 94, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 129, + unknownShort = 433, + unknownByte = 8, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -19396,8 +16880,8 @@ object MapManager { targetBankId = 59, targetMapId = 0, targetX = 3, - targetY = 1, - )), + targetY = 1), + ), npcs = listOf( NpcDef( @@ -19410,9 +16894,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 0, - script = "0x0", - ), + facing = 1, + script = "0x0"), NpcDef( entityIdx = 1, graphicsId = 46, @@ -19424,8 +16907,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "SlateportCity_SternsShipyard_2F_EventScript_Scientist1", - ), + script = "SlateportCity_SternsShipyard_2F_EventScript_Scientist1"), NpcDef( entityIdx = 2, graphicsId = 46, @@ -19436,9 +16918,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 0, - script = "SlateportCity_SternsShipyard_2F_EventScript_Scientist2", - ), + facing = 1, + script = "SlateportCity_SternsShipyard_2F_EventScript_Scientist2"), ), bgEvents = emptyList(), ), @@ -19449,17 +16930,13 @@ object MapManager { mapId = 2, width = 13, height = 10, - paletteIdx1 = 132, - paletteIdx2 = 108, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 172, + unknownShort = 384, + unknownByte = 8, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -19474,8 +16951,7 @@ object MapManager { targetBankId = 50, targetMapId = 1, targetX = 10, - targetY = 12, - ), + targetY = 12), WarpTile( x = 7, y = 9, @@ -19483,8 +16959,7 @@ object MapManager { targetBankId = 50, targetMapId = 1, targetX = 10, - targetY = 12, - ), + targetY = 12), ), npcs = listOf( @@ -19498,9 +16973,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "SlateportCity_BattleTentLobby_EventScript_Attendant", - ), + facing = 0, + script = "SlateportCity_BattleTentLobby_EventScript_Attendant"), NpcDef( entityIdx = 1, graphicsId = 49, @@ -19512,8 +16986,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "SlateportCity_BattleTentLobby_EventScript_TormentGiver", - ), + script = "SlateportCity_BattleTentLobby_EventScript_TormentGiver"), NpcDef( entityIdx = 2, graphicsId = 33, @@ -19524,9 +16997,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 0, - script = "SlateportCity_BattleTentLobby_EventScript_Man", - ), + facing = 1, + script = "SlateportCity_BattleTentLobby_EventScript_Man"), NpcDef( entityIdx = 3, graphicsId = 8, @@ -19538,8 +17010,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "SlateportCity_BattleTentLobby_EventScript_Girl", - ), + script = "SlateportCity_BattleTentLobby_EventScript_Girl"), NpcDef( entityIdx = 4, graphicsId = 20, @@ -19551,8 +17022,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 2, - script = "SlateportCity_BattleTentLobby_EventScript_Woman", - ), + script = "SlateportCity_BattleTentLobby_EventScript_Woman"), ), bgEvents = listOf( @@ -19560,8 +17030,8 @@ object MapManager { x = 4, y = 5, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "SlateportCity_BattleTentLobby_EventScript_RulesBoard", - )), + script = "SlateportCity_BattleTentLobby_EventScript_RulesBoard"), + ), ), // SlateportCity_BattleTentCorridor (MAP_SLATEPORT_CITY_BATTLE_TENT_CORRIDOR) MapDef( @@ -19570,17 +17040,13 @@ object MapManager { mapId = 3, width = 5, height = 8, - paletteIdx1 = 132, - paletteIdx2 = 108, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 172, + unknownShort = 384, + unknownByte = 8, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -19599,9 +17065,9 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 0, - script = "0x0", - )), + facing = 1, + script = "0x0"), + ), bgEvents = emptyList(), ), // SlateportCity_BattleTentBattleRoom (MAP_SLATEPORT_CITY_BATTLE_TENT_BATTLE_ROOM) @@ -19611,17 +17077,13 @@ object MapManager { mapId = 4, width = 10, height = 9, - paletteIdx1 = 132, - paletteIdx2 = 108, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 172, + unknownShort = 384, + unknownByte = 8, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -19641,8 +17103,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 3, - script = "0x0", - ), + script = "0x0"), NpcDef( entityIdx = 1, graphicsId = 240, @@ -19653,9 +17114,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "0x0", - ), + facing = 0, + script = "0x0"), NpcDef( entityIdx = 2, graphicsId = 0, @@ -19666,9 +17126,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 0, - script = "0x0", - ), + facing = 1, + script = "0x0"), ), bgEvents = emptyList(), ), @@ -19679,17 +17138,13 @@ object MapManager { mapId = 5, width = 10, height = 8, - paletteIdx1 = 98, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 147, + unknownShort = 433, + unknownByte = 8, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -19704,8 +17159,7 @@ object MapManager { targetBankId = 50, targetMapId = 1, targetX = 5, - targetY = 19, - ), + targetY = 19), WarpTile( x = 4, y = 7, @@ -19713,8 +17167,7 @@ object MapManager { targetBankId = 50, targetMapId = 1, targetX = 5, - targetY = 19, - ), + targetY = 19), ), npcs = listOf( @@ -19728,9 +17181,9 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "SlateportCity_NameRatersHouse_EventScript_NameRater", - )), + facing = 0, + script = "SlateportCity_NameRatersHouse_EventScript_NameRater"), + ), bgEvents = emptyList(), ), // SlateportCity_PokemonFanClub (MAP_SLATEPORT_CITY_POKEMON_FAN_CLUB) @@ -19740,17 +17193,13 @@ object MapManager { mapId = 6, width = 14, height = 11, - paletteIdx1 = 119, - paletteIdx2 = 85, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 121, + unknownShort = 433, + unknownByte = 8, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -19765,8 +17214,7 @@ object MapManager { targetBankId = 50, targetMapId = 1, targetX = 4, - targetY = 26, - ), + targetY = 26), WarpTile( x = 7, y = 10, @@ -19774,8 +17222,7 @@ object MapManager { targetBankId = 50, targetMapId = 1, targetX = 4, - targetY = 26, - ), + targetY = 26), ), npcs = listOf( @@ -19789,9 +17236,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "SlateportCity_PokemonFanClub_EventScript_Man", - ), + facing = 0, + script = "SlateportCity_PokemonFanClub_EventScript_Man"), NpcDef( entityIdx = 1, graphicsId = 6, @@ -19803,8 +17249,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "SlateportCity_PokemonFanClub_EventScript_Twin", - ), + script = "SlateportCity_PokemonFanClub_EventScript_Twin"), NpcDef( entityIdx = 2, graphicsId = 68, @@ -19815,9 +17260,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 0, - script = "SlateportCity_PokemonFanClub_EventScript_Reporter", - ), + facing = 1, + script = "SlateportCity_PokemonFanClub_EventScript_Reporter"), NpcDef( entityIdx = 3, graphicsId = 26, @@ -19829,8 +17273,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "SlateportCity_PokemonFanClub_EventScript_SootheBellWoman", - ), + script = "SlateportCity_PokemonFanClub_EventScript_SootheBellWoman"), NpcDef( entityIdx = 4, graphicsId = 48, @@ -19841,9 +17284,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "SlateportCity_PokemonFanClub_EventScript_Chairman", - ), + facing = 0, + script = "SlateportCity_PokemonFanClub_EventScript_Chairman"), NpcDef( entityIdx = 5, graphicsId = 0, @@ -19855,8 +17297,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "SlateportCity_PokemonFanClub_EventScript_Zigzagoon", - ), + script = "SlateportCity_PokemonFanClub_EventScript_Zigzagoon"), NpcDef( entityIdx = 6, graphicsId = 0, @@ -19868,8 +17309,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "SlateportCity_PokemonFanClub_EventScript_Skitty", - ), + script = "SlateportCity_PokemonFanClub_EventScript_Skitty"), NpcDef( entityIdx = 7, graphicsId = 0, @@ -19881,8 +17321,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "SlateportCity_PokemonFanClub_EventScript_Azumarill", - ), + script = "SlateportCity_PokemonFanClub_EventScript_Azumarill"), NpcDef( entityIdx = 8, graphicsId = 65, @@ -19894,8 +17333,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 2, - script = "SlateportCity_PokemonFanClub_EventScript_SwaggerTutor", - ), + script = "SlateportCity_PokemonFanClub_EventScript_SwaggerTutor"), ), bgEvents = emptyList(), ), @@ -19906,17 +17344,13 @@ object MapManager { mapId = 7, width = 20, height = 9, - paletteIdx1 = 102, - paletteIdx2 = 135, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 124, + unknownShort = 375, + unknownByte = 8, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -19931,8 +17365,7 @@ object MapManager { targetBankId = 50, targetMapId = 1, targetX = 30, - targetY = 26, - ), + targetY = 26), WarpTile( x = 10, y = 8, @@ -19940,8 +17373,7 @@ object MapManager { targetBankId = 50, targetMapId = 1, targetX = 31, - targetY = 26, - ), + targetY = 26), WarpTile( x = 6, y = 1, @@ -19949,8 +17381,7 @@ object MapManager { targetBankId = 59, targetMapId = 8, targetX = 6, - targetY = 1, - ), + targetY = 1), ), npcs = listOf( @@ -19965,8 +17396,8 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "SlateportCity_OceanicMuseum_1F_EventScript_EntranceAttendant", - ), + script = + "SlateportCity_OceanicMuseum_1F_EventScript_EntranceAttendant"), NpcDef( entityIdx = 6, graphicsId = 45, @@ -19978,8 +17409,8 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 2, - script = "SlateportCity_OceanicMuseum_1F_EventScript_EntranceAttendant", - ), + script = + "SlateportCity_OceanicMuseum_1F_EventScript_EntranceAttendant"), ), bgEvents = listOf( @@ -19988,83 +17419,70 @@ object MapManager { y = 7, facingDir = "BG_EVENT_PLAYER_FACING_ANY", script = - "SlateportCity_OceanicMuseum_1F_EventScript_WhirlpoolExperiment", - ), + "SlateportCity_OceanicMuseum_1F_EventScript_WhirlpoolExperiment"), BgEventDef( x = 2, y = 4, facingDir = "BG_EVENT_PLAYER_FACING_ANY", script = - "SlateportCity_OceanicMuseum_1F_EventScript_WaterfallExperiment", - ), + "SlateportCity_OceanicMuseum_1F_EventScript_WaterfallExperiment"), BgEventDef( x = 9, y = 1, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "SlateportCity_OceanicMuseum_1F_EventScript_OceanSoilDisplay", - ), + script = "SlateportCity_OceanicMuseum_1F_EventScript_OceanSoilDisplay"), BgEventDef( x = 12, y = 1, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "SlateportCity_OceanicMuseum_1F_EventScript_BeachSandDisplay", - ), + script = "SlateportCity_OceanicMuseum_1F_EventScript_BeachSandDisplay"), BgEventDef( x = 10, y = 1, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "SlateportCity_OceanicMuseum_1F_EventScript_OceanSoilDisplay", - ), + script = "SlateportCity_OceanicMuseum_1F_EventScript_OceanSoilDisplay"), BgEventDef( x = 13, y = 1, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "SlateportCity_OceanicMuseum_1F_EventScript_BeachSandDisplay", - ), + script = "SlateportCity_OceanicMuseum_1F_EventScript_BeachSandDisplay"), BgEventDef( x = 15, y = 4, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "SlateportCity_OceanicMuseum_1F_EventScript_OceanicMinifact1", - ), + script = "SlateportCity_OceanicMuseum_1F_EventScript_OceanicMinifact1"), BgEventDef( x = 18, y = 4, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "SlateportCity_OceanicMuseum_1F_EventScript_OceanicMinifact2", - ), + script = "SlateportCity_OceanicMuseum_1F_EventScript_OceanicMinifact2"), BgEventDef( x = 18, y = 7, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "SlateportCity_OceanicMuseum_1F_EventScript_OceanicMinifact3", - ), + script = "SlateportCity_OceanicMuseum_1F_EventScript_OceanicMinifact3"), BgEventDef( x = 2, y = 1, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "SlateportCity_OceanicMuseum_1F_EventScript_FossilDisplay", - ), + script = "SlateportCity_OceanicMuseum_1F_EventScript_FossilDisplay"), BgEventDef( x = 3, y = 1, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "SlateportCity_OceanicMuseum_1F_EventScript_FossilDisplay", - ), + script = "SlateportCity_OceanicMuseum_1F_EventScript_FossilDisplay"), BgEventDef( x = 16, y = 1, facingDir = "BG_EVENT_PLAYER_FACING_ANY", script = - "SlateportCity_OceanicMuseum_1F_EventScript_DepthMeasuringMachine", - ), + "SlateportCity_OceanicMuseum_1F_EventScript_DepthMeasuringMachine"), BgEventDef( x = 17, y = 1, facingDir = "BG_EVENT_PLAYER_FACING_ANY", script = - "SlateportCity_OceanicMuseum_1F_EventScript_DepthMeasuringMachine", - ), + "SlateportCity_OceanicMuseum_1F_EventScript_DepthMeasuringMachine"), ), ), // SlateportCity_OceanicMuseum_2F (MAP_SLATEPORT_CITY_OCEANIC_MUSEUM_2F) @@ -20074,17 +17492,13 @@ object MapManager { mapId = 8, width = 20, height = 9, - paletteIdx1 = 102, - paletteIdx2 = 135, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 124, + unknownShort = 375, + unknownByte = 8, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -20099,8 +17513,8 @@ object MapManager { targetBankId = 59, targetMapId = 7, targetX = 6, - targetY = 1, - )), + targetY = 1), + ), npcs = emptyList(), bgEvents = listOf( @@ -20109,137 +17523,116 @@ object MapManager { y = 4, facingDir = "BG_EVENT_PLAYER_FACING_ANY", script = - "SlateportCity_OceanicMuseum_2F_EventScript_WaterQualitySample1", - ), + "SlateportCity_OceanicMuseum_2F_EventScript_WaterQualitySample1"), BgEventDef( x = 18, y = 7, facingDir = "BG_EVENT_PLAYER_FACING_ANY", script = - "SlateportCity_OceanicMuseum_2F_EventScript_WaterQualitySample2", - ), + "SlateportCity_OceanicMuseum_2F_EventScript_WaterQualitySample2"), BgEventDef( x = 4, y = 3, facingDir = "BG_EVENT_PLAYER_FACING_ANY", script = - "SlateportCity_OceanicMuseum_2F_EventScript_SubmersibleReplica", - ), + "SlateportCity_OceanicMuseum_2F_EventScript_SubmersibleReplica"), BgEventDef( x = 4, y = 4, facingDir = "BG_EVENT_PLAYER_FACING_ANY", script = - "SlateportCity_OceanicMuseum_2F_EventScript_SubmersibleReplica", - ), + "SlateportCity_OceanicMuseum_2F_EventScript_SubmersibleReplica"), BgEventDef( x = 3, y = 3, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "SlateportCity_OceanicMuseum_2F_EventScript_SubmarineReplica", - ), + script = "SlateportCity_OceanicMuseum_2F_EventScript_SubmarineReplica"), BgEventDef( x = 2, y = 3, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "SlateportCity_OceanicMuseum_2F_EventScript_SubmarineReplica", - ), + script = "SlateportCity_OceanicMuseum_2F_EventScript_SubmarineReplica"), BgEventDef( x = 3, y = 4, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "SlateportCity_OceanicMuseum_2F_EventScript_SubmarineReplica", - ), + script = "SlateportCity_OceanicMuseum_2F_EventScript_SubmarineReplica"), BgEventDef( x = 3, y = 6, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "SlateportCity_OceanicMuseum_2F_EventScript_SSTidalReplica", - ), + script = "SlateportCity_OceanicMuseum_2F_EventScript_SSTidalReplica"), BgEventDef( x = 4, y = 6, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "SlateportCity_OceanicMuseum_2F_EventScript_SSTidalReplica", - ), + script = "SlateportCity_OceanicMuseum_2F_EventScript_SSTidalReplica"), BgEventDef( x = 13, y = 7, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "SlateportCity_OceanicMuseum_2F_EventScript_SSAnneReplica", - ), + script = "SlateportCity_OceanicMuseum_2F_EventScript_SSAnneReplica"), BgEventDef( x = 14, y = 7, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "SlateportCity_OceanicMuseum_2F_EventScript_SSAnneReplica", - ), + script = "SlateportCity_OceanicMuseum_2F_EventScript_SSAnneReplica"), BgEventDef( x = 18, y = 1, facingDir = "BG_EVENT_PLAYER_FACING_ANY", script = - "SlateportCity_OceanicMuseum_2F_EventScript_SurfaceSeawaterDisplay", - ), + "SlateportCity_OceanicMuseum_2F_EventScript_SurfaceSeawaterDisplay"), BgEventDef( x = 19, y = 1, facingDir = "BG_EVENT_PLAYER_FACING_ANY", script = - "SlateportCity_OceanicMuseum_2F_EventScript_SurfaceSeawaterDisplay", - ), + "SlateportCity_OceanicMuseum_2F_EventScript_SurfaceSeawaterDisplay"), BgEventDef( x = 15, y = 1, facingDir = "BG_EVENT_PLAYER_FACING_ANY", script = - "SlateportCity_OceanicMuseum_2F_EventScript_DeepSeawaterDisplay", - ), + "SlateportCity_OceanicMuseum_2F_EventScript_DeepSeawaterDisplay"), BgEventDef( x = 16, y = 1, facingDir = "BG_EVENT_PLAYER_FACING_ANY", script = - "SlateportCity_OceanicMuseum_2F_EventScript_DeepSeawaterDisplay", - ), + "SlateportCity_OceanicMuseum_2F_EventScript_DeepSeawaterDisplay"), BgEventDef( x = 8, y = 1, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "SlateportCity_OceanicMuseum_2F_EventScript_HoennModel", - ), + script = "SlateportCity_OceanicMuseum_2F_EventScript_HoennModel"), BgEventDef( x = 9, y = 1, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "SlateportCity_OceanicMuseum_2F_EventScript_HoennModel", - ), + script = "SlateportCity_OceanicMuseum_2F_EventScript_HoennModel"), BgEventDef( x = 12, y = 1, facingDir = "BG_EVENT_PLAYER_FACING_ANY", script = - "SlateportCity_OceanicMuseum_2F_EventScript_PressureExperiment", - ), + "SlateportCity_OceanicMuseum_2F_EventScript_PressureExperiment"), BgEventDef( x = 13, y = 1, facingDir = "BG_EVENT_PLAYER_FACING_ANY", script = - "SlateportCity_OceanicMuseum_2F_EventScript_PressureExperiment", - ), + "SlateportCity_OceanicMuseum_2F_EventScript_PressureExperiment"), BgEventDef( x = 3, y = 7, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "SlateportCity_OceanicMuseum_2F_EventScript_SSTidalReplica", - ), + script = "SlateportCity_OceanicMuseum_2F_EventScript_SSTidalReplica"), BgEventDef( x = 4, y = 7, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "SlateportCity_OceanicMuseum_2F_EventScript_SSTidalReplica", - ), + script = "SlateportCity_OceanicMuseum_2F_EventScript_SSTidalReplica"), ), ), ) @@ -20256,17 +17649,13 @@ object MapManager { mapId = 9, width = 24, height = 15, - paletteIdx1 = 128, - paletteIdx2 = 94, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 129, + unknownShort = 433, + unknownByte = 8, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -20281,8 +17670,7 @@ object MapManager { targetBankId = 50, targetMapId = 1, targetX = 28, - targetY = 12, - ), + targetY = 12), WarpTile( x = 12, y = 14, @@ -20290,8 +17678,7 @@ object MapManager { targetBankId = 50, targetMapId = 1, targetX = 28, - targetY = 12, - ), + targetY = 12), WarpTile( x = 19, y = 15, @@ -20299,8 +17686,7 @@ object MapManager { targetBankId = 50, targetMapId = 1, targetX = 40, - targetY = 7, - ), + targetY = 7), WarpTile( x = 20, y = 15, @@ -20308,8 +17694,7 @@ object MapManager { targetBankId = 50, targetMapId = 1, targetX = 40, - targetY = 7, - ), + targetY = 7), ), npcs = emptyList(), bgEvents = emptyList(), @@ -20321,17 +17706,13 @@ object MapManager { mapId = 10, width = 11, height = 8, - paletteIdx1 = 98, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 147, + unknownShort = 433, + unknownByte = 8, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -20346,8 +17727,7 @@ object MapManager { targetBankId = 50, targetMapId = 1, targetX = 21, - targetY = 44, - ), + targetY = 44), WarpTile( x = 4, y = 7, @@ -20355,8 +17735,7 @@ object MapManager { targetBankId = 50, targetMapId = 1, targetX = 21, - targetY = 44, - ), + targetY = 44), ), npcs = listOf( @@ -20371,8 +17750,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "SlateportCity_House_EventScript_PokefanM", - ), + script = "SlateportCity_House_EventScript_PokefanM"), NpcDef( entityIdx = 1, graphicsId = 14, @@ -20384,8 +17762,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 2, - script = "SlateportCity_House_EventScript_Girl", - ), + script = "SlateportCity_House_EventScript_Girl"), ), bgEvents = emptyList(), ), @@ -20396,17 +17773,13 @@ object MapManager { mapId = 11, width = 14, height = 9, - paletteIdx1 = 87, - paletteIdx2 = 121, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 118, + unknownShort = 400, + unknownByte = 8, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -20421,8 +17794,7 @@ object MapManager { targetBankId = 50, targetMapId = 1, targetX = 19, - targetY = 19, - ), + targetY = 19), WarpTile( x = 6, y = 8, @@ -20430,8 +17802,7 @@ object MapManager { targetBankId = 50, targetMapId = 1, targetX = 19, - targetY = 19, - ), + targetY = 19), WarpTile( x = 1, y = 6, @@ -20439,8 +17810,7 @@ object MapManager { targetBankId = 59, targetMapId = 12, targetX = 1, - targetY = 6, - ), + targetY = 6), ), npcs = listOf( @@ -20454,9 +17824,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "SlateportCity_PokemonCenter_1F_EventScript_Nurse", - ), + facing = 0, + script = "SlateportCity_PokemonCenter_1F_EventScript_Nurse"), NpcDef( entityIdx = 1, graphicsId = 49, @@ -20467,9 +17836,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "SlateportCity_PokemonCenter_1F_EventScript_Sailor", - ), + facing = 0, + script = "SlateportCity_PokemonCenter_1F_EventScript_Sailor"), NpcDef( entityIdx = 2, graphicsId = 34, @@ -20481,8 +17849,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "SlateportCity_PokemonCenter_1F_EventScript_Woman", - ), + script = "SlateportCity_PokemonCenter_1F_EventScript_Woman"), ), bgEvents = emptyList(), ), @@ -20493,17 +17860,13 @@ object MapManager { mapId = 12, width = 14, height = 10, - paletteIdx1 = 87, - paletteIdx2 = 121, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 118, + unknownShort = 400, + unknownByte = 8, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -20518,8 +17881,7 @@ object MapManager { targetBankId = 59, targetMapId = 11, targetX = 1, - targetY = 6, - ), + targetY = 6), WarpTile( x = 5, y = 1, @@ -20527,8 +17889,7 @@ object MapManager { targetBankId = 75, targetMapId = 60, targetX = 7, - targetY = 11, - ), + targetY = 11), WarpTile( x = 9, y = 1, @@ -20536,8 +17897,7 @@ object MapManager { targetBankId = 75, targetMapId = 25, targetX = 5, - targetY = 8, - ), + targetY = 8), ), npcs = listOf( @@ -20551,9 +17911,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "Common_EventScript_UnionRoomAttendant", - ), + facing = 0, + script = "Common_EventScript_UnionRoomAttendant"), NpcDef( entityIdx = 1, graphicsId = 0, @@ -20564,9 +17923,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "Common_EventScript_WirelessClubAttendant", - ), + facing = 0, + script = "Common_EventScript_WirelessClubAttendant"), NpcDef( entityIdx = 2, graphicsId = 0, @@ -20577,9 +17935,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "Common_EventScript_DirectCornerAttendant", - ), + facing = 0, + script = "Common_EventScript_DirectCornerAttendant"), ), bgEvents = emptyList(), ), @@ -20590,17 +17947,13 @@ object MapManager { mapId = 13, width = 11, height = 8, - paletteIdx1 = 95, - paletteIdx2 = 87, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 117, + unknownShort = 404, + unknownByte = 8, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -20615,8 +17968,7 @@ object MapManager { targetBankId = 50, targetMapId = 1, targetX = 13, - targetY = 26, - ), + targetY = 26), WarpTile( x = 4, y = 7, @@ -20624,8 +17976,7 @@ object MapManager { targetBankId = 50, targetMapId = 1, targetX = 13, - targetY = 26, - ), + targetY = 26), ), npcs = listOf( @@ -20640,8 +17991,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "SlateportCity_Mart_EventScript_Clerk", - ), + script = "SlateportCity_Mart_EventScript_Clerk"), NpcDef( entityIdx = 1, graphicsId = 44, @@ -20652,9 +18002,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 0, - script = "SlateportCity_Mart_EventScript_BlackBelt", - ), + facing = 1, + script = "SlateportCity_Mart_EventScript_BlackBelt"), NpcDef( entityIdx = 2, graphicsId = 33, @@ -20666,8 +18015,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "SlateportCity_Mart_EventScript_Man", - ), + script = "SlateportCity_Mart_EventScript_Man"), ), bgEvents = emptyList(), ), @@ -20678,17 +18026,13 @@ object MapManager { mapId = 0, width = 10, height = 21, - paletteIdx1 = 84, - paletteIdx2 = 120, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 151, + unknownShort = 364, + unknownByte = 9, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -20703,8 +18047,7 @@ object MapManager { targetBankId = 50, targetMapId = 2, targetX = 8, - targetY = 5, - ), + targetY = 5), WarpTile( x = 5, y = 20, @@ -20712,8 +18055,7 @@ object MapManager { targetBankId = 50, targetMapId = 2, targetX = 8, - targetY = 5, - ), + targetY = 5), ), npcs = listOf( @@ -20727,9 +18069,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 1, - facing = 1, - script = "MauvilleCity_Gym_EventScript_Shawn", - ), + facing = 0, + script = "MauvilleCity_Gym_EventScript_Shawn"), NpcDef( entityIdx = 2, graphicsId = 14, @@ -20740,9 +18081,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 1, - facing = 0, - script = "MauvilleCity_Gym_EventScript_Vivian", - ), + facing = 1, + script = "MauvilleCity_Gym_EventScript_Vivian"), NpcDef( entityIdx = 3, graphicsId = 35, @@ -20754,8 +18094,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 2, - script = "MauvilleCity_Gym_EventScript_Ben", - ), + script = "MauvilleCity_Gym_EventScript_Ben"), NpcDef( entityIdx = 4, graphicsId = 66, @@ -20766,9 +18105,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 1, - facing = 1, - script = "MauvilleCity_Gym_EventScript_Kirk", - ), + facing = 0, + script = "MauvilleCity_Gym_EventScript_Kirk"), NpcDef( entityIdx = 5, graphicsId = 23, @@ -20780,8 +18118,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 2, - script = "MauvilleCity_Gym_EventScript_GymGuide", - ), + script = "MauvilleCity_Gym_EventScript_GymGuide"), NpcDef( entityIdx = 6, graphicsId = 39, @@ -20792,9 +18129,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 1, - facing = 0, - script = "MauvilleCity_Gym_EventScript_Angelo", - ), + facing = 1, + script = "MauvilleCity_Gym_EventScript_Angelo"), ), bgEvents = listOf( @@ -20802,14 +18138,12 @@ object MapManager { x = 3, y = 18, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "MauvilleCity_Gym_EventScript_LeftGymStatue", - ), + script = "MauvilleCity_Gym_EventScript_LeftGymStatue"), BgEventDef( x = 6, y = 18, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "MauvilleCity_Gym_EventScript_RightGymStatue", - ), + script = "MauvilleCity_Gym_EventScript_RightGymStatue"), ), ), // MauvilleCity_BikeShop (MAP_MAUVILLE_CITY_BIKE_SHOP) @@ -20819,17 +18153,13 @@ object MapManager { mapId = 1, width = 12, height = 9, - paletteIdx1 = 128, - paletteIdx2 = 110, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 130, + unknownShort = 399, + unknownByte = 9, borderTiles = listOf( - Tile2D(0x0208, 0), - Tile2D(0x0208, 0), - Tile2D(0x0208, 0), - Tile2D(0x0208, 0), - ), + Tile2D(0x0208, 0), Tile2D(0x0208, 0), Tile2D(0x0208, 0), Tile2D(0x0208, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -20844,8 +18174,7 @@ object MapManager { targetBankId = 50, targetMapId = 2, targetX = 35, - targetY = 5, - ), + targetY = 5), WarpTile( x = 4, y = 8, @@ -20853,8 +18182,7 @@ object MapManager { targetBankId = 50, targetMapId = 2, targetX = 35, - targetY = 5, - ), + targetY = 5), ), npcs = listOf( @@ -20869,8 +18197,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 2, - script = "MauvilleCity_BikeShop_EventScript_Rydel", - ), + script = "MauvilleCity_BikeShop_EventScript_Rydel"), NpcDef( entityIdx = 1, graphicsId = 66, @@ -20882,8 +18209,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "MauvilleCity_BikeShop_EventScript_Assistant", - ), + script = "MauvilleCity_BikeShop_EventScript_Assistant"), ), bgEvents = listOf( @@ -20891,14 +18217,12 @@ object MapManager { x = 8, y = 1, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "MauvilleCity_BikeShop_EventScript_MachBikeHandbook", - ), + script = "MauvilleCity_BikeShop_EventScript_MachBikeHandbook"), BgEventDef( x = 11, y = 1, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "MauvilleCity_BikeShop_EventScript_AcroBikeHandbook", - ), + script = "MauvilleCity_BikeShop_EventScript_AcroBikeHandbook"), ), ), // MauvilleCity_House1 (MAP_MAUVILLE_CITY_HOUSE1) @@ -20908,17 +18232,13 @@ object MapManager { mapId = 2, width = 11, height = 8, - paletteIdx1 = 98, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 147, + unknownShort = 399, + unknownByte = 9, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -20933,8 +18253,7 @@ object MapManager { targetBankId = 50, targetMapId = 2, targetX = 32, - targetY = 14, - ), + targetY = 14), WarpTile( x = 4, y = 7, @@ -20942,8 +18261,7 @@ object MapManager { targetBankId = 50, targetMapId = 2, targetX = 32, - targetY = 14, - ), + targetY = 14), ), npcs = listOf( @@ -20958,8 +18276,8 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "MauvilleCity_House1_EventScript_RockSmashDude", - )), + script = "MauvilleCity_House1_EventScript_RockSmashDude"), + ), bgEvents = emptyList(), ), // MauvilleCity_GameCorner (MAP_MAUVILLE_CITY_GAME_CORNER) @@ -20969,17 +18287,13 @@ object MapManager { mapId = 3, width = 22, height = 11, - paletteIdx1 = 81, - paletteIdx2 = 107, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 148, + unknownShort = 426, + unknownByte = 9, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -20994,8 +18308,7 @@ object MapManager { targetBankId = 50, targetMapId = 2, targetX = 8, - targetY = 13, - ), + targetY = 13), WarpTile( x = 12, y = 10, @@ -21003,8 +18316,7 @@ object MapManager { targetBankId = 50, targetMapId = 2, targetX = 8, - targetY = 13, - ), + targetY = 13), ), npcs = listOf( @@ -21018,9 +18330,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "MauvilleCity_GameCorner_EventScript_Woman2", - ), + facing = 0, + script = "MauvilleCity_GameCorner_EventScript_Woman2"), NpcDef( entityIdx = 1, graphicsId = 48, @@ -21031,9 +18342,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "MauvilleCity_GameCorner_EventScript_Gentleman", - ), + facing = 0, + script = "MauvilleCity_GameCorner_EventScript_Gentleman"), NpcDef( entityIdx = 2, graphicsId = 45, @@ -21044,9 +18354,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "MauvilleCity_GameCorner_EventScript_CoinsClerk", - ), + facing = 0, + script = "MauvilleCity_GameCorner_EventScript_CoinsClerk"), NpcDef( entityIdx = 3, graphicsId = 45, @@ -21057,9 +18366,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "MauvilleCity_GameCorner_EventScript_PrizeCornerDolls", - ), + facing = 0, + script = "MauvilleCity_GameCorner_EventScript_PrizeCornerDolls"), NpcDef( entityIdx = 4, graphicsId = 10, @@ -21070,9 +18378,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "MauvilleCity_GameCorner_EventScript_Girl", - ), + facing = 0, + script = "MauvilleCity_GameCorner_EventScript_Girl"), NpcDef( entityIdx = 5, graphicsId = 25, @@ -21083,9 +18390,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "MauvilleCity_GameCorner_EventScript_PokefanM", - ), + facing = 0, + script = "MauvilleCity_GameCorner_EventScript_PokefanM"), NpcDef( entityIdx = 6, graphicsId = 29, @@ -21097,8 +18403,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 2, - script = "MauvilleCity_GameCorner_EventScript_OldMan", - ), + script = "MauvilleCity_GameCorner_EventScript_OldMan"), NpcDef( entityIdx = 7, graphicsId = 27, @@ -21110,8 +18415,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "MauvilleCity_GameCorner_EventScript_Cook", - ), + script = "MauvilleCity_GameCorner_EventScript_Cook"), NpcDef( entityIdx = 8, graphicsId = 45, @@ -21122,9 +18426,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "MauvilleCity_GameCorner_EventScript_PrizeCornerTMs", - ), + facing = 0, + script = "MauvilleCity_GameCorner_EventScript_PrizeCornerTMs"), NpcDef( entityIdx = 9, graphicsId = 33, @@ -21136,8 +18439,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 3, - script = "MauvilleCity_GameCorner_EventScript_Man", - ), + script = "MauvilleCity_GameCorner_EventScript_Man"), NpcDef( entityIdx = 10, graphicsId = 39, @@ -21149,8 +18451,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 2, - script = "MauvilleCity_GameCorner_EventScript_Maniac", - ), + script = "MauvilleCity_GameCorner_EventScript_Maniac"), NpcDef( entityIdx = 11, graphicsId = 34, @@ -21162,8 +18463,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 2, - script = "MauvilleCity_GameCorner_EventScript_Woman", - ), + script = "MauvilleCity_GameCorner_EventScript_Woman"), ), bgEvents = listOf( @@ -21171,146 +18471,122 @@ object MapManager { x = 2, y = 6, facingDir = "BG_EVENT_PLAYER_FACING_EAST", - script = "MauvilleCity_GameCorner_EventScript_SlotMachine0", - ), + script = "MauvilleCity_GameCorner_EventScript_SlotMachine0"), BgEventDef( x = 2, y = 8, facingDir = "BG_EVENT_PLAYER_FACING_EAST", - script = "MauvilleCity_GameCorner_EventScript_SlotMachine1", - ), + script = "MauvilleCity_GameCorner_EventScript_SlotMachine1"), BgEventDef( x = 2, y = 9, facingDir = "BG_EVENT_PLAYER_FACING_EAST", - script = "MauvilleCity_GameCorner_EventScript_SlotMachine2", - ), + script = "MauvilleCity_GameCorner_EventScript_SlotMachine2"), BgEventDef( x = 3, y = 7, facingDir = "BG_EVENT_PLAYER_FACING_WEST", - script = "MauvilleCity_GameCorner_EventScript_SlotMachine3", - ), + script = "MauvilleCity_GameCorner_EventScript_SlotMachine3"), BgEventDef( x = 3, y = 8, facingDir = "BG_EVENT_PLAYER_FACING_WEST", - script = "MauvilleCity_GameCorner_EventScript_SlotMachine4", - ), + script = "MauvilleCity_GameCorner_EventScript_SlotMachine4"), BgEventDef( x = 3, y = 9, facingDir = "BG_EVENT_PLAYER_FACING_WEST", - script = "MauvilleCity_GameCorner_EventScript_SlotMachine5", - ), + script = "MauvilleCity_GameCorner_EventScript_SlotMachine5"), BgEventDef( x = 7, y = 6, facingDir = "BG_EVENT_PLAYER_FACING_EAST", - script = "MauvilleCity_GameCorner_EventScript_SlotMachine6", - ), + script = "MauvilleCity_GameCorner_EventScript_SlotMachine6"), BgEventDef( x = 7, y = 7, facingDir = "BG_EVENT_PLAYER_FACING_EAST", - script = "MauvilleCity_GameCorner_EventScript_SlotMachine7", - ), + script = "MauvilleCity_GameCorner_EventScript_SlotMachine7"), BgEventDef( x = 7, y = 9, facingDir = "BG_EVENT_PLAYER_FACING_EAST", - script = "MauvilleCity_GameCorner_EventScript_SlotMachine8", - ), + script = "MauvilleCity_GameCorner_EventScript_SlotMachine8"), BgEventDef( x = 8, y = 6, facingDir = "BG_EVENT_PLAYER_FACING_WEST", - script = "MauvilleCity_GameCorner_EventScript_SlotMachine9", - ), + script = "MauvilleCity_GameCorner_EventScript_SlotMachine9"), BgEventDef( x = 8, y = 7, facingDir = "BG_EVENT_PLAYER_FACING_WEST", - script = "MauvilleCity_GameCorner_EventScript_SlotMachine10", - ), + script = "MauvilleCity_GameCorner_EventScript_SlotMachine10"), BgEventDef( x = 8, y = 9, facingDir = "BG_EVENT_PLAYER_FACING_WEST", - script = "MauvilleCity_GameCorner_EventScript_SlotMachine11", - ), + script = "MauvilleCity_GameCorner_EventScript_SlotMachine11"), BgEventDef( x = 14, y = 6, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Roulette_EventScript_Table1", - ), + script = "Roulette_EventScript_Table1"), BgEventDef( x = 15, y = 6, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Roulette_EventScript_Table1", - ), + script = "Roulette_EventScript_Table1"), BgEventDef( x = 14, y = 7, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Roulette_EventScript_Table1", - ), + script = "Roulette_EventScript_Table1"), BgEventDef( x = 15, y = 7, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Roulette_EventScript_Table1", - ), + script = "Roulette_EventScript_Table1"), BgEventDef( x = 14, y = 8, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Roulette_EventScript_Table1", - ), + script = "Roulette_EventScript_Table1"), BgEventDef( x = 15, y = 8, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Roulette_EventScript_Table1", - ), + script = "Roulette_EventScript_Table1"), BgEventDef( x = 18, y = 6, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Roulette_EventScript_Table2", - ), + script = "Roulette_EventScript_Table2"), BgEventDef( x = 19, y = 6, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Roulette_EventScript_Table2", - ), + script = "Roulette_EventScript_Table2"), BgEventDef( x = 18, y = 7, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Roulette_EventScript_Table2", - ), + script = "Roulette_EventScript_Table2"), BgEventDef( x = 19, y = 7, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Roulette_EventScript_Table2", - ), + script = "Roulette_EventScript_Table2"), BgEventDef( x = 18, y = 8, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Roulette_EventScript_Table2", - ), + script = "Roulette_EventScript_Table2"), BgEventDef( x = 19, y = 8, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Roulette_EventScript_Table2", - ), + script = "Roulette_EventScript_Table2"), ), ), // MauvilleCity_House2 (MAP_MAUVILLE_CITY_HOUSE2) @@ -21320,17 +18596,13 @@ object MapManager { mapId = 4, width = 10, height = 9, - paletteIdx1 = 98, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 147, + unknownShort = 399, + unknownByte = 9, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -21345,8 +18617,7 @@ object MapManager { targetBankId = 50, targetMapId = 2, targetX = 19, - targetY = 14, - ), + targetY = 14), WarpTile( x = 4, y = 8, @@ -21354,8 +18625,7 @@ object MapManager { targetBankId = 50, targetMapId = 2, targetX = 19, - targetY = 14, - ), + targetY = 14), ), npcs = listOf( @@ -21370,8 +18640,8 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 2, - script = "MauvilleCity_House2_EventScript_Woman", - )), + script = "MauvilleCity_House2_EventScript_Woman"), + ), bgEvents = emptyList(), ), // MauvilleCity_PokemonCenter_1F (MAP_MAUVILLE_CITY_POKEMON_CENTER_1F) @@ -21381,17 +18651,13 @@ object MapManager { mapId = 5, width = 14, height = 9, - paletteIdx1 = 87, - paletteIdx2 = 121, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 118, + unknownShort = 400, + unknownByte = 9, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -21406,8 +18672,7 @@ object MapManager { targetBankId = 50, targetMapId = 2, targetX = 22, - targetY = 5, - ), + targetY = 5), WarpTile( x = 6, y = 8, @@ -21415,8 +18680,7 @@ object MapManager { targetBankId = 50, targetMapId = 2, targetX = 22, - targetY = 5, - ), + targetY = 5), WarpTile( x = 1, y = 6, @@ -21424,8 +18688,7 @@ object MapManager { targetBankId = 60, targetMapId = 6, targetX = 1, - targetY = 6, - ), + targetY = 6), ), npcs = listOf( @@ -21439,9 +18702,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "MauvilleCity_PokemonCenter_1F_EventScript_Nurse", - ), + facing = 0, + script = "MauvilleCity_PokemonCenter_1F_EventScript_Nurse"), NpcDef( entityIdx = 1, graphicsId = 240, @@ -21453,8 +18715,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 2, - script = "MauvilleCity_PokemonCenter_1F_EventScript_MauvilleOldMan", - ), + script = "MauvilleCity_PokemonCenter_1F_EventScript_MauvilleOldMan"), NpcDef( entityIdx = 2, graphicsId = 16, @@ -21466,8 +18727,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "MauvilleCity_PokemonCenter_1F_EventScript_Woman1", - ), + script = "MauvilleCity_PokemonCenter_1F_EventScript_Woman1"), NpcDef( entityIdx = 3, graphicsId = 34, @@ -21479,8 +18739,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "MauvilleCity_PokemonCenter_1F_EventScript_Woman2", - ), + script = "MauvilleCity_PokemonCenter_1F_EventScript_Woman2"), NpcDef( entityIdx = 4, graphicsId = 35, @@ -21492,8 +18751,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "MauvilleCity_PokemonCenter_1F_EventScript_Youngster", - ), + script = "MauvilleCity_PokemonCenter_1F_EventScript_Youngster"), ), bgEvents = emptyList(), ), @@ -21504,17 +18762,13 @@ object MapManager { mapId = 6, width = 14, height = 10, - paletteIdx1 = 87, - paletteIdx2 = 121, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 118, + unknownShort = 400, + unknownByte = 9, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -21529,8 +18783,7 @@ object MapManager { targetBankId = 60, targetMapId = 5, targetX = 1, - targetY = 6, - ), + targetY = 6), WarpTile( x = 5, y = 1, @@ -21538,8 +18791,7 @@ object MapManager { targetBankId = 75, targetMapId = 60, targetX = 7, - targetY = 11, - ), + targetY = 11), WarpTile( x = 9, y = 1, @@ -21547,8 +18799,7 @@ object MapManager { targetBankId = 75, targetMapId = 25, targetX = 5, - targetY = 8, - ), + targetY = 8), ), npcs = listOf( @@ -21562,9 +18813,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "Common_EventScript_UnionRoomAttendant", - ), + facing = 0, + script = "Common_EventScript_UnionRoomAttendant"), NpcDef( entityIdx = 1, graphicsId = 0, @@ -21575,9 +18825,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "Common_EventScript_WirelessClubAttendant", - ), + facing = 0, + script = "Common_EventScript_WirelessClubAttendant"), NpcDef( entityIdx = 2, graphicsId = 0, @@ -21588,9 +18837,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "Common_EventScript_DirectCornerAttendant", - ), + facing = 0, + script = "Common_EventScript_DirectCornerAttendant"), NpcDef( entityIdx = 4, graphicsId = 35, @@ -21601,9 +18849,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 0, - script = "MauvilleCity_PokemonCenter_2F_EventScript_Youngster", - ), + facing = 1, + script = "MauvilleCity_PokemonCenter_2F_EventScript_Youngster"), ), bgEvents = emptyList(), ), @@ -21614,17 +18861,13 @@ object MapManager { mapId = 7, width = 11, height = 8, - paletteIdx1 = 95, - paletteIdx2 = 87, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 117, + unknownShort = 404, + unknownByte = 9, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -21639,8 +18882,7 @@ object MapManager { targetBankId = 50, targetMapId = 2, targetX = 23, - targetY = 14, - ), + targetY = 14), WarpTile( x = 4, y = 7, @@ -21648,8 +18890,7 @@ object MapManager { targetBankId = 50, targetMapId = 2, targetX = 23, - targetY = 14, - ), + targetY = 14), ), npcs = listOf( @@ -21664,8 +18905,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "MauvilleCity_Mart_EventScript_Clerk", - ), + script = "MauvilleCity_Mart_EventScript_Clerk"), NpcDef( entityIdx = 1, graphicsId = 21, @@ -21677,8 +18917,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "MauvilleCity_Mart_EventScript_ExpertM", - ), + script = "MauvilleCity_Mart_EventScript_ExpertM"), NpcDef( entityIdx = 2, graphicsId = 33, @@ -21690,8 +18929,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "MauvilleCity_Mart_EventScript_Man", - ), + script = "MauvilleCity_Mart_EventScript_Man"), ), bgEvents = emptyList(), ), @@ -21702,17 +18940,13 @@ object MapManager { mapId = 0, width = 19, height = 9, - paletteIdx1 = 120, - paletteIdx2 = 114, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 129, + unknownShort = 399, + unknownByte = 10, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -21727,8 +18961,7 @@ object MapManager { targetBankId = 50, targetMapId = 3, targetX = 11, - targetY = 15, - ), + targetY = 15), WarpTile( x = 6, y = 8, @@ -21736,8 +18969,7 @@ object MapManager { targetBankId = 50, targetMapId = 3, targetX = 12, - targetY = 15, - ), + targetY = 15), WarpTile( x = 14, y = 1, @@ -21745,8 +18977,7 @@ object MapManager { targetBankId = 61, targetMapId = 1, targetX = 14, - targetY = 1, - ), + targetY = 1), ), npcs = listOf( @@ -21761,8 +18992,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "RustboroCity_DevonCorp_1F_EventScript_Employee", - ), + script = "RustboroCity_DevonCorp_1F_EventScript_Employee"), NpcDef( entityIdx = 1, graphicsId = 0, @@ -21774,8 +19004,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "RustboroCity_DevonCorp_1F_EventScript_StairGuard", - ), + script = "RustboroCity_DevonCorp_1F_EventScript_StairGuard"), NpcDef( entityIdx = 2, graphicsId = 24, @@ -21786,9 +19015,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "RustboroCity_DevonCorp_1F_EventScript_Greeter", - ), + facing = 0, + script = "RustboroCity_DevonCorp_1F_EventScript_Greeter"), ), bgEvents = listOf( @@ -21796,14 +19024,12 @@ object MapManager { x = 3, y = 2, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "RustboroCity_DevonCorp_1F_EventScript_ProductsDisplay", - ), + script = "RustboroCity_DevonCorp_1F_EventScript_ProductsDisplay"), BgEventDef( x = 8, y = 2, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "RustboroCity_DevonCorp_1F_EventScript_RocksMetalDisplay", - ), + script = "RustboroCity_DevonCorp_1F_EventScript_RocksMetalDisplay"), ), ), // RustboroCity_DevonCorp_2F (MAP_RUSTBORO_CITY_DEVON_CORP_2F) @@ -21813,17 +19039,13 @@ object MapManager { mapId = 1, width = 19, height = 9, - paletteIdx1 = 128, - paletteIdx2 = 94, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 129, + unknownShort = 399, + unknownByte = 10, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -21838,8 +19060,7 @@ object MapManager { targetBankId = 61, targetMapId = 0, targetX = 14, - targetY = 1, - ), + targetY = 1), WarpTile( x = 2, y = 1, @@ -21847,8 +19068,7 @@ object MapManager { targetBankId = 61, targetMapId = 2, targetX = 2, - targetY = 1, - ), + targetY = 1), ), npcs = listOf( @@ -21862,9 +19082,9 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 0, - script = "RustboroCity_DevonCorp_2F_EventScript_TalkToPokemonScientist", - ), + facing = 1, + script = + "RustboroCity_DevonCorp_2F_EventScript_TalkToPokemonScientist"), NpcDef( entityIdx = 1, graphicsId = 46, @@ -21876,8 +19096,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "RustboroCity_DevonCorp_2F_EventScript_BallScientist", - ), + script = "RustboroCity_DevonCorp_2F_EventScript_BallScientist"), NpcDef( entityIdx = 2, graphicsId = 46, @@ -21889,8 +19108,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "RustboroCity_DevonCorp_2F_EventScript_PokenavScientist", - ), + script = "RustboroCity_DevonCorp_2F_EventScript_PokenavScientist"), NpcDef( entityIdx = 3, graphicsId = 46, @@ -21901,9 +19119,9 @@ object MapManager { movementRangeX = 0, movementRangeY = 10, trainerType = 0, - facing = 0, - script = "RustboroCity_DevonCorp_2F_EventScript_PokemonDreamsScientist", - ), + facing = 1, + script = + "RustboroCity_DevonCorp_2F_EventScript_PokemonDreamsScientist"), NpcDef( entityIdx = 4, graphicsId = 46, @@ -21914,9 +19132,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 0, - script = "RustboroCity_DevonCorp_2F_EventScript_FossilScientist", - ), + facing = 1, + script = "RustboroCity_DevonCorp_2F_EventScript_FossilScientist"), NpcDef( entityIdx = 5, graphicsId = 46, @@ -21927,9 +19144,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 0, - script = "RustboroCity_DevonCorp_2F_EventScript_MatchCallScientist", - ), + facing = 1, + script = "RustboroCity_DevonCorp_2F_EventScript_MatchCallScientist"), ), bgEvents = emptyList(), ), @@ -21940,17 +19156,13 @@ object MapManager { mapId = 2, width = 19, height = 9, - paletteIdx1 = 120, - paletteIdx2 = 114, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 129, + unknownShort = 399, + unknownByte = 10, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -21965,8 +19177,8 @@ object MapManager { targetBankId = 61, targetMapId = 1, targetX = 2, - targetY = 1, - )), + targetY = 1), + ), npcs = listOf( NpcDef( @@ -21980,8 +19192,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 2, - script = "RustboroCity_DevonCorp_3F_EventScript_MrStone", - ), + script = "RustboroCity_DevonCorp_3F_EventScript_MrStone"), NpcDef( entityIdx = 2, graphicsId = 48, @@ -21993,8 +19204,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "RustboroCity_DevonCorp_3F_EventScript_MrStone", - ), + script = "RustboroCity_DevonCorp_3F_EventScript_MrStone"), ), bgEvents = listOf( @@ -22002,14 +19212,12 @@ object MapManager { x = 1, y = 5, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "RustboroCity_DevonCorp_3F_EventScript_RareRocksDisplay", - ), + script = "RustboroCity_DevonCorp_3F_EventScript_RareRocksDisplay"), BgEventDef( x = 1, y = 7, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "RustboroCity_DevonCorp_3F_EventScript_RareRocksDisplay", - ), + script = "RustboroCity_DevonCorp_3F_EventScript_RareRocksDisplay"), ), ), // RustboroCity_Gym (MAP_RUSTBORO_CITY_GYM) @@ -22019,17 +19227,13 @@ object MapManager { mapId = 3, width = 11, height = 20, - paletteIdx1 = 82, - paletteIdx2 = 118, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 149, + unknownShort = 364, + unknownByte = 10, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -22044,8 +19248,7 @@ object MapManager { targetBankId = 50, targetMapId = 3, targetX = 27, - targetY = 19, - ), + targetY = 19), WarpTile( x = 6, y = 19, @@ -22053,8 +19256,7 @@ object MapManager { targetBankId = 50, targetMapId = 3, targetX = 27, - targetY = 19, - ), + targetY = 19), ), npcs = listOf( @@ -22068,9 +19270,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "RustboroCity_Gym_EventScript_Roxanne", - ), + facing = 0, + script = "RustboroCity_Gym_EventScript_Roxanne"), NpcDef( entityIdx = 1, graphicsId = 35, @@ -22081,9 +19282,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 1, - facing = 1, - script = "RustboroCity_Gym_EventScript_Josh", - ), + facing = 0, + script = "RustboroCity_Gym_EventScript_Josh"), NpcDef( entityIdx = 2, graphicsId = 35, @@ -22095,8 +19295,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 2, - script = "RustboroCity_Gym_EventScript_Tommy", - ), + script = "RustboroCity_Gym_EventScript_Tommy"), NpcDef( entityIdx = 3, graphicsId = 23, @@ -22107,9 +19306,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "RustboroCity_Gym_EventScript_GymGuide", - ), + facing = 0, + script = "RustboroCity_Gym_EventScript_GymGuide"), NpcDef( entityIdx = 4, graphicsId = 55, @@ -22120,9 +19318,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 1, - facing = 1, - script = "RustboroCity_Gym_EventScript_Marc", - ), + facing = 0, + script = "RustboroCity_Gym_EventScript_Marc"), ), bgEvents = listOf( @@ -22130,14 +19327,12 @@ object MapManager { x = 2, y = 18, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "RustboroCity_Gym_EventScript_LeftGymStatue", - ), + script = "RustboroCity_Gym_EventScript_LeftGymStatue"), BgEventDef( x = 8, y = 18, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "RustboroCity_Gym_EventScript_RightGymStatue", - ), + script = "RustboroCity_Gym_EventScript_RightGymStatue"), ), ), // RustboroCity_PokemonSchool (MAP_RUSTBORO_CITY_POKEMON_SCHOOL) @@ -22147,17 +19342,13 @@ object MapManager { mapId = 4, width = 12, height = 11, - paletteIdx1 = 118, - paletteIdx2 = 98, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 120, + unknownShort = 435, + unknownByte = 10, borderTiles = listOf( - Tile2D(0x0207, 0), - Tile2D(0x0207, 0), - Tile2D(0x0207, 0), - Tile2D(0x0207, 0), - ), + Tile2D(0x0207, 0), Tile2D(0x0207, 0), Tile2D(0x0207, 0), Tile2D(0x0207, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -22172,8 +19363,7 @@ object MapManager { targetBankId = 50, targetMapId = 3, targetX = 27, - targetY = 34, - ), + targetY = 34), WarpTile( x = 6, y = 10, @@ -22181,8 +19371,7 @@ object MapManager { targetBankId = 50, targetMapId = 3, targetX = 27, - targetY = 34, - ), + targetY = 34), ), npcs = listOf( @@ -22197,8 +19386,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "RustboroCity_PokemonSchool_EventScript_GameboyKid1", - ), + script = "RustboroCity_PokemonSchool_EventScript_GameboyKid1"), NpcDef( entityIdx = 1, graphicsId = 0, @@ -22210,8 +19398,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 2, - script = "RustboroCity_PokemonSchool_EventScript_GameboyKid2", - ), + script = "RustboroCity_PokemonSchool_EventScript_GameboyKid2"), NpcDef( entityIdx = 2, graphicsId = 15, @@ -22222,9 +19409,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 0, - script = "RustboroCity_PokemonSchool_EventScript_RichBoy", - ), + facing = 1, + script = "RustboroCity_PokemonSchool_EventScript_RichBoy"), NpcDef( entityIdx = 3, graphicsId = 47, @@ -22235,9 +19421,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 0, - script = "RustboroCity_PokemonSchool_EventScript_Lass", - ), + facing = 1, + script = "RustboroCity_PokemonSchool_EventScript_Lass"), NpcDef( entityIdx = 4, graphicsId = 38, @@ -22248,9 +19433,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "RustboroCity_PokemonSchool_EventScript_SchoolKidM", - ), + facing = 0, + script = "RustboroCity_PokemonSchool_EventScript_SchoolKidM"), NpcDef( entityIdx = 5, graphicsId = 48, @@ -22261,9 +19445,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "RustboroCity_PokemonSchool_EventScript_Teacher", - ), + facing = 0, + script = "RustboroCity_PokemonSchool_EventScript_Teacher"), ), bgEvents = listOf( @@ -22271,32 +19454,27 @@ object MapManager { x = 5, y = 2, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "RustboroCity_PokemonSchool_EventScript_Blackboard", - ), + script = "RustboroCity_PokemonSchool_EventScript_Blackboard"), BgEventDef( x = 4, y = 2, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "RustboroCity_PokemonSchool_EventScript_Blackboard", - ), + script = "RustboroCity_PokemonSchool_EventScript_Blackboard"), BgEventDef( x = 6, y = 2, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "RustboroCity_PokemonSchool_EventScript_Blackboard", - ), + script = "RustboroCity_PokemonSchool_EventScript_Blackboard"), BgEventDef( x = 7, y = 2, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "RustboroCity_PokemonSchool_EventScript_Blackboard", - ), + script = "RustboroCity_PokemonSchool_EventScript_Blackboard"), BgEventDef( x = 3, y = 5, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "RustboroCity_PokemonSchool_EventScript_StudentNotebook", - ), + script = "RustboroCity_PokemonSchool_EventScript_StudentNotebook"), ), ), // RustboroCity_PokemonCenter_1F (MAP_RUSTBORO_CITY_POKEMON_CENTER_1F) @@ -22306,17 +19484,13 @@ object MapManager { mapId = 5, width = 14, height = 9, - paletteIdx1 = 87, - paletteIdx2 = 121, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 118, + unknownShort = 400, + unknownByte = 10, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -22331,8 +19505,7 @@ object MapManager { targetBankId = 50, targetMapId = 3, targetX = 16, - targetY = 38, - ), + targetY = 38), WarpTile( x = 6, y = 8, @@ -22340,8 +19513,7 @@ object MapManager { targetBankId = 50, targetMapId = 3, targetX = 16, - targetY = 38, - ), + targetY = 38), WarpTile( x = 1, y = 6, @@ -22349,8 +19521,7 @@ object MapManager { targetBankId = 61, targetMapId = 6, targetX = 1, - targetY = 6, - ), + targetY = 6), ), npcs = listOf( @@ -22364,9 +19535,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "RustboroCity_PokemonCenter_1F_EventScript_Nurse", - ), + facing = 0, + script = "RustboroCity_PokemonCenter_1F_EventScript_Nurse"), NpcDef( entityIdx = 1, graphicsId = 19, @@ -22378,8 +19548,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 2, - script = "RustboroCity_PokemonCenter_1F_EventScript_Man", - ), + script = "RustboroCity_PokemonCenter_1F_EventScript_Man"), NpcDef( entityIdx = 2, graphicsId = 7, @@ -22391,8 +19560,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "RustboroCity_PokemonCenter_1F_EventScript_Boy", - ), + script = "RustboroCity_PokemonCenter_1F_EventScript_Boy"), NpcDef( entityIdx = 3, graphicsId = 14, @@ -22404,8 +19572,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "RustboroCity_PokemonCenter_1F_EventScript_Girl", - ), + script = "RustboroCity_PokemonCenter_1F_EventScript_Girl"), ), bgEvents = emptyList(), ), @@ -22416,17 +19583,13 @@ object MapManager { mapId = 6, width = 14, height = 10, - paletteIdx1 = 87, - paletteIdx2 = 121, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 118, + unknownShort = 400, + unknownByte = 10, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -22441,8 +19604,7 @@ object MapManager { targetBankId = 61, targetMapId = 5, targetX = 1, - targetY = 6, - ), + targetY = 6), WarpTile( x = 5, y = 1, @@ -22450,8 +19612,7 @@ object MapManager { targetBankId = 75, targetMapId = 60, targetX = 7, - targetY = 11, - ), + targetY = 11), WarpTile( x = 9, y = 1, @@ -22459,8 +19620,7 @@ object MapManager { targetBankId = 75, targetMapId = 25, targetX = 5, - targetY = 8, - ), + targetY = 8), ), npcs = listOf( @@ -22474,9 +19634,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "Common_EventScript_UnionRoomAttendant", - ), + facing = 0, + script = "Common_EventScript_UnionRoomAttendant"), NpcDef( entityIdx = 1, graphicsId = 0, @@ -22487,9 +19646,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "Common_EventScript_WirelessClubAttendant", - ), + facing = 0, + script = "Common_EventScript_WirelessClubAttendant"), NpcDef( entityIdx = 2, graphicsId = 0, @@ -22500,9 +19658,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "Common_EventScript_DirectCornerAttendant", - ), + facing = 0, + script = "Common_EventScript_DirectCornerAttendant"), ), bgEvents = emptyList(), ), @@ -22513,17 +19670,13 @@ object MapManager { mapId = 7, width = 11, height = 8, - paletteIdx1 = 95, - paletteIdx2 = 87, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 117, + unknownShort = 404, + unknownByte = 10, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -22538,8 +19691,7 @@ object MapManager { targetBankId = 50, targetMapId = 3, targetX = 16, - targetY = 45, - ), + targetY = 45), WarpTile( x = 4, y = 7, @@ -22547,8 +19699,7 @@ object MapManager { targetBankId = 50, targetMapId = 3, targetX = 16, - targetY = 45, - ), + targetY = 45), ), npcs = listOf( @@ -22563,8 +19714,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "RustboroCity_Mart_EventScript_Clerk", - ), + script = "RustboroCity_Mart_EventScript_Clerk"), NpcDef( entityIdx = 1, graphicsId = 7, @@ -22575,9 +19725,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 0, - script = "RustboroCity_Mart_EventScript_Boy", - ), + facing = 1, + script = "RustboroCity_Mart_EventScript_Boy"), NpcDef( entityIdx = 2, graphicsId = 18, @@ -22589,8 +19738,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "RustboroCity_Mart_EventScript_PokefanF", - ), + script = "RustboroCity_Mart_EventScript_PokefanF"), NpcDef( entityIdx = 3, graphicsId = 36, @@ -22601,9 +19749,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 0, - script = "RustboroCity_Mart_EventScript_BugCatcher", - ), + facing = 1, + script = "RustboroCity_Mart_EventScript_BugCatcher"), ), bgEvents = emptyList(), ), @@ -22614,17 +19761,13 @@ object MapManager { mapId = 8, width = 14, height = 8, - paletteIdx1 = 98, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 147, + unknownShort = 399, + unknownByte = 10, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -22639,8 +19782,7 @@ object MapManager { targetBankId = 50, targetMapId = 3, targetX = 13, - targetY = 30, - ), + targetY = 30), WarpTile( x = 7, y = 7, @@ -22648,8 +19790,7 @@ object MapManager { targetBankId = 50, targetMapId = 3, targetX = 13, - targetY = 30, - ), + targetY = 30), WarpTile( x = 2, y = 1, @@ -22657,8 +19798,7 @@ object MapManager { targetBankId = 61, targetMapId = 9, targetX = 2, - targetY = 1, - ), + targetY = 1), ), npcs = listOf( @@ -22673,8 +19813,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "RustboroCity_Flat1_1F_EventScript_Man", - ), + script = "RustboroCity_Flat1_1F_EventScript_Man"), NpcDef( entityIdx = 1, graphicsId = 34, @@ -22686,8 +19825,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 2, - script = "RustboroCity_Flat1_1F_EventScript_Woman", - ), + script = "RustboroCity_Flat1_1F_EventScript_Woman"), ), bgEvents = emptyList(), ), @@ -22698,17 +19836,13 @@ object MapManager { mapId = 9, width = 14, height = 8, - paletteIdx1 = 98, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 147, + unknownShort = 399, + unknownByte = 10, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -22723,8 +19857,8 @@ object MapManager { targetBankId = 61, targetMapId = 8, targetX = 2, - targetY = 1, - )), + targetY = 1), + ), npcs = listOf( NpcDef( @@ -22738,8 +19872,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "RustboroCity_Flat1_2F_EventScript_WaldasMom", - ), + script = "RustboroCity_Flat1_2F_EventScript_WaldasMom"), NpcDef( entityIdx = 1, graphicsId = 6, @@ -22750,9 +19883,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "0x0", - ), + facing = 0, + script = "0x0"), NpcDef( entityIdx = 2, graphicsId = 0, @@ -22764,8 +19896,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "RustboroCity_Flat1_2F_EventScript_PokeDoll", - ), + script = "RustboroCity_Flat1_2F_EventScript_PokeDoll"), NpcDef( entityIdx = 3, graphicsId = 0, @@ -22777,8 +19908,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "RustboroCity_Flat1_2F_EventScript_PokeDoll", - ), + script = "RustboroCity_Flat1_2F_EventScript_PokeDoll"), NpcDef( entityIdx = 4, graphicsId = 0, @@ -22790,8 +19920,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "RustboroCity_Flat1_2F_EventScript_PokeDoll", - ), + script = "RustboroCity_Flat1_2F_EventScript_PokeDoll"), NpcDef( entityIdx = 5, graphicsId = 19, @@ -22803,8 +19932,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 3, - script = "RustboroCity_Flat1_2F_EventScript_WaldasDad", - ), + script = "RustboroCity_Flat1_2F_EventScript_WaldasDad"), NpcDef( entityIdx = 6, graphicsId = 0, @@ -22816,8 +19944,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "RustboroCity_Flat1_2F_EventScript_PokeDoll", - ), + script = "RustboroCity_Flat1_2F_EventScript_PokeDoll"), NpcDef( entityIdx = 7, graphicsId = 0, @@ -22829,8 +19956,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "RustboroCity_Flat1_2F_EventScript_PokeDoll", - ), + script = "RustboroCity_Flat1_2F_EventScript_PokeDoll"), ), bgEvents = emptyList(), ), @@ -22841,17 +19967,13 @@ object MapManager { mapId = 10, width = 13, height = 8, - paletteIdx1 = 98, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 147, + unknownShort = 399, + unknownByte = 10, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -22866,8 +19988,7 @@ object MapManager { targetBankId = 50, targetMapId = 3, targetX = 33, - targetY = 19, - ), + targetY = 19), WarpTile( x = 6, y = 7, @@ -22875,8 +19996,7 @@ object MapManager { targetBankId = 50, targetMapId = 3, targetX = 33, - targetY = 19, - ), + targetY = 19), ), npcs = listOf( @@ -22891,8 +20011,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 2, - script = "RustboroCity_House1_EventScript_Trader", - ), + script = "RustboroCity_House1_EventScript_Trader"), NpcDef( entityIdx = 1, graphicsId = 55, @@ -22903,9 +20022,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "RustboroCity_House1_EventScript_Hiker", - ), + facing = 0, + script = "RustboroCity_House1_EventScript_Hiker"), ), bgEvents = emptyList(), ), @@ -22916,17 +20034,13 @@ object MapManager { mapId = 11, width = 11, height = 9, - paletteIdx1 = 98, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 147, + unknownShort = 399, + unknownByte = 10, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -22941,8 +20055,7 @@ object MapManager { targetBankId = 50, targetMapId = 3, targetX = 9, - targetY = 38, - ), + targetY = 38), WarpTile( x = 6, y = 8, @@ -22950,8 +20063,7 @@ object MapManager { targetBankId = 50, targetMapId = 3, targetX = 9, - targetY = 38, - ), + targetY = 38), ), npcs = listOf( @@ -22966,8 +20078,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "RustboroCity_CuttersHouse_EventScript_Cutter", - ), + script = "RustboroCity_CuttersHouse_EventScript_Cutter"), NpcDef( entityIdx = 1, graphicsId = 47, @@ -22979,8 +20090,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "RustboroCity_CuttersHouse_EventScript_Lass", - ), + script = "RustboroCity_CuttersHouse_EventScript_Lass"), ), bgEvents = emptyList(), ), @@ -22991,17 +20101,13 @@ object MapManager { mapId = 12, width = 12, height = 9, - paletteIdx1 = 98, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 147, + unknownShort = 399, + unknownByte = 10, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -23016,8 +20122,7 @@ object MapManager { targetBankId = 50, targetMapId = 3, targetX = 30, - targetY = 28, - ), + targetY = 28), WarpTile( x = 6, y = 8, @@ -23025,8 +20130,7 @@ object MapManager { targetBankId = 50, targetMapId = 3, targetX = 30, - targetY = 28, - ), + targetY = 28), ), npcs = listOf( @@ -23040,9 +20144,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "RustboroCity_House2_EventScript_PokefanF", - ), + facing = 0, + script = "RustboroCity_House2_EventScript_PokefanF"), NpcDef( entityIdx = 1, graphicsId = 12, @@ -23053,9 +20156,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 0, - script = "RustboroCity_House2_EventScript_LittleGirl", - ), + facing = 1, + script = "RustboroCity_House2_EventScript_LittleGirl"), ), bgEvents = emptyList(), ), @@ -23066,17 +20168,13 @@ object MapManager { mapId = 13, width = 14, height = 9, - paletteIdx1 = 98, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 147, + unknownShort = 399, + unknownByte = 10, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -23091,8 +20189,7 @@ object MapManager { targetBankId = 50, targetMapId = 3, targetX = 5, - targetY = 51, - ), + targetY = 51), WarpTile( x = 3, y = 8, @@ -23100,8 +20197,7 @@ object MapManager { targetBankId = 50, targetMapId = 3, targetX = 5, - targetY = 51, - ), + targetY = 51), WarpTile( x = 3, y = 1, @@ -23109,8 +20205,7 @@ object MapManager { targetBankId = 61, targetMapId = 14, targetX = 3, - targetY = 1, - ), + targetY = 1), ), npcs = listOf( @@ -23125,8 +20220,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 2, - script = "RustboroCity_Flat2_1F_EventScript_Skitty", - ), + script = "RustboroCity_Flat2_1F_EventScript_Skitty"), NpcDef( entityIdx = 1, graphicsId = 30, @@ -23138,8 +20232,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "RustboroCity_Flat2_1F_EventScript_OldWoman", - ), + script = "RustboroCity_Flat2_1F_EventScript_OldWoman"), ), bgEvents = emptyList(), ), @@ -23150,17 +20243,13 @@ object MapManager { mapId = 14, width = 14, height = 9, - paletteIdx1 = 98, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 147, + unknownShort = 399, + unknownByte = 10, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -23175,8 +20264,7 @@ object MapManager { targetBankId = 61, targetMapId = 13, targetX = 3, - targetY = 1, - ), + targetY = 1), WarpTile( x = 1, y = 1, @@ -23184,8 +20272,7 @@ object MapManager { targetBankId = 61, targetMapId = 15, targetX = 1, - targetY = 1, - ), + targetY = 1), ), npcs = listOf( @@ -23200,8 +20287,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "RustboroCity_Flat2_2F_EventScript_OldMan", - ), + script = "RustboroCity_Flat2_2F_EventScript_OldMan"), NpcDef( entityIdx = 1, graphicsId = 5, @@ -23213,8 +20299,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "RustboroCity_Flat2_2F_EventScript_NinjaBoy", - ), + script = "RustboroCity_Flat2_2F_EventScript_NinjaBoy"), ), bgEvents = emptyList(), ), @@ -23225,17 +20310,13 @@ object MapManager { mapId = 15, width = 14, height = 9, - paletteIdx1 = 98, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 147, + unknownShort = 399, + unknownByte = 10, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -23250,8 +20331,8 @@ object MapManager { targetBankId = 61, targetMapId = 14, targetX = 1, - targetY = 1, - )), + targetY = 1), + ), npcs = listOf( NpcDef( @@ -23265,8 +20346,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "RustboroCity_Flat2_3F_EventScript_DevonEmployee", - ), + script = "RustboroCity_Flat2_3F_EventScript_DevonEmployee"), NpcDef( entityIdx = 1, graphicsId = 16, @@ -23277,9 +20357,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "RustboroCity_Flat2_3F_EventScript_Woman", - ), + facing = 0, + script = "RustboroCity_Flat2_3F_EventScript_Woman"), ), bgEvents = emptyList(), ), @@ -23290,17 +20369,13 @@ object MapManager { mapId = 16, width = 12, height = 9, - paletteIdx1 = 98, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 147, + unknownShort = 399, + unknownByte = 10, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -23315,8 +20390,7 @@ object MapManager { targetBankId = 50, targetMapId = 3, targetX = 26, - targetY = 46, - ), + targetY = 46), WarpTile( x = 6, y = 8, @@ -23324,8 +20398,7 @@ object MapManager { targetBankId = 50, targetMapId = 3, targetX = 26, - targetY = 46, - ), + targetY = 46), ), npcs = listOf( @@ -23340,8 +20413,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "RustboroCity_House3_EventScript_OldMan", - ), + script = "RustboroCity_House3_EventScript_OldMan"), NpcDef( entityIdx = 1, graphicsId = 30, @@ -23353,8 +20425,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 2, - script = "RustboroCity_House3_EventScript_OldWoman", - ), + script = "RustboroCity_House3_EventScript_OldWoman"), NpcDef( entityIdx = 2, graphicsId = 0, @@ -23365,9 +20436,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "RustboroCity_House3_EventScript_Pekachu", - ), + facing = 0, + script = "RustboroCity_House3_EventScript_Pekachu"), ), bgEvents = emptyList(), ), @@ -23378,17 +20448,13 @@ object MapManager { mapId = 0, width = 8, height = 6, - paletteIdx1 = 98, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 147, + unknownShort = 382, + unknownByte = 11, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -23403,8 +20469,7 @@ object MapManager { targetBankId = 50, targetMapId = 4, targetX = 10, - targetY = 3, - ), + targetY = 3), WarpTile( x = 4, y = 5, @@ -23412,8 +20477,7 @@ object MapManager { targetBankId = 50, targetMapId = 4, targetX = 10, - targetY = 3, - ), + targetY = 3), ), npcs = listOf( @@ -23428,8 +20492,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "FortreeCity_House1_EventScript_Trader", - ), + script = "FortreeCity_House1_EventScript_Trader"), NpcDef( entityIdx = 1, graphicsId = 0, @@ -23441,8 +20504,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 2, - script = "FortreeCity_House1_EventScript_Zigzagoon", - ), + script = "FortreeCity_House1_EventScript_Zigzagoon"), NpcDef( entityIdx = 2, graphicsId = 22, @@ -23454,8 +20516,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "FortreeCity_House1_EventScript_ExpertF", - ), + script = "FortreeCity_House1_EventScript_ExpertF"), ), bgEvents = emptyList(), ), @@ -23466,17 +20527,13 @@ object MapManager { mapId = 1, width = 20, height = 25, - paletteIdx1 = 94, - paletteIdx2 = 126, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 154, + unknownShort = 364, + unknownByte = 11, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -23491,8 +20548,7 @@ object MapManager { targetBankId = 50, targetMapId = 4, targetX = 22, - targetY = 11, - ), + targetY = 11), WarpTile( x = 16, y = 24, @@ -23500,8 +20556,7 @@ object MapManager { targetBankId = 50, targetMapId = 4, targetX = 22, - targetY = 11, - ), + targetY = 11), ), npcs = listOf( @@ -23515,9 +20570,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "FortreeCity_Gym_EventScript_Winona", - ), + facing = 0, + script = "FortreeCity_Gym_EventScript_Winona"), NpcDef( entityIdx = 1, graphicsId = 66, @@ -23528,9 +20582,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 1, - facing = 1, - script = "FortreeCity_Gym_EventScript_Jared", - ), + facing = 0, + script = "FortreeCity_Gym_EventScript_Jared"), NpcDef( entityIdx = 2, graphicsId = 31, @@ -23542,8 +20595,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 2, - script = "FortreeCity_Gym_EventScript_Flint", - ), + script = "FortreeCity_Gym_EventScript_Flint"), NpcDef( entityIdx = 3, graphicsId = 32, @@ -23555,8 +20607,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 2, - script = "FortreeCity_Gym_EventScript_Ashley", - ), + script = "FortreeCity_Gym_EventScript_Ashley"), NpcDef( entityIdx = 4, graphicsId = 66, @@ -23567,9 +20618,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 1, - facing = 1, - script = "FortreeCity_Gym_EventScript_Edwardo", - ), + facing = 0, + script = "FortreeCity_Gym_EventScript_Edwardo"), NpcDef( entityIdx = 5, graphicsId = 23, @@ -23580,9 +20630,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "FortreeCity_Gym_EventScript_GymGuide", - ), + facing = 0, + script = "FortreeCity_Gym_EventScript_GymGuide"), NpcDef( entityIdx = 6, graphicsId = 66, @@ -23594,8 +20643,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 3, - script = "FortreeCity_Gym_EventScript_Humberto", - ), + script = "FortreeCity_Gym_EventScript_Humberto"), NpcDef( entityIdx = 7, graphicsId = 66, @@ -23606,9 +20654,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 1, - facing = 0, - script = "FortreeCity_Gym_EventScript_Darius", - ), + facing = 1, + script = "FortreeCity_Gym_EventScript_Darius"), ), bgEvents = listOf( @@ -23616,14 +20663,12 @@ object MapManager { x = 14, y = 21, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "FortreeCity_Gym_EventScript_LeftGymStatue", - ), + script = "FortreeCity_Gym_EventScript_LeftGymStatue"), BgEventDef( x = 17, y = 21, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "FortreeCity_Gym_EventScript_RightGymStatue", - ), + script = "FortreeCity_Gym_EventScript_RightGymStatue"), ), ), // FortreeCity_PokemonCenter_1F (MAP_FORTREE_CITY_POKEMON_CENTER_1F) @@ -23633,17 +20678,13 @@ object MapManager { mapId = 2, width = 14, height = 9, - paletteIdx1 = 87, - paletteIdx2 = 121, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 118, + unknownShort = 400, + unknownByte = 11, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -23658,8 +20699,7 @@ object MapManager { targetBankId = 50, targetMapId = 4, targetX = 5, - targetY = 6, - ), + targetY = 6), WarpTile( x = 6, y = 8, @@ -23667,8 +20707,7 @@ object MapManager { targetBankId = 50, targetMapId = 4, targetX = 5, - targetY = 6, - ), + targetY = 6), WarpTile( x = 1, y = 6, @@ -23676,8 +20715,7 @@ object MapManager { targetBankId = 62, targetMapId = 3, targetX = 1, - targetY = 6, - ), + targetY = 6), ), npcs = listOf( @@ -23691,9 +20729,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "FortreeCity_PokemonCenter_1F_EventScript_Nurse", - ), + facing = 0, + script = "FortreeCity_PokemonCenter_1F_EventScript_Nurse"), NpcDef( entityIdx = 1, graphicsId = 48, @@ -23705,8 +20742,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "FortreeCity_PokemonCenter_1F_EventScript_Gentleman", - ), + script = "FortreeCity_PokemonCenter_1F_EventScript_Gentleman"), NpcDef( entityIdx = 2, graphicsId = 33, @@ -23718,8 +20754,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "FortreeCity_PokemonCenter_1F_EventScript_Man", - ), + script = "FortreeCity_PokemonCenter_1F_EventScript_Man"), NpcDef( entityIdx = 3, graphicsId = 13, @@ -23730,9 +20765,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "FortreeCity_PokemonCenter_1F_EventScript_Boy", - ), + facing = 0, + script = "FortreeCity_PokemonCenter_1F_EventScript_Boy"), ), bgEvents = emptyList(), ), @@ -23743,17 +20777,13 @@ object MapManager { mapId = 3, width = 14, height = 10, - paletteIdx1 = 87, - paletteIdx2 = 121, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 118, + unknownShort = 400, + unknownByte = 11, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -23768,8 +20798,7 @@ object MapManager { targetBankId = 62, targetMapId = 2, targetX = 1, - targetY = 6, - ), + targetY = 6), WarpTile( x = 5, y = 1, @@ -23777,8 +20806,7 @@ object MapManager { targetBankId = 75, targetMapId = 60, targetX = 7, - targetY = 11, - ), + targetY = 11), WarpTile( x = 9, y = 1, @@ -23786,8 +20814,7 @@ object MapManager { targetBankId = 75, targetMapId = 25, targetX = 5, - targetY = 8, - ), + targetY = 8), ), npcs = listOf( @@ -23801,9 +20828,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "Common_EventScript_UnionRoomAttendant", - ), + facing = 0, + script = "Common_EventScript_UnionRoomAttendant"), NpcDef( entityIdx = 1, graphicsId = 0, @@ -23814,9 +20840,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "Common_EventScript_WirelessClubAttendant", - ), + facing = 0, + script = "Common_EventScript_WirelessClubAttendant"), NpcDef( entityIdx = 2, graphicsId = 0, @@ -23827,9 +20852,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "Common_EventScript_DirectCornerAttendant", - ), + facing = 0, + script = "Common_EventScript_DirectCornerAttendant"), ), bgEvents = emptyList(), ), @@ -23840,17 +20864,13 @@ object MapManager { mapId = 4, width = 11, height = 8, - paletteIdx1 = 95, - paletteIdx2 = 87, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 117, + unknownShort = 404, + unknownByte = 11, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -23865,8 +20885,7 @@ object MapManager { targetBankId = 50, targetMapId = 4, targetX = 4, - targetY = 14, - ), + targetY = 14), WarpTile( x = 4, y = 7, @@ -23874,8 +20893,7 @@ object MapManager { targetBankId = 50, targetMapId = 4, targetX = 4, - targetY = 14, - ), + targetY = 14), ), npcs = listOf( @@ -23890,8 +20908,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "FortreeCity_Mart_EventScript_Clerk", - ), + script = "FortreeCity_Mart_EventScript_Clerk"), NpcDef( entityIdx = 1, graphicsId = 20, @@ -23902,9 +20919,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 0, - script = "FortreeCity_Mart_EventScript_Woman", - ), + facing = 1, + script = "FortreeCity_Mart_EventScript_Woman"), NpcDef( entityIdx = 2, graphicsId = 14, @@ -23916,8 +20932,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "FortreeCity_Mart_EventScript_Girl", - ), + script = "FortreeCity_Mart_EventScript_Girl"), NpcDef( entityIdx = 3, graphicsId = 9, @@ -23929,8 +20944,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 3, - script = "FortreeCity_Mart_EventScript_Boy", - ), + script = "FortreeCity_Mart_EventScript_Boy"), ), bgEvents = emptyList(), ), @@ -23941,17 +20955,13 @@ object MapManager { mapId = 5, width = 8, height = 6, - paletteIdx1 = 98, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 147, + unknownShort = 382, + unknownByte = 11, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -23966,8 +20976,7 @@ object MapManager { targetBankId = 50, targetMapId = 4, targetX = 17, - targetY = 3, - ), + targetY = 3), WarpTile( x = 4, y = 5, @@ -23975,8 +20984,7 @@ object MapManager { targetBankId = 50, targetMapId = 4, targetX = 17, - targetY = 3, - ), + targetY = 3), ), npcs = listOf( @@ -23991,8 +20999,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "FortreeCity_House2_EventScript_HiddenPowerGiver", - ), + script = "FortreeCity_House2_EventScript_HiddenPowerGiver"), NpcDef( entityIdx = 1, graphicsId = 21, @@ -24004,8 +21011,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 2, - script = "FortreeCity_House2_EventScript_SleepTalkTutor", - ), + script = "FortreeCity_House2_EventScript_SleepTalkTutor"), ), bgEvents = emptyList(), ), @@ -24016,17 +21022,13 @@ object MapManager { mapId = 6, width = 8, height = 6, - paletteIdx1 = 98, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 147, + unknownShort = 382, + unknownByte = 11, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -24041,8 +21043,7 @@ object MapManager { targetBankId = 50, targetMapId = 4, targetX = 25, - targetY = 3, - ), + targetY = 3), WarpTile( x = 4, y = 5, @@ -24050,8 +21051,7 @@ object MapManager { targetBankId = 50, targetMapId = 4, targetX = 25, - targetY = 3, - ), + targetY = 3), ), npcs = listOf( @@ -24066,8 +21066,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "FortreeCity_House3_EventScript_Maniac", - ), + script = "FortreeCity_House3_EventScript_Maniac"), NpcDef( entityIdx = 1, graphicsId = 38, @@ -24079,8 +21078,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "FortreeCity_House3_EventScript_SchoolKidM", - ), + script = "FortreeCity_House3_EventScript_SchoolKidM"), ), bgEvents = emptyList(), ), @@ -24091,17 +21089,13 @@ object MapManager { mapId = 7, width = 8, height = 6, - paletteIdx1 = 98, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 147, + unknownShort = 382, + unknownByte = 11, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -24116,8 +21110,7 @@ object MapManager { targetBankId = 50, targetMapId = 4, targetX = 32, - targetY = 2, - ), + targetY = 2), WarpTile( x = 4, y = 5, @@ -24125,8 +21118,7 @@ object MapManager { targetBankId = 50, targetMapId = 4, targetX = 32, - targetY = 2, - ), + targetY = 2), ), npcs = listOf( @@ -24141,8 +21133,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "FortreeCity_House4_EventScript_Woman", - ), + script = "FortreeCity_House4_EventScript_Woman"), NpcDef( entityIdx = 1, graphicsId = 13, @@ -24153,9 +21144,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "FortreeCity_House4_EventScript_Boy", - ), + facing = 0, + script = "FortreeCity_House4_EventScript_Boy"), ), bgEvents = emptyList(), ), @@ -24166,17 +21156,13 @@ object MapManager { mapId = 8, width = 8, height = 6, - paletteIdx1 = 98, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 147, + unknownShort = 382, + unknownByte = 11, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -24191,8 +21177,7 @@ object MapManager { targetBankId = 50, targetMapId = 4, targetX = 12, - targetY = 13, - ), + targetY = 13), WarpTile( x = 4, y = 5, @@ -24200,8 +21185,7 @@ object MapManager { targetBankId = 50, targetMapId = 4, targetX = 12, - targetY = 13, - ), + targetY = 13), ), npcs = listOf( @@ -24216,8 +21200,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "FortreeCity_House5_EventScript_PokefanF", - ), + script = "FortreeCity_House5_EventScript_PokefanF"), NpcDef( entityIdx = 1, graphicsId = 0, @@ -24228,9 +21211,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "FortreeCity_House5_EventScript_Zigzagoon", - ), + facing = 0, + script = "FortreeCity_House5_EventScript_Zigzagoon"), NpcDef( entityIdx = 2, graphicsId = 19, @@ -24242,8 +21224,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "FortreeCity_House5_EventScript_Man", - ), + script = "FortreeCity_House5_EventScript_Man"), ), bgEvents = emptyList(), ), @@ -24254,17 +21235,13 @@ object MapManager { mapId = 9, width = 8, height = 6, - paletteIdx1 = 98, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 147, + unknownShort = 382, + unknownByte = 11, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -24279,8 +21256,7 @@ object MapManager { targetBankId = 50, targetMapId = 4, targetX = 37, - targetY = 13, - ), + targetY = 13), WarpTile( x = 4, y = 5, @@ -24288,8 +21264,7 @@ object MapManager { targetBankId = 50, targetMapId = 4, targetX = 37, - targetY = 13, - ), + targetY = 13), ), npcs = listOf( @@ -24304,8 +21279,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "FortreeCity_DecorationShop_EventScript_PokefanM", - ), + script = "FortreeCity_DecorationShop_EventScript_PokefanM"), NpcDef( entityIdx = 1, graphicsId = 14, @@ -24317,8 +21291,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 2, - script = "FortreeCity_DecorationShop_EventScript_Girl", - ), + script = "FortreeCity_DecorationShop_EventScript_Girl"), NpcDef( entityIdx = 2, graphicsId = 83, @@ -24329,9 +21302,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "FortreeCity_DecorationShop_EventScript_ClerkDesks", - ), + facing = 0, + script = "FortreeCity_DecorationShop_EventScript_ClerkDesks"), NpcDef( entityIdx = 3, graphicsId = 83, @@ -24342,9 +21314,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "FortreeCity_DecorationShop_EventScript_ClerkChairs", - ), + facing = 0, + script = "FortreeCity_DecorationShop_EventScript_ClerkChairs"), ), bgEvents = emptyList(), ), @@ -24355,17 +21326,13 @@ object MapManager { mapId = 0, width = 12, height = 9, - paletteIdx1 = 98, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 147, + unknownShort = 408, + unknownByte = 12, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -24380,8 +21347,7 @@ object MapManager { targetBankId = 50, targetMapId = 5, targetX = 37, - targetY = 24, - ), + targetY = 24), WarpTile( x = 6, y = 8, @@ -24389,8 +21355,7 @@ object MapManager { targetBankId = 50, targetMapId = 5, targetX = 37, - targetY = 24, - ), + targetY = 24), WarpTile( x = 2, y = 1, @@ -24398,8 +21363,7 @@ object MapManager { targetBankId = 63, targetMapId = 1, targetX = 2, - targetY = 1, - ), + targetY = 1), ), npcs = listOf( @@ -24413,9 +21377,9 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 0, - script = "LilycoveCity_CoveLilyMotel_1F_EventScript_MotelOwner", - )), + facing = 1, + script = "LilycoveCity_CoveLilyMotel_1F_EventScript_MotelOwner"), + ), bgEvents = emptyList(), ), // LilycoveCity_CoveLilyMotel_2F (MAP_LILYCOVE_CITY_COVE_LILY_MOTEL_2F) @@ -24425,17 +21389,13 @@ object MapManager { mapId = 1, width = 12, height = 9, - paletteIdx1 = 98, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 147, + unknownShort = 408, + unknownByte = 12, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -24450,8 +21410,8 @@ object MapManager { targetBankId = 63, targetMapId = 0, targetX = 2, - targetY = 1, - )), + targetY = 1), + ), npcs = emptyList(), bgEvents = emptyList(), ), @@ -24462,17 +21422,13 @@ object MapManager { mapId = 2, width = 21, height = 14, - paletteIdx1 = 84, - paletteIdx2 = 92, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 141, + unknownShort = 373, + unknownByte = 12, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -24487,8 +21443,7 @@ object MapManager { targetBankId = 50, targetMapId = 5, targetX = 11, - targetY = 5, - ), + targetY = 5), WarpTile( x = 10, y = 13, @@ -24496,8 +21451,7 @@ object MapManager { targetBankId = 50, targetMapId = 5, targetX = 12, - targetY = 5, - ), + targetY = 5), WarpTile( x = 16, y = 1, @@ -24505,8 +21459,7 @@ object MapManager { targetBankId = 63, targetMapId = 3, targetX = 13, - targetY = 1, - ), + targetY = 1), ), npcs = listOf( @@ -24521,8 +21474,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "LilycoveCity_LilycoveMuseum_1F_EventScript_Greeter", - ), + script = "LilycoveCity_LilycoveMuseum_1F_EventScript_Greeter"), NpcDef( entityIdx = 2, graphicsId = 38, @@ -24534,8 +21486,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "LilycoveCity_LilycoveMuseum_1F_EventScript_SchoolKidM", - ), + script = "LilycoveCity_LilycoveMuseum_1F_EventScript_SchoolKidM"), NpcDef( entityIdx = 3, graphicsId = 0, @@ -24547,8 +21498,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "LilycoveCity_LilycoveMuseum_1F_EventScript_Artist1", - ), + script = "LilycoveCity_LilycoveMuseum_1F_EventScript_Artist1"), NpcDef( entityIdx = 4, graphicsId = 5, @@ -24559,9 +21509,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 0, - script = "LilycoveCity_LilycoveMuseum_1F_EventScript_NinjaBoy", - ), + facing = 1, + script = "LilycoveCity_LilycoveMuseum_1F_EventScript_NinjaBoy"), NpcDef( entityIdx = 5, graphicsId = 26, @@ -24572,9 +21521,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 0, - script = "LilycoveCity_LilycoveMuseum_1F_EventScript_Woman1", - ), + facing = 1, + script = "LilycoveCity_LilycoveMuseum_1F_EventScript_Woman1"), ), bgEvents = listOf( @@ -24582,101 +21530,86 @@ object MapManager { x = 1, y = 1, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "LilycoveCity_LilycoveMuseum_1F_EventScript_FantasyPainting", - ), + script = "LilycoveCity_LilycoveMuseum_1F_EventScript_FantasyPainting"), BgEventDef( x = 2, y = 1, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "LilycoveCity_LilycoveMuseum_1F_EventScript_FantasyPainting", - ), + script = "LilycoveCity_LilycoveMuseum_1F_EventScript_FantasyPainting"), BgEventDef( x = 5, y = 1, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "LilycoveCity_LilycoveMuseum_1F_EventScript_BerryPainting", - ), + script = "LilycoveCity_LilycoveMuseum_1F_EventScript_BerryPainting"), BgEventDef( x = 6, y = 1, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "LilycoveCity_LilycoveMuseum_1F_EventScript_BerryPainting", - ), + script = "LilycoveCity_LilycoveMuseum_1F_EventScript_BerryPainting"), BgEventDef( x = 9, y = 1, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "LilycoveCity_LilycoveMuseum_1F_EventScript_OldPainting", - ), + script = "LilycoveCity_LilycoveMuseum_1F_EventScript_OldPainting"), BgEventDef( x = 3, y = 6, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "LilycoveCity_LilycoveMuseum_1F_EventScript_WomanPainting", - ), + script = "LilycoveCity_LilycoveMuseum_1F_EventScript_WomanPainting"), BgEventDef( x = 2, y = 6, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "LilycoveCity_LilycoveMuseum_1F_EventScript_WomanPainting", - ), + script = "LilycoveCity_LilycoveMuseum_1F_EventScript_WomanPainting"), BgEventDef( x = 15, y = 12, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "LilycoveCity_LilycoveMuseum_EventScript_BirdSculpture", - ), + script = "LilycoveCity_LilycoveMuseum_EventScript_BirdSculpture"), BgEventDef( x = 11, y = 1, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "LilycoveCity_LilycoveMuseum_1F_EventScript_OldPainting", - ), + script = "LilycoveCity_LilycoveMuseum_1F_EventScript_OldPainting"), BgEventDef( x = 6, y = 6, facingDir = "BG_EVENT_PLAYER_FACING_ANY", script = - "LilycoveCity_LilycoveMuseum_1F_EventScript_GrassPokemonPainting", - ), + "LilycoveCity_LilycoveMuseum_1F_EventScript_GrassPokemonPainting"), BgEventDef( x = 17, y = 9, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "LilycoveCity_LilycoveMuseum_1F_EventScript_StoneTablet", - ), + script = "LilycoveCity_LilycoveMuseum_1F_EventScript_StoneTablet"), BgEventDef( x = 19, y = 1, facingDir = "BG_EVENT_PLAYER_FACING_ANY", script = - "LilycoveCity_LilycoveMuseum_1F_EventScript_LegendaryPokemonPainting", - ), + "LilycoveCity_LilycoveMuseum_1F_EventScript_LegendaryPokemonPainting"), BgEventDef( x = 20, y = 1, facingDir = "BG_EVENT_PLAYER_FACING_ANY", script = - "LilycoveCity_LilycoveMuseum_1F_EventScript_LegendaryPokemonPainting", - ), + "LilycoveCity_LilycoveMuseum_1F_EventScript_LegendaryPokemonPainting"), BgEventDef( x = 18, y = 9, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "LilycoveCity_LilycoveMuseum_1F_EventScript_StoneTablet", - ), + script = "LilycoveCity_LilycoveMuseum_1F_EventScript_StoneTablet"), BgEventDef( x = 18, y = 11, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "LilycoveCity_LilycoveMuseum_1F_EventScript_PokeBallSculpture", - ), + script = + "LilycoveCity_LilycoveMuseum_1F_EventScript_PokeBallSculpture"), BgEventDef( x = 16, y = 9, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "LilycoveCity_LilycoveMuseum_1F_EventScript_StoneTablet", - ), + script = "LilycoveCity_LilycoveMuseum_1F_EventScript_StoneTablet"), ), ), // LilycoveCity_LilycoveMuseum_2F (MAP_LILYCOVE_CITY_LILYCOVE_MUSEUM_2F) @@ -24686,17 +21619,13 @@ object MapManager { mapId = 3, width = 22, height = 13, - paletteIdx1 = 84, - paletteIdx2 = 92, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 141, + unknownShort = 373, + unknownByte = 12, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -24711,8 +21640,8 @@ object MapManager { targetBankId = 63, targetMapId = 2, targetX = 16, - targetY = 1, - )), + targetY = 1), + ), npcs = listOf( NpcDef( @@ -24725,83 +21654,71 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 0, - script = "LilycoveCity_LilycoveMuseum_2F_EventScript_Curator", - )), + facing = 1, + script = "LilycoveCity_LilycoveMuseum_2F_EventScript_Curator"), + ), bgEvents = listOf( BgEventDef( x = 14, y = 10, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "LilycoveCity_LilycoveMuseum_2F_EventScript_CutePainting", - ), + script = "LilycoveCity_LilycoveMuseum_2F_EventScript_CutePainting"), BgEventDef( x = 15, y = 10, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "LilycoveCity_LilycoveMuseum_2F_EventScript_CutePainting", - ), + script = "LilycoveCity_LilycoveMuseum_2F_EventScript_CutePainting"), BgEventDef( x = 3, y = 6, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "LilycoveCity_LilycoveMuseum_2F_EventScript_ToughPainting", - ), + script = "LilycoveCity_LilycoveMuseum_2F_EventScript_ToughPainting"), BgEventDef( x = 2, y = 6, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "LilycoveCity_LilycoveMuseum_2F_EventScript_ToughPainting", - ), + script = "LilycoveCity_LilycoveMuseum_2F_EventScript_ToughPainting"), BgEventDef( x = 10, y = 6, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "LilycoveCity_LilycoveMuseum_2F_EventScript_CoolPainting", - ), + script = "LilycoveCity_LilycoveMuseum_2F_EventScript_CoolPainting"), BgEventDef( x = 11, y = 6, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "LilycoveCity_LilycoveMuseum_2F_EventScript_CoolPainting", - ), + script = "LilycoveCity_LilycoveMuseum_2F_EventScript_CoolPainting"), BgEventDef( x = 19, y = 6, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "LilycoveCity_LilycoveMuseum_2F_EventScript_BeautyPainting", - ), + script = "LilycoveCity_LilycoveMuseum_2F_EventScript_BeautyPainting"), BgEventDef( x = 18, y = 6, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "LilycoveCity_LilycoveMuseum_2F_EventScript_BeautyPainting", - ), + script = "LilycoveCity_LilycoveMuseum_2F_EventScript_BeautyPainting"), BgEventDef( x = 6, y = 10, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "LilycoveCity_LilycoveMuseum_2F_EventScript_SmartPainting", - ), + script = "LilycoveCity_LilycoveMuseum_2F_EventScript_SmartPainting"), BgEventDef( x = 7, y = 10, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "LilycoveCity_LilycoveMuseum_2F_EventScript_SmartPainting", - ), + script = "LilycoveCity_LilycoveMuseum_2F_EventScript_SmartPainting"), BgEventDef( x = 11, y = 2, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "LilycoveCity_LilycoveMuseum_EventScript_BirdSculpture", - ), + script = "LilycoveCity_LilycoveMuseum_EventScript_BirdSculpture"), BgEventDef( x = 15, y = 2, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "LilycoveCity_LilycoveMuseum_EventScript_BirdSculpture", - ), + script = "LilycoveCity_LilycoveMuseum_EventScript_BirdSculpture"), ), ), // LilycoveCity_ContestLobby (MAP_LILYCOVE_CITY_CONTEST_LOBBY) @@ -24811,17 +21728,13 @@ object MapManager { mapId = 4, width = 31, height = 12, - paletteIdx1 = 91, - paletteIdx2 = 109, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 140, + unknownShort = 452, + unknownByte = 12, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -24836,8 +21749,7 @@ object MapManager { targetBankId = 50, targetMapId = 5, targetX = 23, - targetY = 24, - ), + targetY = 24), WarpTile( x = 15, y = 11, @@ -24845,8 +21757,7 @@ object MapManager { targetBankId = 50, targetMapId = 5, targetX = 23, - targetY = 24, - ), + targetY = 24), WarpTile( x = 9, y = 1, @@ -24854,8 +21765,7 @@ object MapManager { targetBankId = 63, targetMapId = 5, targetX = 19, - targetY = 32, - ), + targetY = 32), WarpTile( x = 21, y = 1, @@ -24863,8 +21773,7 @@ object MapManager { targetBankId = 63, targetMapId = 5, targetX = 30, - targetY = 32, - ), + targetY = 32), ), npcs = listOf( @@ -24878,9 +21787,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "LilycoveCity_ContestLobby_EventScript_ContestReceptionist", - ), + facing = 0, + script = "LilycoveCity_ContestLobby_EventScript_ContestReceptionist"), NpcDef( entityIdx = 1, graphicsId = 0, @@ -24891,10 +21799,9 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, + facing = 0, script = - "LilycoveCity_ContestLobby_EventScript_LinkContestReceptionist", - ), + "LilycoveCity_ContestLobby_EventScript_LinkContestReceptionist"), NpcDef( entityIdx = 2, graphicsId = 65, @@ -24906,8 +21813,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "BerryBlender_EventScript_Blender2Man", - ), + script = "BerryBlender_EventScript_Blender2Man"), NpcDef( entityIdx = 4, graphicsId = 44, @@ -24919,8 +21825,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "LilycoveCity_ContestLobby_EventScript_BlackBelt", - ), + script = "LilycoveCity_ContestLobby_EventScript_BlackBelt"), NpcDef( entityIdx = 5, graphicsId = 10, @@ -24932,8 +21837,7 @@ object MapManager { movementRangeY = 2, trainerType = 0, facing = 0, - script = "LilycoveCity_ContestLobby_EventScript_Girl", - ), + script = "LilycoveCity_ContestLobby_EventScript_Girl"), NpcDef( entityIdx = 6, graphicsId = 0, @@ -24945,8 +21849,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "LilycoveCity_ContestLobby_EventScript_Artist", - ), + script = "LilycoveCity_ContestLobby_EventScript_Artist"), NpcDef( entityIdx = 8, graphicsId = 7, @@ -24957,9 +21860,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "LilycoveCity_ContestLobby_EventScript_Blender3Boy", - ), + facing = 0, + script = "LilycoveCity_ContestLobby_EventScript_Blender3Boy"), NpcDef( entityIdx = 9, graphicsId = 6, @@ -24971,8 +21873,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 2, - script = "BerryBlender_EventScript_Blender2Twin", - ), + script = "BerryBlender_EventScript_Blender2Twin"), NpcDef( entityIdx = 11, graphicsId = 50, @@ -24984,8 +21885,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "LilycoveCity_ContestLobby_EventScript_Fisherman", - ), + script = "LilycoveCity_ContestLobby_EventScript_Fisherman"), NpcDef( entityIdx = 12, graphicsId = 17, @@ -24997,8 +21897,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "LilycoveCity_ContestLobby_EventScript_FatMan", - ), + script = "LilycoveCity_ContestLobby_EventScript_FatMan"), NpcDef( entityIdx = 13, graphicsId = 5, @@ -25010,8 +21909,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "LilycoveCity_ContestLobby_EventScript_NinjaBoy", - ), + script = "LilycoveCity_ContestLobby_EventScript_NinjaBoy"), NpcDef( entityIdx = 14, graphicsId = 18, @@ -25023,8 +21921,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "BerryBlender_EventScript_Blender3PokefanF", - ), + script = "BerryBlender_EventScript_Blender3PokefanF"), NpcDef( entityIdx = 16, graphicsId = 8, @@ -25036,8 +21933,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 2, - script = "LilycoveCity_ContestLobby_EventScript_Blender3Girl", - ), + script = "LilycoveCity_ContestLobby_EventScript_Blender3Girl"), NpcDef( entityIdx = 24, graphicsId = 12, @@ -25049,8 +21945,7 @@ object MapManager { movementRangeY = 2, trainerType = 0, facing = 3, - script = "LilycoveCity_ContestLobby_EventScript_LittleGirl", - ), + script = "LilycoveCity_ContestLobby_EventScript_LittleGirl"), ), bgEvents = listOf( @@ -25058,75 +21953,63 @@ object MapManager { x = 23, y = 5, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "BerryBlender_EventScript_BerryBlenderLink", - ), + script = "BerryBlender_EventScript_BerryBlenderLink"), BgEventDef( x = 23, y = 9, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "BerryBlender_EventScript_BerryBlender3", - ), + script = "BerryBlender_EventScript_BerryBlender3"), BgEventDef( x = 23, y = 1, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "LilycoveCity_ContestLobby_EventScript_ContestWinner4", - ), + script = "LilycoveCity_ContestLobby_EventScript_ContestWinner4"), BgEventDef( x = 25, y = 1, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "LilycoveCity_ContestLobby_EventScript_ContestWinner5", - ), + script = "LilycoveCity_ContestLobby_EventScript_ContestWinner5"), BgEventDef( x = 27, y = 1, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "LilycoveCity_ContestLobby_EventScript_ContestWinner6", - ), + script = "LilycoveCity_ContestLobby_EventScript_ContestWinner6"), BgEventDef( x = 30, y = 1, facingDir = "BG_EVENT_PLAYER_FACING_ANY", script = - "LilycoveCity_ContestLobby_EventScript_BerryBlenderSpeedRecords", - ), + "LilycoveCity_ContestLobby_EventScript_BerryBlenderSpeedRecords"), BgEventDef( x = 3, y = 1, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "LilycoveCity_ContestLobby_EventScript_ContestWinner1", - ), + script = "LilycoveCity_ContestLobby_EventScript_ContestWinner1"), BgEventDef( x = 5, y = 1, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "LilycoveCity_ContestLobby_EventScript_ContestWinner2", - ), + script = "LilycoveCity_ContestLobby_EventScript_ContestWinner2"), BgEventDef( x = 7, y = 1, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "LilycoveCity_ContestLobby_EventScript_ContestWinner3", - ), + script = "LilycoveCity_ContestLobby_EventScript_ContestWinner3"), BgEventDef( x = 27, y = 5, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "BerryBlender_EventScript_BerryBlender1", - ), + script = "BerryBlender_EventScript_BerryBlender1"), BgEventDef( x = 27, y = 9, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "BerryBlender_EventScript_BerryBlender2", - ), + script = "BerryBlender_EventScript_BerryBlender2"), BgEventDef( x = 18, y = 3, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "LilycoveCity_ContestLobby_EventScript_LinkContestResults", - ), + script = "LilycoveCity_ContestLobby_EventScript_LinkContestResults"), ), ), // LilycoveCity_ContestHall (MAP_LILYCOVE_CITY_CONTEST_HALL) @@ -25136,17 +22019,13 @@ object MapManager { mapId = 5, width = 51, height = 33, - paletteIdx1 = 91, - paletteIdx2 = 109, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 140, + unknownShort = 452, + unknownByte = 12, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -25161,8 +22040,7 @@ object MapManager { targetBankId = 63, targetMapId = 4, targetX = 9, - targetY = 1, - ), + targetY = 1), WarpTile( x = 30, y = 32, @@ -25170,8 +22048,7 @@ object MapManager { targetBankId = 63, targetMapId = 4, targetX = 21, - targetY = 1, - ), + targetY = 1), WarpTile( x = 20, y = 32, @@ -25179,8 +22056,7 @@ object MapManager { targetBankId = 63, targetMapId = 4, targetX = 9, - targetY = 1, - ), + targetY = 1), WarpTile( x = 31, y = 32, @@ -25188,8 +22064,7 @@ object MapManager { targetBankId = 63, targetMapId = 4, targetX = 21, - targetY = 1, - ), + targetY = 1), ), npcs = listOf( @@ -25204,8 +22079,7 @@ object MapManager { movementRangeY = 4, trainerType = 0, facing = 0, - script = "LilycoveCity_ContestHall_EventScript_Boy1", - ), + script = "LilycoveCity_ContestHall_EventScript_Boy1"), NpcDef( entityIdx = 1, graphicsId = 13, @@ -25217,8 +22091,7 @@ object MapManager { movementRangeY = 3, trainerType = 0, facing = 0, - script = "LilycoveCity_ContestHall_EventScript_Boy2", - ), + script = "LilycoveCity_ContestHall_EventScript_Boy2"), NpcDef( entityIdx = 2, graphicsId = 14, @@ -25230,8 +22103,7 @@ object MapManager { movementRangeY = 2, trainerType = 0, facing = 0, - script = "LilycoveCity_ContestHall_EventScript_Girl", - ), + script = "LilycoveCity_ContestHall_EventScript_Girl"), NpcDef( entityIdx = 3, graphicsId = 24, @@ -25242,9 +22114,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "LilycoveCity_ContestHall_EventScript_SmartContestMC", - ), + facing = 0, + script = "LilycoveCity_ContestHall_EventScript_SmartContestMC"), NpcDef( entityIdx = 4, graphicsId = 0, @@ -25255,9 +22126,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "LilycoveCity_ContestHall_EventScript_SmartContestJudge", - ), + facing = 0, + script = "LilycoveCity_ContestHall_EventScript_SmartContestJudge"), NpcDef( entityIdx = 5, graphicsId = 44, @@ -25268,9 +22138,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 0, - script = "LilycoveCity_ContestHall_EventScript_SmartContestant1", - ), + facing = 1, + script = "LilycoveCity_ContestHall_EventScript_SmartContestant1"), NpcDef( entityIdx = 6, graphicsId = 21, @@ -25281,9 +22150,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 0, - script = "LilycoveCity_ContestHall_EventScript_SmartContestant2", - ), + facing = 1, + script = "LilycoveCity_ContestHall_EventScript_SmartContestant2"), NpcDef( entityIdx = 7, graphicsId = 39, @@ -25294,9 +22162,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 0, - script = "LilycoveCity_ContestHall_EventScript_SmartContestant3", - ), + facing = 1, + script = "LilycoveCity_ContestHall_EventScript_SmartContestant3"), NpcDef( entityIdx = 8, graphicsId = 28, @@ -25307,9 +22174,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 0, - script = "LilycoveCity_ContestHall_EventScript_SmartContestant4", - ), + facing = 1, + script = "LilycoveCity_ContestHall_EventScript_SmartContestant4"), NpcDef( entityIdx = 9, graphicsId = 22, @@ -25321,8 +22187,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "LilycoveCity_ContestHall_EventScript_SmartContestAudience1", - ), + script = "LilycoveCity_ContestHall_EventScript_SmartContestAudience1"), NpcDef( entityIdx = 10, graphicsId = 34, @@ -25334,8 +22199,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 2, - script = "LilycoveCity_ContestHall_EventScript_SmartContestAudience4", - ), + script = "LilycoveCity_ContestHall_EventScript_SmartContestAudience4"), NpcDef( entityIdx = 11, graphicsId = 7, @@ -25347,8 +22211,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "LilycoveCity_ContestHall_EventScript_SmartContestAudience2", - ), + script = "LilycoveCity_ContestHall_EventScript_SmartContestAudience2"), NpcDef( entityIdx = 12, graphicsId = 24, @@ -25359,9 +22222,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "LilycoveCity_ContestHall_EventScript_BeautyContestMC", - ), + facing = 0, + script = "LilycoveCity_ContestHall_EventScript_BeautyContestMC"), NpcDef( entityIdx = 13, graphicsId = 0, @@ -25372,9 +22234,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "LilycoveCity_ContestHall_EventScript_BeautyContestJudge", - ), + facing = 0, + script = "LilycoveCity_ContestHall_EventScript_BeautyContestJudge"), NpcDef( entityIdx = 14, graphicsId = 26, @@ -25385,9 +22246,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 0, - script = "LilycoveCity_ContestHall_EventScript_BeautyContestant1", - ), + facing = 1, + script = "LilycoveCity_ContestHall_EventScript_BeautyContestant1"), NpcDef( entityIdx = 15, graphicsId = 6, @@ -25398,9 +22258,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 0, - script = "LilycoveCity_ContestHall_EventScript_BeautyContestant2", - ), + facing = 1, + script = "LilycoveCity_ContestHall_EventScript_BeautyContestant2"), NpcDef( entityIdx = 16, graphicsId = 37, @@ -25411,9 +22270,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 0, - script = "LilycoveCity_ContestHall_EventScript_BeautyContestant3", - ), + facing = 1, + script = "LilycoveCity_ContestHall_EventScript_BeautyContestant3"), NpcDef( entityIdx = 17, graphicsId = 18, @@ -25424,9 +22282,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 0, - script = "LilycoveCity_ContestHall_EventScript_BeautyContestant4", - ), + facing = 1, + script = "LilycoveCity_ContestHall_EventScript_BeautyContestant4"), NpcDef( entityIdx = 18, graphicsId = 20, @@ -25438,8 +22295,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "LilycoveCity_ContestHall_EventScript_BeautyContestAudience1", - ), + script = "LilycoveCity_ContestHall_EventScript_BeautyContestAudience1"), NpcDef( entityIdx = 19, graphicsId = 16, @@ -25451,8 +22307,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 2, - script = "LilycoveCity_ContestHall_EventScript_BeautyContestAudience3", - ), + script = "LilycoveCity_ContestHall_EventScript_BeautyContestAudience3"), NpcDef( entityIdx = 20, graphicsId = 19, @@ -25463,9 +22318,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "LilycoveCity_ContestHall_EventScript_BeautyContestAudience2", - ), + facing = 0, + script = "LilycoveCity_ContestHall_EventScript_BeautyContestAudience2"), NpcDef( entityIdx = 21, graphicsId = 31, @@ -25476,9 +22330,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "LilycoveCity_ContestHall_EventScript_SmartContestAudience3", - ), + facing = 0, + script = "LilycoveCity_ContestHall_EventScript_SmartContestAudience3"), NpcDef( entityIdx = 22, graphicsId = 24, @@ -25489,9 +22342,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "LilycoveCity_ContestHall_EventScript_CuteContestMC", - ), + facing = 0, + script = "LilycoveCity_ContestHall_EventScript_CuteContestMC"), NpcDef( entityIdx = 23, graphicsId = 0, @@ -25502,9 +22354,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "LilycoveCity_ContestHall_EventScript_CuteContestJudge", - ), + facing = 0, + script = "LilycoveCity_ContestHall_EventScript_CuteContestJudge"), NpcDef( entityIdx = 24, graphicsId = 9, @@ -25515,9 +22366,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 0, - script = "LilycoveCity_ContestHall_EventScript_CuteContestant1", - ), + facing = 1, + script = "LilycoveCity_ContestHall_EventScript_CuteContestant1"), NpcDef( entityIdx = 25, graphicsId = 10, @@ -25528,9 +22378,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 0, - script = "LilycoveCity_ContestHall_EventScript_CuteContestant2", - ), + facing = 1, + script = "LilycoveCity_ContestHall_EventScript_CuteContestant2"), NpcDef( entityIdx = 26, graphicsId = 13, @@ -25541,9 +22390,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 0, - script = "LilycoveCity_ContestHall_EventScript_CuteContestant3", - ), + facing = 1, + script = "LilycoveCity_ContestHall_EventScript_CuteContestant3"), NpcDef( entityIdx = 27, graphicsId = 22, @@ -25554,9 +22402,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 0, - script = "LilycoveCity_ContestHall_EventScript_CuteContestant4", - ), + facing = 1, + script = "LilycoveCity_ContestHall_EventScript_CuteContestant4"), NpcDef( entityIdx = 28, graphicsId = 20, @@ -25568,8 +22415,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "LilycoveCity_ContestHall_EventScript_CuteContestAudience1", - ), + script = "LilycoveCity_ContestHall_EventScript_CuteContestAudience1"), NpcDef( entityIdx = 29, graphicsId = 19, @@ -25580,9 +22426,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "LilycoveCity_ContestHall_EventScript_CuteContestAudience3", - ), + facing = 0, + script = "LilycoveCity_ContestHall_EventScript_CuteContestAudience3"), NpcDef( entityIdx = 30, graphicsId = 12, @@ -25594,8 +22439,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 2, - script = "LilycoveCity_ContestHall_EventScript_CuteContestAudience2", - ), + script = "LilycoveCity_ContestHall_EventScript_CuteContestAudience2"), NpcDef( entityIdx = 31, graphicsId = 49, @@ -25607,8 +22451,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "LilycoveCity_ContestHall_EventScript_Sailor", - ), + script = "LilycoveCity_ContestHall_EventScript_Sailor"), ), bgEvents = listOf( @@ -25616,38 +22459,32 @@ object MapManager { x = 27, y = 16, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "LilycoveCity_ContestHall_EventScript_BeautyStageSign", - ), + script = "LilycoveCity_ContestHall_EventScript_BeautyStageSign"), BgEventDef( x = 39, y = 28, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "LilycoveCity_ContestHall_EventScript_CuteStageSign", - ), + script = "LilycoveCity_ContestHall_EventScript_CuteStageSign"), BgEventDef( x = 11, y = 28, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "LilycoveCity_ContestHall_EventScript_SmartStageSign", - ), + script = "LilycoveCity_ContestHall_EventScript_SmartStageSign"), BgEventDef( x = 15, y = 28, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "LilycoveCity_ContestHall_EventScript_SmartStageSign", - ), + script = "LilycoveCity_ContestHall_EventScript_SmartStageSign"), BgEventDef( x = 23, y = 16, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "LilycoveCity_ContestHall_EventScript_BeautyStageSign", - ), + script = "LilycoveCity_ContestHall_EventScript_BeautyStageSign"), BgEventDef( x = 35, y = 28, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "LilycoveCity_ContestHall_EventScript_CuteStageSign", - ), + script = "LilycoveCity_ContestHall_EventScript_CuteStageSign"), ), ), // LilycoveCity_PokemonCenter_1F (MAP_LILYCOVE_CITY_POKEMON_CENTER_1F) @@ -25657,17 +22494,13 @@ object MapManager { mapId = 6, width = 14, height = 9, - paletteIdx1 = 87, - paletteIdx2 = 121, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 118, + unknownShort = 400, + unknownByte = 12, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -25682,8 +22515,7 @@ object MapManager { targetBankId = 50, targetMapId = 5, targetX = 24, - targetY = 14, - ), + targetY = 14), WarpTile( x = 6, y = 8, @@ -25691,8 +22523,7 @@ object MapManager { targetBankId = 50, targetMapId = 5, targetX = 24, - targetY = 14, - ), + targetY = 14), WarpTile( x = 1, y = 6, @@ -25700,8 +22531,7 @@ object MapManager { targetBankId = 63, targetMapId = 7, targetX = 1, - targetY = 6, - ), + targetY = 6), ), npcs = listOf( @@ -25715,9 +22545,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "LilycoveCity_PokemonCenter_1F_EventScript_Nurse", - ), + facing = 0, + script = "LilycoveCity_PokemonCenter_1F_EventScript_Nurse"), NpcDef( entityIdx = 1, graphicsId = 7, @@ -25729,8 +22558,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "LilycoveCity_PokemonCenter_1F_EventScript_Boy", - ), + script = "LilycoveCity_PokemonCenter_1F_EventScript_Boy"), NpcDef( entityIdx = 2, graphicsId = 39, @@ -25741,9 +22569,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 0, - script = "LilycoveCity_PokemonCenter_1F_EventScript_Maniac", - ), + facing = 1, + script = "LilycoveCity_PokemonCenter_1F_EventScript_Maniac"), NpcDef( entityIdx = 3, graphicsId = 240, @@ -25754,9 +22581,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "LilycoveCity_PokemonCenter_1F_EventScript_LilycoveLady", - ), + facing = 0, + script = "LilycoveCity_PokemonCenter_1F_EventScript_LilycoveLady"), ), bgEvents = emptyList(), ), @@ -25767,17 +22593,13 @@ object MapManager { mapId = 7, width = 14, height = 10, - paletteIdx1 = 87, - paletteIdx2 = 121, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 118, + unknownShort = 400, + unknownByte = 12, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -25792,8 +22614,7 @@ object MapManager { targetBankId = 63, targetMapId = 6, targetX = 1, - targetY = 6, - ), + targetY = 6), WarpTile( x = 5, y = 1, @@ -25801,8 +22622,7 @@ object MapManager { targetBankId = 75, targetMapId = 60, targetX = 7, - targetY = 11, - ), + targetY = 11), WarpTile( x = 9, y = 1, @@ -25810,8 +22630,7 @@ object MapManager { targetBankId = 75, targetMapId = 25, targetX = 5, - targetY = 8, - ), + targetY = 8), ), npcs = listOf( @@ -25825,9 +22644,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "Common_EventScript_UnionRoomAttendant", - ), + facing = 0, + script = "Common_EventScript_UnionRoomAttendant"), NpcDef( entityIdx = 1, graphicsId = 0, @@ -25838,9 +22656,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "Common_EventScript_WirelessClubAttendant", - ), + facing = 0, + script = "Common_EventScript_WirelessClubAttendant"), NpcDef( entityIdx = 2, graphicsId = 0, @@ -25851,9 +22668,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "Common_EventScript_DirectCornerAttendant", - ), + facing = 0, + script = "Common_EventScript_DirectCornerAttendant"), ), bgEvents = emptyList(), ), @@ -25864,17 +22680,13 @@ object MapManager { mapId = 8, width = 11, height = 8, - paletteIdx1 = 95, - paletteIdx2 = 87, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 117, + unknownShort = 404, + unknownByte = 12, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -25889,8 +22701,7 @@ object MapManager { targetBankId = 50, targetMapId = 5, targetX = 27, - targetY = 6, - ), + targetY = 6), WarpTile( x = 4, y = 7, @@ -25898,8 +22709,7 @@ object MapManager { targetBankId = 50, targetMapId = 5, targetX = 27, - targetY = 6, - ), + targetY = 6), ), npcs = emptyList(), bgEvents = emptyList(), @@ -25911,17 +22721,13 @@ object MapManager { mapId = 9, width = 12, height = 14, - paletteIdx1 = 98, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 147, + unknownShort = 408, + unknownByte = 12, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -25936,8 +22742,7 @@ object MapManager { targetBankId = 50, targetMapId = 5, targetX = 39, - targetY = 14, - ), + targetY = 14), WarpTile( x = 5, y = 13, @@ -25945,8 +22750,7 @@ object MapManager { targetBankId = 50, targetMapId = 5, targetX = 39, - targetY = 14, - ), + targetY = 14), ), npcs = listOf( @@ -25960,9 +22764,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 0, - script = "LilycoveCity_PokemonTrainerFanClub_EventScript_Lass", - ), + facing = 1, + script = "LilycoveCity_PokemonTrainerFanClub_EventScript_Lass"), NpcDef( entityIdx = 1, graphicsId = 65, @@ -25974,8 +22777,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 2, - script = "LilycoveCity_PokemonTrainerFanClub_EventScript_Man", - ), + script = "LilycoveCity_PokemonTrainerFanClub_EventScript_Man"), NpcDef( entityIdx = 2, graphicsId = 25, @@ -25986,9 +22788,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 0, - script = "LilycoveCity_PokemonTrainerFanClub_EventScript_PokefanM", - ), + facing = 1, + script = "LilycoveCity_PokemonTrainerFanClub_EventScript_PokefanM"), NpcDef( entityIdx = 3, graphicsId = 12, @@ -25999,9 +22800,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "LilycoveCity_PokemonTrainerFanClub_EventScript_LittleGirl", - ), + facing = 0, + script = "LilycoveCity_PokemonTrainerFanClub_EventScript_LittleGirl"), ), bgEvents = emptyList(), ), @@ -26012,17 +22812,13 @@ object MapManager { mapId = 10, width = 24, height = 15, - paletteIdx1 = 128, - paletteIdx2 = 94, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 129, + unknownShort = 408, + unknownByte = 12, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -26037,8 +22833,7 @@ object MapManager { targetBankId = 50, targetMapId = 5, targetX = 12, - targetY = 32, - ), + targetY = 32), WarpTile( x = 12, y = 14, @@ -26046,8 +22841,7 @@ object MapManager { targetBankId = 50, targetMapId = 5, targetX = 12, - targetY = 32, - ), + targetY = 32), ), npcs = listOf( @@ -26062,8 +22856,8 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "LilycoveCity_Harbor_EventScript_Sailor", - )), + script = "LilycoveCity_Harbor_EventScript_Sailor"), + ), bgEvents = emptyList(), ), // LilycoveCity_MoveDeletersHouse (MAP_LILYCOVE_CITY_MOVE_DELETERS_HOUSE) @@ -26073,17 +22867,13 @@ object MapManager { mapId = 11, width = 11, height = 8, - paletteIdx1 = 98, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 147, + unknownShort = 408, + unknownByte = 12, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -26098,8 +22888,7 @@ object MapManager { targetBankId = 50, targetMapId = 5, targetX = 36, - targetY = 6, - ), + targetY = 6), WarpTile( x = 4, y = 7, @@ -26107,8 +22896,7 @@ object MapManager { targetBankId = 50, targetMapId = 5, targetX = 36, - targetY = 6, - ), + targetY = 6), ), npcs = listOf( @@ -26122,9 +22910,9 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "LilycoveCity_MoveDeletersHouse_EventScript_MoveDeleter", - )), + facing = 0, + script = "LilycoveCity_MoveDeletersHouse_EventScript_MoveDeleter"), + ), bgEvents = emptyList(), ), // LilycoveCity_House1 (MAP_LILYCOVE_CITY_HOUSE1) @@ -26134,17 +22922,13 @@ object MapManager { mapId = 12, width = 10, height = 9, - paletteIdx1 = 98, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 147, + unknownShort = 408, + unknownByte = 12, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -26159,8 +22943,7 @@ object MapManager { targetBankId = 50, targetMapId = 5, targetX = 42, - targetY = 6, - ), + targetY = 6), WarpTile( x = 4, y = 8, @@ -26168,8 +22951,7 @@ object MapManager { targetBankId = 50, targetMapId = 5, targetX = 42, - targetY = 6, - ), + targetY = 6), ), npcs = listOf( @@ -26184,8 +22966,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 2, - script = "LilycoveCity_House1_EventScript_ExpertM", - ), + script = "LilycoveCity_House1_EventScript_ExpertM"), NpcDef( entityIdx = 1, graphicsId = 0, @@ -26196,9 +22977,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "LilycoveCity_House1_EventScript_Kecleon", - ), + facing = 0, + script = "LilycoveCity_House1_EventScript_Kecleon"), ), bgEvents = emptyList(), ), @@ -26209,17 +22989,13 @@ object MapManager { mapId = 13, width = 8, height = 8, - paletteIdx1 = 98, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 147, + unknownShort = 408, + unknownByte = 12, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -26234,8 +23010,7 @@ object MapManager { targetBankId = 50, targetMapId = 5, targetX = 55, - targetY = 15, - ), + targetY = 15), WarpTile( x = 3, y = 7, @@ -26243,8 +23018,7 @@ object MapManager { targetBankId = 50, targetMapId = 5, targetX = 55, - targetY = 15, - ), + targetY = 15), ), npcs = listOf( @@ -26258,9 +23032,9 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "LilycoveCity_House2_EventScript_FatMan", - )), + facing = 0, + script = "LilycoveCity_House2_EventScript_FatMan"), + ), bgEvents = emptyList(), ), // LilycoveCity_House3 (MAP_LILYCOVE_CITY_HOUSE3) @@ -26270,17 +23044,13 @@ object MapManager { mapId = 14, width = 11, height = 8, - paletteIdx1 = 98, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 147, + unknownShort = 408, + unknownByte = 12, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -26295,8 +23065,7 @@ object MapManager { targetBankId = 50, targetMapId = 5, targetX = 11, - targetY = 22, - ), + targetY = 22), WarpTile( x = 4, y = 7, @@ -26304,8 +23073,7 @@ object MapManager { targetBankId = 50, targetMapId = 5, targetX = 11, - targetY = 22, - ), + targetY = 22), ), npcs = listOf( @@ -26319,9 +23087,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "LilycoveCity_House3_EventScript_GameBoyKid4", - ), + facing = 0, + script = "LilycoveCity_House3_EventScript_GameBoyKid4"), NpcDef( entityIdx = 1, graphicsId = 18, @@ -26333,8 +23100,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 2, - script = "LilycoveCity_House3_EventScript_PokefanF", - ), + script = "LilycoveCity_House3_EventScript_PokefanF"), NpcDef( entityIdx = 2, graphicsId = 0, @@ -26345,9 +23111,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "LilycoveCity_House3_EventScript_GameBoyKid2", - ), + facing = 0, + script = "LilycoveCity_House3_EventScript_GameBoyKid2"), NpcDef( entityIdx = 3, graphicsId = 0, @@ -26358,9 +23123,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 0, - script = "LilycoveCity_House3_EventScript_GameBoyKid3", - ), + facing = 1, + script = "LilycoveCity_House3_EventScript_GameBoyKid3"), NpcDef( entityIdx = 4, graphicsId = 0, @@ -26371,9 +23135,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "LilycoveCity_House3_EventScript_GameBoyKid1", - ), + facing = 0, + script = "LilycoveCity_House3_EventScript_GameBoyKid1"), NpcDef( entityIdx = 5, graphicsId = 19, @@ -26385,8 +23148,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 2, - script = "LilycoveCity_House3_EventScript_Man", - ), + script = "LilycoveCity_House3_EventScript_Man"), ), bgEvents = emptyList(), ), @@ -26397,17 +23159,13 @@ object MapManager { mapId = 15, width = 10, height = 9, - paletteIdx1 = 98, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 147, + unknownShort = 408, + unknownByte = 12, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -26422,8 +23180,7 @@ object MapManager { targetBankId = 50, targetMapId = 5, targetX = 12, - targetY = 14, - ), + targetY = 14), WarpTile( x = 4, y = 8, @@ -26431,8 +23188,7 @@ object MapManager { targetBankId = 50, targetMapId = 5, targetX = 12, - targetY = 14, - ), + targetY = 14), ), npcs = listOf( @@ -26447,8 +23203,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "LilycoveCity_House4_EventScript_Man1", - ), + script = "LilycoveCity_House4_EventScript_Man1"), NpcDef( entityIdx = 1, graphicsId = 19, @@ -26460,8 +23215,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "LilycoveCity_House4_EventScript_Man2", - ), + script = "LilycoveCity_House4_EventScript_Man2"), ), bgEvents = emptyList(), ), @@ -26472,17 +23226,13 @@ object MapManager { mapId = 16, width = 18, height = 8, - paletteIdx1 = 95, - paletteIdx2 = 87, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 117, + unknownShort = 408, + unknownByte = 12, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -26497,8 +23247,7 @@ object MapManager { targetBankId = 50, targetMapId = 5, targetX = 27, - targetY = 6, - ), + targetY = 6), WarpTile( x = 9, y = 7, @@ -26506,8 +23255,7 @@ object MapManager { targetBankId = 50, targetMapId = 5, targetX = 27, - targetY = 6, - ), + targetY = 6), WarpTile( x = 16, y = 1, @@ -26515,8 +23263,7 @@ object MapManager { targetBankId = 63, targetMapId = 17, targetX = 16, - targetY = 1, - ), + targetY = 1), WarpTile( x = 2, y = 1, @@ -26524,8 +23271,7 @@ object MapManager { targetBankId = 63, targetMapId = 22, targetX = 1, - targetY = 5, - ), + targetY = 5), ), npcs = listOf( @@ -26539,9 +23285,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "LilycoveCity_DepartmentStore_1F_EventScript_Greeter", - ), + facing = 0, + script = "LilycoveCity_DepartmentStore_1F_EventScript_Greeter"), NpcDef( entityIdx = 1, graphicsId = 45, @@ -26552,9 +23297,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "LilycoveCity_DepartmentStore_1F_EventScript_LotteryClerk", - ), + facing = 0, + script = "LilycoveCity_DepartmentStore_1F_EventScript_LotteryClerk"), NpcDef( entityIdx = 2, graphicsId = 18, @@ -26566,8 +23310,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "LilycoveCity_DepartmentStore_1F_EventScript_PokefanF", - ), + script = "LilycoveCity_DepartmentStore_1F_EventScript_PokefanF"), NpcDef( entityIdx = 3, graphicsId = 12, @@ -26579,8 +23322,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "LilycoveCity_DepartmentStore_1F_EventScript_LittleGirl", - ), + script = "LilycoveCity_DepartmentStore_1F_EventScript_LittleGirl"), NpcDef( entityIdx = 4, graphicsId = 25, @@ -26592,8 +23334,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "LilycoveCity_DepartmentStore_1F_EventScript_PokefanM", - ), + script = "LilycoveCity_DepartmentStore_1F_EventScript_PokefanM"), NpcDef( entityIdx = 5, graphicsId = 0, @@ -26605,8 +23346,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "LilycoveCity_DepartmentStore_1F_EventScript_Azumarill", - ), + script = "LilycoveCity_DepartmentStore_1F_EventScript_Azumarill"), ), bgEvents = listOf( @@ -26614,8 +23354,8 @@ object MapManager { x = 0, y = 8, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "LilycoveCity_DepartmentStore_1F_EventScript_FloorNamesSign", - )), + script = "LilycoveCity_DepartmentStore_1F_EventScript_FloorNamesSign"), + ), ), // LilycoveCity_DepartmentStore_2F (MAP_LILYCOVE_CITY_DEPARTMENT_STORE_2F) MapDef( @@ -26624,17 +23364,13 @@ object MapManager { mapId = 17, width = 18, height = 8, - paletteIdx1 = 95, - paletteIdx2 = 87, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 117, + unknownShort = 404, + unknownByte = 12, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -26649,8 +23385,7 @@ object MapManager { targetBankId = 63, targetMapId = 16, targetX = 16, - targetY = 1, - ), + targetY = 1), WarpTile( x = 13, y = 1, @@ -26658,8 +23393,7 @@ object MapManager { targetBankId = 63, targetMapId = 18, targetX = 13, - targetY = 1, - ), + targetY = 1), WarpTile( x = 2, y = 1, @@ -26667,8 +23401,7 @@ object MapManager { targetBankId = 63, targetMapId = 22, targetX = 1, - targetY = 5, - ), + targetY = 5), ), npcs = listOf( @@ -26682,9 +23415,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "LilycoveCity_DepartmentStore_2F_EventScript_Cook", - ), + facing = 0, + script = "LilycoveCity_DepartmentStore_2F_EventScript_Cook"), NpcDef( entityIdx = 1, graphicsId = 18, @@ -26696,8 +23428,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "LilycoveCity_DepartmentStore_2F_EventScript_PokefanF", - ), + script = "LilycoveCity_DepartmentStore_2F_EventScript_PokefanF"), NpcDef( entityIdx = 2, graphicsId = 49, @@ -26709,8 +23440,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "LilycoveCity_DepartmentStore_2F_EventScript_Sailor", - ), + script = "LilycoveCity_DepartmentStore_2F_EventScript_Sailor"), NpcDef( entityIdx = 3, graphicsId = 24, @@ -26721,9 +23451,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 0, - script = "LilycoveCity_DepartmentStore_2F_EventScript_ClerkRight", - ), + facing = 1, + script = "LilycoveCity_DepartmentStore_2F_EventScript_ClerkRight"), NpcDef( entityIdx = 4, graphicsId = 24, @@ -26734,9 +23463,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 0, - script = "LilycoveCity_DepartmentStore_2F_EventScript_ClerkLeft", - ), + facing = 1, + script = "LilycoveCity_DepartmentStore_2F_EventScript_ClerkLeft"), ), bgEvents = emptyList(), ), @@ -26747,17 +23475,13 @@ object MapManager { mapId = 18, width = 18, height = 8, - paletteIdx1 = 95, - paletteIdx2 = 87, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 117, + unknownShort = 404, + unknownByte = 12, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -26772,8 +23496,7 @@ object MapManager { targetBankId = 63, targetMapId = 17, targetX = 13, - targetY = 1, - ), + targetY = 1), WarpTile( x = 16, y = 1, @@ -26781,8 +23504,7 @@ object MapManager { targetBankId = 63, targetMapId = 19, targetX = 16, - targetY = 1, - ), + targetY = 1), WarpTile( x = 2, y = 1, @@ -26790,8 +23512,7 @@ object MapManager { targetBankId = 63, targetMapId = 22, targetX = 1, - targetY = 5, - ), + targetY = 5), ), npcs = listOf( @@ -26806,8 +23527,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "LilycoveCity_DepartmentStore_3F_EventScript_TriathleteM", - ), + script = "LilycoveCity_DepartmentStore_3F_EventScript_TriathleteM"), NpcDef( entityIdx = 1, graphicsId = 25, @@ -26819,8 +23539,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "LilycoveCity_DepartmentStore_3F_EventScript_PokefanM", - ), + script = "LilycoveCity_DepartmentStore_3F_EventScript_PokefanM"), NpcDef( entityIdx = 2, graphicsId = 34, @@ -26832,8 +23551,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "LilycoveCity_DepartmentStore_3F_EventScript_Woman", - ), + script = "LilycoveCity_DepartmentStore_3F_EventScript_Woman"), NpcDef( entityIdx = 3, graphicsId = 24, @@ -26844,9 +23562,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "LilycoveCity_DepartmentStore_3F_EventScript_ClerkLeft", - ), + facing = 0, + script = "LilycoveCity_DepartmentStore_3F_EventScript_ClerkLeft"), NpcDef( entityIdx = 4, graphicsId = 24, @@ -26857,9 +23574,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "LilycoveCity_DepartmentStore_3F_EventScript_ClerkRight", - ), + facing = 0, + script = "LilycoveCity_DepartmentStore_3F_EventScript_ClerkRight"), ), bgEvents = emptyList(), ), @@ -26870,17 +23586,13 @@ object MapManager { mapId = 19, width = 18, height = 8, - paletteIdx1 = 95, - paletteIdx2 = 87, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 117, + unknownShort = 404, + unknownByte = 12, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -26895,8 +23607,7 @@ object MapManager { targetBankId = 63, targetMapId = 18, targetX = 16, - targetY = 1, - ), + targetY = 1), WarpTile( x = 13, y = 1, @@ -26904,8 +23615,7 @@ object MapManager { targetBankId = 63, targetMapId = 20, targetX = 13, - targetY = 1, - ), + targetY = 1), WarpTile( x = 2, y = 1, @@ -26913,8 +23623,7 @@ object MapManager { targetBankId = 63, targetMapId = 22, targetX = 1, - targetY = 5, - ), + targetY = 5), ), npcs = listOf( @@ -26929,8 +23638,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "LilycoveCity_DepartmentStore_4F_EventScript_Gentleman", - ), + script = "LilycoveCity_DepartmentStore_4F_EventScript_Gentleman"), NpcDef( entityIdx = 1, graphicsId = 20, @@ -26942,8 +23650,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "LilycoveCity_DepartmentStore_4F_EventScript_Woman", - ), + script = "LilycoveCity_DepartmentStore_4F_EventScript_Woman"), NpcDef( entityIdx = 2, graphicsId = 35, @@ -26955,8 +23662,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "LilycoveCity_DepartmentStore_4F_EventScript_Youngster", - ), + script = "LilycoveCity_DepartmentStore_4F_EventScript_Youngster"), NpcDef( entityIdx = 3, graphicsId = 24, @@ -26967,9 +23673,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 0, - script = "LilycoveCity_DepartmentStore_4F_EventScript_ClerkLeft", - ), + facing = 1, + script = "LilycoveCity_DepartmentStore_4F_EventScript_ClerkLeft"), NpcDef( entityIdx = 4, graphicsId = 24, @@ -26980,9 +23685,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 0, - script = "LilycoveCity_DepartmentStore_4F_EventScript_ClerkRight", - ), + facing = 1, + script = "LilycoveCity_DepartmentStore_4F_EventScript_ClerkRight"), ), bgEvents = emptyList(), ), @@ -27000,17 +23704,13 @@ object MapManager { mapId = 20, width = 18, height = 8, - paletteIdx1 = 95, - paletteIdx2 = 87, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 117, + unknownShort = 404, + unknownByte = 12, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -27025,8 +23725,7 @@ object MapManager { targetBankId = 63, targetMapId = 19, targetX = 13, - targetY = 1, - ), + targetY = 1), WarpTile( x = 2, y = 1, @@ -27034,8 +23733,7 @@ object MapManager { targetBankId = 63, targetMapId = 22, targetX = 1, - targetY = 5, - ), + targetY = 5), WarpTile( x = 16, y = 1, @@ -27043,8 +23741,7 @@ object MapManager { targetBankId = 63, targetMapId = 21, targetX = 13, - targetY = 3, - ), + targetY = 3), ), npcs = listOf( @@ -27059,8 +23756,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "LilycoveCity_DepartmentStore_5F_EventScript_LittleGirl", - ), + script = "LilycoveCity_DepartmentStore_5F_EventScript_LittleGirl"), NpcDef( entityIdx = 1, graphicsId = 18, @@ -27072,8 +23768,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "LilycoveCity_DepartmentStore_5F_EventScript_PokefanF", - ), + script = "LilycoveCity_DepartmentStore_5F_EventScript_PokefanF"), NpcDef( entityIdx = 2, graphicsId = 24, @@ -27084,9 +23779,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "LilycoveCity_DepartmentStore_5F_EventScript_ClerkFarLeft", - ), + facing = 0, + script = "LilycoveCity_DepartmentStore_5F_EventScript_ClerkFarLeft"), NpcDef( entityIdx = 3, graphicsId = 24, @@ -27097,9 +23791,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "LilycoveCity_DepartmentStore_5F_EventScript_ClerkMidLeft", - ), + facing = 0, + script = "LilycoveCity_DepartmentStore_5F_EventScript_ClerkMidLeft"), NpcDef( entityIdx = 4, graphicsId = 24, @@ -27111,8 +23804,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 2, - script = "LilycoveCity_DepartmentStore_5F_EventScript_ClerkMidRight", - ), + script = "LilycoveCity_DepartmentStore_5F_EventScript_ClerkMidRight"), NpcDef( entityIdx = 5, graphicsId = 24, @@ -27123,9 +23815,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 0, - script = "LilycoveCity_DepartmentStore_5F_EventScript_ClerkFarRight", - ), + facing = 1, + script = "LilycoveCity_DepartmentStore_5F_EventScript_ClerkFarRight"), NpcDef( entityIdx = 6, graphicsId = 20, @@ -27137,8 +23828,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 3, - script = "LilycoveCity_DepartmentStore_5F_EventScript_Woman", - ), + script = "LilycoveCity_DepartmentStore_5F_EventScript_Woman"), ), bgEvents = emptyList(), ), @@ -27149,17 +23839,13 @@ object MapManager { mapId = 21, width = 18, height = 12, - paletteIdx1 = 95, - paletteIdx2 = 87, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 117, + unknownShort = 408, + unknownByte = 12, borderTiles = listOf( - Tile2D(0x021F, 0), - Tile2D(0x021F, 0), - Tile2D(0x021F, 0), - Tile2D(0x021F, 0), - ), + Tile2D(0x021F, 0), Tile2D(0x021F, 0), Tile2D(0x021F, 0), Tile2D(0x021F, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -27174,8 +23860,8 @@ object MapManager { targetBankId = 63, targetMapId = 20, targetX = 16, - targetY = 1, - )), + targetY = 1), + ), npcs = listOf( NpcDef( @@ -27188,9 +23874,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 0, - script = "LilycoveCity_DepartmentStoreRooftop_EventScript_Man", - ), + facing = 1, + script = "LilycoveCity_DepartmentStoreRooftop_EventScript_Man"), NpcDef( entityIdx = 1, graphicsId = 33, @@ -27202,8 +23887,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "LilycoveCity_DepartmentStoreRooftop_EventScript_ThirstyMan", - ), + script = "LilycoveCity_DepartmentStoreRooftop_EventScript_ThirstyMan"), NpcDef( entityIdx = 3, graphicsId = 24, @@ -27214,10 +23898,9 @@ object MapManager { movementRangeX = 1, movementRangeY = 0, trainerType = 0, - facing = 1, + facing = 0, script = - "LilycoveCity_DepartmentStoreRooftop_EventScript_SubstituteTutor", - ), + "LilycoveCity_DepartmentStoreRooftop_EventScript_SubstituteTutor"), ), bgEvents = listOf( @@ -27226,36 +23909,29 @@ object MapManager { y = 1, facingDir = "BG_EVENT_PLAYER_FACING_ANY", script = - "LilycoveCity_DepartmentStoreRooftop_EventScript_VendingMachine", - ), + "LilycoveCity_DepartmentStoreRooftop_EventScript_VendingMachine"), BgEventDef( x = 10, y = 1, facingDir = "BG_EVENT_PLAYER_FACING_ANY", script = - "LilycoveCity_DepartmentStoreRooftop_EventScript_VendingMachine", - ), + "LilycoveCity_DepartmentStoreRooftop_EventScript_VendingMachine"), ), ), - // LilycoveCity_DepartmentStoreElevator - // (MAP_LILYCOVE_CITY_DEPARTMENT_STORE_ELEVATOR) + // LilycoveCity_DepartmentStoreElevator (MAP_LILYCOVE_CITY_DEPARTMENT_STORE_ELEVATOR) MapDef( regionId = 1, bankId = 63, mapId = 22, width = 5, height = 6, - paletteIdx1 = 90, - paletteIdx2 = 98, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 159, + unknownShort = 408, + unknownByte = 12, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -27274,9 +23950,9 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "LilycoveCity_DepartmentStoreElevator_EventScript_Attendant", - )), + facing = 0, + script = "LilycoveCity_DepartmentStoreElevator_EventScript_Attendant"), + ), bgEvents = emptyList(), ), // MossdeepCity_Gym (MAP_MOSSDEEP_CITY_GYM) @@ -27286,17 +23962,13 @@ object MapManager { mapId = 0, width = 26, height = 36, - paletteIdx1 = 108, - paletteIdx2 = 138, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 155, + unknownShort = 364, + unknownByte = 13, borderTiles = listOf( - Tile2D(0x0208, 0), - Tile2D(0x0208, 0), - Tile2D(0x0208, 0), - Tile2D(0x0208, 0), - ), + Tile2D(0x0208, 0), Tile2D(0x0208, 0), Tile2D(0x0208, 0), Tile2D(0x0208, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -27311,8 +23983,7 @@ object MapManager { targetBankId = 50, targetMapId = 6, targetX = 38, - targetY = 9, - ), + targetY = 9), WarpTile( x = 7, y = 35, @@ -27320,8 +23991,7 @@ object MapManager { targetBankId = 50, targetMapId = 6, targetX = 38, - targetY = 9, - ), + targetY = 9), WarpTile( x = 3, y = 28, @@ -27329,8 +23999,7 @@ object MapManager { targetBankId = 64, targetMapId = 0, targetX = 1, - targetY = 23, - ), + targetY = 23), WarpTile( x = 1, y = 23, @@ -27338,8 +24007,7 @@ object MapManager { targetBankId = 64, targetMapId = 0, targetX = 3, - targetY = 28, - ), + targetY = 28), WarpTile( x = 7, y = 18, @@ -27347,8 +24015,7 @@ object MapManager { targetBankId = 64, targetMapId = 0, targetX = 8, - targetY = 12, - ), + targetY = 12), WarpTile( x = 8, y = 12, @@ -27356,8 +24023,7 @@ object MapManager { targetBankId = 64, targetMapId = 0, targetX = 7, - targetY = 18, - ), + targetY = 18), WarpTile( x = 9, y = 18, @@ -27365,8 +24031,7 @@ object MapManager { targetBankId = 64, targetMapId = 0, targetX = 23, - targetY = 20, - ), + targetY = 20), WarpTile( x = 23, y = 20, @@ -27374,8 +24039,7 @@ object MapManager { targetBankId = 64, targetMapId = 0, targetX = 9, - targetY = 18, - ), + targetY = 18), WarpTile( x = 1, y = 33, @@ -27383,8 +24047,7 @@ object MapManager { targetBankId = 64, targetMapId = 0, targetX = 20, - targetY = 24, - ), + targetY = 24), WarpTile( x = 20, y = 24, @@ -27392,8 +24055,7 @@ object MapManager { targetBankId = 64, targetMapId = 0, targetX = 1, - targetY = 33, - ), + targetY = 33), WarpTile( x = 11, y = 3, @@ -27401,8 +24063,7 @@ object MapManager { targetBankId = 64, targetMapId = 0, targetX = 11, - targetY = 35, - ), + targetY = 35), WarpTile( x = 11, y = 35, @@ -27410,8 +24071,7 @@ object MapManager { targetBankId = 64, targetMapId = 0, targetX = 11, - targetY = 3, - ), + targetY = 3), WarpTile( x = 13, y = 32, @@ -27419,8 +24079,7 @@ object MapManager { targetBankId = 64, targetMapId = 0, targetX = 21, - targetY = 10, - ), + targetY = 10), WarpTile( x = 21, y = 10, @@ -27428,8 +24087,7 @@ object MapManager { targetBankId = 64, targetMapId = 0, targetX = 13, - targetY = 32, - ), + targetY = 32), ), npcs = listOf( @@ -27443,9 +24101,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "MossdeepCity_Gym_EventScript_TateAndLiza", - ), + facing = 0, + script = "MossdeepCity_Gym_EventScript_TateAndLiza"), NpcDef( entityIdx = 1, graphicsId = 37, @@ -27456,9 +24113,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 1, - facing = 1, - script = "MossdeepCity_Gym_EventScript_Preston", - ), + facing = 0, + script = "MossdeepCity_Gym_EventScript_Preston"), NpcDef( entityIdx = 2, graphicsId = 37, @@ -27469,9 +24125,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 1, - facing = 0, - script = "MossdeepCity_Gym_EventScript_Blake", - ), + facing = 1, + script = "MossdeepCity_Gym_EventScript_Blake"), NpcDef( entityIdx = 3, graphicsId = 47, @@ -27482,9 +24137,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 1, - facing = 0, - script = "MossdeepCity_Gym_EventScript_Maura", - ), + facing = 1, + script = "MossdeepCity_Gym_EventScript_Maura"), NpcDef( entityIdx = 4, graphicsId = 47, @@ -27495,9 +24149,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 1, - facing = 0, - script = "MossdeepCity_Gym_EventScript_Samantha", - ), + facing = 1, + script = "MossdeepCity_Gym_EventScript_Samantha"), NpcDef( entityIdx = 5, graphicsId = 37, @@ -27508,9 +24161,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 1, - facing = 1, - script = "MossdeepCity_Gym_EventScript_Virgil", - ), + facing = 0, + script = "MossdeepCity_Gym_EventScript_Virgil"), NpcDef( entityIdx = 6, graphicsId = 47, @@ -27521,9 +24173,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 1, - facing = 1, - script = "MossdeepCity_Gym_EventScript_Hannah", - ), + facing = 0, + script = "MossdeepCity_Gym_EventScript_Hannah"), NpcDef( entityIdx = 7, graphicsId = 23, @@ -27534,9 +24185,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "MossdeepCity_Gym_EventScript_GymGuide", - ), + facing = 0, + script = "MossdeepCity_Gym_EventScript_GymGuide"), NpcDef( entityIdx = 8, graphicsId = 0, @@ -27547,9 +24197,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "MossdeepCity_Gym_EventScript_TateAndLiza", - ), + facing = 0, + script = "MossdeepCity_Gym_EventScript_TateAndLiza"), NpcDef( entityIdx = 9, graphicsId = 0, @@ -27561,8 +24210,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "0x0", - ), + script = "0x0"), NpcDef( entityIdx = 10, graphicsId = 0, @@ -27574,8 +24222,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "0x0", - ), + script = "0x0"), NpcDef( entityIdx = 11, graphicsId = 0, @@ -27587,8 +24234,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "0x0", - ), + script = "0x0"), NpcDef( entityIdx = 12, graphicsId = 0, @@ -27600,8 +24246,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "0x0", - ), + script = "0x0"), NpcDef( entityIdx = 13, graphicsId = 0, @@ -27613,8 +24258,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "0x0", - ), + script = "0x0"), NpcDef( entityIdx = 14, graphicsId = 0, @@ -27626,8 +24270,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "0x0", - ), + script = "0x0"), NpcDef( entityIdx = 15, graphicsId = 0, @@ -27639,8 +24282,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "0x0", - ), + script = "0x0"), NpcDef( entityIdx = 16, graphicsId = 48, @@ -27651,9 +24293,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 1, - facing = 0, - script = "MossdeepCity_Gym_EventScript_Nate", - ), + facing = 1, + script = "MossdeepCity_Gym_EventScript_Nate"), NpcDef( entityIdx = 17, graphicsId = 40, @@ -27665,8 +24306,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 3, - script = "MossdeepCity_Gym_EventScript_Sylvia", - ), + script = "MossdeepCity_Gym_EventScript_Sylvia"), NpcDef( entityIdx = 18, graphicsId = 0, @@ -27678,8 +24318,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "0x0", - ), + script = "0x0"), NpcDef( entityIdx = 19, graphicsId = 0, @@ -27691,8 +24330,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "0x0", - ), + script = "0x0"), NpcDef( entityIdx = 20, graphicsId = 0, @@ -27704,8 +24342,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "0x0", - ), + script = "0x0"), NpcDef( entityIdx = 21, graphicsId = 0, @@ -27717,8 +24354,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "0x0", - ), + script = "0x0"), NpcDef( entityIdx = 22, graphicsId = 0, @@ -27730,8 +24366,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "0x0", - ), + script = "0x0"), NpcDef( entityIdx = 23, graphicsId = 0, @@ -27743,8 +24378,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "0x0", - ), + script = "0x0"), NpcDef( entityIdx = 24, graphicsId = 48, @@ -27755,9 +24389,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 1, - facing = 0, - script = "MossdeepCity_Gym_EventScript_Clifford", - ), + facing = 1, + script = "MossdeepCity_Gym_EventScript_Clifford"), NpcDef( entityIdx = 25, graphicsId = 0, @@ -27769,8 +24402,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "0x0", - ), + script = "0x0"), NpcDef( entityIdx = 26, graphicsId = 47, @@ -27782,8 +24414,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 2, - script = "MossdeepCity_Gym_EventScript_Macey", - ), + script = "MossdeepCity_Gym_EventScript_Macey"), NpcDef( entityIdx = 27, graphicsId = 40, @@ -27794,9 +24425,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 1, - facing = 1, - script = "MossdeepCity_Gym_EventScript_Kathleen", - ), + facing = 0, + script = "MossdeepCity_Gym_EventScript_Kathleen"), NpcDef( entityIdx = 28, graphicsId = 0, @@ -27808,8 +24438,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "0x0", - ), + script = "0x0"), NpcDef( entityIdx = 29, graphicsId = 0, @@ -27821,8 +24450,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "0x0", - ), + script = "0x0"), NpcDef( entityIdx = 30, graphicsId = 0, @@ -27834,8 +24462,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "0x0", - ), + script = "0x0"), NpcDef( entityIdx = 31, graphicsId = 37, @@ -27846,9 +24473,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 1, - facing = 0, - script = "MossdeepCity_Gym_EventScript_Nicholas", - ), + facing = 1, + script = "MossdeepCity_Gym_EventScript_Nicholas"), NpcDef( entityIdx = 32, graphicsId = 0, @@ -27860,8 +24486,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "0x0", - ), + script = "0x0"), NpcDef( entityIdx = 33, graphicsId = 0, @@ -27873,8 +24498,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "0x0", - ), + script = "0x0"), NpcDef( entityIdx = 34, graphicsId = 0, @@ -27886,8 +24510,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "0x0", - ), + script = "0x0"), NpcDef( entityIdx = 35, graphicsId = 0, @@ -27899,8 +24522,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "0x0", - ), + script = "0x0"), ), bgEvents = listOf( @@ -27908,14 +24530,12 @@ object MapManager { x = 4, y = 34, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "MossdeepCity_Gym_EventScript_LeftGymStatue", - ), + script = "MossdeepCity_Gym_EventScript_LeftGymStatue"), BgEventDef( x = 8, y = 34, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "MossdeepCity_Gym_EventScript_RightGymStatue", - ), + script = "MossdeepCity_Gym_EventScript_RightGymStatue"), ), ), // MossdeepCity_House1 (MAP_MOSSDEEP_CITY_HOUSE1) @@ -27925,17 +24545,13 @@ object MapManager { mapId = 1, width = 11, height = 8, - paletteIdx1 = 98, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 147, + unknownShort = 399, + unknownByte = 13, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -27950,8 +24566,7 @@ object MapManager { targetBankId = 50, targetMapId = 6, targetX = 28, - targetY = 9, - ), + targetY = 9), WarpTile( x = 4, y = 7, @@ -27959,8 +24574,7 @@ object MapManager { targetBankId = 50, targetMapId = 6, targetX = 28, - targetY = 9, - ), + targetY = 9), ), npcs = listOf( @@ -27975,8 +24589,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "MossdeepCity_House1_EventScript_BlackBelt", - ), + script = "MossdeepCity_House1_EventScript_BlackBelt"), NpcDef( entityIdx = 1, graphicsId = 20, @@ -27988,8 +24601,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 2, - script = "MossdeepCity_House1_EventScript_Woman", - ), + script = "MossdeepCity_House1_EventScript_Woman"), ), bgEvents = emptyList(), ), @@ -28000,17 +24612,13 @@ object MapManager { mapId = 2, width = 10, height = 9, - paletteIdx1 = 98, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 147, + unknownShort = 399, + unknownByte = 13, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -28025,8 +24633,7 @@ object MapManager { targetBankId = 50, targetMapId = 6, targetX = 67, - targetY = 25, - ), + targetY = 25), WarpTile( x = 4, y = 8, @@ -28034,8 +24641,7 @@ object MapManager { targetBankId = 50, targetMapId = 6, targetX = 67, - targetY = 25, - ), + targetY = 25), ), npcs = listOf( @@ -28050,8 +24656,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 2, - script = "MossdeepCity_House2_EventScript_Man", - ), + script = "MossdeepCity_House2_EventScript_Man"), NpcDef( entityIdx = 1, graphicsId = 6, @@ -28062,9 +24667,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "MossdeepCity_House2_EventScript_Twin", - ), + facing = 0, + script = "MossdeepCity_House2_EventScript_Twin"), ), bgEvents = emptyList(), ), @@ -28075,17 +24679,13 @@ object MapManager { mapId = 3, width = 14, height = 9, - paletteIdx1 = 87, - paletteIdx2 = 121, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 118, + unknownShort = 400, + unknownByte = 13, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -28100,8 +24700,7 @@ object MapManager { targetBankId = 50, targetMapId = 6, targetX = 28, - targetY = 16, - ), + targetY = 16), WarpTile( x = 6, y = 8, @@ -28109,8 +24708,7 @@ object MapManager { targetBankId = 50, targetMapId = 6, targetX = 28, - targetY = 16, - ), + targetY = 16), WarpTile( x = 1, y = 6, @@ -28118,8 +24716,7 @@ object MapManager { targetBankId = 64, targetMapId = 4, targetX = 1, - targetY = 6, - ), + targetY = 6), ), npcs = listOf( @@ -28133,9 +24730,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "MossdeepCity_PokemonCenter_1F_EventScript_Nurse", - ), + facing = 0, + script = "MossdeepCity_PokemonCenter_1F_EventScript_Nurse"), NpcDef( entityIdx = 1, graphicsId = 20, @@ -28146,9 +24742,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 0, - script = "MossdeepCity_PokemonCenter_1F_EventScript_Woman", - ), + facing = 1, + script = "MossdeepCity_PokemonCenter_1F_EventScript_Woman"), NpcDef( entityIdx = 2, graphicsId = 8, @@ -28160,8 +24755,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "MossdeepCity_PokemonCenter_1F_EventScript_Girl", - ), + script = "MossdeepCity_PokemonCenter_1F_EventScript_Girl"), ), bgEvents = emptyList(), ), @@ -28172,17 +24766,13 @@ object MapManager { mapId = 4, width = 14, height = 10, - paletteIdx1 = 87, - paletteIdx2 = 121, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 118, + unknownShort = 400, + unknownByte = 13, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -28197,8 +24787,7 @@ object MapManager { targetBankId = 64, targetMapId = 3, targetX = 1, - targetY = 6, - ), + targetY = 6), WarpTile( x = 5, y = 1, @@ -28206,8 +24795,7 @@ object MapManager { targetBankId = 75, targetMapId = 60, targetX = 7, - targetY = 11, - ), + targetY = 11), WarpTile( x = 9, y = 1, @@ -28215,8 +24803,7 @@ object MapManager { targetBankId = 75, targetMapId = 25, targetX = 5, - targetY = 8, - ), + targetY = 8), ), npcs = listOf( @@ -28230,9 +24817,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "Common_EventScript_UnionRoomAttendant", - ), + facing = 0, + script = "Common_EventScript_UnionRoomAttendant"), NpcDef( entityIdx = 1, graphicsId = 0, @@ -28243,9 +24829,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "Common_EventScript_WirelessClubAttendant", - ), + facing = 0, + script = "Common_EventScript_WirelessClubAttendant"), NpcDef( entityIdx = 2, graphicsId = 0, @@ -28256,9 +24841,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "Common_EventScript_DirectCornerAttendant", - ), + facing = 0, + script = "Common_EventScript_DirectCornerAttendant"), NpcDef( entityIdx = 4, graphicsId = 34, @@ -28270,8 +24854,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "MossdeepCity_PokemonCenter_2F_EventScript_Woman5", - ), + script = "MossdeepCity_PokemonCenter_2F_EventScript_Woman5"), ), bgEvents = emptyList(), ), @@ -28282,17 +24865,13 @@ object MapManager { mapId = 5, width = 11, height = 8, - paletteIdx1 = 95, - paletteIdx2 = 87, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 117, + unknownShort = 404, + unknownByte = 13, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -28307,8 +24886,7 @@ object MapManager { targetBankId = 50, targetMapId = 6, targetX = 37, - targetY = 18, - ), + targetY = 18), WarpTile( x = 4, y = 7, @@ -28316,8 +24894,7 @@ object MapManager { targetBankId = 50, targetMapId = 6, targetX = 37, - targetY = 18, - ), + targetY = 18), ), npcs = listOf( @@ -28332,8 +24909,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "MossdeepCity_Mart_EventScript_Clerk", - ), + script = "MossdeepCity_Mart_EventScript_Clerk"), NpcDef( entityIdx = 1, graphicsId = 34, @@ -28344,9 +24920,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 0, - script = "MossdeepCity_Mart_EventScript_Woman", - ), + facing = 1, + script = "MossdeepCity_Mart_EventScript_Woman"), NpcDef( entityIdx = 2, graphicsId = 9, @@ -28358,8 +24933,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "MossdeepCity_Mart_EventScript_Boy", - ), + script = "MossdeepCity_Mart_EventScript_Boy"), NpcDef( entityIdx = 3, graphicsId = 49, @@ -28371,8 +24945,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "MossdeepCity_Mart_EventScript_Sailor", - ), + script = "MossdeepCity_Mart_EventScript_Sailor"), ), bgEvents = emptyList(), ), @@ -28383,17 +24956,13 @@ object MapManager { mapId = 6, width = 11, height = 8, - paletteIdx1 = 98, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 147, + unknownShort = 399, + unknownByte = 13, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -28408,8 +24977,7 @@ object MapManager { targetBankId = 50, targetMapId = 6, targetX = 49, - targetY = 6, - ), + targetY = 6), WarpTile( x = 4, y = 7, @@ -28417,8 +24985,7 @@ object MapManager { targetBankId = 50, targetMapId = 6, targetX = 49, - targetY = 6, - ), + targetY = 6), ), npcs = listOf( @@ -28433,8 +25000,8 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "MossdeepCity_House3_EventScript_SuperRodFisherman", - )), + script = "MossdeepCity_House3_EventScript_SuperRodFisherman"), + ), bgEvents = emptyList(), ), // MossdeepCity_StevensHouse (MAP_MOSSDEEP_CITY_STEVENS_HOUSE) @@ -28444,17 +25011,13 @@ object MapManager { mapId = 7, width = 11, height = 8, - paletteIdx1 = 98, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 147, + unknownShort = 399, + unknownByte = 13, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -28469,8 +25032,7 @@ object MapManager { targetBankId = 50, targetMapId = 6, targetX = 19, - targetY = 10, - ), + targetY = 10), WarpTile( x = 4, y = 7, @@ -28478,8 +25040,7 @@ object MapManager { targetBankId = 50, targetMapId = 6, targetX = 19, - targetY = 10, - ), + targetY = 10), ), npcs = emptyList(), bgEvents = @@ -28488,26 +25049,22 @@ object MapManager { x = 0, y = 1, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "MossdeepCity_StevensHouse_EventScript_RockDisplay", - ), + script = "MossdeepCity_StevensHouse_EventScript_RockDisplay"), BgEventDef( x = 1, y = 1, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "MossdeepCity_StevensHouse_EventScript_RockDisplay", - ), + script = "MossdeepCity_StevensHouse_EventScript_RockDisplay"), BgEventDef( x = 10, y = 4, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "MossdeepCity_StevensHouse_EventScript_RockDisplay", - ), + script = "MossdeepCity_StevensHouse_EventScript_RockDisplay"), BgEventDef( x = 10, y = 6, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "MossdeepCity_StevensHouse_EventScript_RockDisplay", - ), + script = "MossdeepCity_StevensHouse_EventScript_RockDisplay"), ), ), // MossdeepCity_House4 (MAP_MOSSDEEP_CITY_HOUSE4) @@ -28517,17 +25074,13 @@ object MapManager { mapId = 8, width = 10, height = 8, - paletteIdx1 = 98, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 147, + unknownShort = 399, + unknownByte = 13, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -28542,8 +25095,7 @@ object MapManager { targetBankId = 50, targetMapId = 6, targetX = 18, - targetY = 16, - ), + targetY = 16), WarpTile( x = 3, y = 7, @@ -28551,8 +25103,7 @@ object MapManager { targetBankId = 50, targetMapId = 6, targetX = 18, - targetY = 16, - ), + targetY = 16), ), npcs = listOf( @@ -28567,8 +25118,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 2, - script = "MossdeepCity_House4_EventScript_Woman", - ), + script = "MossdeepCity_House4_EventScript_Woman"), NpcDef( entityIdx = 1, graphicsId = 5, @@ -28580,8 +25130,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "MossdeepCity_House4_EventScript_NinjaBoy", - ), + script = "MossdeepCity_House4_EventScript_NinjaBoy"), NpcDef( entityIdx = 2, graphicsId = 0, @@ -28593,8 +25142,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "MossdeepCity_House4_EventScript_Skitty", - ), + script = "MossdeepCity_House4_EventScript_Skitty"), ), bgEvents = emptyList(), ), @@ -28605,17 +25153,13 @@ object MapManager { mapId = 9, width = 16, height = 10, - paletteIdx1 = 128, - paletteIdx2 = 94, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 129, + unknownShort = 399, + unknownByte = 13, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -28630,8 +25174,7 @@ object MapManager { targetBankId = 50, targetMapId = 6, targetX = 64, - targetY = 15, - ), + targetY = 15), WarpTile( x = 8, y = 9, @@ -28639,8 +25182,7 @@ object MapManager { targetBankId = 50, targetMapId = 6, targetX = 64, - targetY = 15, - ), + targetY = 15), WarpTile( x = 13, y = 1, @@ -28648,8 +25190,7 @@ object MapManager { targetBankId = 64, targetMapId = 10, targetX = 13, - targetY = 1, - ), + targetY = 1), ), npcs = listOf( @@ -28663,9 +25204,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 0, - script = "MossdeepCity_SpaceCenter_1F_EventScript_RocketLaunchCounter", - ), + facing = 1, + script = "MossdeepCity_SpaceCenter_1F_EventScript_RocketLaunchCounter"), NpcDef( entityIdx = 1, graphicsId = 46, @@ -28676,9 +25216,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 0, - script = "MossdeepCity_SpaceCenter_1F_EventScript_Scientist", - ), + facing = 1, + script = "MossdeepCity_SpaceCenter_1F_EventScript_Scientist"), NpcDef( entityIdx = 2, graphicsId = 49, @@ -28690,8 +25229,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 2, - script = "MossdeepCity_SpaceCenter_1F_EventScript_SunStoneMan", - ), + script = "MossdeepCity_SpaceCenter_1F_EventScript_SunStoneMan"), NpcDef( entityIdx = 3, graphicsId = 29, @@ -28702,9 +25240,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 0, - script = "MossdeepCity_SpaceCenter_1F_EventScript_OldMan", - ), + facing = 1, + script = "MossdeepCity_SpaceCenter_1F_EventScript_OldMan"), NpcDef( entityIdx = 4, graphicsId = 26, @@ -28716,8 +25253,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "MossdeepCity_SpaceCenter_1F_EventScript_Woman", - ), + script = "MossdeepCity_SpaceCenter_1F_EventScript_Woman"), ), bgEvents = emptyList(), ), @@ -28728,17 +25264,13 @@ object MapManager { mapId = 10, width = 16, height = 10, - paletteIdx1 = 128, - paletteIdx2 = 94, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 129, + unknownShort = 399, + unknownByte = 13, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -28753,8 +25285,8 @@ object MapManager { targetBankId = 64, targetMapId = 9, targetX = 13, - targetY = 1, - )), + targetY = 1), + ), npcs = listOf( NpcDef( @@ -28767,9 +25299,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 0, - script = "MossdeepCity_SpaceCenter_2F_EventScript_RichBoy", - ), + facing = 1, + script = "MossdeepCity_SpaceCenter_2F_EventScript_RichBoy"), NpcDef( entityIdx = 1, graphicsId = 48, @@ -28780,9 +25311,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 0, - script = "MossdeepCity_SpaceCenter_2F_EventScript_Gentleman", - ), + facing = 1, + script = "MossdeepCity_SpaceCenter_2F_EventScript_Gentleman"), NpcDef( entityIdx = 2, graphicsId = 46, @@ -28794,8 +25324,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "MossdeepCity_SpaceCenter_2F_EventScript_Scientist", - ), + script = "MossdeepCity_SpaceCenter_2F_EventScript_Scientist"), ), bgEvents = emptyList(), ), @@ -28806,17 +25335,13 @@ object MapManager { mapId = 11, width = 12, height = 10, - paletteIdx1 = 110, - paletteIdx2 = 96, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 167, + unknownShort = 399, + unknownByte = 13, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -28831,8 +25356,7 @@ object MapManager { targetBankId = 50, targetMapId = 6, targetX = 36, - targetY = 24, - ), + targetY = 24), WarpTile( x = 6, y = 9, @@ -28840,8 +25364,7 @@ object MapManager { targetBankId = 50, targetMapId = 6, targetX = 36, - targetY = 24, - ), + targetY = 24), WarpTile( x = 2, y = 0, @@ -28849,8 +25372,7 @@ object MapManager { targetBankId = 64, targetMapId = 12, targetX = 3, - targetY = 1, - ), + targetY = 1), ), npcs = listOf( @@ -28864,9 +25386,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "MossdeepCity_GameCorner_1F_EventScript_OldMan", - ), + facing = 0, + script = "MossdeepCity_GameCorner_1F_EventScript_OldMan"), NpcDef( entityIdx = 1, graphicsId = 65, @@ -28877,9 +25398,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "MossdeepCity_GameCorner_1F_EventScript_InfoMan", - ), + facing = 0, + script = "MossdeepCity_GameCorner_1F_EventScript_InfoMan"), ), bgEvents = listOf( @@ -28887,21 +25407,18 @@ object MapManager { x = 3, y = 0, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "RS_MysteryEventsHouse_EventScript_Door", - ), + script = "RS_MysteryEventsHouse_EventScript_Door"), BgEventDef( x = 0, y = 1, facingDir = "BG_EVENT_PLAYER_FACING_ANY", script = - "MossdeepCity_GameCorner_1F_EventScript_DodrioBerryPickingRecords", - ), + "MossdeepCity_GameCorner_1F_EventScript_DodrioBerryPickingRecords"), BgEventDef( x = 1, y = 1, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "MossdeepCity_GameCorner_1F_EventScript_PokemonJumpRecords", - ), + script = "MossdeepCity_GameCorner_1F_EventScript_PokemonJumpRecords"), ), ), // MossdeepCity_GameCorner_B1F (MAP_MOSSDEEP_CITY_GAME_CORNER_B1F) @@ -28911,17 +25428,13 @@ object MapManager { mapId = 12, width = 12, height = 9, - paletteIdx1 = 98, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 147, + unknownShort = 399, + unknownByte = 13, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -28936,8 +25449,8 @@ object MapManager { targetBankId = 64, targetMapId = 11, targetX = 2, - targetY = 0, - )), + targetY = 0), + ), npcs = listOf( NpcDef( @@ -28951,8 +25464,8 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 2, - script = "0x0", - )), + script = "0x0"), + ), bgEvents = emptyList(), ), // SootopolisCity_Gym_1F (MAP_SOOTOPOLIS_CITY_GYM_1F) @@ -28962,17 +25475,13 @@ object MapManager { mapId = 0, width = 17, height = 26, - paletteIdx1 = 110, - paletteIdx2 = 140, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 146, + unknownShort = 364, + unknownByte = 14, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -28987,8 +25496,7 @@ object MapManager { targetBankId = 50, targetMapId = 7, targetX = 31, - targetY = 32, - ), + targetY = 32), WarpTile( x = 9, y = 25, @@ -28996,8 +25504,7 @@ object MapManager { targetBankId = 50, targetMapId = 7, targetX = 31, - targetY = 32, - ), + targetY = 32), WarpTile( x = 11, y = 22, @@ -29005,8 +25512,7 @@ object MapManager { targetBankId = 65, targetMapId = 1, targetX = 11, - targetY = 22, - ), + targetY = 22), ), npcs = listOf( @@ -29020,9 +25526,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "SootopolisCity_Gym_1F_EventScript_Juan", - ), + facing = 0, + script = "SootopolisCity_Gym_1F_EventScript_Juan"), NpcDef( entityIdx = 1, graphicsId = 23, @@ -29033,9 +25538,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "SootopolisCity_Gym_1F_EventScript_GymGuide", - ), + facing = 0, + script = "SootopolisCity_Gym_1F_EventScript_GymGuide"), ), bgEvents = listOf( @@ -29043,14 +25547,12 @@ object MapManager { x = 6, y = 24, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "SootopolisCity_Gym_1F_EventScript_LeftGymStatue", - ), + script = "SootopolisCity_Gym_1F_EventScript_LeftGymStatue"), BgEventDef( x = 10, y = 24, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "SootopolisCity_Gym_1F_EventScript_RightGymStatue", - ), + script = "SootopolisCity_Gym_1F_EventScript_RightGymStatue"), ), ), // SootopolisCity_Gym_B1F (MAP_SOOTOPOLIS_CITY_GYM_B1F) @@ -29060,17 +25562,13 @@ object MapManager { mapId = 1, width = 17, height = 26, - paletteIdx1 = 110, - paletteIdx2 = 140, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 146, + unknownShort = 364, + unknownByte = 14, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -29085,8 +25583,8 @@ object MapManager { targetBankId = 65, targetMapId = 0, targetX = 11, - targetY = 22, - )), + targetY = 22), + ), npcs = listOf( NpcDef( @@ -29100,8 +25598,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 3, - script = "SootopolisCity_Gym_B1F_EventScript_Andrea", - ), + script = "SootopolisCity_Gym_B1F_EventScript_Andrea"), NpcDef( entityIdx = 1, graphicsId = 45, @@ -29113,8 +25610,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 2, - script = "SootopolisCity_Gym_B1F_EventScript_Connie", - ), + script = "SootopolisCity_Gym_B1F_EventScript_Connie"), NpcDef( entityIdx = 2, graphicsId = 20, @@ -29126,8 +25622,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 2, - script = "SootopolisCity_Gym_B1F_EventScript_Brianna", - ), + script = "SootopolisCity_Gym_B1F_EventScript_Brianna"), NpcDef( entityIdx = 3, graphicsId = 45, @@ -29138,9 +25633,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 1, - facing = 0, - script = "SootopolisCity_Gym_B1F_EventScript_Bridget", - ), + facing = 1, + script = "SootopolisCity_Gym_B1F_EventScript_Bridget"), NpcDef( entityIdx = 4, graphicsId = 45, @@ -29151,9 +25645,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 1, - facing = 1, - script = "SootopolisCity_Gym_B1F_EventScript_Tiffany", - ), + facing = 0, + script = "SootopolisCity_Gym_B1F_EventScript_Tiffany"), NpcDef( entityIdx = 5, graphicsId = 18, @@ -29165,8 +25658,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 3, - script = "SootopolisCity_Gym_B1F_EventScript_Bethany", - ), + script = "SootopolisCity_Gym_B1F_EventScript_Bethany"), NpcDef( entityIdx = 6, graphicsId = 47, @@ -29178,8 +25670,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 3, - script = "SootopolisCity_Gym_B1F_EventScript_Crissy", - ), + script = "SootopolisCity_Gym_B1F_EventScript_Crissy"), NpcDef( entityIdx = 7, graphicsId = 45, @@ -29190,9 +25681,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 1, - facing = 1, - script = "SootopolisCity_Gym_B1F_EventScript_Olivia", - ), + facing = 0, + script = "SootopolisCity_Gym_B1F_EventScript_Olivia"), NpcDef( entityIdx = 8, graphicsId = 20, @@ -29204,8 +25694,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 3, - script = "SootopolisCity_Gym_B1F_EventScript_Daphne", - ), + script = "SootopolisCity_Gym_B1F_EventScript_Daphne"), NpcDef( entityIdx = 9, graphicsId = 18, @@ -29217,8 +25706,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 2, - script = "SootopolisCity_Gym_B1F_EventScript_Annika", - ), + script = "SootopolisCity_Gym_B1F_EventScript_Annika"), ), bgEvents = emptyList(), ), @@ -29229,17 +25717,13 @@ object MapManager { mapId = 2, width = 14, height = 9, - paletteIdx1 = 87, - paletteIdx2 = 121, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 118, + unknownShort = 400, + unknownByte = 14, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -29254,8 +25738,7 @@ object MapManager { targetBankId = 50, targetMapId = 7, targetX = 43, - targetY = 31, - ), + targetY = 31), WarpTile( x = 6, y = 8, @@ -29263,8 +25746,7 @@ object MapManager { targetBankId = 50, targetMapId = 7, targetX = 43, - targetY = 31, - ), + targetY = 31), WarpTile( x = 1, y = 6, @@ -29272,8 +25754,7 @@ object MapManager { targetBankId = 65, targetMapId = 3, targetX = 1, - targetY = 6, - ), + targetY = 6), ), npcs = listOf( @@ -29287,9 +25768,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "SootopolisCity_PokemonCenter_1F_EventScript_Nurse", - ), + facing = 0, + script = "SootopolisCity_PokemonCenter_1F_EventScript_Nurse"), NpcDef( entityIdx = 1, graphicsId = 48, @@ -29301,8 +25781,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "SootopolisCity_PokemonCenter_1F_EventScript_Gentleman", - ), + script = "SootopolisCity_PokemonCenter_1F_EventScript_Gentleman"), NpcDef( entityIdx = 2, graphicsId = 34, @@ -29314,8 +25793,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "SootopolisCity_PokemonCenter_1F_EventScript_Woman", - ), + script = "SootopolisCity_PokemonCenter_1F_EventScript_Woman"), NpcDef( entityIdx = 3, graphicsId = 16, @@ -29327,8 +25805,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "SootopolisCity_PokemonCenter_1F_EventScript_DoubleEdgeTutor", - ), + script = "SootopolisCity_PokemonCenter_1F_EventScript_DoubleEdgeTutor"), ), bgEvents = emptyList(), ), @@ -29339,17 +25816,13 @@ object MapManager { mapId = 3, width = 14, height = 10, - paletteIdx1 = 87, - paletteIdx2 = 121, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 118, + unknownShort = 400, + unknownByte = 14, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -29364,8 +25837,7 @@ object MapManager { targetBankId = 65, targetMapId = 2, targetX = 1, - targetY = 6, - ), + targetY = 6), WarpTile( x = 5, y = 1, @@ -29373,8 +25845,7 @@ object MapManager { targetBankId = 75, targetMapId = 60, targetX = 7, - targetY = 11, - ), + targetY = 11), WarpTile( x = 9, y = 1, @@ -29382,8 +25853,7 @@ object MapManager { targetBankId = 75, targetMapId = 25, targetX = 5, - targetY = 8, - ), + targetY = 8), ), npcs = listOf( @@ -29397,9 +25867,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "Common_EventScript_UnionRoomAttendant", - ), + facing = 0, + script = "Common_EventScript_UnionRoomAttendant"), NpcDef( entityIdx = 1, graphicsId = 0, @@ -29410,9 +25879,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "Common_EventScript_WirelessClubAttendant", - ), + facing = 0, + script = "Common_EventScript_WirelessClubAttendant"), NpcDef( entityIdx = 2, graphicsId = 0, @@ -29423,9 +25891,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "Common_EventScript_DirectCornerAttendant", - ), + facing = 0, + script = "Common_EventScript_DirectCornerAttendant"), ), bgEvents = emptyList(), ), @@ -29436,17 +25903,13 @@ object MapManager { mapId = 4, width = 11, height = 8, - paletteIdx1 = 95, - paletteIdx2 = 87, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 117, + unknownShort = 404, + unknownByte = 14, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -29461,8 +25924,7 @@ object MapManager { targetBankId = 50, targetMapId = 7, targetX = 17, - targetY = 29, - ), + targetY = 29), WarpTile( x = 4, y = 7, @@ -29470,8 +25932,7 @@ object MapManager { targetBankId = 50, targetMapId = 7, targetX = 17, - targetY = 29, - ), + targetY = 29), ), npcs = listOf( @@ -29486,8 +25947,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "SootopolisCity_Mart_EventScript_Clerk", - ), + script = "SootopolisCity_Mart_EventScript_Clerk"), NpcDef( entityIdx = 1, graphicsId = 17, @@ -29499,8 +25959,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "SootopolisCity_Mart_EventScript_FatMan", - ), + script = "SootopolisCity_Mart_EventScript_FatMan"), NpcDef( entityIdx = 2, graphicsId = 48, @@ -29512,8 +25971,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "SootopolisCity_Mart_EventScript_Gentleman", - ), + script = "SootopolisCity_Mart_EventScript_Gentleman"), ), bgEvents = emptyList(), ), @@ -29524,17 +25982,13 @@ object MapManager { mapId = 5, width = 8, height = 7, - paletteIdx1 = 98, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 147, + unknownShort = 445, + unknownByte = 14, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -29549,8 +26003,7 @@ object MapManager { targetBankId = 50, targetMapId = 7, targetX = 9, - targetY = 6, - ), + targetY = 6), WarpTile( x = 4, y = 6, @@ -29558,8 +26011,7 @@ object MapManager { targetBankId = 50, targetMapId = 7, targetX = 9, - targetY = 6, - ), + targetY = 6), ), npcs = listOf( @@ -29574,8 +26026,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "SootopolisCity_House1_EventScript_BrickBreakBlackBelt", - ), + script = "SootopolisCity_House1_EventScript_BrickBreakBlackBelt"), NpcDef( entityIdx = 1, graphicsId = 0, @@ -29586,9 +26037,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "SootopolisCity_House1_EventScript_Kecleon", - ), + facing = 0, + script = "SootopolisCity_House1_EventScript_Kecleon"), ), bgEvents = emptyList(), ), @@ -29599,17 +26049,13 @@ object MapManager { mapId = 6, width = 8, height = 7, - paletteIdx1 = 98, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 147, + unknownShort = 445, + unknownByte = 14, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -29624,8 +26070,7 @@ object MapManager { targetBankId = 50, targetMapId = 7, targetX = 45, - targetY = 6, - ), + targetY = 6), WarpTile( x = 4, y = 6, @@ -29633,8 +26078,7 @@ object MapManager { targetBankId = 50, targetMapId = 7, targetX = 45, - targetY = 6, - ), + targetY = 6), ), npcs = listOf( @@ -29649,8 +26093,8 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "SootopolisCity_House2_EventScript_ExpertF", - )), + script = "SootopolisCity_House2_EventScript_ExpertF"), + ), bgEvents = emptyList(), ), // SootopolisCity_House3 (MAP_SOOTOPOLIS_CITY_HOUSE3) @@ -29660,17 +26104,13 @@ object MapManager { mapId = 7, width = 8, height = 7, - paletteIdx1 = 98, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 147, + unknownShort = 445, + unknownByte = 14, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -29685,8 +26125,7 @@ object MapManager { targetBankId = 50, targetMapId = 7, targetX = 9, - targetY = 17, - ), + targetY = 17), WarpTile( x = 4, y = 6, @@ -29694,8 +26133,7 @@ object MapManager { targetBankId = 50, targetMapId = 7, targetX = 9, - targetY = 17, - ), + targetY = 17), ), npcs = listOf( @@ -29709,9 +26147,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "SootopolisCity_House3_EventScript_Woman", - ), + facing = 0, + script = "SootopolisCity_House3_EventScript_Woman"), NpcDef( entityIdx = 1, graphicsId = 10, @@ -29723,8 +26160,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "SootopolisCity_House3_EventScript_Girl", - ), + script = "SootopolisCity_House3_EventScript_Girl"), ), bgEvents = emptyList(), ), @@ -29735,17 +26171,13 @@ object MapManager { mapId = 8, width = 8, height = 7, - paletteIdx1 = 98, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 147, + unknownShort = 445, + unknownByte = 14, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -29760,8 +26192,7 @@ object MapManager { targetBankId = 50, targetMapId = 7, targetX = 44, - targetY = 17, - ), + targetY = 17), WarpTile( x = 4, y = 6, @@ -29769,8 +26200,7 @@ object MapManager { targetBankId = 50, targetMapId = 7, targetX = 44, - targetY = 17, - ), + targetY = 17), ), npcs = listOf( @@ -29785,8 +26215,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "SootopolisCity_House4_EventScript_Man", - ), + script = "SootopolisCity_House4_EventScript_Man"), NpcDef( entityIdx = 1, graphicsId = 26, @@ -29797,9 +26226,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 2, trainerType = 0, - facing = 0, - script = "SootopolisCity_House4_EventScript_Woman", - ), + facing = 1, + script = "SootopolisCity_House4_EventScript_Woman"), NpcDef( entityIdx = 2, graphicsId = 0, @@ -29811,8 +26239,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "SootopolisCity_House4_EventScript_Azumarill", - ), + script = "SootopolisCity_House4_EventScript_Azumarill"), ), bgEvents = emptyList(), ), @@ -29823,17 +26250,13 @@ object MapManager { mapId = 9, width = 8, height = 7, - paletteIdx1 = 98, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 147, + unknownShort = 445, + unknownByte = 14, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -29848,8 +26271,7 @@ object MapManager { targetBankId = 50, targetMapId = 7, targetX = 9, - targetY = 26, - ), + targetY = 26), WarpTile( x = 4, y = 6, @@ -29857,8 +26279,7 @@ object MapManager { targetBankId = 50, targetMapId = 7, targetX = 9, - targetY = 26, - ), + targetY = 26), ), npcs = listOf( @@ -29873,8 +26294,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "SootopolisCity_House5_EventScript_Maniac", - ), + script = "SootopolisCity_House5_EventScript_Maniac"), NpcDef( entityIdx = 1, graphicsId = 14, @@ -29886,8 +26306,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 2, - script = "SootopolisCity_House5_EventScript_Girl", - ), + script = "SootopolisCity_House5_EventScript_Girl"), ), bgEvents = emptyList(), ), @@ -29898,17 +26317,13 @@ object MapManager { mapId = 10, width = 8, height = 7, - paletteIdx1 = 98, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 147, + unknownShort = 445, + unknownByte = 14, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -29923,8 +26338,7 @@ object MapManager { targetBankId = 50, targetMapId = 7, targetX = 53, - targetY = 28, - ), + targetY = 28), WarpTile( x = 4, y = 6, @@ -29932,8 +26346,7 @@ object MapManager { targetBankId = 50, targetMapId = 7, targetX = 53, - targetY = 28, - ), + targetY = 28), ), npcs = listOf( @@ -29948,8 +26361,8 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "SootopolisCity_House6_EventScript_Woman", - )), + script = "SootopolisCity_House6_EventScript_Woman"), + ), bgEvents = emptyList(), ), // SootopolisCity_House7 (MAP_SOOTOPOLIS_CITY_HOUSE7) @@ -29959,17 +26372,13 @@ object MapManager { mapId = 11, width = 8, height = 7, - paletteIdx1 = 98, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 147, + unknownShort = 445, + unknownByte = 14, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -29984,8 +26393,7 @@ object MapManager { targetBankId = 50, targetMapId = 7, targetX = 8, - targetY = 35, - ), + targetY = 35), WarpTile( x = 4, y = 6, @@ -29993,8 +26401,7 @@ object MapManager { targetBankId = 50, targetMapId = 7, targetX = 8, - targetY = 35, - ), + targetY = 35), ), npcs = listOf( @@ -30009,8 +26416,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 2, - script = "SootopolisCity_House7_EventScript_OldMan", - ), + script = "SootopolisCity_House7_EventScript_OldMan"), NpcDef( entityIdx = 1, graphicsId = 18, @@ -30022,8 +26428,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "SootopolisCity_House7_EventScript_PokefanF", - ), + script = "SootopolisCity_House7_EventScript_PokefanF"), ), bgEvents = emptyList(), ), @@ -30034,17 +26439,13 @@ object MapManager { mapId = 12, width = 8, height = 7, - paletteIdx1 = 98, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 147, + unknownShort = 445, + unknownByte = 14, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -30059,8 +26460,7 @@ object MapManager { targetBankId = 50, targetMapId = 7, targetX = 48, - targetY = 25, - ), + targetY = 25), WarpTile( x = 4, y = 6, @@ -30068,8 +26468,7 @@ object MapManager { targetBankId = 50, targetMapId = 7, targetX = 48, - targetY = 25, - ), + targetY = 25), ), npcs = listOf( @@ -30084,8 +26483,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "SootopolisCity_LotadAndSeedotHouse_EventScript_LotadBrother", - ), + script = "SootopolisCity_LotadAndSeedotHouse_EventScript_LotadBrother"), NpcDef( entityIdx = 1, graphicsId = 55, @@ -30097,8 +26495,8 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 2, - script = "SootopolisCity_LotadAndSeedotHouse_EventScript_SeedotBrother", - ), + script = + "SootopolisCity_LotadAndSeedotHouse_EventScript_SeedotBrother"), ), bgEvents = listOf( @@ -30107,36 +26505,29 @@ object MapManager { y = 1, facingDir = "BG_EVENT_PLAYER_FACING_ANY", script = - "SootopolisCity_LotadAndSeedotHouse_EventScript_SeedotSizeRecord", - ), + "SootopolisCity_LotadAndSeedotHouse_EventScript_SeedotSizeRecord"), BgEventDef( x = 2, y = 1, facingDir = "BG_EVENT_PLAYER_FACING_ANY", script = - "SootopolisCity_LotadAndSeedotHouse_EventScript_LotadSizeRecord", - ), + "SootopolisCity_LotadAndSeedotHouse_EventScript_LotadSizeRecord"), ), ), - // SootopolisCity_MysteryEventsHouse_1F - // (MAP_SOOTOPOLIS_CITY_MYSTERY_EVENTS_HOUSE_1F) + // SootopolisCity_MysteryEventsHouse_1F (MAP_SOOTOPOLIS_CITY_MYSTERY_EVENTS_HOUSE_1F) MapDef( regionId = 1, bankId = 65, mapId = 13, width = 11, height = 8, - paletteIdx1 = 133, - paletteIdx2 = 91, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 173, + unknownShort = 445, + unknownByte = 14, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -30151,8 +26542,7 @@ object MapManager { targetBankId = 50, targetMapId = 7, targetX = 51, - targetY = 36, - ), + targetY = 36), WarpTile( x = 4, y = 7, @@ -30160,8 +26550,7 @@ object MapManager { targetBankId = 50, targetMapId = 7, targetX = 51, - targetY = 36, - ), + targetY = 36), WarpTile( x = 3, y = 1, @@ -30169,8 +26558,7 @@ object MapManager { targetBankId = 65, targetMapId = 14, targetX = 3, - targetY = 1, - ), + targetY = 1), ), npcs = listOf( @@ -30185,29 +26573,24 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "SootopolisCity_MysteryEventsHouse_1F_EventScript_OldMan", - )), + script = "SootopolisCity_MysteryEventsHouse_1F_EventScript_OldMan"), + ), bgEvents = emptyList(), ), - // SootopolisCity_MysteryEventsHouse_B1F - // (MAP_SOOTOPOLIS_CITY_MYSTERY_EVENTS_HOUSE_B1F) + // SootopolisCity_MysteryEventsHouse_B1F (MAP_SOOTOPOLIS_CITY_MYSTERY_EVENTS_HOUSE_B1F) MapDef( regionId = 1, bankId = 65, mapId = 14, width = 12, height = 9, - paletteIdx1 = 133, - paletteIdx2 = 91, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 173, + unknownShort = 445, + unknownByte = 14, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -30222,8 +26605,8 @@ object MapManager { targetBankId = 65, targetMapId = 13, targetX = 3, - targetY = 1, - )), + targetY = 1), + ), npcs = listOf( NpcDef( @@ -30237,8 +26620,8 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 2, - script = "0x0", - )), + script = "0x0"), + ), bgEvents = emptyList(), ), // EverGrandeCity_SidneysRoom (MAP_EVER_GRANDE_CITY_SIDNEYS_ROOM) @@ -30249,16 +26632,12 @@ object MapManager { width = 13, height = 14, paletteIdx1 = 116, - paletteIdx2 = 112, - unknownShort = 405, - unknownByte = 0, + paletteIdx2 = 158, + unknownShort = 429, + unknownByte = 15, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -30273,8 +26652,7 @@ object MapManager { targetBankId = 66, targetMapId = 9, targetX = 5, - targetY = 2, - ), + targetY = 2), WarpTile( x = 6, y = 2, @@ -30282,8 +26660,7 @@ object MapManager { targetBankId = 66, targetMapId = 5, targetX = 5, - targetY = 12, - ), + targetY = 12), ), npcs = listOf( @@ -30297,9 +26674,9 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "EverGrandeCity_SidneysRoom_EventScript_Sidney", - )), + facing = 0, + script = "EverGrandeCity_SidneysRoom_EventScript_Sidney"), + ), bgEvents = emptyList(), ), // EverGrandeCity_PhoebesRoom (MAP_EVER_GRANDE_CITY_PHOEBES_ROOM) @@ -30310,16 +26687,12 @@ object MapManager { width = 13, height = 14, paletteIdx1 = 116, - paletteIdx2 = 112, - unknownShort = 405, - unknownByte = 0, + paletteIdx2 = 158, + unknownShort = 429, + unknownByte = 15, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -30334,8 +26707,7 @@ object MapManager { targetBankId = 66, targetMapId = 5, targetX = 5, - targetY = 2, - ), + targetY = 2), WarpTile( x = 6, y = 2, @@ -30343,8 +26715,7 @@ object MapManager { targetBankId = 66, targetMapId = 6, targetX = 5, - targetY = 12, - ), + targetY = 12), ), npcs = listOf( @@ -30358,9 +26729,9 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "EverGrandeCity_PhoebesRoom_EventScript_Phoebe", - )), + facing = 0, + script = "EverGrandeCity_PhoebesRoom_EventScript_Phoebe"), + ), bgEvents = emptyList(), ), // EverGrandeCity_GlaciasRoom (MAP_EVER_GRANDE_CITY_GLACIAS_ROOM) @@ -30371,16 +26742,12 @@ object MapManager { width = 13, height = 14, paletteIdx1 = 116, - paletteIdx2 = 112, - unknownShort = 405, - unknownByte = 0, + paletteIdx2 = 158, + unknownShort = 429, + unknownByte = 15, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -30395,8 +26762,7 @@ object MapManager { targetBankId = 66, targetMapId = 6, targetX = 5, - targetY = 2, - ), + targetY = 2), WarpTile( x = 6, y = 2, @@ -30404,8 +26770,7 @@ object MapManager { targetBankId = 66, targetMapId = 7, targetX = 5, - targetY = 12, - ), + targetY = 12), ), npcs = listOf( @@ -30419,9 +26784,9 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "EverGrandeCity_GlaciasRoom_EventScript_Glacia", - )), + facing = 0, + script = "EverGrandeCity_GlaciasRoom_EventScript_Glacia"), + ), bgEvents = emptyList(), ), // EverGrandeCity_DrakesRoom (MAP_EVER_GRANDE_CITY_DRAKES_ROOM) @@ -30432,16 +26797,12 @@ object MapManager { width = 13, height = 14, paletteIdx1 = 116, - paletteIdx2 = 112, - unknownShort = 405, - unknownByte = 0, + paletteIdx2 = 158, + unknownShort = 429, + unknownByte = 15, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -30456,8 +26817,7 @@ object MapManager { targetBankId = 66, targetMapId = 7, targetX = 5, - targetY = 2, - ), + targetY = 2), WarpTile( x = 6, y = 2, @@ -30465,8 +26825,7 @@ object MapManager { targetBankId = 66, targetMapId = 8, targetX = 5, - targetY = 33, - ), + targetY = 33), ), npcs = listOf( @@ -30480,9 +26839,9 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "EverGrandeCity_DrakesRoom_EventScript_Drake", - )), + facing = 0, + script = "EverGrandeCity_DrakesRoom_EventScript_Drake"), + ), bgEvents = emptyList(), ), // EverGrandeCity_ChampionsRoom (MAP_EVER_GRANDE_CITY_CHAMPIONS_ROOM) @@ -30493,16 +26852,12 @@ object MapManager { width = 13, height = 13, paletteIdx1 = 116, - paletteIdx2 = 112, - unknownShort = 405, - unknownByte = 0, + paletteIdx2 = 158, + unknownShort = 429, + unknownByte = 15, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -30517,8 +26872,7 @@ object MapManager { targetBankId = 66, targetMapId = 8, targetX = 5, - targetY = 2, - ), + targetY = 2), WarpTile( x = 6, y = 2, @@ -30526,8 +26880,7 @@ object MapManager { targetBankId = 66, targetMapId = 11, targetX = 7, - targetY = 11, - ), + targetY = 11), ), npcs = listOf( @@ -30541,9 +26894,9 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "0x0", - )), + facing = 0, + script = "0x0"), + ), bgEvents = emptyList(), ), // EverGrandeCity_Hall1 (MAP_EVER_GRANDE_CITY_HALL1) @@ -30554,16 +26907,12 @@ object MapManager { width = 11, height = 13, paletteIdx1 = 116, - paletteIdx2 = 112, - unknownShort = 405, - unknownByte = 0, + paletteIdx2 = 158, + unknownShort = 429, + unknownByte = 15, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -30578,8 +26927,7 @@ object MapManager { targetBankId = 66, targetMapId = 0, targetX = 6, - targetY = 2, - ), + targetY = 2), WarpTile( x = 5, y = 2, @@ -30587,8 +26935,7 @@ object MapManager { targetBankId = 66, targetMapId = 1, targetX = 6, - targetY = 13, - ), + targetY = 13), WarpTile( x = 4, y = 12, @@ -30596,8 +26943,7 @@ object MapManager { targetBankId = 66, targetMapId = 0, targetX = 6, - targetY = 2, - ), + targetY = 2), WarpTile( x = 6, y = 12, @@ -30605,8 +26951,7 @@ object MapManager { targetBankId = 66, targetMapId = 0, targetX = 6, - targetY = 2, - ), + targetY = 2), ), npcs = emptyList(), bgEvents = emptyList(), @@ -30619,16 +26964,12 @@ object MapManager { width = 11, height = 13, paletteIdx1 = 116, - paletteIdx2 = 112, - unknownShort = 405, - unknownByte = 0, + paletteIdx2 = 158, + unknownShort = 429, + unknownByte = 15, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -30643,8 +26984,7 @@ object MapManager { targetBankId = 66, targetMapId = 1, targetX = 6, - targetY = 2, - ), + targetY = 2), WarpTile( x = 5, y = 2, @@ -30652,8 +26992,7 @@ object MapManager { targetBankId = 66, targetMapId = 2, targetX = 6, - targetY = 13, - ), + targetY = 13), WarpTile( x = 4, y = 12, @@ -30661,8 +27000,7 @@ object MapManager { targetBankId = 66, targetMapId = 1, targetX = 6, - targetY = 2, - ), + targetY = 2), WarpTile( x = 6, y = 12, @@ -30670,8 +27008,7 @@ object MapManager { targetBankId = 66, targetMapId = 1, targetX = 6, - targetY = 2, - ), + targetY = 2), ), npcs = emptyList(), bgEvents = emptyList(), @@ -30684,16 +27021,12 @@ object MapManager { width = 11, height = 13, paletteIdx1 = 116, - paletteIdx2 = 112, - unknownShort = 405, - unknownByte = 0, + paletteIdx2 = 158, + unknownShort = 429, + unknownByte = 15, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -30708,8 +27041,7 @@ object MapManager { targetBankId = 66, targetMapId = 2, targetX = 6, - targetY = 2, - ), + targetY = 2), WarpTile( x = 5, y = 2, @@ -30717,8 +27049,7 @@ object MapManager { targetBankId = 66, targetMapId = 3, targetX = 6, - targetY = 13, - ), + targetY = 13), WarpTile( x = 4, y = 12, @@ -30726,8 +27057,7 @@ object MapManager { targetBankId = 66, targetMapId = 2, targetX = 6, - targetY = 2, - ), + targetY = 2), WarpTile( x = 6, y = 12, @@ -30735,8 +27065,7 @@ object MapManager { targetBankId = 66, targetMapId = 2, targetX = 6, - targetY = 2, - ), + targetY = 2), ), npcs = emptyList(), bgEvents = emptyList(), @@ -30749,16 +27078,12 @@ object MapManager { width = 11, height = 34, paletteIdx1 = 116, - paletteIdx2 = 112, - unknownShort = 405, - unknownByte = 0, + paletteIdx2 = 158, + unknownShort = 429, + unknownByte = 15, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -30773,8 +27098,7 @@ object MapManager { targetBankId = 66, targetMapId = 3, targetX = 6, - targetY = 2, - ), + targetY = 2), WarpTile( x = 5, y = 2, @@ -30782,8 +27106,7 @@ object MapManager { targetBankId = 66, targetMapId = 4, targetX = 6, - targetY = 12, - ), + targetY = 12), ), npcs = emptyList(), bgEvents = emptyList(), @@ -30796,16 +27119,12 @@ object MapManager { width = 11, height = 13, paletteIdx1 = 116, - paletteIdx2 = 112, - unknownShort = 405, - unknownByte = 0, + paletteIdx2 = 158, + unknownShort = 429, + unknownByte = 15, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -30820,8 +27139,7 @@ object MapManager { targetBankId = 66, targetMapId = 10, targetX = 9, - targetY = 1, - ), + targetY = 1), WarpTile( x = 5, y = 2, @@ -30829,8 +27147,7 @@ object MapManager { targetBankId = 66, targetMapId = 0, targetX = 6, - targetY = 13, - ), + targetY = 13), WarpTile( x = 4, y = 12, @@ -30838,8 +27155,7 @@ object MapManager { targetBankId = 66, targetMapId = 10, targetX = 9, - targetY = 1, - ), + targetY = 1), WarpTile( x = 6, y = 12, @@ -30847,8 +27163,7 @@ object MapManager { targetBankId = 66, targetMapId = 10, targetX = 9, - targetY = 1, - ), + targetY = 1), ), npcs = emptyList(), bgEvents = emptyList(), @@ -30860,17 +27175,13 @@ object MapManager { mapId = 10, width = 19, height = 12, - paletteIdx1 = 87, - paletteIdx2 = 121, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 118, + unknownShort = 400, + unknownByte = 15, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -30885,8 +27196,7 @@ object MapManager { targetBankId = 50, targetMapId = 8, targetX = 18, - targetY = 5, - ), + targetY = 5), WarpTile( x = 10, y = 11, @@ -30894,8 +27204,7 @@ object MapManager { targetBankId = 50, targetMapId = 8, targetX = 18, - targetY = 5, - ), + targetY = 5), WarpTile( x = 9, y = 1, @@ -30903,8 +27212,7 @@ object MapManager { targetBankId = 66, targetMapId = 9, targetX = 5, - targetY = 12, - ), + targetY = 12), WarpTile( x = 10, y = 1, @@ -30912,8 +27220,7 @@ object MapManager { targetBankId = 66, targetMapId = 9, targetX = 5, - targetY = 12, - ), + targetY = 12), WarpTile( x = 1, y = 7, @@ -30921,8 +27228,7 @@ object MapManager { targetBankId = 66, targetMapId = 14, targetX = 1, - targetY = 6, - ), + targetY = 6), ), npcs = listOf( @@ -30936,9 +27242,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "EverGrandeCity_PokemonLeague_1F_EventScript_Nurse", - ), + facing = 0, + script = "EverGrandeCity_PokemonLeague_1F_EventScript_Nurse"), NpcDef( entityIdx = 1, graphicsId = 83, @@ -30949,9 +27254,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "EverGrandeCity_PokemonLeague_1F_EventScript_Clerk", - ), + facing = 0, + script = "EverGrandeCity_PokemonLeague_1F_EventScript_Clerk"), NpcDef( entityIdx = 2, graphicsId = 33, @@ -30962,9 +27266,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "EverGrandeCity_PokemonLeague_1F_EventScript_DoorGuard", - ), + facing = 0, + script = "EverGrandeCity_PokemonLeague_1F_EventScript_DoorGuard"), NpcDef( entityIdx = 3, graphicsId = 33, @@ -30975,9 +27278,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "EverGrandeCity_PokemonLeague_1F_EventScript_DoorGuard", - ), + facing = 0, + script = "EverGrandeCity_PokemonLeague_1F_EventScript_DoorGuard"), ), bgEvents = emptyList(), ), @@ -30988,17 +27290,13 @@ object MapManager { mapId = 11, width = 15, height = 17, - paletteIdx1 = 98, - paletteIdx2 = 110, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 125, + unknownShort = 447, + unknownByte = 15, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -31013,8 +27311,8 @@ object MapManager { targetBankId = 66, targetMapId = 4, targetX = 6, - targetY = 2, - )), + targetY = 2), + ), npcs = listOf( NpcDef( @@ -31027,9 +27325,9 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 0, - script = "0x0", - )), + facing = 1, + script = "0x0"), + ), bgEvents = emptyList(), ), // EverGrandeCity_PokemonCenter_1F (MAP_EVER_GRANDE_CITY_POKEMON_CENTER_1F) @@ -31039,17 +27337,13 @@ object MapManager { mapId = 12, width = 14, height = 9, - paletteIdx1 = 87, - paletteIdx2 = 121, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 118, + unknownShort = 400, + unknownByte = 15, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -31064,8 +27358,7 @@ object MapManager { targetBankId = 50, targetMapId = 8, targetX = 27, - targetY = 48, - ), + targetY = 48), WarpTile( x = 6, y = 8, @@ -31073,8 +27366,7 @@ object MapManager { targetBankId = 50, targetMapId = 8, targetX = 27, - targetY = 48, - ), + targetY = 48), WarpTile( x = 1, y = 6, @@ -31082,8 +27374,7 @@ object MapManager { targetBankId = 66, targetMapId = 13, targetX = 1, - targetY = 6, - ), + targetY = 6), ), npcs = listOf( @@ -31097,9 +27388,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "EverGrandeCity_PokemonCenter_1F_EventScript_Nurse", - ), + facing = 0, + script = "EverGrandeCity_PokemonCenter_1F_EventScript_Nurse"), NpcDef( entityIdx = 1, graphicsId = 34, @@ -31110,9 +27400,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "EverGrandeCity_PokemonCenter_1F_EventScript_Woman", - ), + facing = 0, + script = "EverGrandeCity_PokemonCenter_1F_EventScript_Woman"), NpcDef( entityIdx = 2, graphicsId = 21, @@ -31124,8 +27413,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "EverGrandeCity_PokemonCenter_1F_EventScript_ExpertM", - ), + script = "EverGrandeCity_PokemonCenter_1F_EventScript_ExpertM"), ), bgEvents = emptyList(), ), @@ -31136,17 +27424,13 @@ object MapManager { mapId = 13, width = 14, height = 10, - paletteIdx1 = 87, - paletteIdx2 = 121, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 118, + unknownShort = 400, + unknownByte = 15, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -31161,8 +27445,7 @@ object MapManager { targetBankId = 66, targetMapId = 12, targetX = 1, - targetY = 6, - ), + targetY = 6), WarpTile( x = 5, y = 1, @@ -31170,8 +27453,7 @@ object MapManager { targetBankId = 75, targetMapId = 60, targetX = 7, - targetY = 11, - ), + targetY = 11), WarpTile( x = 9, y = 1, @@ -31179,8 +27461,7 @@ object MapManager { targetBankId = 75, targetMapId = 25, targetX = 5, - targetY = 8, - ), + targetY = 8), ), npcs = listOf( @@ -31194,9 +27475,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "Common_EventScript_UnionRoomAttendant", - ), + facing = 0, + script = "Common_EventScript_UnionRoomAttendant"), NpcDef( entityIdx = 1, graphicsId = 0, @@ -31207,9 +27487,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "Common_EventScript_WirelessClubAttendant", - ), + facing = 0, + script = "Common_EventScript_WirelessClubAttendant"), NpcDef( entityIdx = 2, graphicsId = 0, @@ -31220,9 +27499,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "Common_EventScript_DirectCornerAttendant", - ), + facing = 0, + script = "Common_EventScript_DirectCornerAttendant"), ), bgEvents = emptyList(), ), @@ -31233,17 +27511,13 @@ object MapManager { mapId = 14, width = 14, height = 10, - paletteIdx1 = 87, - paletteIdx2 = 121, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 118, + unknownShort = 400, + unknownByte = 15, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -31258,8 +27532,7 @@ object MapManager { targetBankId = 66, targetMapId = 10, targetX = 1, - targetY = 7, - ), + targetY = 7), WarpTile( x = 5, y = 1, @@ -31267,8 +27540,7 @@ object MapManager { targetBankId = 75, targetMapId = 60, targetX = 7, - targetY = 11, - ), + targetY = 11), WarpTile( x = 9, y = 1, @@ -31276,8 +27548,7 @@ object MapManager { targetBankId = 75, targetMapId = 25, targetX = 5, - targetY = 8, - ), + targetY = 8), ), npcs = listOf( @@ -31291,9 +27562,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "Common_EventScript_UnionRoomAttendant", - ), + facing = 0, + script = "Common_EventScript_UnionRoomAttendant"), NpcDef( entityIdx = 1, graphicsId = 0, @@ -31304,9 +27574,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "Common_EventScript_WirelessClubAttendant", - ), + facing = 0, + script = "Common_EventScript_WirelessClubAttendant"), NpcDef( entityIdx = 2, graphicsId = 0, @@ -31317,9 +27586,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "Common_EventScript_DirectCornerAttendant", - ), + facing = 0, + script = "Common_EventScript_DirectCornerAttendant"), ), bgEvents = emptyList(), ), @@ -31330,17 +27598,13 @@ object MapManager { mapId = 0, width = 12, height = 9, - paletteIdx1 = 98, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 147, + unknownShort = 362, + unknownByte = 19, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -31355,8 +27619,7 @@ object MapManager { targetBankId = 50, targetMapId = 19, targetX = 17, - targetY = 50, - ), + targetY = 50), WarpTile( x = 6, y = 8, @@ -31364,8 +27627,7 @@ object MapManager { targetBankId = 50, targetMapId = 19, targetX = 17, - targetY = 50, - ), + targetY = 50), ), npcs = emptyList(), bgEvents = emptyList(), @@ -31377,17 +27639,13 @@ object MapManager { mapId = 1, width = 15, height = 9, - paletteIdx1 = 112, - paletteIdx2 = 116, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 127, + unknownShort = 362, + unknownByte = 19, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -31402,8 +27660,7 @@ object MapManager { targetBankId = 50, targetMapId = 19, targetX = 5, - targetY = 18, - ), + targetY = 18), WarpTile( x = 3, y = 8, @@ -31411,8 +27668,7 @@ object MapManager { targetBankId = 50, targetMapId = 19, targetX = 5, - targetY = 18, - ), + targetY = 18), ), npcs = listOf( @@ -31427,8 +27683,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "Route104_PrettyPetalFlowerShop_EventScript_ShopOwner", - ), + script = "Route104_PrettyPetalFlowerShop_EventScript_ShopOwner"), NpcDef( entityIdx = 1, graphicsId = 14, @@ -31440,8 +27695,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "Route104_PrettyPetalFlowerShop_EventScript_WailmerPailGirl", - ), + script = "Route104_PrettyPetalFlowerShop_EventScript_WailmerPailGirl"), NpcDef( entityIdx = 2, graphicsId = 8, @@ -31453,8 +27707,7 @@ object MapManager { movementRangeY = 2, trainerType = 0, facing = 0, - script = "Route104_PrettyPetalFlowerShop_EventScript_RandomBerryGirl", - ), + script = "Route104_PrettyPetalFlowerShop_EventScript_RandomBerryGirl"), ), bgEvents = emptyList(), ), @@ -31465,17 +27718,13 @@ object MapManager { mapId = 0, width = 11, height = 8, - paletteIdx1 = 98, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 147, + unknownShort = 399, + unknownByte = 26, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -31490,8 +27739,7 @@ object MapManager { targetBankId = 50, targetMapId = 26, targetX = 13, - targetY = 113, - ), + targetY = 113), WarpTile( x = 4, y = 7, @@ -31499,8 +27747,7 @@ object MapManager { targetBankId = 50, targetMapId = 26, targetX = 13, - targetY = 113, - ), + targetY = 113), ), npcs = listOf( @@ -31515,8 +27762,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 2, - script = "Route111_WinstrateFamilysHouse_EventScript_Vivi", - ), + script = "Route111_WinstrateFamilysHouse_EventScript_Vivi"), NpcDef( entityIdx = 1, graphicsId = 19, @@ -31528,8 +27774,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "Route111_WinstrateFamilysHouse_EventScript_Victor", - ), + script = "Route111_WinstrateFamilysHouse_EventScript_Victor"), NpcDef( entityIdx = 2, graphicsId = 18, @@ -31541,8 +27786,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 2, - script = "Route111_WinstrateFamilysHouse_EventScript_Victoria", - ), + script = "Route111_WinstrateFamilysHouse_EventScript_Victoria"), NpcDef( entityIdx = 3, graphicsId = 22, @@ -31554,8 +27798,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "Route111_WinstrateFamilysHouse_EventScript_Vicky", - ), + script = "Route111_WinstrateFamilysHouse_EventScript_Vicky"), ), bgEvents = emptyList(), ), @@ -31566,17 +27809,13 @@ object MapManager { mapId = 1, width = 10, height = 8, - paletteIdx1 = 98, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 147, + unknownShort = 399, + unknownByte = 26, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -31591,8 +27830,7 @@ object MapManager { targetBankId = 50, targetMapId = 26, targetX = 26, - targetY = 18, - ), + targetY = 18), WarpTile( x = 4, y = 7, @@ -31600,8 +27838,7 @@ object MapManager { targetBankId = 50, targetMapId = 26, targetX = 26, - targetY = 18, - ), + targetY = 18), ), npcs = listOf( @@ -31616,8 +27853,8 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 2, - script = "Route111_OldLadysRestStop_EventScript_OldLady", - )), + script = "Route111_OldLadysRestStop_EventScript_OldLady"), + ), bgEvents = emptyList(), ), // Route112_CableCarStation (MAP_ROUTE112_CABLE_CAR_STATION) @@ -31627,17 +27864,13 @@ object MapManager { mapId = 0, width = 13, height = 12, - paletteIdx1 = 128, - paletteIdx2 = 94, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 129, + unknownShort = 360, + unknownByte = 27, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -31652,8 +27885,7 @@ object MapManager { targetBankId = 50, targetMapId = 27, targetX = 28, - targetY = 27, - ), + targetY = 27), WarpTile( x = 7, y = 11, @@ -31661,8 +27893,7 @@ object MapManager { targetBankId = 50, targetMapId = 27, targetX = 29, - targetY = 27, - ), + targetY = 27), ), npcs = listOf( @@ -31676,9 +27907,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "Route112_CableCarStation_EventScript_Attendant", - ), + facing = 0, + script = "Route112_CableCarStation_EventScript_Attendant"), NpcDef( entityIdx = 1, graphicsId = 0, @@ -31690,8 +27920,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "0x0", - ), + script = "0x0"), ), bgEvents = emptyList(), ), @@ -31702,17 +27931,13 @@ object MapManager { mapId = 1, width = 13, height = 12, - paletteIdx1 = 128, - paletteIdx2 = 94, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 129, + unknownShort = 360, + unknownByte = 56, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -31727,8 +27952,7 @@ object MapManager { targetBankId = 74, targetMapId = 12, targetX = 17, - targetY = 36, - ), + targetY = 36), WarpTile( x = 7, y = 11, @@ -31736,8 +27960,7 @@ object MapManager { targetBankId = 74, targetMapId = 12, targetX = 18, - targetY = 36, - ), + targetY = 36), ), npcs = listOf( @@ -31751,9 +27974,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "MtChimney_CableCarStation_EventScript_Attendant", - ), + facing = 0, + script = "MtChimney_CableCarStation_EventScript_Attendant"), NpcDef( entityIdx = 1, graphicsId = 0, @@ -31765,8 +27987,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "0x0", - ), + script = "0x0"), ), bgEvents = emptyList(), ), @@ -31777,17 +27998,13 @@ object MapManager { mapId = 0, width = 10, height = 8, - paletteIdx1 = 98, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 147, + unknownShort = 437, + unknownByte = 29, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -31802,8 +28019,7 @@ object MapManager { targetBankId = 50, targetMapId = 29, targetX = 29, - targetY = 5, - ), + targetY = 5), WarpTile( x = 5, y = 7, @@ -31811,8 +28027,7 @@ object MapManager { targetBankId = 50, targetMapId = 29, targetX = 29, - targetY = 5, - ), + targetY = 5), WarpTile( x = 4, y = 1, @@ -31820,8 +28035,7 @@ object MapManager { targetBankId = 70, targetMapId = 1, targetX = 6, - targetY = 25, - ), + targetY = 25), ), npcs = listOf( @@ -31835,35 +28049,32 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "Route114_FossilManiacsHouse_EventScript_FossilManiacsBrother", - )), + facing = 0, + script = + "Route114_FossilManiacsHouse_EventScript_FossilManiacsBrother"), + ), bgEvents = listOf( BgEventDef( x = 5, y = 3, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "Route114_FossilManiacsHouse_EventScript_RockDisplay", - ), + script = "Route114_FossilManiacsHouse_EventScript_RockDisplay"), BgEventDef( x = 6, y = 3, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "Route114_FossilManiacsHouse_EventScript_RockDisplay", - ), + script = "Route114_FossilManiacsHouse_EventScript_RockDisplay"), BgEventDef( x = 7, y = 2, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "Route114_FossilManiacsHouse_EventScript_Bookshelf", - ), + script = "Route114_FossilManiacsHouse_EventScript_Bookshelf"), BgEventDef( x = 8, y = 2, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "Route114_FossilManiacsHouse_EventScript_Bookshelf", - ), + script = "Route114_FossilManiacsHouse_EventScript_Bookshelf"), ), ), // Route114_FossilManiacsTunnel (MAP_ROUTE114_FOSSIL_MANIACS_TUNNEL) @@ -31873,17 +28084,13 @@ object MapManager { mapId = 1, width = 13, height = 26, - paletteIdx1 = 88, - paletteIdx2 = 126, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 107, + unknownShort = 437, + unknownByte = 29, borderTiles = listOf( - Tile2D(0x0277, 0), - Tile2D(0x0277, 0), - Tile2D(0x0277, 0), - Tile2D(0x0277, 0), - ), + Tile2D(0x0277, 0), Tile2D(0x0277, 0), Tile2D(0x0277, 0), Tile2D(0x0277, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -31898,8 +28105,7 @@ object MapManager { targetBankId = 70, targetMapId = 0, targetX = 4, - targetY = 1, - ), + targetY = 1), WarpTile( x = 7, y = 25, @@ -31907,8 +28113,7 @@ object MapManager { targetBankId = 70, targetMapId = 0, targetX = 4, - targetY = 1, - ), + targetY = 1), WarpTile( x = 6, y = 2, @@ -31916,8 +28121,7 @@ object MapManager { targetBankId = 74, targetMapId = 98, targetX = 10, - targetY = 12, - ), + targetY = 12), ), npcs = listOf( @@ -31931,9 +28135,9 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 0, - script = "Route114_FossilManiacsTunnel_EventScript_FossilManiac", - )), + facing = 1, + script = "Route114_FossilManiacsTunnel_EventScript_FossilManiac"), + ), bgEvents = emptyList(), ), // Route114_LanettesHouse (MAP_ROUTE114_LANETTES_HOUSE) @@ -31945,15 +28149,11 @@ object MapManager { height = 8, paletteIdx1 = 116, paletteIdx2 = 143, - unknownShort = 405, - unknownByte = 0, + unknownShort = 437, + unknownByte = 29, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -31968,8 +28168,7 @@ object MapManager { targetBankId = 50, targetMapId = 29, targetX = 27, - targetY = 36, - ), + targetY = 36), WarpTile( x = 6, y = 7, @@ -31977,8 +28176,7 @@ object MapManager { targetBankId = 50, targetMapId = 29, targetX = 27, - targetY = 36, - ), + targetY = 36), ), npcs = emptyList(), bgEvents = @@ -31987,20 +28185,17 @@ object MapManager { x = 5, y = 1, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Route114_LanettesHouse_EventScript_Notebook", - ), + script = "Route114_LanettesHouse_EventScript_Notebook"), BgEventDef( x = 8, y = 1, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Route114_LanettesHouse_EventScript_PC", - ), + script = "Route114_LanettesHouse_EventScript_PC"), BgEventDef( x = 7, y = 1, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Route114_LanettesHouse_EventScript_PC", - ), + script = "Route114_LanettesHouse_EventScript_PC"), ), ), // Route116_TunnelersRestHouse (MAP_ROUTE116_TUNNELERS_REST_HOUSE) @@ -32010,17 +28205,13 @@ object MapManager { mapId = 0, width = 10, height = 9, - paletteIdx1 = 98, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 147, + unknownShort = 399, + unknownByte = 31, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -32035,8 +28226,7 @@ object MapManager { targetBankId = 50, targetMapId = 31, targetX = 38, - targetY = 8, - ), + targetY = 8), WarpTile( x = 5, y = 8, @@ -32044,8 +28234,7 @@ object MapManager { targetBankId = 50, targetMapId = 31, targetX = 38, - targetY = 8, - ), + targetY = 8), ), npcs = listOf( @@ -32060,8 +28249,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "Route116_TunnelersRestHouse_EventScript_Tunneler1", - ), + script = "Route116_TunnelersRestHouse_EventScript_Tunneler1"), NpcDef( entityIdx = 1, graphicsId = 25, @@ -32073,8 +28261,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "Route116_TunnelersRestHouse_EventScript_Tunneler3", - ), + script = "Route116_TunnelersRestHouse_EventScript_Tunneler3"), NpcDef( entityIdx = 2, graphicsId = 25, @@ -32085,9 +28272,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 0, trainerType = 0, - facing = 0, - script = "Route116_TunnelersRestHouse_EventScript_Tunneler2", - ), + facing = 1, + script = "Route116_TunnelersRestHouse_EventScript_Tunneler2"), ), bgEvents = emptyList(), ), @@ -32098,17 +28284,13 @@ object MapManager { mapId = 0, width = 12, height = 9, - paletteIdx1 = 107, - paletteIdx2 = 103, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 128, + unknownShort = 399, + unknownByte = 32, borderTiles = listOf( - Tile2D(0x0203, 0), - Tile2D(0x0203, 0), - Tile2D(0x0203, 0), - Tile2D(0x0203, 0), - ), + Tile2D(0x0203, 0), Tile2D(0x0203, 0), Tile2D(0x0203, 0), Tile2D(0x0203, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -32123,8 +28305,7 @@ object MapManager { targetBankId = 50, targetMapId = 32, targetX = 51, - targetY = 5, - ), + targetY = 5), WarpTile( x = 3, y = 8, @@ -32132,8 +28313,7 @@ object MapManager { targetBankId = 50, targetMapId = 32, targetX = 51, - targetY = 5, - ), + targetY = 5), ), npcs = listOf( @@ -32147,9 +28327,9 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "Route117_PokemonDayCare_EventScript_DaycareWoman", - )), + facing = 0, + script = "Route117_PokemonDayCare_EventScript_DaycareWoman"), + ), bgEvents = emptyList(), ), // Route121_SafariZoneEntrance (MAP_ROUTE121_SAFARI_ZONE_ENTRANCE) @@ -32159,17 +28339,13 @@ object MapManager { mapId = 0, width = 18, height = 14, - paletteIdx1 = 95, - paletteIdx2 = 87, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 117, + unknownShort = 382, + unknownByte = 36, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -32184,8 +28360,7 @@ object MapManager { targetBankId = 76, targetMapId = 3, targetX = 32, - targetY = 33, - ), + targetY = 33), WarpTile( x = 3, y = 5, @@ -32193,8 +28368,7 @@ object MapManager { targetBankId = 76, targetMapId = 3, targetX = 32, - targetY = 33, - ), + targetY = 33), WarpTile( x = 14, y = 13, @@ -32202,8 +28376,7 @@ object MapManager { targetBankId = 50, targetMapId = 36, targetX = 37, - targetY = 5, - ), + targetY = 5), WarpTile( x = 15, y = 13, @@ -32211,8 +28384,7 @@ object MapManager { targetBankId = 50, targetMapId = 36, targetX = 37, - targetY = 5, - ), + targetY = 5), ), npcs = listOf( @@ -32227,8 +28399,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 2, - script = "Route121_SafariZoneEntrance_EventScript_WelcomeAttendant", - ), + script = "Route121_SafariZoneEntrance_EventScript_WelcomeAttendant"), NpcDef( entityIdx = 1, graphicsId = 31, @@ -32239,9 +28410,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "Route121_SafariZoneEntrance_EventScript_InfoAttendant", - ), + facing = 0, + script = "Route121_SafariZoneEntrance_EventScript_InfoAttendant"), NpcDef( entityIdx = 2, graphicsId = 31, @@ -32252,9 +28422,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "0x0", - ), + facing = 0, + script = "0x0"), ), bgEvents = listOf( @@ -32262,8 +28431,8 @@ object MapManager { x = 15, y = 1, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Route121_SafariZoneEntrance_EventScript_TrainerTipSign", - )), + script = "Route121_SafariZoneEntrance_EventScript_TrainerTipSign"), + ), ), // MeteorFalls_1F_1R (MAP_METEOR_FALLS_1F_1R) MapDef( @@ -32272,17 +28441,13 @@ object MapManager { mapId = 0, width = 30, height = 42, - paletteIdx1 = 131, - paletteIdx2 = 103, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 123, + unknownShort = 386, + unknownByte = 63, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -32297,8 +28462,7 @@ object MapManager { targetBankId = 50, targetMapId = 29, targetX = 8, - targetY = 63, - ), + targetY = 63), WarpTile( x = 6, y = 39, @@ -32306,8 +28470,7 @@ object MapManager { targetBankId = 50, targetMapId = 30, targetX = 27, - targetY = 37, - ), + targetY = 37), WarpTile( x = 10, y = 3, @@ -32315,8 +28478,7 @@ object MapManager { targetBankId = 74, targetMapId = 1, targetX = 10, - targetY = 29, - ), + targetY = 29), WarpTile( x = 5, y = 4, @@ -32324,8 +28486,7 @@ object MapManager { targetBankId = 74, targetMapId = 2, targetX = 3, - targetY = 23, - ), + targetY = 23), WarpTile( x = 26, y = 28, @@ -32333,8 +28494,7 @@ object MapManager { targetBankId = 74, targetMapId = 2, targetX = 20, - targetY = 36, - ), + targetY = 36), WarpTile( x = 4, y = 2, @@ -32342,8 +28502,7 @@ object MapManager { targetBankId = 74, targetMapId = 107, targetX = 10, - targetY = 29, - ), + targetY = 29), ), npcs = emptyList(), bgEvents = @@ -32352,8 +28511,8 @@ object MapManager { x = 9, y = 58, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "0x0", - )), + script = "0x0"), + ), ), // MeteorFalls_1F_2R (MAP_METEOR_FALLS_1F_2R) MapDef( @@ -32362,17 +28521,13 @@ object MapManager { mapId = 1, width = 30, height = 32, - paletteIdx1 = 131, - paletteIdx2 = 103, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 123, + unknownShort = 386, + unknownByte = 63, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -32387,8 +28542,7 @@ object MapManager { targetBankId = 74, targetMapId = 0, targetX = 10, - targetY = 3, - ), + targetY = 3), WarpTile( x = 4, y = 14, @@ -32396,8 +28550,7 @@ object MapManager { targetBankId = 74, targetMapId = 2, targetX = 5, - targetY = 6, - ), + targetY = 6), WarpTile( x = 7, y = 20, @@ -32405,8 +28558,7 @@ object MapManager { targetBankId = 74, targetMapId = 2, targetX = 7, - targetY = 11, - ), + targetY = 11), WarpTile( x = 21, y = 23, @@ -32414,8 +28566,7 @@ object MapManager { targetBankId = 74, targetMapId = 2, targetX = 18, - targetY = 15, - ), + targetY = 15), ), npcs = listOf( @@ -32429,9 +28580,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 1, - facing = 1, - script = "MeteorFalls_1F_2R_EventScript_Nicolas", - ), + facing = 0, + script = "MeteorFalls_1F_2R_EventScript_Nicolas"), NpcDef( entityIdx = 1, graphicsId = 21, @@ -32442,9 +28592,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 1, - facing = 1, - script = "MeteorFalls_1F_2R_EventScript_John", - ), + facing = 0, + script = "MeteorFalls_1F_2R_EventScript_John"), NpcDef( entityIdx = 2, graphicsId = 22, @@ -32455,9 +28604,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 1, - facing = 1, - script = "MeteorFalls_1F_2R_EventScript_Jay", - ), + facing = 0, + script = "MeteorFalls_1F_2R_EventScript_Jay"), ), bgEvents = listOf( @@ -32465,8 +28613,8 @@ object MapManager { x = 9, y = 58, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "0x0", - )), + script = "0x0"), + ), ), ) allMaps.forEach { registerMap(it) } @@ -32482,17 +28630,13 @@ object MapManager { mapId = 2, width = 29, height = 38, - paletteIdx1 = 131, - paletteIdx2 = 103, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 123, + unknownShort = 386, + unknownByte = 63, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -32507,8 +28651,7 @@ object MapManager { targetBankId = 74, targetMapId = 1, targetX = 4, - targetY = 14, - ), + targetY = 14), WarpTile( x = 7, y = 11, @@ -32516,8 +28659,7 @@ object MapManager { targetBankId = 74, targetMapId = 1, targetX = 7, - targetY = 20, - ), + targetY = 20), WarpTile( x = 18, y = 15, @@ -32525,8 +28667,7 @@ object MapManager { targetBankId = 74, targetMapId = 1, targetX = 21, - targetY = 23, - ), + targetY = 23), WarpTile( x = 17, y = 3, @@ -32534,8 +28675,7 @@ object MapManager { targetBankId = 74, targetMapId = 3, targetX = 5, - targetY = 15, - ), + targetY = 15), WarpTile( x = 3, y = 23, @@ -32543,8 +28683,7 @@ object MapManager { targetBankId = 74, targetMapId = 0, targetX = 5, - targetY = 4, - ), + targetY = 4), WarpTile( x = 20, y = 36, @@ -32552,8 +28691,7 @@ object MapManager { targetBankId = 74, targetMapId = 0, targetX = 26, - targetY = 28, - ), + targetY = 28), ), npcs = emptyList(), bgEvents = emptyList(), @@ -32565,17 +28703,13 @@ object MapManager { mapId = 3, width = 11, height = 18, - paletteIdx1 = 131, - paletteIdx2 = 103, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 123, + unknownShort = 386, + unknownByte = 63, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -32590,8 +28724,8 @@ object MapManager { targetBankId = 74, targetMapId = 2, targetX = 17, - targetY = 3, - )), + targetY = 3), + ), npcs = emptyList(), bgEvents = emptyList(), ), @@ -32602,17 +28736,13 @@ object MapManager { mapId = 4, width = 36, height = 24, - paletteIdx1 = 132, - paletteIdx2 = 110, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 131, + unknownShort = 366, + unknownByte = 60, borderTiles = listOf( - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - ), + Tile2D(0x0211, 0), Tile2D(0x0211, 0), Tile2D(0x0211, 0), Tile2D(0x0211, 0)), lighting = Lighting.REGULAR, weather = Weather.STEADY_MIST, mapType = MapType.UNDERGROUND, @@ -32627,8 +28757,7 @@ object MapManager { targetBankId = 50, targetMapId = 31, targetX = 47, - targetY = 8, - ), + targetY = 8), WarpTile( x = 29, y = 16, @@ -32636,8 +28765,7 @@ object MapManager { targetBankId = 50, targetMapId = 14, targetX = 8, - targetY = 1, - ), + targetY = 1), WarpTile( x = 18, y = 20, @@ -32645,8 +28773,7 @@ object MapManager { targetBankId = 50, targetMapId = 31, targetX = 65, - targetY = 10, - ), + targetY = 10), ), npcs = listOf( @@ -32661,8 +28788,8 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 2, - script = "RusturfTunnel_EventScript_Mike", - )), + script = "RusturfTunnel_EventScript_Mike"), + ), bgEvents = emptyList(), ), // Underwater_SootopolisCity (MAP_UNDERWATER_SOOTOPOLIS_CITY) @@ -32672,17 +28799,13 @@ object MapManager { mapId = 5, width = 20, height = 10, - paletteIdx1 = 120, - paletteIdx2 = 114, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 144, + unknownShort = 411, + unknownByte = 54, borderTiles = listOf( - Tile2D(0x0213, 0), - Tile2D(0x0213, 0), - Tile2D(0x0213, 0), - Tile2D(0x0213, 0), - ), + Tile2D(0x0213, 0), Tile2D(0x0213, 0), Tile2D(0x0213, 0), Tile2D(0x0213, 0)), lighting = Lighting.REGULAR, weather = Weather.UNDERWATER_MIST, mapType = MapType.UNDERWATER, @@ -32697,8 +28820,7 @@ object MapManager { targetBankId = 50, targetMapId = 51, targetX = 45, - targetY = 65, - ), + targetY = 65), WarpTile( x = 10, y = 8, @@ -32706,8 +28828,7 @@ object MapManager { targetBankId = 50, targetMapId = 51, targetX = 45, - targetY = 65, - ), + targetY = 65), ), npcs = emptyList(), bgEvents = emptyList(), @@ -32719,17 +28840,13 @@ object MapManager { mapId = 6, width = 17, height = 33, - paletteIdx1 = 134, - paletteIdx2 = 112, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 119, + unknownShort = 438, + unknownByte = 82, borderTiles = listOf( - Tile2D(0x02D9, 0), - Tile2D(0x02D9, 0), - Tile2D(0x02D9, 0), - Tile2D(0x02D9, 0), - ), + Tile2D(0x02D9, 0), Tile2D(0x02D9, 0), Tile2D(0x02D9, 0), Tile2D(0x02D9, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -32744,8 +28861,7 @@ object MapManager { targetBankId = 50, targetMapId = 26, targetX = 29, - targetY = 87, - ), + targetY = 87), WarpTile( x = 8, y = 20, @@ -32753,8 +28869,7 @@ object MapManager { targetBankId = 74, targetMapId = 6, targetX = 8, - targetY = 11, - ), + targetY = 11), WarpTile( x = 8, y = 11, @@ -32762,8 +28877,7 @@ object MapManager { targetBankId = 74, targetMapId = 6, targetX = 8, - targetY = 20, - ), + targetY = 20), ), npcs = emptyList(), bgEvents = @@ -32772,20 +28886,17 @@ object MapManager { x = 8, y = 20, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "DesertRuins_EventScript_CaveEntranceMiddle", - ), + script = "DesertRuins_EventScript_CaveEntranceMiddle"), BgEventDef( x = 7, y = 20, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "DesertRuins_EventScript_CaveEntranceSide", - ), + script = "DesertRuins_EventScript_CaveEntranceSide"), BgEventDef( x = 9, y = 20, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "DesertRuins_EventScript_CaveEntranceSide", - ), + script = "DesertRuins_EventScript_CaveEntranceSide"), ), ), // GraniteCave_1F (MAP_GRANITE_CAVE_1F) @@ -32795,17 +28906,13 @@ object MapManager { mapId = 7, width = 42, height = 15, - paletteIdx1 = 134, - paletteIdx2 = 112, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 119, + unknownShort = 366, + unknownByte = 55, borderTiles = listOf( - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - ), + Tile2D(0x0211, 0), Tile2D(0x0211, 0), Tile2D(0x0211, 0), Tile2D(0x0211, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -32820,8 +28927,7 @@ object MapManager { targetBankId = 50, targetMapId = 21, targetX = 48, - targetY = 16, - ), + targetY = 16), WarpTile( x = 35, y = 3, @@ -32829,8 +28935,7 @@ object MapManager { targetBankId = 74, targetMapId = 8, targetX = 25, - targetY = 13, - ), + targetY = 13), WarpTile( x = 17, y = 11, @@ -32838,8 +28943,7 @@ object MapManager { targetBankId = 74, targetMapId = 8, targetX = 4, - targetY = 21, - ), + targetY = 21), WarpTile( x = 5, y = 10, @@ -32847,8 +28951,7 @@ object MapManager { targetBankId = 74, targetMapId = 10, targetX = 7, - targetY = 3, - ), + targetY = 3), ), npcs = listOf( @@ -32863,8 +28966,8 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "GraniteCave_1F_EventScript_Hiker", - )), + script = "GraniteCave_1F_EventScript_Hiker"), + ), bgEvents = emptyList(), ), // GraniteCave_B1F (MAP_GRANITE_CAVE_B1F) @@ -32874,17 +28977,13 @@ object MapManager { mapId = 8, width = 32, height = 26, - paletteIdx1 = 134, - paletteIdx2 = 112, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 119, + unknownShort = 366, + unknownByte = 55, borderTiles = listOf( - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - ), + Tile2D(0x0211, 0), Tile2D(0x0211, 0), Tile2D(0x0211, 0), Tile2D(0x0211, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -32899,8 +28998,7 @@ object MapManager { targetBankId = 74, targetMapId = 7, targetX = 35, - targetY = 3, - ), + targetY = 3), WarpTile( x = 4, y = 21, @@ -32908,8 +29006,7 @@ object MapManager { targetBankId = 74, targetMapId = 7, targetX = 17, - targetY = 11, - ), + targetY = 11), WarpTile( x = 29, y = 13, @@ -32917,8 +29014,7 @@ object MapManager { targetBankId = 74, targetMapId = 9, targetX = 29, - targetY = 13, - ), + targetY = 13), WarpTile( x = 28, y = 21, @@ -32926,8 +29022,7 @@ object MapManager { targetBankId = 74, targetMapId = 9, targetX = 28, - targetY = 21, - ), + targetY = 21), WarpTile( x = 8, y = 5, @@ -32935,8 +29030,7 @@ object MapManager { targetBankId = 74, targetMapId = 9, targetX = 8, - targetY = 5, - ), + targetY = 5), WarpTile( x = 12, y = 3, @@ -32944,8 +29038,7 @@ object MapManager { targetBankId = 74, targetMapId = 9, targetX = 12, - targetY = 3, - ), + targetY = 3), WarpTile( x = 29, y = 2, @@ -32953,8 +29046,7 @@ object MapManager { targetBankId = 74, targetMapId = 9, targetX = 29, - targetY = 2, - ), + targetY = 2), ), npcs = emptyList(), bgEvents = emptyList(), @@ -32966,17 +29058,13 @@ object MapManager { mapId = 9, width = 32, height = 26, - paletteIdx1 = 134, - paletteIdx2 = 112, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 119, + unknownShort = 366, + unknownByte = 55, borderTiles = listOf( - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - ), + Tile2D(0x0211, 0), Tile2D(0x0211, 0), Tile2D(0x0211, 0), Tile2D(0x0211, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -32991,8 +29079,7 @@ object MapManager { targetBankId = 74, targetMapId = 8, targetX = 29, - targetY = 13, - ), + targetY = 13), WarpTile( x = 28, y = 21, @@ -33000,8 +29087,7 @@ object MapManager { targetBankId = 74, targetMapId = 8, targetX = 28, - targetY = 21, - ), + targetY = 21), WarpTile( x = 8, y = 5, @@ -33009,8 +29095,7 @@ object MapManager { targetBankId = 74, targetMapId = 8, targetX = 8, - targetY = 5, - ), + targetY = 5), WarpTile( x = 12, y = 3, @@ -33018,8 +29103,7 @@ object MapManager { targetBankId = 74, targetMapId = 8, targetX = 12, - targetY = 3, - ), + targetY = 3), WarpTile( x = 29, y = 2, @@ -33027,8 +29111,7 @@ object MapManager { targetBankId = 74, targetMapId = 8, targetX = 29, - targetY = 2, - ), + targetY = 2), ), npcs = emptyList(), bgEvents = @@ -33037,14 +29120,12 @@ object MapManager { x = 28, y = 6, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 15, y = 11, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), ), ), // GraniteCave_StevensRoom (MAP_GRANITE_CAVE_STEVENS_ROOM) @@ -33054,17 +29135,13 @@ object MapManager { mapId = 10, width = 15, height = 14, - paletteIdx1 = 134, - paletteIdx2 = 112, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 119, + unknownShort = 366, + unknownByte = 55, borderTiles = listOf( - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - ), + Tile2D(0x0211, 0), Tile2D(0x0211, 0), Tile2D(0x0211, 0), Tile2D(0x0211, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -33079,8 +29156,8 @@ object MapManager { targetBankId = 74, targetMapId = 7, targetX = 5, - targetY = 10, - )), + targetY = 10), + ), npcs = emptyList(), bgEvents = emptyList(), ), @@ -33091,17 +29168,13 @@ object MapManager { mapId = 11, width = 48, height = 44, - paletteIdx1 = 82, - paletteIdx2 = 118, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 102, + unknownShort = 366, + unknownByte = 59, borderTiles = listOf( - Tile2D(0x01D4, 0), - Tile2D(0x01D5, 0), - Tile2D(0x01DC, 0), - Tile2D(0x01DD, 0), - ), + Tile2D(0x01D4, 0), Tile2D(0x01D5, 0), Tile2D(0x01DC, 0), Tile2D(0x01DD, 0)), lighting = Lighting.REGULAR, weather = Weather.CLOUDY, mapType = MapType.ROUTE, @@ -33116,8 +29189,7 @@ object MapManager { targetBankId = 50, targetMapId = 19, targetX = 10, - targetY = 30, - ), + targetY = 30), WarpTile( x = 15, y = 5, @@ -33125,8 +29197,7 @@ object MapManager { targetBankId = 50, targetMapId = 19, targetX = 11, - targetY = 30, - ), + targetY = 30), WarpTile( x = 16, y = 38, @@ -33134,8 +29205,7 @@ object MapManager { targetBankId = 50, targetMapId = 19, targetX = 10, - targetY = 38, - ), + targetY = 38), WarpTile( x = 17, y = 38, @@ -33143,8 +29213,7 @@ object MapManager { targetBankId = 50, targetMapId = 19, targetX = 11, - targetY = 38, - ), + targetY = 38), WarpTile( x = 36, y = 38, @@ -33152,8 +29221,7 @@ object MapManager { targetBankId = 50, targetMapId = 19, targetX = 32, - targetY = 42, - ), + targetY = 42), WarpTile( x = 37, y = 38, @@ -33161,8 +29229,7 @@ object MapManager { targetBankId = 50, targetMapId = 19, targetX = 33, - targetY = 42, - ), + targetY = 42), ), npcs = listOf( @@ -33177,8 +29244,7 @@ object MapManager { movementRangeY = 2, trainerType = 0, facing = 0, - script = "PetalburgWoods_EventScript_Boy1", - ), + script = "PetalburgWoods_EventScript_Boy1"), NpcDef( entityIdx = 8, graphicsId = 36, @@ -33190,8 +29256,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "PetalburgWoods_EventScript_Lyle", - ), + script = "PetalburgWoods_EventScript_Lyle"), NpcDef( entityIdx = 9, graphicsId = 36, @@ -33203,8 +29268,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "PetalburgWoods_EventScript_James", - ), + script = "PetalburgWoods_EventScript_James"), NpcDef( entityIdx = 10, graphicsId = 13, @@ -33216,8 +29280,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "PetalburgWoods_EventScript_Boy2", - ), + script = "PetalburgWoods_EventScript_Boy2"), NpcDef( entityIdx = 12, graphicsId = 10, @@ -33229,8 +29292,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "PetalburgWoods_EventScript_Girl", - ), + script = "PetalburgWoods_EventScript_Girl"), ), bgEvents = listOf( @@ -33238,38 +29300,32 @@ object MapManager { x = 14, y = 32, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "PetalburgWoods_EventScript_Sign1", - ), + script = "PetalburgWoods_EventScript_Sign1"), BgEventDef( x = 39, y = 35, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 26, y = 6, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 40, y = 29, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 4, y = 19, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 11, y = 8, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "PetalburgWoods_EventScript_Sign2", - ), + script = "PetalburgWoods_EventScript_Sign2"), ), ), // MtChimney (MAP_MT_CHIMNEY) @@ -33279,17 +29335,13 @@ object MapManager { mapId = 12, width = 40, height = 47, - paletteIdx1 = 92, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 106, + unknownShort = 406, + unknownByte = 56, borderTiles = listOf( - Tile2D(0x0271, 0), - Tile2D(0x0271, 0), - Tile2D(0x0271, 0), - Tile2D(0x0271, 0), - ), + Tile2D(0x0271, 0), Tile2D(0x0271, 0), Tile2D(0x0271, 0), Tile2D(0x0271, 0)), lighting = Lighting.REGULAR, weather = Weather.DENSE_BRIGHT_MIST, mapType = MapType.ROUTE, @@ -33304,8 +29356,7 @@ object MapManager { targetBankId = 69, targetMapId = 1, targetX = 6, - targetY = 11, - ), + targetY = 11), WarpTile( x = 18, y = 36, @@ -33313,8 +29364,7 @@ object MapManager { targetBankId = 69, targetMapId = 1, targetX = 7, - targetY = 11, - ), + targetY = 11), WarpTile( x = 20, y = 41, @@ -33322,8 +29372,7 @@ object MapManager { targetBankId = 74, targetMapId = 13, targetX = 13, - targetY = 5, - ), + targetY = 5), WarpTile( x = 21, y = 41, @@ -33331,8 +29380,7 @@ object MapManager { targetBankId = 74, targetMapId = 13, targetX = 14, - targetY = 5, - ), + targetY = 5), ), npcs = emptyList(), bgEvents = @@ -33341,14 +29389,12 @@ object MapManager { x = 14, y = 6, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "MtChimney_EventScript_MeteoriteMachine", - ), + script = "MtChimney_EventScript_MeteoriteMachine"), BgEventDef( x = 24, y = 37, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "MtChimney_EventScript_RouteSign", - ), + script = "MtChimney_EventScript_RouteSign"), ), ), // JaggedPass (MAP_JAGGED_PASS) @@ -33358,17 +29404,13 @@ object MapManager { mapId = 13, width = 30, height = 46, - paletteIdx1 = 92, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 106, + unknownShort = 366, + unknownByte = 76, borderTiles = listOf( - Tile2D(0x0271, 0), - Tile2D(0x0271, 0), - Tile2D(0x0271, 0), - Tile2D(0x0271, 0), - ), + Tile2D(0x0271, 0), Tile2D(0x0271, 0), Tile2D(0x0271, 0), Tile2D(0x0271, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.ROUTE, @@ -33383,8 +29425,7 @@ object MapManager { targetBankId = 50, targetMapId = 27, targetX = 6, - targetY = 46, - ), + targetY = 46), WarpTile( x = 15, y = 40, @@ -33392,8 +29433,7 @@ object MapManager { targetBankId = 50, targetMapId = 27, targetX = 7, - targetY = 46, - ), + targetY = 46), WarpTile( x = 13, y = 5, @@ -33401,8 +29441,7 @@ object MapManager { targetBankId = 74, targetMapId = 12, targetX = 20, - targetY = 41, - ), + targetY = 41), WarpTile( x = 14, y = 5, @@ -33410,8 +29449,7 @@ object MapManager { targetBankId = 74, targetMapId = 12, targetX = 21, - targetY = 41, - ), + targetY = 41), WarpTile( x = 16, y = 18, @@ -33419,8 +29457,7 @@ object MapManager { targetBankId = 74, targetMapId = 86, targetX = 10, - targetY = 34, - ), + targetY = 34), ), npcs = listOf( @@ -33435,8 +29472,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 3, - script = "JaggedPass_EventScript_Eric", - ), + script = "JaggedPass_EventScript_Eric"), NpcDef( entityIdx = 1, graphicsId = 31, @@ -33448,8 +29484,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "JaggedPass_EventScript_Ethan", - ), + script = "JaggedPass_EventScript_Ethan"), NpcDef( entityIdx = 3, graphicsId = 32, @@ -33461,8 +29496,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "JaggedPass_EventScript_Diana", - ), + script = "JaggedPass_EventScript_Diana"), NpcDef( entityIdx = 5, graphicsId = 32, @@ -33474,8 +29508,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 3, - script = "JaggedPass_EventScript_Autumn", - ), + script = "JaggedPass_EventScript_Autumn"), NpcDef( entityIdx = 6, graphicsId = 56, @@ -33487,8 +29520,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 2, - script = "JaggedPass_EventScript_Julio", - ), + script = "JaggedPass_EventScript_Julio"), ), bgEvents = listOf( @@ -33496,14 +29528,12 @@ object MapManager { x = 8, y = 10, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 7, y = 29, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), ), ), // FieryPath (MAP_FIERY_PATH) @@ -33513,17 +29543,13 @@ object MapManager { mapId = 14, width = 35, height = 38, - paletteIdx1 = 92, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 106, + unknownShort = 366, + unknownByte = 74, borderTiles = listOf( - Tile2D(0x0271, 0), - Tile2D(0x0271, 0), - Tile2D(0x0271, 0), - Tile2D(0x0271, 0), - ), + Tile2D(0x0271, 0), Tile2D(0x0271, 0), Tile2D(0x0271, 0), Tile2D(0x0271, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -33538,8 +29564,7 @@ object MapManager { targetBankId = 50, targetMapId = 27, targetX = 11, - targetY = 36, - ), + targetY = 36), WarpTile( x = 26, y = 4, @@ -33547,8 +29572,7 @@ object MapManager { targetBankId = 50, targetMapId = 27, targetX = 22, - targetY = 10, - ), + targetY = 10), ), npcs = emptyList(), bgEvents = emptyList(), @@ -33560,17 +29584,13 @@ object MapManager { mapId = 15, width = 22, height = 19, - paletteIdx1 = 128, - paletteIdx2 = 94, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 129, + unknownShort = 432, + unknownByte = 65, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -33585,8 +29605,7 @@ object MapManager { targetBankId = 50, targetMapId = 37, targetX = 22, - targetY = 29, - ), + targetY = 29), WarpTile( x = 3, y = 6, @@ -33594,8 +29613,7 @@ object MapManager { targetBankId = 74, targetMapId = 21, targetX = 10, - targetY = 42, - ), + targetY = 42), WarpTile( x = 18, y = 18, @@ -33603,8 +29621,7 @@ object MapManager { targetBankId = 50, targetMapId = 37, targetX = 22, - targetY = 29, - ), + targetY = 29), WarpTile( x = 4, y = 6, @@ -33612,8 +29629,7 @@ object MapManager { targetBankId = 74, targetMapId = 21, targetX = 10, - targetY = 42, - ), + targetY = 42), WarpTile( x = 11, y = 1, @@ -33621,8 +29637,7 @@ object MapManager { targetBankId = 74, targetMapId = 16, targetX = 2, - targetY = 1, - ), + targetY = 1), WarpTile( x = 20, y = 9, @@ -33630,8 +29645,7 @@ object MapManager { targetBankId = 74, targetMapId = 16, targetX = 11, - targetY = 9, - ), + targetY = 9), ), npcs = listOf( @@ -33645,9 +29659,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "MtPyre_1F_EventScript_CleanseTagWoman", - ), + facing = 0, + script = "MtPyre_1F_EventScript_CleanseTagWoman"), NpcDef( entityIdx = 1, graphicsId = 18, @@ -33658,9 +29671,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 0, - script = "MtPyre_1F_EventScript_PokefanF", - ), + facing = 1, + script = "MtPyre_1F_EventScript_PokefanF"), NpcDef( entityIdx = 2, graphicsId = 65, @@ -33672,8 +29684,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 2, - script = "MtPyre_1F_EventScript_Man", - ), + script = "MtPyre_1F_EventScript_Man"), ), bgEvents = emptyList(), ), @@ -33684,17 +29695,13 @@ object MapManager { mapId = 16, width = 13, height = 13, - paletteIdx1 = 128, - paletteIdx2 = 94, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 129, + unknownShort = 432, + unknownByte = 65, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -33709,8 +29716,7 @@ object MapManager { targetBankId = 74, targetMapId = 15, targetX = 11, - targetY = 1, - ), + targetY = 1), WarpTile( x = 10, y = 1, @@ -33718,8 +29724,7 @@ object MapManager { targetBankId = 74, targetMapId = 17, targetX = 10, - targetY = 1, - ), + targetY = 1), WarpTile( x = 10, y = 12, @@ -33727,8 +29732,7 @@ object MapManager { targetBankId = 74, targetMapId = 17, targetX = 10, - targetY = 12, - ), + targetY = 12), WarpTile( x = 6, y = 12, @@ -33736,8 +29740,7 @@ object MapManager { targetBankId = 74, targetMapId = 17, targetX = 6, - targetY = 12, - ), + targetY = 12), WarpTile( x = 11, y = 9, @@ -33745,8 +29748,7 @@ object MapManager { targetBankId = 74, targetMapId = 15, targetX = 20, - targetY = 9, - ), + targetY = 9), ), npcs = listOf( @@ -33761,8 +29763,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 3, - script = "MtPyre_2F_EventScript_Mark", - ), + script = "MtPyre_2F_EventScript_Mark"), NpcDef( entityIdx = 2, graphicsId = 16, @@ -33774,8 +29775,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 3, - script = "MtPyre_2F_EventScript_Woman", - ), + script = "MtPyre_2F_EventScript_Woman"), NpcDef( entityIdx = 3, graphicsId = 25, @@ -33786,9 +29786,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "MtPyre_2F_EventScript_PokefanM", - ), + facing = 0, + script = "MtPyre_2F_EventScript_PokefanM"), NpcDef( entityIdx = 4, graphicsId = 26, @@ -33799,9 +29798,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 1, - facing = 1, - script = "MtPyre_2F_EventScript_Dez", - ), + facing = 0, + script = "MtPyre_2F_EventScript_Dez"), NpcDef( entityIdx = 5, graphicsId = 65, @@ -33812,9 +29810,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 1, - facing = 1, - script = "MtPyre_2F_EventScript_Luke", - ), + facing = 0, + script = "MtPyre_2F_EventScript_Luke"), NpcDef( entityIdx = 6, graphicsId = 44, @@ -33825,9 +29822,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 1, - facing = 0, - script = "MtPyre_2F_EventScript_Zander", - ), + facing = 1, + script = "MtPyre_2F_EventScript_Zander"), NpcDef( entityIdx = 7, graphicsId = 40, @@ -33839,8 +29835,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "MtPyre_2F_EventScript_Leah", - ), + script = "MtPyre_2F_EventScript_Leah"), ), bgEvents = emptyList(), ), @@ -33851,17 +29846,13 @@ object MapManager { mapId = 17, width = 13, height = 13, - paletteIdx1 = 128, - paletteIdx2 = 94, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 129, + unknownShort = 432, + unknownByte = 65, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -33876,8 +29867,7 @@ object MapManager { targetBankId = 74, targetMapId = 16, targetX = 10, - targetY = 1, - ), + targetY = 1), WarpTile( x = 2, y = 1, @@ -33885,8 +29875,7 @@ object MapManager { targetBankId = 74, targetMapId = 18, targetX = 2, - targetY = 5, - ), + targetY = 5), WarpTile( x = 9, y = 10, @@ -33894,8 +29883,7 @@ object MapManager { targetBankId = 74, targetMapId = 18, targetX = 9, - targetY = 10, - ), + targetY = 10), WarpTile( x = 1, y = 12, @@ -33903,8 +29891,7 @@ object MapManager { targetBankId = 74, targetMapId = 18, targetX = 2, - targetY = 12, - ), + targetY = 12), WarpTile( x = 10, y = 12, @@ -33912,8 +29899,7 @@ object MapManager { targetBankId = 74, targetMapId = 16, targetX = 10, - targetY = 12, - ), + targetY = 12), WarpTile( x = 6, y = 12, @@ -33921,8 +29907,7 @@ object MapManager { targetBankId = 74, targetMapId = 16, targetX = 6, - targetY = 12, - ), + targetY = 12), ), npcs = listOf( @@ -33937,8 +29922,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "MtPyre_3F_EventScript_William", - ), + script = "MtPyre_3F_EventScript_William"), NpcDef( entityIdx = 1, graphicsId = 47, @@ -33950,8 +29934,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "MtPyre_3F_EventScript_Kayla", - ), + script = "MtPyre_3F_EventScript_Kayla"), NpcDef( entityIdx = 3, graphicsId = 20, @@ -33963,8 +29946,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "MtPyre_3F_EventScript_Gabrielle", - ), + script = "MtPyre_3F_EventScript_Gabrielle"), ), bgEvents = emptyList(), ), @@ -33975,17 +29957,13 @@ object MapManager { mapId = 18, width = 13, height = 13, - paletteIdx1 = 128, - paletteIdx2 = 94, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 129, + unknownShort = 432, + unknownByte = 65, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -34000,8 +29978,7 @@ object MapManager { targetBankId = 74, targetMapId = 19, targetX = 10, - targetY = 5, - ), + targetY = 5), WarpTile( x = 2, y = 5, @@ -34009,8 +29986,7 @@ object MapManager { targetBankId = 74, targetMapId = 17, targetX = 2, - targetY = 1, - ), + targetY = 1), WarpTile( x = 12, y = 10, @@ -34018,8 +29994,7 @@ object MapManager { targetBankId = 74, targetMapId = 19, targetX = 12, - targetY = 10, - ), + targetY = 10), WarpTile( x = 12, y = 12, @@ -34027,8 +30002,7 @@ object MapManager { targetBankId = 74, targetMapId = 19, targetX = 12, - targetY = 12, - ), + targetY = 12), WarpTile( x = 9, y = 10, @@ -34036,8 +30010,7 @@ object MapManager { targetBankId = 74, targetMapId = 17, targetX = 9, - targetY = 10, - ), + targetY = 10), WarpTile( x = 2, y = 12, @@ -34045,8 +30018,7 @@ object MapManager { targetBankId = 74, targetMapId = 17, targetX = 1, - targetY = 12, - ), + targetY = 12), ), npcs = listOf( @@ -34061,8 +30033,8 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "MtPyre_4F_EventScript_Tasha", - )), + script = "MtPyre_4F_EventScript_Tasha"), + ), bgEvents = emptyList(), ), // MtPyre_5F (MAP_MT_PYRE_5F) @@ -34072,17 +30044,13 @@ object MapManager { mapId = 19, width = 13, height = 13, - paletteIdx1 = 128, - paletteIdx2 = 94, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 129, + unknownShort = 432, + unknownByte = 65, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -34097,8 +30065,7 @@ object MapManager { targetBankId = 74, targetMapId = 20, targetX = 2, - targetY = 1, - ), + targetY = 1), WarpTile( x = 10, y = 5, @@ -34106,8 +30073,7 @@ object MapManager { targetBankId = 74, targetMapId = 18, targetX = 10, - targetY = 1, - ), + targetY = 1), WarpTile( x = 1, y = 10, @@ -34115,8 +30081,7 @@ object MapManager { targetBankId = 74, targetMapId = 20, targetX = 1, - targetY = 10, - ), + targetY = 10), WarpTile( x = 12, y = 10, @@ -34124,8 +30089,7 @@ object MapManager { targetBankId = 74, targetMapId = 18, targetX = 12, - targetY = 10, - ), + targetY = 10), WarpTile( x = 12, y = 12, @@ -34133,8 +30097,7 @@ object MapManager { targetBankId = 74, targetMapId = 18, targetX = 12, - targetY = 12, - ), + targetY = 12), ), npcs = listOf( @@ -34149,8 +30112,8 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "MtPyre_5F_EventScript_Atsushi", - )), + script = "MtPyre_5F_EventScript_Atsushi"), + ), bgEvents = emptyList(), ), // MtPyre_6F (MAP_MT_PYRE_6F) @@ -34160,17 +30123,13 @@ object MapManager { mapId = 20, width = 13, height = 13, - paletteIdx1 = 128, - paletteIdx2 = 94, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 129, + unknownShort = 432, + unknownByte = 65, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -34185,8 +30144,7 @@ object MapManager { targetBankId = 74, targetMapId = 19, targetX = 2, - targetY = 1, - ), + targetY = 1), WarpTile( x = 1, y = 10, @@ -34194,8 +30152,7 @@ object MapManager { targetBankId = 74, targetMapId = 19, targetX = 1, - targetY = 10, - ), + targetY = 10), ), npcs = listOf( @@ -34210,8 +30167,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "MtPyre_6F_EventScript_Valerie", - ), + script = "MtPyre_6F_EventScript_Valerie"), NpcDef( entityIdx = 2, graphicsId = 37, @@ -34223,8 +30179,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "MtPyre_6F_EventScript_Cedric", - ), + script = "MtPyre_6F_EventScript_Cedric"), ), bgEvents = emptyList(), ), @@ -34235,17 +30190,13 @@ object MapManager { mapId = 21, width = 38, height = 51, - paletteIdx1 = 128, - paletteIdx2 = 94, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 129, + unknownShort = 434, + unknownByte = 65, borderTiles = listOf( - Tile2D(0x00A1, 0), - Tile2D(0x00A1, 0), - Tile2D(0x00A1, 0), - Tile2D(0x00A1, 0), - ), + Tile2D(0x00A1, 0), Tile2D(0x00A1, 0), Tile2D(0x00A1, 0), Tile2D(0x00A1, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.ROUTE, @@ -34260,8 +30211,7 @@ object MapManager { targetBankId = 74, targetMapId = 15, targetX = 3, - targetY = 6, - ), + targetY = 6), WarpTile( x = 19, y = 10, @@ -34269,8 +30219,7 @@ object MapManager { targetBankId = 74, targetMapId = 22, targetX = 23, - targetY = 31, - ), + targetY = 31), WarpTile( x = 20, y = 10, @@ -34278,8 +30227,7 @@ object MapManager { targetBankId = 74, targetMapId = 22, targetX = 23, - targetY = 31, - ), + targetY = 31), ), npcs = emptyList(), bgEvents = @@ -34288,14 +30236,12 @@ object MapManager { x = 9, y = 8, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 16, y = 22, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), ), ), // MtPyre_Summit (MAP_MT_PYRE_SUMMIT) @@ -34305,17 +30251,13 @@ object MapManager { mapId = 22, width = 50, height = 37, - paletteIdx1 = 128, - paletteIdx2 = 94, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 129, + unknownShort = 434, + unknownByte = 65, borderTiles = listOf( - Tile2D(0x00A1, 0), - Tile2D(0x00A1, 0), - Tile2D(0x00A1, 0), - Tile2D(0x00A1, 0), - ), + Tile2D(0x00A1, 0), Tile2D(0x00A1, 0), Tile2D(0x00A1, 0), Tile2D(0x00A1, 0)), lighting = Lighting.REGULAR, weather = Weather.STEADY_MIST, mapType = MapType.ROUTE, @@ -34330,8 +30272,7 @@ object MapManager { targetBankId = 74, targetMapId = 21, targetX = 19, - targetY = 10, - ), + targetY = 10), WarpTile( x = 23, y = 31, @@ -34339,8 +30280,7 @@ object MapManager { targetBankId = 74, targetMapId = 21, targetX = 19, - targetY = 10, - ), + targetY = 10), WarpTile( x = 24, y = 31, @@ -34348,8 +30288,7 @@ object MapManager { targetBankId = 74, targetMapId = 21, targetX = 19, - targetY = 10, - ), + targetY = 10), ), npcs = listOf( @@ -34363,9 +30302,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "MtPyre_Summit_EventScript_OldMan", - ), + facing = 0, + script = "MtPyre_Summit_EventScript_OldMan"), NpcDef( entityIdx = 2, graphicsId = 22, @@ -34376,9 +30314,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "MtPyre_Summit_EventScript_OldLady", - ), + facing = 0, + script = "MtPyre_Summit_EventScript_OldLady"), ), bgEvents = listOf( @@ -34386,14 +30323,12 @@ object MapManager { x = 9, y = 25, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 37, y = 7, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), ), ), // AquaHideout_1F (MAP_AQUA_HIDEOUT_1F) @@ -34403,17 +30338,13 @@ object MapManager { mapId = 23, width = 28, height = 30, - paletteIdx1 = 128, - paletteIdx2 = 94, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 129, + unknownShort = 430, + unknownByte = 197, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -34428,8 +30359,7 @@ object MapManager { targetBankId = 50, targetMapId = 5, targetX = 70, - targetY = 5, - ), + targetY = 5), WarpTile( x = 14, y = 27, @@ -34437,8 +30367,7 @@ object MapManager { targetBankId = 50, targetMapId = 5, targetX = 70, - targetY = 5, - ), + targetY = 5), WarpTile( x = 22, y = 1, @@ -34446,8 +30375,7 @@ object MapManager { targetBankId = 74, targetMapId = 24, targetX = 29, - targetY = 1, - ), + targetY = 1), ), npcs = emptyList(), bgEvents = emptyList(), @@ -34459,17 +30387,13 @@ object MapManager { mapId = 24, width = 51, height = 24, - paletteIdx1 = 128, - paletteIdx2 = 94, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 129, + unknownShort = 430, + unknownByte = 197, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -34484,8 +30408,7 @@ object MapManager { targetBankId = 74, targetMapId = 23, targetX = 22, - targetY = 1, - ), + targetY = 1), WarpTile( x = 18, y = 1, @@ -34493,8 +30416,7 @@ object MapManager { targetBankId = 74, targetMapId = 25, targetX = 18, - targetY = 1, - ), + targetY = 1), WarpTile( x = 12, y = 1, @@ -34502,8 +30424,7 @@ object MapManager { targetBankId = 74, targetMapId = 25, targetX = 12, - targetY = 1, - ), + targetY = 1), WarpTile( x = 3, y = 3, @@ -34511,8 +30432,7 @@ object MapManager { targetBankId = 74, targetMapId = 25, targetX = 3, - targetY = 3, - ), + targetY = 3), WarpTile( x = 31, y = 4, @@ -34520,8 +30440,7 @@ object MapManager { targetBankId = 74, targetMapId = 24, targetX = 27, - targetY = 12, - ), + targetY = 12), WarpTile( x = 27, y = 4, @@ -34529,8 +30448,7 @@ object MapManager { targetBankId = 74, targetMapId = 24, targetX = 3, - targetY = 15, - ), + targetY = 15), WarpTile( x = 20, y = 4, @@ -34538,8 +30456,7 @@ object MapManager { targetBankId = 74, targetMapId = 24, targetX = 32, - targetY = 19, - ), + targetY = 19), WarpTile( x = 27, y = 12, @@ -34547,8 +30464,7 @@ object MapManager { targetBankId = 74, targetMapId = 24, targetX = 31, - targetY = 4, - ), + targetY = 4), WarpTile( x = 3, y = 15, @@ -34556,8 +30472,7 @@ object MapManager { targetBankId = 74, targetMapId = 24, targetX = 27, - targetY = 4, - ), + targetY = 4), WarpTile( x = 3, y = 20, @@ -34565,8 +30480,7 @@ object MapManager { targetBankId = 74, targetMapId = 24, targetX = 45, - targetY = 3, - ), + targetY = 3), WarpTile( x = 32, y = 19, @@ -34574,8 +30488,7 @@ object MapManager { targetBankId = 74, targetMapId = 24, targetX = 20, - targetY = 4, - ), + targetY = 4), WarpTile( x = 23, y = 10, @@ -34583,8 +30496,7 @@ object MapManager { targetBankId = 74, targetMapId = 24, targetX = 42, - targetY = 17, - ), + targetY = 17), WarpTile( x = 45, y = 3, @@ -34592,8 +30504,7 @@ object MapManager { targetBankId = 74, targetMapId = 24, targetX = 3, - targetY = 20, - ), + targetY = 20), WarpTile( x = 42, y = 5, @@ -34601,8 +30512,7 @@ object MapManager { targetBankId = 74, targetMapId = 24, targetX = 48, - targetY = 9, - ), + targetY = 9), WarpTile( x = 45, y = 5, @@ -34610,8 +30520,7 @@ object MapManager { targetBankId = 74, targetMapId = 24, targetX = 45, - targetY = 3, - ), + targetY = 3), WarpTile( x = 48, y = 5, @@ -34619,8 +30528,7 @@ object MapManager { targetBankId = 74, targetMapId = 24, targetX = 42, - targetY = 9, - ), + targetY = 9), WarpTile( x = 42, y = 9, @@ -34628,8 +30536,7 @@ object MapManager { targetBankId = 74, targetMapId = 24, targetX = 48, - targetY = 5, - ), + targetY = 5), WarpTile( x = 45, y = 9, @@ -34637,8 +30544,7 @@ object MapManager { targetBankId = 74, targetMapId = 24, targetX = 45, - targetY = 13, - ), + targetY = 13), WarpTile( x = 48, y = 9, @@ -34646,8 +30552,7 @@ object MapManager { targetBankId = 74, targetMapId = 24, targetX = 42, - targetY = 5, - ), + targetY = 5), WarpTile( x = 42, y = 13, @@ -34655,8 +30560,7 @@ object MapManager { targetBankId = 74, targetMapId = 24, targetX = 48, - targetY = 17, - ), + targetY = 17), WarpTile( x = 45, y = 13, @@ -34664,8 +30568,7 @@ object MapManager { targetBankId = 74, targetMapId = 24, targetX = 45, - targetY = 9, - ), + targetY = 9), WarpTile( x = 48, y = 13, @@ -34673,8 +30576,7 @@ object MapManager { targetBankId = 74, targetMapId = 24, targetX = 45, - targetY = 3, - ), + targetY = 3), WarpTile( x = 42, y = 17, @@ -34682,8 +30584,7 @@ object MapManager { targetBankId = 74, targetMapId = 24, targetX = 23, - targetY = 10, - ), + targetY = 10), WarpTile( x = 45, y = 17, @@ -34691,8 +30592,7 @@ object MapManager { targetBankId = 74, targetMapId = 24, targetX = 45, - targetY = 9, - ), + targetY = 9), WarpTile( x = 48, y = 17, @@ -34700,8 +30600,7 @@ object MapManager { targetBankId = 74, targetMapId = 24, targetX = 42, - targetY = 13, - ), + targetY = 13), ), npcs = emptyList(), bgEvents = emptyList(), @@ -34713,17 +30612,13 @@ object MapManager { mapId = 25, width = 34, height = 24, - paletteIdx1 = 128, - paletteIdx2 = 94, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 129, + unknownShort = 430, + unknownByte = 197, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -34738,8 +30633,7 @@ object MapManager { targetBankId = 74, targetMapId = 24, targetX = 18, - targetY = 1, - ), + targetY = 1), WarpTile( x = 12, y = 1, @@ -34747,8 +30641,7 @@ object MapManager { targetBankId = 74, targetMapId = 24, targetX = 12, - targetY = 1, - ), + targetY = 1), WarpTile( x = 3, y = 3, @@ -34756,8 +30649,7 @@ object MapManager { targetBankId = 74, targetMapId = 24, targetX = 3, - targetY = 3, - ), + targetY = 3), WarpTile( x = 31, y = 8, @@ -34765,8 +30657,7 @@ object MapManager { targetBankId = 74, targetMapId = 25, targetX = 5, - targetY = 8, - ), + targetY = 8), WarpTile( x = 8, y = 8, @@ -34774,8 +30665,7 @@ object MapManager { targetBankId = 74, targetMapId = 25, targetX = 31, - targetY = 17, - ), + targetY = 17), WarpTile( x = 5, y = 8, @@ -34783,8 +30673,7 @@ object MapManager { targetBankId = 74, targetMapId = 25, targetX = 31, - targetY = 8, - ), + targetY = 8), WarpTile( x = 18, y = 13, @@ -34792,8 +30681,7 @@ object MapManager { targetBankId = 74, targetMapId = 25, targetX = 12, - targetY = 13, - ), + targetY = 13), WarpTile( x = 12, y = 13, @@ -34801,8 +30689,7 @@ object MapManager { targetBankId = 74, targetMapId = 25, targetX = 18, - targetY = 13, - ), + targetY = 13), WarpTile( x = 31, y = 17, @@ -34810,8 +30697,7 @@ object MapManager { targetBankId = 74, targetMapId = 25, targetX = 8, - targetY = 8, - ), + targetY = 8), WarpTile( x = 32, y = 20, @@ -34819,8 +30705,7 @@ object MapManager { targetBankId = 74, targetMapId = 24, targetX = 31, - targetY = 4, - ), + targetY = 4), ), npcs = emptyList(), bgEvents = emptyList(), @@ -34832,17 +30717,13 @@ object MapManager { mapId = 26, width = 14, height = 9, - paletteIdx1 = 120, - paletteIdx2 = 114, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 144, + unknownShort = 411, + unknownByte = 69, borderTiles = listOf( - Tile2D(0x0213, 0), - Tile2D(0x0213, 0), - Tile2D(0x0213, 0), - Tile2D(0x0213, 0), - ), + Tile2D(0x0213, 0), Tile2D(0x0213, 0), Tile2D(0x0213, 0), Tile2D(0x0213, 0)), lighting = Lighting.REGULAR, weather = Weather.UNDERWATER_MIST, mapType = MapType.UNDERWATER, @@ -34857,8 +30738,8 @@ object MapManager { targetBankId = 50, targetMapId = 53, targetX = 38, - targetY = 26, - )), + targetY = 26), + ), npcs = emptyList(), bgEvents = emptyList(), ), @@ -34869,17 +30750,13 @@ object MapManager { mapId = 27, width = 20, height = 20, - paletteIdx1 = 134, - paletteIdx2 = 112, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 119, + unknownShort = 406, + unknownByte = 68, borderTiles = listOf( - Tile2D(0x02F1, 0), - Tile2D(0x02F1, 0), - Tile2D(0x02F1, 0), - Tile2D(0x02F1, 0), - ), + Tile2D(0x02F1, 0), Tile2D(0x02F1, 0), Tile2D(0x02F1, 0), Tile2D(0x02F1, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -34894,8 +30771,7 @@ object MapManager { targetBankId = 50, targetMapId = 53, targetX = 38, - targetY = 26, - ), + targetY = 26), WarpTile( x = 10, y = 1, @@ -34903,8 +30779,7 @@ object MapManager { targetBankId = 74, targetMapId = 28, targetX = 5, - targetY = 18, - ), + targetY = 18), ), npcs = emptyList(), bgEvents = emptyList(), @@ -34916,17 +30791,13 @@ object MapManager { mapId = 28, width = 20, height = 21, - paletteIdx1 = 134, - paletteIdx2 = 112, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 119, + unknownShort = 406, + unknownByte = 68, borderTiles = listOf( - Tile2D(0x02F1, 0), - Tile2D(0x02F1, 0), - Tile2D(0x02F1, 0), - Tile2D(0x02F1, 0), - ), + Tile2D(0x02F1, 0), Tile2D(0x02F1, 0), Tile2D(0x02F1, 0), Tile2D(0x02F1, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -34941,8 +30812,7 @@ object MapManager { targetBankId = 74, targetMapId = 27, targetX = 10, - targetY = 1, - ), + targetY = 1), WarpTile( x = 17, y = 13, @@ -34950,8 +30820,7 @@ object MapManager { targetBankId = 74, targetMapId = 32, targetX = 4, - targetY = 1, - ), + targetY = 1), WarpTile( x = 6, y = 2, @@ -34959,8 +30828,7 @@ object MapManager { targetBankId = 74, targetMapId = 29, targetX = 10, - targetY = 7, - ), + targetY = 7), ), npcs = emptyList(), bgEvents = emptyList(), @@ -34972,17 +30840,13 @@ object MapManager { mapId = 29, width = 18, height = 12, - paletteIdx1 = 134, - paletteIdx2 = 112, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 119, + unknownShort = 406, + unknownByte = 68, borderTiles = listOf( - Tile2D(0x02F1, 0), - Tile2D(0x02F1, 0), - Tile2D(0x02F1, 0), - Tile2D(0x02F1, 0), - ), + Tile2D(0x02F1, 0), Tile2D(0x02F1, 0), Tile2D(0x02F1, 0), Tile2D(0x02F1, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -34997,8 +30861,7 @@ object MapManager { targetBankId = 74, targetMapId = 28, targetX = 6, - targetY = 2, - ), + targetY = 2), WarpTile( x = 4, y = 10, @@ -35006,8 +30869,7 @@ object MapManager { targetBankId = 74, targetMapId = 31, targetX = 13, - targetY = 1, - ), + targetY = 1), WarpTile( x = 6, y = 1, @@ -35015,8 +30877,7 @@ object MapManager { targetBankId = 74, targetMapId = 33, targetX = 11, - targetY = 21, - ), + targetY = 21), WarpTile( x = 11, y = 1, @@ -35024,8 +30885,7 @@ object MapManager { targetBankId = 74, targetMapId = 34, targetX = 3, - targetY = 23, - ), + targetY = 23), ), npcs = emptyList(), bgEvents = emptyList(), @@ -35037,17 +30897,13 @@ object MapManager { mapId = 30, width = 16, height = 17, - paletteIdx1 = 134, - paletteIdx2 = 112, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 119, + unknownShort = 406, + unknownByte = 68, borderTiles = listOf( - Tile2D(0x02F1, 0), - Tile2D(0x02F1, 0), - Tile2D(0x02F1, 0), - Tile2D(0x02F1, 0), - ), + Tile2D(0x02F1, 0), Tile2D(0x02F1, 0), Tile2D(0x02F1, 0), Tile2D(0x02F1, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -35062,8 +30918,7 @@ object MapManager { targetBankId = 74, targetMapId = 35, targetX = 5, - targetY = 12, - ), + targetY = 12), WarpTile( x = 9, y = 13, @@ -35071,8 +30926,7 @@ object MapManager { targetBankId = 74, targetMapId = 34, targetX = 5, - targetY = 1, - ), + targetY = 1), WarpTile( x = 4, y = 15, @@ -35080,8 +30934,7 @@ object MapManager { targetBankId = 74, targetMapId = 33, targetX = 4, - targetY = 1, - ), + targetY = 1), ), npcs = emptyList(), bgEvents = emptyList(), @@ -35093,17 +30946,13 @@ object MapManager { mapId = 31, width = 18, height = 19, - paletteIdx1 = 134, - paletteIdx2 = 112, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 119, + unknownShort = 406, + unknownByte = 68, borderTiles = listOf( - Tile2D(0x02F1, 0), - Tile2D(0x02F1, 0), - Tile2D(0x02F1, 0), - Tile2D(0x02F1, 0), - ), + Tile2D(0x02F1, 0), Tile2D(0x02F1, 0), Tile2D(0x02F1, 0), Tile2D(0x02F1, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -35118,8 +30967,7 @@ object MapManager { targetBankId = 74, targetMapId = 29, targetX = 4, - targetY = 10, - ), + targetY = 10), WarpTile( x = 4, y = 1, @@ -35127,8 +30975,7 @@ object MapManager { targetBankId = 74, targetMapId = 32, targetX = 15, - targetY = 12, - ), + targetY = 12), WarpTile( x = 9, y = 10, @@ -35136,8 +30983,7 @@ object MapManager { targetBankId = 74, targetMapId = 32, targetX = 7, - targetY = 17, - ), + targetY = 17), WarpTile( x = 10, y = 15, @@ -35145,8 +30991,7 @@ object MapManager { targetBankId = 74, targetMapId = 27, targetX = 10, - targetY = 1, - ), + targetY = 1), ), npcs = emptyList(), bgEvents = emptyList(), @@ -35158,17 +31003,13 @@ object MapManager { mapId = 32, width = 20, height = 20, - paletteIdx1 = 134, - paletteIdx2 = 112, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 119, + unknownShort = 406, + unknownByte = 68, borderTiles = listOf( - Tile2D(0x02F1, 0), - Tile2D(0x02F1, 0), - Tile2D(0x02F1, 0), - Tile2D(0x02F1, 0), - ), + Tile2D(0x02F1, 0), Tile2D(0x02F1, 0), Tile2D(0x02F1, 0), Tile2D(0x02F1, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -35183,8 +31024,7 @@ object MapManager { targetBankId = 74, targetMapId = 28, targetX = 17, - targetY = 13, - ), + targetY = 13), WarpTile( x = 15, y = 12, @@ -35192,8 +31032,7 @@ object MapManager { targetBankId = 74, targetMapId = 31, targetX = 4, - targetY = 1, - ), + targetY = 1), WarpTile( x = 7, y = 17, @@ -35201,8 +31040,7 @@ object MapManager { targetBankId = 74, targetMapId = 31, targetX = 9, - targetY = 10, - ), + targetY = 10), ), npcs = emptyList(), bgEvents = emptyList(), @@ -35214,17 +31052,13 @@ object MapManager { mapId = 33, width = 24, height = 23, - paletteIdx1 = 112, - paletteIdx2 = 148, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 112, + unknownShort = 406, + unknownByte = 68, borderTiles = listOf( - Tile2D(0x027E, 0), - Tile2D(0x027E, 0), - Tile2D(0x027E, 0), - Tile2D(0x027E, 0), - ), + Tile2D(0x027E, 0), Tile2D(0x027E, 0), Tile2D(0x027E, 0), Tile2D(0x027E, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -35239,8 +31073,7 @@ object MapManager { targetBankId = 74, targetMapId = 29, targetX = 6, - targetY = 1, - ), + targetY = 1), WarpTile( x = 4, y = 1, @@ -35248,8 +31081,7 @@ object MapManager { targetBankId = 74, targetMapId = 30, targetX = 4, - targetY = 15, - ), + targetY = 15), WarpTile( x = 14, y = 8, @@ -35257,8 +31089,7 @@ object MapManager { targetBankId = 74, targetMapId = 27, targetX = 10, - targetY = 1, - ), + targetY = 1), ), npcs = emptyList(), bgEvents = emptyList(), @@ -35270,17 +31101,13 @@ object MapManager { mapId = 34, width = 23, height = 25, - paletteIdx1 = 112, - paletteIdx2 = 148, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 112, + unknownShort = 406, + unknownByte = 68, borderTiles = listOf( - Tile2D(0x027E, 0), - Tile2D(0x027E, 0), - Tile2D(0x027E, 0), - Tile2D(0x027E, 0), - ), + Tile2D(0x027E, 0), Tile2D(0x027E, 0), Tile2D(0x027E, 0), Tile2D(0x027E, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -35295,8 +31122,7 @@ object MapManager { targetBankId = 74, targetMapId = 29, targetX = 11, - targetY = 1, - ), + targetY = 1), WarpTile( x = 5, y = 1, @@ -35304,8 +31130,7 @@ object MapManager { targetBankId = 74, targetMapId = 30, targetX = 9, - targetY = 13, - ), + targetY = 13), ), npcs = emptyList(), bgEvents = emptyList(), @@ -35317,17 +31142,13 @@ object MapManager { mapId = 35, width = 11, height = 14, - paletteIdx1 = 134, - paletteIdx2 = 112, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 119, + unknownShort = 406, + unknownByte = 68, borderTiles = listOf( - Tile2D(0x02F1, 0), - Tile2D(0x02F1, 0), - Tile2D(0x02F1, 0), - Tile2D(0x02F1, 0), - ), + Tile2D(0x02F1, 0), Tile2D(0x02F1, 0), Tile2D(0x02F1, 0), Tile2D(0x02F1, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -35342,8 +31163,7 @@ object MapManager { targetBankId = 74, targetMapId = 36, targetX = 5, - targetY = 4, - ), + targetY = 4), WarpTile( x = 5, y = 12, @@ -35351,8 +31171,7 @@ object MapManager { targetBankId = 74, targetMapId = 30, targetX = 8, - targetY = 1, - ), + targetY = 1), ), npcs = emptyList(), bgEvents = emptyList(), @@ -35364,17 +31183,13 @@ object MapManager { mapId = 36, width = 27, height = 46, - paletteIdx1 = 134, - paletteIdx2 = 112, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 119, + unknownShort = 406, + unknownByte = 68, borderTiles = listOf( - Tile2D(0x02F1, 0), - Tile2D(0x02F1, 0), - Tile2D(0x02F1, 0), - Tile2D(0x02F1, 0), - ), + Tile2D(0x02F1, 0), Tile2D(0x02F1, 0), Tile2D(0x02F1, 0), Tile2D(0x02F1, 0)), lighting = Lighting.REGULAR, weather = Weather.STEADY_MIST, mapType = MapType.UNDERGROUND, @@ -35389,8 +31204,8 @@ object MapManager { targetBankId = 74, targetMapId = 35, targetX = 5, - targetY = 2, - )), + targetY = 2), + ), npcs = emptyList(), bgEvents = emptyList(), ), @@ -35401,17 +31216,13 @@ object MapManager { mapId = 37, width = 19, height = 26, - paletteIdx1 = 134, - paletteIdx2 = 112, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 119, + unknownShort = 386, + unknownByte = 72, borderTiles = listOf( - Tile2D(0x0333, 0), - Tile2D(0x0333, 0), - Tile2D(0x0333, 0), - Tile2D(0x0333, 0), - ), + Tile2D(0x0333, 0), Tile2D(0x0333, 0), Tile2D(0x0333, 0), Tile2D(0x0333, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -35426,8 +31237,7 @@ object MapManager { targetBankId = 50, targetMapId = 7, targetX = 31, - targetY = 16, - ), + targetY = 16), WarpTile( x = 9, y = 5, @@ -35435,8 +31245,7 @@ object MapManager { targetBankId = 74, targetMapId = 38, targetX = 11, - targetY = 17, - ), + targetY = 17), ), npcs = emptyList(), bgEvents = emptyList(), @@ -35448,17 +31257,13 @@ object MapManager { mapId = 38, width = 23, height = 23, - paletteIdx1 = 134, - paletteIdx2 = 112, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 119, + unknownShort = 386, + unknownByte = 72, borderTiles = listOf( - Tile2D(0x0333, 0), - Tile2D(0x0333, 0), - Tile2D(0x0333, 0), - Tile2D(0x0333, 0), - ), + Tile2D(0x0333, 0), Tile2D(0x0333, 0), Tile2D(0x0333, 0), Tile2D(0x0333, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -35473,8 +31278,7 @@ object MapManager { targetBankId = 74, targetMapId = 37, targetX = 9, - targetY = 5, - ), + targetY = 5), WarpTile( x = 14, y = 5, @@ -35482,31 +31286,25 @@ object MapManager { targetBankId = 74, targetMapId = 42, targetX = 9, - targetY = 3, - ), + targetY = 3), ), npcs = emptyList(), bgEvents = emptyList(), ), - // CaveOfOrigin_UnusedRubySapphireMap1 - // (MAP_CAVE_OF_ORIGIN_UNUSED_RUBY_SAPPHIRE_MAP1) + // CaveOfOrigin_UnusedRubySapphireMap1 (MAP_CAVE_OF_ORIGIN_UNUSED_RUBY_SAPPHIRE_MAP1) MapDef( regionId = 1, bankId = 74, mapId = 39, width = 23, height = 23, - paletteIdx1 = 134, - paletteIdx2 = 112, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 119, + unknownShort = 386, + unknownByte = 72, borderTiles = listOf( - Tile2D(0x0333, 0), - Tile2D(0x0333, 0), - Tile2D(0x0333, 0), - Tile2D(0x0333, 0), - ), + Tile2D(0x0333, 0), Tile2D(0x0333, 0), Tile2D(0x0333, 0), Tile2D(0x0333, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -35521,8 +31319,7 @@ object MapManager { targetBankId = 74, targetMapId = 38, targetX = 14, - targetY = 5, - ), + targetY = 5), WarpTile( x = 5, y = 11, @@ -35530,31 +31327,25 @@ object MapManager { targetBankId = 74, targetMapId = 40, targetX = 5, - targetY = 10, - ), + targetY = 10), ), npcs = emptyList(), bgEvents = emptyList(), ), - // CaveOfOrigin_UnusedRubySapphireMap2 - // (MAP_CAVE_OF_ORIGIN_UNUSED_RUBY_SAPPHIRE_MAP2) + // CaveOfOrigin_UnusedRubySapphireMap2 (MAP_CAVE_OF_ORIGIN_UNUSED_RUBY_SAPPHIRE_MAP2) MapDef( regionId = 1, bankId = 74, mapId = 40, width = 21, height = 21, - paletteIdx1 = 134, - paletteIdx2 = 112, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 119, + unknownShort = 386, + unknownByte = 72, borderTiles = listOf( - Tile2D(0x0323, 0), - Tile2D(0x0323, 0), - Tile2D(0x0323, 0), - Tile2D(0x0323, 0), - ), + Tile2D(0x0323, 0), Tile2D(0x0323, 0), Tile2D(0x0323, 0), Tile2D(0x0323, 0)), lighting = Lighting.REGULAR, weather = Weather.STEADY_MIST, mapType = MapType.UNDERGROUND, @@ -35569,8 +31360,7 @@ object MapManager { targetBankId = 74, targetMapId = 39, targetX = 5, - targetY = 11, - ), + targetY = 11), WarpTile( x = 8, y = 14, @@ -35578,31 +31368,25 @@ object MapManager { targetBankId = 74, targetMapId = 41, targetX = 7, - targetY = 14, - ), + targetY = 14), ), npcs = emptyList(), bgEvents = emptyList(), ), - // CaveOfOrigin_UnusedRubySapphireMap3 - // (MAP_CAVE_OF_ORIGIN_UNUSED_RUBY_SAPPHIRE_MAP3) + // CaveOfOrigin_UnusedRubySapphireMap3 (MAP_CAVE_OF_ORIGIN_UNUSED_RUBY_SAPPHIRE_MAP3) MapDef( regionId = 1, bankId = 74, mapId = 41, width = 19, height = 21, - paletteIdx1 = 134, - paletteIdx2 = 112, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 119, + unknownShort = 386, + unknownByte = 72, borderTiles = listOf( - Tile2D(0x0333, 0), - Tile2D(0x0333, 0), - Tile2D(0x0333, 0), - Tile2D(0x0333, 0), - ), + Tile2D(0x0333, 0), Tile2D(0x0333, 0), Tile2D(0x0333, 0), Tile2D(0x0333, 0)), lighting = Lighting.REGULAR, weather = Weather.STEADY_MIST, mapType = MapType.UNDERGROUND, @@ -35617,8 +31401,7 @@ object MapManager { targetBankId = 74, targetMapId = 40, targetX = 8, - targetY = 14, - ), + targetY = 14), WarpTile( x = 12, y = 6, @@ -35626,8 +31409,7 @@ object MapManager { targetBankId = 74, targetMapId = 42, targetX = 9, - targetY = 3, - ), + targetY = 3), ), npcs = emptyList(), bgEvents = emptyList(), @@ -35639,17 +31421,13 @@ object MapManager { mapId = 42, width = 19, height = 19, - paletteIdx1 = 134, - paletteIdx2 = 112, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 119, + unknownShort = 0, + unknownByte = 72, borderTiles = listOf( - Tile2D(0x0333, 0), - Tile2D(0x0333, 0), - Tile2D(0x0333, 0), - Tile2D(0x0333, 0), - ), + Tile2D(0x0333, 0), Tile2D(0x0333, 0), Tile2D(0x0333, 0), Tile2D(0x0333, 0)), lighting = Lighting.REGULAR, weather = Weather.STEADY_MIST, mapType = MapType.UNDERGROUND, @@ -35664,8 +31442,8 @@ object MapManager { targetBankId = 74, targetMapId = 38, targetX = 14, - targetY = 5, - )), + targetY = 5), + ), npcs = emptyList(), bgEvents = emptyList(), ), @@ -35676,17 +31454,13 @@ object MapManager { mapId = 43, width = 46, height = 45, - paletteIdx1 = 134, - paletteIdx2 = 112, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 119, + unknownShort = 429, + unknownByte = 70, borderTiles = listOf( - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - ), + Tile2D(0x0211, 0), Tile2D(0x0211, 0), Tile2D(0x0211, 0), Tile2D(0x0211, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -35701,8 +31475,7 @@ object MapManager { targetBankId = 50, targetMapId = 8, targetX = 18, - targetY = 41, - ), + targetY = 41), WarpTile( x = 39, y = 5, @@ -35710,8 +31483,7 @@ object MapManager { targetBankId = 50, targetMapId = 8, targetX = 18, - targetY = 27, - ), + targetY = 27), WarpTile( x = 21, y = 32, @@ -35719,8 +31491,7 @@ object MapManager { targetBankId = 74, targetMapId = 44, targetX = 20, - targetY = 21, - ), + targetY = 21), WarpTile( x = 42, y = 38, @@ -35728,8 +31499,7 @@ object MapManager { targetBankId = 74, targetMapId = 44, targetX = 42, - targetY = 25, - ), + targetY = 25), WarpTile( x = 9, y = 14, @@ -35737,8 +31507,7 @@ object MapManager { targetBankId = 74, targetMapId = 44, targetX = 8, - targetY = 3, - ), + targetY = 3), ), npcs = listOf( @@ -35752,9 +31521,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 1, - facing = 1, - script = "VictoryRoad_1F_EventScript_Edgar", - ), + facing = 0, + script = "VictoryRoad_1F_EventScript_Edgar"), NpcDef( entityIdx = 1, graphicsId = 34, @@ -35766,8 +31534,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 2, - script = "VictoryRoad_1F_EventScript_Hope", - ), + script = "VictoryRoad_1F_EventScript_Hope"), NpcDef( entityIdx = 2, graphicsId = 33, @@ -35779,8 +31546,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "VictoryRoad_1F_EventScript_Albert", - ), + script = "VictoryRoad_1F_EventScript_Albert"), NpcDef( entityIdx = 7, graphicsId = 34, @@ -35792,8 +31558,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 3, - script = "VictoryRoad_1F_EventScript_Katelynn", - ), + script = "VictoryRoad_1F_EventScript_Katelynn"), NpcDef( entityIdx = 8, graphicsId = 33, @@ -35805,8 +31570,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 2, - script = "VictoryRoad_1F_EventScript_Quincy", - ), + script = "VictoryRoad_1F_EventScript_Quincy"), ), bgEvents = listOf( @@ -35814,8 +31578,8 @@ object MapManager { x = 30, y = 39, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - )), + script = "undefined"), + ), ), // VictoryRoad_B1F (MAP_VICTORY_ROAD_B1F) MapDef( @@ -35824,17 +31588,13 @@ object MapManager { mapId = 44, width = 46, height = 31, - paletteIdx1 = 134, - paletteIdx2 = 112, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 119, + unknownShort = 429, + unknownByte = 70, borderTiles = listOf( - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - ), + Tile2D(0x0211, 0), Tile2D(0x0211, 0), Tile2D(0x0211, 0), Tile2D(0x0211, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -35849,8 +31609,7 @@ object MapManager { targetBankId = 74, targetMapId = 45, targetX = 30, - targetY = 25, - ), + targetY = 25), WarpTile( x = 17, y = 16, @@ -35858,8 +31617,7 @@ object MapManager { targetBankId = 74, targetMapId = 45, targetX = 19, - targetY = 12, - ), + targetY = 12), WarpTile( x = 42, y = 25, @@ -35867,8 +31625,7 @@ object MapManager { targetBankId = 74, targetMapId = 43, targetX = 42, - targetY = 38, - ), + targetY = 38), WarpTile( x = 42, y = 2, @@ -35876,8 +31633,7 @@ object MapManager { targetBankId = 74, targetMapId = 45, targetX = 43, - targetY = 2, - ), + targetY = 2), WarpTile( x = 8, y = 3, @@ -35885,8 +31641,7 @@ object MapManager { targetBankId = 74, targetMapId = 43, targetX = 9, - targetY = 14, - ), + targetY = 14), WarpTile( x = 20, y = 21, @@ -35894,8 +31649,7 @@ object MapManager { targetBankId = 74, targetMapId = 43, targetX = 21, - targetY = 32, - ), + targetY = 32), WarpTile( x = 5, y = 26, @@ -35903,8 +31657,7 @@ object MapManager { targetBankId = 74, targetMapId = 45, targetX = 5, - targetY = 26, - ), + targetY = 26), ), npcs = listOf( @@ -35919,8 +31672,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 2, - script = "VictoryRoad_B1F_EventScript_Samuel", - ), + script = "VictoryRoad_B1F_EventScript_Samuel"), NpcDef( entityIdx = 14, graphicsId = 34, @@ -35931,9 +31683,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 1, - facing = 0, - script = "VictoryRoad_B1F_EventScript_Shannon", - ), + facing = 1, + script = "VictoryRoad_B1F_EventScript_Shannon"), NpcDef( entityIdx = 15, graphicsId = 34, @@ -35945,8 +31696,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 2, - script = "VictoryRoad_B1F_EventScript_Michelle", - ), + script = "VictoryRoad_B1F_EventScript_Michelle"), NpcDef( entityIdx = 19, graphicsId = 33, @@ -35957,9 +31707,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 1, - facing = 1, - script = "VictoryRoad_B1F_EventScript_Mitchell", - ), + facing = 0, + script = "VictoryRoad_B1F_EventScript_Mitchell"), NpcDef( entityIdx = 20, graphicsId = 34, @@ -35971,8 +31720,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "VictoryRoad_B1F_EventScript_Halle", - ), + script = "VictoryRoad_B1F_EventScript_Halle"), ), bgEvents = emptyList(), ), @@ -35983,17 +31731,13 @@ object MapManager { mapId = 45, width = 46, height = 31, - paletteIdx1 = 134, - paletteIdx2 = 112, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 119, + unknownShort = 429, + unknownByte = 70, borderTiles = listOf( - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - ), + Tile2D(0x0211, 0), Tile2D(0x0211, 0), Tile2D(0x0211, 0), Tile2D(0x0211, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -36008,8 +31752,7 @@ object MapManager { targetBankId = 74, targetMapId = 44, targetX = 30, - targetY = 25, - ), + targetY = 25), WarpTile( x = 43, y = 2, @@ -36017,8 +31760,7 @@ object MapManager { targetBankId = 74, targetMapId = 44, targetX = 42, - targetY = 2, - ), + targetY = 2), WarpTile( x = 19, y = 12, @@ -36026,8 +31768,7 @@ object MapManager { targetBankId = 74, targetMapId = 44, targetX = 17, - targetY = 16, - ), + targetY = 16), WarpTile( x = 5, y = 26, @@ -36035,8 +31776,7 @@ object MapManager { targetBankId = 74, targetMapId = 44, targetX = 5, - targetY = 26, - ), + targetY = 26), ), npcs = listOf( @@ -36050,9 +31790,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 1, - facing = 1, - script = "VictoryRoad_B2F_EventScript_Vito", - ), + facing = 0, + script = "VictoryRoad_B2F_EventScript_Vito"), NpcDef( entityIdx = 1, graphicsId = 33, @@ -36063,9 +31802,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 1, - facing = 0, - script = "VictoryRoad_B2F_EventScript_Owen", - ), + facing = 1, + script = "VictoryRoad_B2F_EventScript_Owen"), NpcDef( entityIdx = 2, graphicsId = 34, @@ -36076,9 +31814,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 1, - facing = 1, - script = "VictoryRoad_B2F_EventScript_Caroline", - ), + facing = 0, + script = "VictoryRoad_B2F_EventScript_Caroline"), NpcDef( entityIdx = 3, graphicsId = 34, @@ -36090,8 +31827,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 2, - script = "VictoryRoad_B2F_EventScript_Julie", - ), + script = "VictoryRoad_B2F_EventScript_Julie"), NpcDef( entityIdx = 5, graphicsId = 34, @@ -36102,9 +31838,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 1, - facing = 1, - script = "VictoryRoad_B2F_EventScript_Dianne", - ), + facing = 0, + script = "VictoryRoad_B2F_EventScript_Dianne"), NpcDef( entityIdx = 6, graphicsId = 33, @@ -36115,9 +31850,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 1, - facing = 0, - script = "VictoryRoad_B2F_EventScript_Felix", - ), + facing = 1, + script = "VictoryRoad_B2F_EventScript_Felix"), ), bgEvents = listOf( @@ -36125,14 +31859,12 @@ object MapManager { x = 28, y = 5, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 37, y = 1, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), ), ), // ShoalCave_LowTideEntranceRoom (MAP_SHOAL_CAVE_LOW_TIDE_ENTRANCE_ROOM) @@ -36142,17 +31874,13 @@ object MapManager { mapId = 46, width = 35, height = 35, - paletteIdx1 = 134, - paletteIdx2 = 112, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 119, + unknownShort = 432, + unknownByte = 67, borderTiles = listOf( - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - ), + Tile2D(0x0211, 0), Tile2D(0x0211, 0), Tile2D(0x0211, 0), Tile2D(0x0211, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -36167,8 +31895,7 @@ object MapManager { targetBankId = 50, targetMapId = 40, targetX = 22, - targetY = 19, - ), + targetY = 19), WarpTile( x = 19, y = 5, @@ -36176,8 +31903,7 @@ object MapManager { targetBankId = 74, targetMapId = 47, targetX = 34, - targetY = 29, - ), + targetY = 29), WarpTile( x = 6, y = 2, @@ -36185,8 +31911,7 @@ object MapManager { targetBankId = 74, targetMapId = 47, targetX = 14, - targetY = 33, - ), + targetY = 33), WarpTile( x = 27, y = 2, @@ -36194,8 +31919,7 @@ object MapManager { targetBankId = 74, targetMapId = 47, targetX = 40, - targetY = 33, - ), + targetY = 33), ), npcs = listOf( @@ -36210,8 +31934,8 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 2, - script = "ShoalCave_LowTideEntranceRoom_EventScript_ShellBellExpert", - )), + script = "ShoalCave_LowTideEntranceRoom_EventScript_ShellBellExpert"), + ), bgEvents = emptyList(), ), // ShoalCave_LowTideInnerRoom (MAP_SHOAL_CAVE_LOW_TIDE_INNER_ROOM) @@ -36221,17 +31945,13 @@ object MapManager { mapId = 47, width = 46, height = 38, - paletteIdx1 = 134, - paletteIdx2 = 112, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 119, + unknownShort = 432, + unknownByte = 67, borderTiles = listOf( - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - ), + Tile2D(0x0211, 0), Tile2D(0x0211, 0), Tile2D(0x0211, 0), Tile2D(0x0211, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -36246,8 +31966,7 @@ object MapManager { targetBankId = 74, targetMapId = 46, targetX = 19, - targetY = 5, - ), + targetY = 5), WarpTile( x = 38, y = 15, @@ -36255,8 +31974,7 @@ object MapManager { targetBankId = 74, targetMapId = 48, targetX = 3, - targetY = 12, - ), + targetY = 12), WarpTile( x = 42, y = 4, @@ -36264,8 +31982,7 @@ object MapManager { targetBankId = 74, targetMapId = 48, targetX = 7, - targetY = 4, - ), + targetY = 4), WarpTile( x = 19, y = 14, @@ -36273,8 +31990,7 @@ object MapManager { targetBankId = 74, targetMapId = 49, targetX = 7, - targetY = 2, - ), + targetY = 2), WarpTile( x = 15, y = 19, @@ -36282,8 +31998,7 @@ object MapManager { targetBankId = 74, targetMapId = 49, targetX = 2, - targetY = 6, - ), + targetY = 6), WarpTile( x = 30, y = 25, @@ -36291,8 +32006,7 @@ object MapManager { targetBankId = 74, targetMapId = 49, targetX = 19, - targetY = 11, - ), + targetY = 11), WarpTile( x = 14, y = 33, @@ -36300,8 +32014,7 @@ object MapManager { targetBankId = 74, targetMapId = 46, targetX = 6, - targetY = 2, - ), + targetY = 2), WarpTile( x = 40, y = 33, @@ -36309,8 +32022,7 @@ object MapManager { targetBankId = 74, targetMapId = 46, targetX = 27, - targetY = 2, - ), + targetY = 2), ), npcs = emptyList(), bgEvents = @@ -36319,38 +32031,32 @@ object MapManager { x = 31, y = 8, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "ShoalCave_LowTideInnerRoom_EventScript_ShoalSalt1", - ), + script = "ShoalCave_LowTideInnerRoom_EventScript_ShoalSalt1"), BgEventDef( x = 14, y = 26, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "ShoalCave_LowTideInnerRoom_EventScript_ShoalSalt2", - ), + script = "ShoalCave_LowTideInnerRoom_EventScript_ShoalSalt2"), BgEventDef( x = 41, y = 20, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "ShoalCave_LowTideInnerRoom_EventScript_ShoalShell1", - ), + script = "ShoalCave_LowTideInnerRoom_EventScript_ShoalShell1"), BgEventDef( x = 41, y = 10, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "ShoalCave_LowTideInnerRoom_EventScript_ShoalShell2", - ), + script = "ShoalCave_LowTideInnerRoom_EventScript_ShoalShell2"), BgEventDef( x = 6, y = 9, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "ShoalCave_LowTideInnerRoom_EventScript_ShoalShell3", - ), + script = "ShoalCave_LowTideInnerRoom_EventScript_ShoalShell3"), BgEventDef( x = 16, y = 13, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "ShoalCave_LowTideInnerRoom_EventScript_ShoalShell4", - ), + script = "ShoalCave_LowTideInnerRoom_EventScript_ShoalShell4"), ), ), // ShoalCave_LowTideStairsRoom (MAP_SHOAL_CAVE_LOW_TIDE_STAIRS_ROOM) @@ -36360,17 +32066,13 @@ object MapManager { mapId = 48, width = 21, height = 15, - paletteIdx1 = 134, - paletteIdx2 = 112, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 119, + unknownShort = 432, + unknownByte = 67, borderTiles = listOf( - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - ), + Tile2D(0x0211, 0), Tile2D(0x0211, 0), Tile2D(0x0211, 0), Tile2D(0x0211, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -36385,8 +32087,7 @@ object MapManager { targetBankId = 74, targetMapId = 47, targetX = 38, - targetY = 15, - ), + targetY = 15), WarpTile( x = 7, y = 4, @@ -36394,8 +32095,7 @@ object MapManager { targetBankId = 74, targetMapId = 47, targetX = 42, - targetY = 4, - ), + targetY = 4), ), npcs = emptyList(), bgEvents = @@ -36404,8 +32104,8 @@ object MapManager { x = 11, y = 11, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "ShoalCave_LowTideStairsRoom_EventScript_ShoalSalt3", - )), + script = "ShoalCave_LowTideStairsRoom_EventScript_ShoalSalt3"), + ), ), // ShoalCave_LowTideLowerRoom (MAP_SHOAL_CAVE_LOW_TIDE_LOWER_ROOM) MapDef( @@ -36414,17 +32114,13 @@ object MapManager { mapId = 49, width = 31, height = 14, - paletteIdx1 = 134, - paletteIdx2 = 112, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 119, + unknownShort = 432, + unknownByte = 67, borderTiles = listOf( - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - ), + Tile2D(0x0211, 0), Tile2D(0x0211, 0), Tile2D(0x0211, 0), Tile2D(0x0211, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -36439,8 +32135,7 @@ object MapManager { targetBankId = 74, targetMapId = 47, targetX = 19, - targetY = 14, - ), + targetY = 14), WarpTile( x = 2, y = 6, @@ -36448,8 +32143,7 @@ object MapManager { targetBankId = 74, targetMapId = 47, targetX = 15, - targetY = 19, - ), + targetY = 19), WarpTile( x = 19, y = 11, @@ -36457,8 +32151,7 @@ object MapManager { targetBankId = 74, targetMapId = 47, targetX = 30, - targetY = 25, - ), + targetY = 25), WarpTile( x = 28, y = 11, @@ -36466,8 +32159,7 @@ object MapManager { targetBankId = 74, targetMapId = 83, targetX = 17, - targetY = 10, - ), + targetY = 10), ), npcs = listOf( @@ -36482,16 +32174,16 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "ShoalCave_LowTideLowerRoom_EventScript_BlackBelt", - )), + script = "ShoalCave_LowTideLowerRoom_EventScript_BlackBelt"), + ), bgEvents = listOf( BgEventDef( x = 18, y = 2, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "ShoalCave_LowTideLowerRoom_EventScript_ShoalSalt4", - )), + script = "ShoalCave_LowTideLowerRoom_EventScript_ShoalSalt4"), + ), ), // ShoalCave_HighTideEntranceRoom (MAP_SHOAL_CAVE_HIGH_TIDE_ENTRANCE_ROOM) MapDef( @@ -36500,17 +32192,13 @@ object MapManager { mapId = 50, width = 35, height = 35, - paletteIdx1 = 134, - paletteIdx2 = 112, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 119, + unknownShort = 432, + unknownByte = 67, borderTiles = listOf( - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - ), + Tile2D(0x0211, 0), Tile2D(0x0211, 0), Tile2D(0x0211, 0), Tile2D(0x0211, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -36527,17 +32215,13 @@ object MapManager { mapId = 51, width = 46, height = 38, - paletteIdx1 = 134, - paletteIdx2 = 112, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 119, + unknownShort = 432, + unknownByte = 67, borderTiles = listOf( - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - ), + Tile2D(0x0211, 0), Tile2D(0x0211, 0), Tile2D(0x0211, 0), Tile2D(0x0211, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -36554,17 +32238,13 @@ object MapManager { mapId = 52, width = 9, height = 9, - paletteIdx1 = 128, - paletteIdx2 = 94, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 129, + unknownShort = 432, + unknownByte = 62, borderTiles = listOf( - Tile2D(0x0071, 0), - Tile2D(0x0071, 0), - Tile2D(0x0071, 0), - Tile2D(0x0071, 0), - ), + Tile2D(0x0071, 0), Tile2D(0x0071, 0), Tile2D(0x0071, 0), Tile2D(0x0071, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -36579,8 +32259,7 @@ object MapManager { targetBankId = 50, targetMapId = 25, targetX = 35, - targetY = 24, - ), + targetY = 24), WarpTile( x = 4, y = 1, @@ -36588,8 +32267,7 @@ object MapManager { targetBankId = 74, targetMapId = 53, targetX = 32, - targetY = 33, - ), + targetY = 33), ), npcs = emptyList(), bgEvents = emptyList(), @@ -36601,17 +32279,13 @@ object MapManager { mapId = 53, width = 41, height = 41, - paletteIdx1 = 128, - paletteIdx2 = 110, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 130, + unknownShort = 432, + unknownByte = 62, borderTiles = listOf( - Tile2D(0x0208, 0), - Tile2D(0x0208, 0), - Tile2D(0x0208, 0), - Tile2D(0x0208, 0), - ), + Tile2D(0x0208, 0), Tile2D(0x0208, 0), Tile2D(0x0208, 0), Tile2D(0x0208, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -36626,8 +32300,8 @@ object MapManager { targetBankId = 74, targetMapId = 52, targetX = 4, - targetY = 1, - )), + targetY = 1), + ), npcs = emptyList(), bgEvents = listOf( @@ -36635,50 +32309,42 @@ object MapManager { x = 32, y = 4, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "NewMauville_Inside_EventScript_Generator", - ), + script = "NewMauville_Inside_EventScript_Generator"), BgEventDef( x = 32, y = 3, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "NewMauville_Inside_EventScript_Generator", - ), + script = "NewMauville_Inside_EventScript_Generator"), BgEventDef( x = 32, y = 2, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "NewMauville_Inside_EventScript_Generator", - ), + script = "NewMauville_Inside_EventScript_Generator"), BgEventDef( x = 33, y = 4, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "NewMauville_Inside_EventScript_Generator", - ), + script = "NewMauville_Inside_EventScript_Generator"), BgEventDef( x = 34, y = 4, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "NewMauville_Inside_EventScript_Generator", - ), + script = "NewMauville_Inside_EventScript_Generator"), BgEventDef( x = 35, y = 4, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "NewMauville_Inside_EventScript_Generator", - ), + script = "NewMauville_Inside_EventScript_Generator"), BgEventDef( x = 35, y = 3, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "NewMauville_Inside_EventScript_Generator", - ), + script = "NewMauville_Inside_EventScript_Generator"), BgEventDef( x = 35, y = 2, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "NewMauville_Inside_EventScript_Generator", - ), + script = "NewMauville_Inside_EventScript_Generator"), ), ), // AbandonedShip_Deck (MAP_ABANDONED_SHIP_DECK) @@ -36688,17 +32354,13 @@ object MapManager { mapId = 54, width = 23, height = 21, - paletteIdx1 = 128, - paletteIdx2 = 94, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 129, + unknownShort = 381, + unknownByte = 61, borderTiles = listOf( - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - ), + Tile2D(0x0170, 0), Tile2D(0x0170, 0), Tile2D(0x0170, 0), Tile2D(0x0170, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -36713,8 +32375,7 @@ object MapManager { targetBankId = 50, targetMapId = 23, targetX = 29, - targetY = 6, - ), + targetY = 6), WarpTile( x = 14, y = 15, @@ -36722,8 +32383,7 @@ object MapManager { targetBankId = 50, targetMapId = 23, targetX = 29, - targetY = 6, - ), + targetY = 6), WarpTile( x = 13, y = 9, @@ -36731,8 +32391,7 @@ object MapManager { targetBankId = 74, targetMapId = 55, targetX = 8, - targetY = 11, - ), + targetY = 11), WarpTile( x = 8, y = 9, @@ -36740,8 +32399,7 @@ object MapManager { targetBankId = 74, targetMapId = 55, targetX = 0, - targetY = 11, - ), + targetY = 11), WarpTile( x = 12, y = 5, @@ -36749,8 +32407,7 @@ object MapManager { targetBankId = 74, targetMapId = 63, targetX = 7, - targetY = 6, - ), + targetY = 6), ), npcs = emptyList(), bgEvents = emptyList(), @@ -36762,17 +32419,13 @@ object MapManager { mapId = 55, width = 18, height = 12, - paletteIdx1 = 125, - paletteIdx2 = 105, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 156, + unknownShort = 381, + unknownByte = 61, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.CLOUDY, mapType = MapType.UNDERGROUND, @@ -36787,8 +32440,7 @@ object MapManager { targetBankId = 74, targetMapId = 54, targetX = 13, - targetY = 9, - ), + targetY = 9), WarpTile( x = 8, y = 11, @@ -36796,8 +32448,7 @@ object MapManager { targetBankId = 74, targetMapId = 54, targetX = 13, - targetY = 9, - ), + targetY = 9), WarpTile( x = 0, y = 11, @@ -36805,8 +32456,7 @@ object MapManager { targetBankId = 74, targetMapId = 54, targetX = 8, - targetY = 9, - ), + targetY = 9), WarpTile( x = 1, y = 11, @@ -36814,8 +32464,7 @@ object MapManager { targetBankId = 74, targetMapId = 54, targetX = 8, - targetY = 9, - ), + targetY = 9), WarpTile( x = 11, y = 9, @@ -36823,8 +32472,7 @@ object MapManager { targetBankId = 74, targetMapId = 56, targetX = 4, - targetY = 16, - ), + targetY = 16), WarpTile( x = 14, y = 9, @@ -36832,8 +32480,7 @@ object MapManager { targetBankId = 74, targetMapId = 56, targetX = 13, - targetY = 16, - ), + targetY = 16), WarpTile( x = 11, y = 3, @@ -36841,8 +32488,7 @@ object MapManager { targetBankId = 74, targetMapId = 56, targetX = 4, - targetY = 1, - ), + targetY = 1), WarpTile( x = 14, y = 3, @@ -36850,8 +32496,7 @@ object MapManager { targetBankId = 74, targetMapId = 56, targetX = 13, - targetY = 1, - ), + targetY = 1), WarpTile( x = 3, y = 9, @@ -36859,8 +32504,7 @@ object MapManager { targetBankId = 74, targetMapId = 62, targetX = 4, - targetY = 16, - ), + targetY = 16), WarpTile( x = 16, y = 2, @@ -36868,8 +32512,7 @@ object MapManager { targetBankId = 74, targetMapId = 57, targetX = 8, - targetY = 2, - ), + targetY = 2), WarpTile( x = 5, y = 2, @@ -36877,8 +32520,7 @@ object MapManager { targetBankId = 74, targetMapId = 57, targetX = 0, - targetY = 2, - ), + targetY = 2), WarpTile( x = 3, y = 3, @@ -36886,8 +32528,7 @@ object MapManager { targetBankId = 74, targetMapId = 62, targetX = 4, - targetY = 1, - ), + targetY = 1), ), npcs = listOf( @@ -36902,8 +32543,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "AbandonedShip_Corridors_1F_EventScript_Youngster", - ), + script = "AbandonedShip_Corridors_1F_EventScript_Youngster"), NpcDef( entityIdx = 1, graphicsId = 54, @@ -36915,8 +32555,7 @@ object MapManager { movementRangeY = 7, trainerType = 1, facing = 0, - script = "AbandonedShip_Corridors_1F_EventScript_Charlie", - ), + script = "AbandonedShip_Corridors_1F_EventScript_Charlie"), ), bgEvents = emptyList(), ), @@ -36927,17 +32566,13 @@ object MapManager { mapId = 56, width = 18, height = 17, - paletteIdx1 = 125, - paletteIdx2 = 105, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 156, + unknownShort = 381, + unknownByte = 61, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.CLOUDY, mapType = MapType.UNDERGROUND, @@ -36952,8 +32587,7 @@ object MapManager { targetBankId = 74, targetMapId = 55, targetX = 11, - targetY = 9, - ), + targetY = 9), WarpTile( x = 5, y = 16, @@ -36961,8 +32595,7 @@ object MapManager { targetBankId = 74, targetMapId = 55, targetX = 11, - targetY = 9, - ), + targetY = 9), WarpTile( x = 4, y = 1, @@ -36970,8 +32603,7 @@ object MapManager { targetBankId = 74, targetMapId = 55, targetX = 11, - targetY = 3, - ), + targetY = 3), WarpTile( x = 13, y = 16, @@ -36979,8 +32611,7 @@ object MapManager { targetBankId = 74, targetMapId = 55, targetX = 14, - targetY = 9, - ), + targetY = 9), WarpTile( x = 13, y = 1, @@ -36988,8 +32619,7 @@ object MapManager { targetBankId = 74, targetMapId = 55, targetX = 14, - targetY = 3, - ), + targetY = 3), WarpTile( x = 14, y = 16, @@ -36997,8 +32627,7 @@ object MapManager { targetBankId = 74, targetMapId = 55, targetX = 14, - targetY = 9, - ), + targetY = 9), ), npcs = listOf( @@ -37013,8 +32642,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "AbandonedShip_Rooms_1F_EventScript_Gentleman", - ), + script = "AbandonedShip_Rooms_1F_EventScript_Gentleman"), NpcDef( entityIdx = 2, graphicsId = 45, @@ -37025,9 +32653,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 1, - facing = 1, - script = "AbandonedShip_Rooms_1F_EventScript_Thalia", - ), + facing = 0, + script = "AbandonedShip_Rooms_1F_EventScript_Thalia"), NpcDef( entityIdx = 3, graphicsId = 35, @@ -37039,8 +32666,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "AbandonedShip_Rooms_1F_EventScript_Demetrius", - ), + script = "AbandonedShip_Rooms_1F_EventScript_Demetrius"), ), bgEvents = emptyList(), ), @@ -37051,17 +32677,13 @@ object MapManager { mapId = 57, width = 13, height = 10, - paletteIdx1 = 125, - paletteIdx2 = 105, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 156, + unknownShort = 381, + unknownByte = 61, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.CLOUDY, mapType = MapType.UNDERGROUND, @@ -37076,8 +32698,7 @@ object MapManager { targetBankId = 74, targetMapId = 59, targetX = 13, - targetY = 7, - ), + targetY = 7), WarpTile( x = 3, y = 4, @@ -37085,8 +32706,7 @@ object MapManager { targetBankId = 74, targetMapId = 59, targetX = 4, - targetY = 7, - ), + targetY = 7), WarpTile( x = 5, y = 7, @@ -37094,8 +32714,7 @@ object MapManager { targetBankId = 74, targetMapId = 58, targetX = 4, - targetY = 1, - ), + targetY = 1), WarpTile( x = 8, y = 7, @@ -37103,8 +32722,7 @@ object MapManager { targetBankId = 74, targetMapId = 58, targetX = 13, - targetY = 1, - ), + targetY = 1), WarpTile( x = 11, y = 7, @@ -37112,8 +32730,7 @@ object MapManager { targetBankId = 74, targetMapId = 58, targetX = 22, - targetY = 1, - ), + targetY = 1), WarpTile( x = 11, y = 4, @@ -37121,8 +32738,7 @@ object MapManager { targetBankId = 74, targetMapId = 61, targetX = 4, - targetY = 7, - ), + targetY = 7), WarpTile( x = 0, y = 2, @@ -37130,8 +32746,7 @@ object MapManager { targetBankId = 74, targetMapId = 55, targetX = 5, - targetY = 2, - ), + targetY = 2), WarpTile( x = 8, y = 2, @@ -37139,8 +32754,7 @@ object MapManager { targetBankId = 74, targetMapId = 55, targetX = 16, - targetY = 2, - ), + targetY = 2), ), npcs = listOf( @@ -37155,8 +32769,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "AbandonedShip_Corridors_B1F_EventScript_TuberM", - ), + script = "AbandonedShip_Corridors_B1F_EventScript_TuberM"), NpcDef( entityIdx = 1, graphicsId = 49, @@ -37168,8 +32781,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "AbandonedShip_Corridors_B1F_EventScript_Duncan", - ), + script = "AbandonedShip_Corridors_B1F_EventScript_Duncan"), ), bgEvents = listOf( @@ -37177,8 +32789,8 @@ object MapManager { x = 11, y = 4, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "AbandonedShip_Corridors_B1F_EventScript_StorageRoomDoor", - )), + script = "AbandonedShip_Corridors_B1F_EventScript_StorageRoomDoor"), + ), ), // AbandonedShip_Rooms_B1F (MAP_ABANDONED_SHIP_ROOMS_B1F) MapDef( @@ -37187,17 +32799,13 @@ object MapManager { mapId = 58, width = 27, height = 8, - paletteIdx1 = 125, - paletteIdx2 = 105, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 156, + unknownShort = 381, + unknownByte = 61, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.CLOUDY, mapType = MapType.UNDERGROUND, @@ -37212,8 +32820,7 @@ object MapManager { targetBankId = 74, targetMapId = 57, targetX = 5, - targetY = 7, - ), + targetY = 7), WarpTile( x = 13, y = 1, @@ -37221,8 +32828,7 @@ object MapManager { targetBankId = 74, targetMapId = 57, targetX = 8, - targetY = 7, - ), + targetY = 7), WarpTile( x = 22, y = 1, @@ -37230,8 +32836,7 @@ object MapManager { targetBankId = 74, targetMapId = 57, targetX = 11, - targetY = 7, - ), + targetY = 7), ), npcs = listOf( @@ -37246,8 +32851,8 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 2, - script = "AbandonedShip_Rooms_B1F_EventScript_FatMan", - )), + script = "AbandonedShip_Rooms_B1F_EventScript_FatMan"), + ), bgEvents = emptyList(), ), // AbandonedShip_Rooms2_B1F (MAP_ABANDONED_SHIP_ROOMS2_B1F) @@ -37257,17 +32862,13 @@ object MapManager { mapId = 59, width = 18, height = 8, - paletteIdx1 = 125, - paletteIdx2 = 105, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 156, + unknownShort = 381, + unknownByte = 61, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.CLOUDY, mapType = MapType.UNDERGROUND, @@ -37282,8 +32883,7 @@ object MapManager { targetBankId = 74, targetMapId = 57, targetX = 3, - targetY = 4, - ), + targetY = 4), WarpTile( x = 5, y = 7, @@ -37291,8 +32891,7 @@ object MapManager { targetBankId = 74, targetMapId = 57, targetX = 3, - targetY = 4, - ), + targetY = 4), WarpTile( x = 13, y = 7, @@ -37300,8 +32899,7 @@ object MapManager { targetBankId = 74, targetMapId = 57, targetX = 6, - targetY = 4, - ), + targetY = 4), WarpTile( x = 14, y = 7, @@ -37309,8 +32907,7 @@ object MapManager { targetBankId = 74, targetMapId = 57, targetX = 6, - targetY = 4, - ), + targetY = 4), ), npcs = listOf( @@ -37325,8 +32922,8 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "AbandonedShip_Rooms2_B1F_EventScript_Camper", - )), + script = "AbandonedShip_Rooms2_B1F_EventScript_Camper"), + ), bgEvents = emptyList(), ), // AbandonedShip_Underwater1 (MAP_ABANDONED_SHIP_UNDERWATER1) @@ -37336,17 +32933,13 @@ object MapManager { mapId = 60, width = 8, height = 8, - paletteIdx1 = 125, - paletteIdx2 = 105, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 156, + unknownShort = 411, + unknownByte = 61, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.UNDERWATER_MIST, mapType = MapType.UNDERWATER, @@ -37361,8 +32954,7 @@ object MapManager { targetBankId = 74, targetMapId = 64, targetX = 3, - targetY = 1, - ), + targetY = 1), WarpTile( x = 4, y = 7, @@ -37370,8 +32962,7 @@ object MapManager { targetBankId = 74, targetMapId = 64, targetX = 3, - targetY = 1, - ), + targetY = 1), ), npcs = emptyList(), bgEvents = emptyList(), @@ -37383,17 +32974,13 @@ object MapManager { mapId = 61, width = 9, height = 8, - paletteIdx1 = 125, - paletteIdx2 = 105, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 156, + unknownShort = 381, + unknownByte = 61, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.CLOUDY, mapType = MapType.UNDERGROUND, @@ -37408,8 +32995,7 @@ object MapManager { targetBankId = 74, targetMapId = 57, targetX = 11, - targetY = 4, - ), + targetY = 4), WarpTile( x = 5, y = 7, @@ -37417,8 +33003,7 @@ object MapManager { targetBankId = 74, targetMapId = 57, targetX = 11, - targetY = 4, - ), + targetY = 4), ), npcs = emptyList(), bgEvents = emptyList(), @@ -37437,17 +33022,13 @@ object MapManager { mapId = 62, width = 9, height = 17, - paletteIdx1 = 125, - paletteIdx2 = 105, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 156, + unknownShort = 381, + unknownByte = 61, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.CLOUDY, mapType = MapType.UNDERGROUND, @@ -37462,8 +33043,7 @@ object MapManager { targetBankId = 74, targetMapId = 55, targetX = 3, - targetY = 9, - ), + targetY = 9), WarpTile( x = 5, y = 16, @@ -37471,8 +33051,7 @@ object MapManager { targetBankId = 74, targetMapId = 55, targetX = 3, - targetY = 9, - ), + targetY = 9), WarpTile( x = 4, y = 1, @@ -37480,8 +33059,7 @@ object MapManager { targetBankId = 74, targetMapId = 55, targetX = 3, - targetY = 3, - ), + targetY = 3), ), npcs = listOf( @@ -37495,9 +33073,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 1, - facing = 1, - script = "AbandonedShip_Rooms2_1F_EventScript_Dan", - ), + facing = 0, + script = "AbandonedShip_Rooms2_1F_EventScript_Dan"), NpcDef( entityIdx = 1, graphicsId = 26, @@ -37508,9 +33085,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 1, - facing = 1, - script = "AbandonedShip_Rooms2_1F_EventScript_Kira", - ), + facing = 0, + script = "AbandonedShip_Rooms2_1F_EventScript_Kira"), NpcDef( entityIdx = 3, graphicsId = 55, @@ -37522,8 +33098,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 3, - script = "AbandonedShip_Rooms2_1F_EventScript_Garrison", - ), + script = "AbandonedShip_Rooms2_1F_EventScript_Garrison"), NpcDef( entityIdx = 4, graphicsId = 53, @@ -37535,8 +33110,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 2, - script = "AbandonedShip_Rooms2_1F_EventScript_Jani", - ), + script = "AbandonedShip_Rooms2_1F_EventScript_Jani"), ), bgEvents = emptyList(), ), @@ -37547,17 +33121,13 @@ object MapManager { mapId = 63, width = 9, height = 7, - paletteIdx1 = 128, - paletteIdx2 = 94, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 129, + unknownShort = 381, + unknownByte = 61, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.CLOUDY, mapType = MapType.UNDERGROUND, @@ -37572,8 +33142,7 @@ object MapManager { targetBankId = 74, targetMapId = 54, targetX = 12, - targetY = 5, - ), + targetY = 5), WarpTile( x = 8, y = 6, @@ -37581,8 +33150,7 @@ object MapManager { targetBankId = 74, targetMapId = 54, targetX = 12, - targetY = 5, - ), + targetY = 5), ), npcs = listOf( @@ -37596,9 +33164,9 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "AbandonedShip_CaptainsOffice_EventScript_CaptSternAide", - )), + facing = 0, + script = "AbandonedShip_CaptainsOffice_EventScript_CaptSternAide"), + ), bgEvents = emptyList(), ), // AbandonedShip_Underwater2 (MAP_ABANDONED_SHIP_UNDERWATER2) @@ -37608,17 +33176,13 @@ object MapManager { mapId = 64, width = 21, height = 7, - paletteIdx1 = 125, - paletteIdx2 = 105, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 156, + unknownShort = 411, + unknownByte = 61, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.UNDERWATER_MIST, mapType = MapType.UNDERWATER, @@ -37633,8 +33197,8 @@ object MapManager { targetBankId = 74, targetMapId = 60, targetX = 3, - targetY = 7, - )), + targetY = 7), + ), npcs = emptyList(), bgEvents = emptyList(), ), @@ -37645,17 +33209,13 @@ object MapManager { mapId = 65, width = 13, height = 11, - paletteIdx1 = 125, - paletteIdx2 = 105, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 156, + unknownShort = 381, + unknownByte = 61, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.CLOUDY, mapType = MapType.UNDERGROUND, @@ -37670,8 +33230,7 @@ object MapManager { targetBankId = 74, targetMapId = 66, targetX = 6, - targetY = 14, - ), + targetY = 14), WarpTile( x = 6, y = 8, @@ -37679,8 +33238,7 @@ object MapManager { targetBankId = 74, targetMapId = 66, targetX = 21, - targetY = 14, - ), + targetY = 14), WarpTile( x = 9, y = 8, @@ -37688,8 +33246,7 @@ object MapManager { targetBankId = 74, targetMapId = 66, targetX = 36, - targetY = 14, - ), + targetY = 14), WarpTile( x = 3, y = 3, @@ -37697,8 +33254,7 @@ object MapManager { targetBankId = 74, targetMapId = 66, targetX = 6, - targetY = 1, - ), + targetY = 1), WarpTile( x = 6, y = 3, @@ -37706,8 +33262,7 @@ object MapManager { targetBankId = 74, targetMapId = 66, targetX = 21, - targetY = 1, - ), + targetY = 1), WarpTile( x = 9, y = 3, @@ -37715,8 +33270,7 @@ object MapManager { targetBankId = 74, targetMapId = 66, targetX = 36, - targetY = 1, - ), + targetY = 1), ), npcs = emptyList(), bgEvents = @@ -37725,26 +33279,22 @@ object MapManager { x = 3, y = 8, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "AbandonedShip_HiddenFloorCorridors_EventScript_Room1Door", - ), + script = "AbandonedShip_HiddenFloorCorridors_EventScript_Room1Door"), BgEventDef( x = 6, y = 8, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "AbandonedShip_HiddenFloorCorridors_EventScript_Room2Door", - ), + script = "AbandonedShip_HiddenFloorCorridors_EventScript_Room2Door"), BgEventDef( x = 3, y = 4, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "AbandonedShip_HiddenFloorCorridors_EventScript_Room4Door", - ), + script = "AbandonedShip_HiddenFloorCorridors_EventScript_Room4Door"), BgEventDef( x = 9, y = 4, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "AbandonedShip_HiddenFloorCorridors_EventScript_Room6Door", - ), + script = "AbandonedShip_HiddenFloorCorridors_EventScript_Room6Door"), ), ), // AbandonedShip_HiddenFloorRooms (MAP_ABANDONED_SHIP_HIDDEN_FLOOR_ROOMS) @@ -37754,17 +33304,13 @@ object MapManager { mapId = 66, width = 44, height = 15, - paletteIdx1 = 125, - paletteIdx2 = 105, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 156, + unknownShort = 381, + unknownByte = 61, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.CLOUDY, mapType = MapType.UNDERGROUND, @@ -37779,8 +33325,7 @@ object MapManager { targetBankId = 74, targetMapId = 65, targetX = 3, - targetY = 8, - ), + targetY = 8), WarpTile( x = 7, y = 14, @@ -37788,8 +33333,7 @@ object MapManager { targetBankId = 74, targetMapId = 65, targetX = 3, - targetY = 8, - ), + targetY = 8), WarpTile( x = 21, y = 14, @@ -37797,8 +33341,7 @@ object MapManager { targetBankId = 74, targetMapId = 65, targetX = 6, - targetY = 8, - ), + targetY = 8), WarpTile( x = 22, y = 14, @@ -37806,8 +33349,7 @@ object MapManager { targetBankId = 74, targetMapId = 65, targetX = 6, - targetY = 8, - ), + targetY = 8), WarpTile( x = 36, y = 14, @@ -37815,8 +33357,7 @@ object MapManager { targetBankId = 74, targetMapId = 65, targetX = 9, - targetY = 8, - ), + targetY = 8), WarpTile( x = 37, y = 14, @@ -37824,8 +33365,7 @@ object MapManager { targetBankId = 74, targetMapId = 65, targetX = 9, - targetY = 8, - ), + targetY = 8), WarpTile( x = 6, y = 1, @@ -37833,8 +33373,7 @@ object MapManager { targetBankId = 74, targetMapId = 65, targetX = 3, - targetY = 3, - ), + targetY = 3), WarpTile( x = 21, y = 1, @@ -37842,8 +33381,7 @@ object MapManager { targetBankId = 74, targetMapId = 65, targetX = 6, - targetY = 3, - ), + targetY = 3), WarpTile( x = 36, y = 1, @@ -37851,8 +33389,7 @@ object MapManager { targetBankId = 74, targetMapId = 65, targetX = 9, - targetY = 3, - ), + targetY = 3), ), npcs = emptyList(), bgEvents = @@ -37861,62 +33398,52 @@ object MapManager { x = 42, y = 10, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 20, y = 5, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 1, y = 12, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 1, y = 2, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 8, y = 5, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "AbandonedShip_HiddenFloorRooms_EventScript_Trash", - ), + script = "AbandonedShip_HiddenFloorRooms_EventScript_Trash"), BgEventDef( x = 11, y = 3, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "AbandonedShip_HiddenFloorRooms_EventScript_Trash", - ), + script = "AbandonedShip_HiddenFloorRooms_EventScript_Trash"), BgEventDef( x = 10, y = 10, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "AbandonedShip_HiddenFloorRooms_EventScript_Trash", - ), + script = "AbandonedShip_HiddenFloorRooms_EventScript_Trash"), BgEventDef( x = 16, y = 3, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "AbandonedShip_HiddenFloorRooms_EventScript_Trash", - ), + script = "AbandonedShip_HiddenFloorRooms_EventScript_Trash"), BgEventDef( x = 25, y = 2, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "AbandonedShip_HiddenFloorRooms_EventScript_Trash", - ), + script = "AbandonedShip_HiddenFloorRooms_EventScript_Trash"), BgEventDef( x = 24, y = 6, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "AbandonedShip_HiddenFloorRooms_EventScript_Trash", - ), + script = "AbandonedShip_HiddenFloorRooms_EventScript_Trash"), ), ), // IslandCave (MAP_ISLAND_CAVE) @@ -37926,17 +33453,13 @@ object MapManager { mapId = 67, width = 17, height = 33, - paletteIdx1 = 134, - paletteIdx2 = 112, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 119, + unknownShort = 438, + unknownByte = 81, borderTiles = listOf( - Tile2D(0x02D9, 0), - Tile2D(0x02D9, 0), - Tile2D(0x02D9, 0), - Tile2D(0x02D9, 0), - ), + Tile2D(0x02D9, 0), Tile2D(0x02D9, 0), Tile2D(0x02D9, 0), Tile2D(0x02D9, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -37951,8 +33474,7 @@ object MapManager { targetBankId = 50, targetMapId = 20, targetX = 9, - targetY = 20, - ), + targetY = 20), WarpTile( x = 8, y = 20, @@ -37960,8 +33482,7 @@ object MapManager { targetBankId = 74, targetMapId = 67, targetX = 8, - targetY = 11, - ), + targetY = 11), WarpTile( x = 8, y = 11, @@ -37969,8 +33490,7 @@ object MapManager { targetBankId = 74, targetMapId = 67, targetX = 8, - targetY = 20, - ), + targetY = 20), ), npcs = emptyList(), bgEvents = @@ -37979,20 +33499,17 @@ object MapManager { x = 8, y = 20, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "IslandCave_EventScript_CaveEntranceMiddle", - ), + script = "IslandCave_EventScript_CaveEntranceMiddle"), BgEventDef( x = 7, y = 20, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "IslandCave_EventScript_CaveEntranceSide", - ), + script = "IslandCave_EventScript_CaveEntranceSide"), BgEventDef( x = 9, y = 20, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "IslandCave_EventScript_CaveEntranceSide", - ), + script = "IslandCave_EventScript_CaveEntranceSide"), ), ), // AncientTomb (MAP_ANCIENT_TOMB) @@ -38002,17 +33519,13 @@ object MapManager { mapId = 68, width = 17, height = 33, - paletteIdx1 = 134, - paletteIdx2 = 112, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 119, + unknownShort = 438, + unknownByte = 83, borderTiles = listOf( - Tile2D(0x02D9, 0), - Tile2D(0x02D9, 0), - Tile2D(0x02D9, 0), - Tile2D(0x02D9, 0), - ), + Tile2D(0x02D9, 0), Tile2D(0x02D9, 0), Tile2D(0x02D9, 0), Tile2D(0x02D9, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -38027,8 +33540,7 @@ object MapManager { targetBankId = 50, targetMapId = 35, targetX = 7, - targetY = 55, - ), + targetY = 55), WarpTile( x = 8, y = 20, @@ -38036,8 +33548,7 @@ object MapManager { targetBankId = 74, targetMapId = 68, targetX = 8, - targetY = 11, - ), + targetY = 11), WarpTile( x = 8, y = 11, @@ -38045,8 +33556,7 @@ object MapManager { targetBankId = 74, targetMapId = 68, targetX = 8, - targetY = 20, - ), + targetY = 20), ), npcs = emptyList(), bgEvents = @@ -38055,20 +33565,17 @@ object MapManager { x = 8, y = 20, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "AncientTomb_EventScript_CaveEntranceMiddle", - ), + script = "AncientTomb_EventScript_CaveEntranceMiddle"), BgEventDef( x = 7, y = 20, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "AncientTomb_EventScript_CaveEntranceSide", - ), + script = "AncientTomb_EventScript_CaveEntranceSide"), BgEventDef( x = 9, y = 20, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "AncientTomb_EventScript_CaveEntranceSide", - ), + script = "AncientTomb_EventScript_CaveEntranceSide"), ), ), // Underwater_Route134 (MAP_UNDERWATER_ROUTE134) @@ -38078,17 +33585,13 @@ object MapManager { mapId = 69, width = 18, height = 10, - paletteIdx1 = 120, - paletteIdx2 = 114, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 144, + unknownShort = 411, + unknownByte = 79, borderTiles = listOf( - Tile2D(0x0213, 0), - Tile2D(0x0213, 0), - Tile2D(0x0213, 0), - Tile2D(0x0213, 0), - ), + Tile2D(0x0213, 0), Tile2D(0x0213, 0), Tile2D(0x0213, 0), Tile2D(0x0213, 0)), lighting = Lighting.REGULAR, weather = Weather.UNDERWATER_MIST, mapType = MapType.UNDERWATER, @@ -38103,8 +33606,8 @@ object MapManager { targetBankId = 74, targetMapId = 70, targetX = 7, - targetY = 1, - )), + targetY = 1), + ), npcs = emptyList(), bgEvents = emptyList(), ), @@ -38115,17 +33618,13 @@ object MapManager { mapId = 70, width = 22, height = 48, - paletteIdx1 = 120, - paletteIdx2 = 114, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 144, + unknownShort = 411, + unknownByte = 79, borderTiles = listOf( - Tile2D(0x0213, 0), - Tile2D(0x0213, 0), - Tile2D(0x0213, 0), - Tile2D(0x0213, 0), - ), + Tile2D(0x0213, 0), Tile2D(0x0213, 0), Tile2D(0x0213, 0), Tile2D(0x0213, 0)), lighting = Lighting.REGULAR, weather = Weather.UNDERWATER_MIST, mapType = MapType.UNDERWATER, @@ -38140,8 +33639,8 @@ object MapManager { targetBankId = 74, targetMapId = 69, targetX = 8, - targetY = 8, - )), + targetY = 8), + ), npcs = emptyList(), bgEvents = listOf( @@ -38149,8 +33648,8 @@ object MapManager { x = 12, y = 43, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Underwater_SealedChamber_EventScript_Braille", - )), + script = "Underwater_SealedChamber_EventScript_Braille"), + ), ), // SealedChamber_OuterRoom (MAP_SEALED_CHAMBER_OUTER_ROOM) MapDef( @@ -38159,17 +33658,13 @@ object MapManager { mapId = 71, width = 21, height = 23, - paletteIdx1 = 134, - paletteIdx2 = 112, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 119, + unknownShort = 438, + unknownByte = 78, borderTiles = listOf( - Tile2D(0x0023, 0), - Tile2D(0x0023, 0), - Tile2D(0x0023, 0), - Tile2D(0x0023, 0), - ), + Tile2D(0x0023, 0), Tile2D(0x0023, 0), Tile2D(0x0023, 0), Tile2D(0x0023, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -38184,8 +33679,8 @@ object MapManager { targetBankId = 74, targetMapId = 72, targetX = 10, - targetY = 19, - )), + targetY = 19), + ), npcs = emptyList(), bgEvents = listOf( @@ -38193,176 +33688,147 @@ object MapManager { x = 5, y = 6, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "SealedChamber_OuterRoom_EventScript_BrailleABC", - ), + script = "SealedChamber_OuterRoom_EventScript_BrailleABC"), BgEventDef( x = 5, y = 9, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "SealedChamber_OuterRoom_EventScript_BrailleGHI", - ), + script = "SealedChamber_OuterRoom_EventScript_BrailleGHI"), BgEventDef( x = 5, y = 12, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "SealedChamber_OuterRoom_EventScript_BrailleMNO", - ), + script = "SealedChamber_OuterRoom_EventScript_BrailleMNO"), BgEventDef( x = 5, y = 15, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "SealedChamber_OuterRoom_EventScript_BrailleTUV", - ), + script = "SealedChamber_OuterRoom_EventScript_BrailleTUV"), BgEventDef( x = 11, y = 6, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "SealedChamber_OuterRoom_EventScript_BrailleDEF", - ), + script = "SealedChamber_OuterRoom_EventScript_BrailleDEF"), BgEventDef( x = 11, y = 9, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "SealedChamber_OuterRoom_EventScript_BrailleJKL", - ), + script = "SealedChamber_OuterRoom_EventScript_BrailleJKL"), BgEventDef( x = 11, y = 12, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "SealedChamber_OuterRoom_EventScript_BraillePQRS", - ), + script = "SealedChamber_OuterRoom_EventScript_BraillePQRS"), BgEventDef( x = 11, y = 15, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "SealedChamber_OuterRoom_EventScript_BrailleWXYZ", - ), + script = "SealedChamber_OuterRoom_EventScript_BrailleWXYZ"), BgEventDef( x = 16, y = 6, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "SealedChamber_OuterRoom_EventScript_BraillePeriod", - ), + script = "SealedChamber_OuterRoom_EventScript_BraillePeriod"), BgEventDef( x = 16, y = 9, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "SealedChamber_OuterRoom_EventScript_BrailleComma", - ), + script = "SealedChamber_OuterRoom_EventScript_BrailleComma"), BgEventDef( x = 10, y = 2, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "SealedChamber_OuterRoom_EventScript_InnerRoomEntranceWall", - ), + script = "SealedChamber_OuterRoom_EventScript_InnerRoomEntranceWall"), BgEventDef( x = 6, y = 6, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "SealedChamber_OuterRoom_EventScript_BrailleABC", - ), + script = "SealedChamber_OuterRoom_EventScript_BrailleABC"), BgEventDef( x = 4, y = 6, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "SealedChamber_OuterRoom_EventScript_BrailleABC", - ), + script = "SealedChamber_OuterRoom_EventScript_BrailleABC"), BgEventDef( x = 4, y = 9, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "SealedChamber_OuterRoom_EventScript_BrailleGHI", - ), + script = "SealedChamber_OuterRoom_EventScript_BrailleGHI"), BgEventDef( x = 6, y = 9, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "SealedChamber_OuterRoom_EventScript_BrailleGHI", - ), + script = "SealedChamber_OuterRoom_EventScript_BrailleGHI"), BgEventDef( x = 4, y = 12, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "SealedChamber_OuterRoom_EventScript_BrailleMNO", - ), + script = "SealedChamber_OuterRoom_EventScript_BrailleMNO"), BgEventDef( x = 6, y = 12, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "SealedChamber_OuterRoom_EventScript_BrailleMNO", - ), + script = "SealedChamber_OuterRoom_EventScript_BrailleMNO"), BgEventDef( x = 4, y = 15, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "SealedChamber_OuterRoom_EventScript_BrailleTUV", - ), + script = "SealedChamber_OuterRoom_EventScript_BrailleTUV"), BgEventDef( x = 6, y = 15, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "SealedChamber_OuterRoom_EventScript_BrailleTUV", - ), + script = "SealedChamber_OuterRoom_EventScript_BrailleTUV"), BgEventDef( x = 10, y = 6, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "SealedChamber_OuterRoom_EventScript_BrailleDEF", - ), + script = "SealedChamber_OuterRoom_EventScript_BrailleDEF"), BgEventDef( x = 12, y = 6, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "SealedChamber_OuterRoom_EventScript_BrailleDEF", - ), + script = "SealedChamber_OuterRoom_EventScript_BrailleDEF"), BgEventDef( x = 10, y = 9, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "SealedChamber_OuterRoom_EventScript_BrailleJKL", - ), + script = "SealedChamber_OuterRoom_EventScript_BrailleJKL"), BgEventDef( x = 12, y = 9, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "SealedChamber_OuterRoom_EventScript_BrailleJKL", - ), + script = "SealedChamber_OuterRoom_EventScript_BrailleJKL"), BgEventDef( x = 10, y = 12, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "SealedChamber_OuterRoom_EventScript_BraillePQRS", - ), + script = "SealedChamber_OuterRoom_EventScript_BraillePQRS"), BgEventDef( x = 12, y = 12, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "SealedChamber_OuterRoom_EventScript_BraillePQRS", - ), + script = "SealedChamber_OuterRoom_EventScript_BraillePQRS"), BgEventDef( x = 10, y = 15, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "SealedChamber_OuterRoom_EventScript_BrailleWXYZ", - ), + script = "SealedChamber_OuterRoom_EventScript_BrailleWXYZ"), BgEventDef( x = 12, y = 15, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "SealedChamber_OuterRoom_EventScript_BrailleWXYZ", - ), + script = "SealedChamber_OuterRoom_EventScript_BrailleWXYZ"), BgEventDef( x = 9, y = 2, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "SealedChamber_OuterRoom_EventScript_BrailleDigHere", - ), + script = "SealedChamber_OuterRoom_EventScript_BrailleDigHere"), BgEventDef( x = 11, y = 2, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "SealedChamber_OuterRoom_EventScript_BrailleDigHere", - ), + script = "SealedChamber_OuterRoom_EventScript_BrailleDigHere"), ), ), // SealedChamber_InnerRoom (MAP_SEALED_CHAMBER_INNER_ROOM) @@ -38372,17 +33838,13 @@ object MapManager { mapId = 72, width = 21, height = 23, - paletteIdx1 = 134, - paletteIdx2 = 112, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 119, + unknownShort = 438, + unknownByte = 78, borderTiles = listOf( - Tile2D(0x0023, 0), - Tile2D(0x0023, 0), - Tile2D(0x0023, 0), - Tile2D(0x0023, 0), - ), + Tile2D(0x0023, 0), Tile2D(0x0023, 0), Tile2D(0x0023, 0), Tile2D(0x0023, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -38397,8 +33859,8 @@ object MapManager { targetBankId = 74, targetMapId = 71, targetX = 10, - targetY = 2, - )), + targetY = 2), + ), npcs = emptyList(), bgEvents = listOf( @@ -38406,56 +33868,47 @@ object MapManager { x = 10, y = 4, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "SealedChamber_InnerRoom_EventScript_BrailleBackWall", - ), + script = "SealedChamber_InnerRoom_EventScript_BrailleBackWall"), BgEventDef( x = 6, y = 8, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "SealedChamber_InnerRoom_EventScript_BrailleStoryPart1", - ), + script = "SealedChamber_InnerRoom_EventScript_BrailleStoryPart1"), BgEventDef( x = 14, y = 8, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "SealedChamber_InnerRoom_EventScript_BrailleStoryPart2", - ), + script = "SealedChamber_InnerRoom_EventScript_BrailleStoryPart2"), BgEventDef( x = 4, y = 13, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "SealedChamber_InnerRoom_EventScript_BrailleStoryPart3", - ), + script = "SealedChamber_InnerRoom_EventScript_BrailleStoryPart3"), BgEventDef( x = 16, y = 13, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "SealedChamber_InnerRoom_EventScript_BrailleStoryPart4", - ), + script = "SealedChamber_InnerRoom_EventScript_BrailleStoryPart4"), BgEventDef( x = 6, y = 18, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "SealedChamber_InnerRoom_EventScript_BrailleStoryPart5", - ), + script = "SealedChamber_InnerRoom_EventScript_BrailleStoryPart5"), BgEventDef( x = 14, y = 18, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "SealedChamber_InnerRoom_EventScript_BrailleStoryPart6", - ), + script = "SealedChamber_InnerRoom_EventScript_BrailleStoryPart6"), BgEventDef( x = 9, y = 4, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "SealedChamber_InnerRoom_EventScript_BrailleBackWall", - ), + script = "SealedChamber_InnerRoom_EventScript_BrailleBackWall"), BgEventDef( x = 11, y = 4, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "SealedChamber_InnerRoom_EventScript_BrailleBackWall", - ), + script = "SealedChamber_InnerRoom_EventScript_BrailleBackWall"), ), ), // ScorchedSlab (MAP_SCORCHED_SLAB) @@ -38465,17 +33918,13 @@ object MapManager { mapId = 73, width = 15, height = 20, - paletteIdx1 = 134, - paletteIdx2 = 112, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 119, + unknownShort = 366, + unknownByte = 80, borderTiles = listOf( - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - ), + Tile2D(0x0211, 0), Tile2D(0x0211, 0), Tile2D(0x0211, 0), Tile2D(0x0211, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -38490,8 +33939,8 @@ object MapManager { targetBankId = 50, targetMapId = 35, targetX = 19, - targetY = 23, - )), + targetY = 23), + ), npcs = emptyList(), bgEvents = emptyList(), ), @@ -38502,17 +33951,13 @@ object MapManager { mapId = 74, width = 28, height = 30, - paletteIdx1 = 128, - paletteIdx2 = 94, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 129, + unknownShort = 430, + unknownByte = 197, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -38529,17 +33974,13 @@ object MapManager { mapId = 75, width = 62, height = 24, - paletteIdx1 = 128, - paletteIdx2 = 94, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 129, + unknownShort = 430, + unknownByte = 197, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -38556,17 +33997,13 @@ object MapManager { mapId = 76, width = 34, height = 24, - paletteIdx1 = 128, - paletteIdx2 = 94, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 129, + unknownShort = 430, + unknownByte = 197, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -38583,17 +34020,13 @@ object MapManager { mapId = 77, width = 18, height = 18, - paletteIdx1 = 134, - paletteIdx2 = 112, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 119, + unknownShort = 406, + unknownByte = 85, borderTiles = listOf( - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - ), + Tile2D(0x0211, 0), Tile2D(0x0211, 0), Tile2D(0x0211, 0), Tile2D(0x0211, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -38608,8 +34041,7 @@ object MapManager { targetBankId = 50, targetMapId = 46, targetX = 36, - targetY = 6, - ), + targetY = 6), WarpTile( x = 14, y = 4, @@ -38617,8 +34049,7 @@ object MapManager { targetBankId = 74, targetMapId = 78, targetX = 17, - targetY = 13, - ), + targetY = 13), ), npcs = emptyList(), bgEvents = emptyList(), @@ -38630,17 +34061,13 @@ object MapManager { mapId = 78, width = 28, height = 23, - paletteIdx1 = 112, - paletteIdx2 = 148, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 112, + unknownShort = 406, + unknownByte = 85, borderTiles = listOf( - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - ), + Tile2D(0x0170, 0), Tile2D(0x0170, 0), Tile2D(0x0170, 0), Tile2D(0x0170, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.ROUTE, @@ -38655,8 +34082,7 @@ object MapManager { targetBankId = 74, targetMapId = 77, targetX = 14, - targetY = 4, - ), + targetY = 4), WarpTile( x = 14, y = 5, @@ -38664,8 +34090,7 @@ object MapManager { targetBankId = 74, targetMapId = 79, targetX = 6, - targetY = 13, - ), + targetY = 13), ), npcs = emptyList(), bgEvents = emptyList(), @@ -38677,17 +34102,13 @@ object MapManager { mapId = 79, width = 14, height = 14, - paletteIdx1 = 112, - paletteIdx2 = 148, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 112, + unknownShort = 406, + unknownByte = 85, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -38702,8 +34123,7 @@ object MapManager { targetBankId = 74, targetMapId = 78, targetX = 14, - targetY = 5, - ), + targetY = 5), WarpTile( x = 7, y = 13, @@ -38711,8 +34131,7 @@ object MapManager { targetBankId = 74, targetMapId = 78, targetX = 14, - targetY = 5, - ), + targetY = 5), WarpTile( x = 10, y = 1, @@ -38720,8 +34139,7 @@ object MapManager { targetBankId = 74, targetMapId = 80, targetX = 10, - targetY = 1, - ), + targetY = 1), ), npcs = emptyList(), bgEvents = emptyList(), @@ -38733,17 +34151,13 @@ object MapManager { mapId = 80, width = 14, height = 14, - paletteIdx1 = 112, - paletteIdx2 = 148, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 112, + unknownShort = 406, + unknownByte = 85, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -38758,8 +34172,7 @@ object MapManager { targetBankId = 74, targetMapId = 79, targetX = 10, - targetY = 1, - ), + targetY = 1), WarpTile( x = 3, y = 1, @@ -38767,8 +34180,7 @@ object MapManager { targetBankId = 74, targetMapId = 81, targetX = 3, - targetY = 1, - ), + targetY = 1), ), npcs = emptyList(), bgEvents = emptyList(), @@ -38780,17 +34192,13 @@ object MapManager { mapId = 81, width = 14, height = 14, - paletteIdx1 = 112, - paletteIdx2 = 148, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 112, + unknownShort = 406, + unknownByte = 85, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -38805,8 +34213,7 @@ object MapManager { targetBankId = 74, targetMapId = 80, targetX = 3, - targetY = 1, - ), + targetY = 1), WarpTile( x = 11, y = 1, @@ -38814,8 +34221,7 @@ object MapManager { targetBankId = 74, targetMapId = 82, targetX = 11, - targetY = 1, - ), + targetY = 1), WarpTile( x = 7, y = 1, @@ -38823,8 +34229,7 @@ object MapManager { targetBankId = 74, targetMapId = 82, targetX = 7, - targetY = 1, - ), + targetY = 1), ), npcs = emptyList(), bgEvents = emptyList(), @@ -38836,17 +34241,13 @@ object MapManager { mapId = 82, width = 14, height = 14, - paletteIdx1 = 112, - paletteIdx2 = 148, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 112, + unknownShort = 406, + unknownByte = 85, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -38861,8 +34262,7 @@ object MapManager { targetBankId = 74, targetMapId = 81, targetX = 11, - targetY = 1, - ), + targetY = 1), WarpTile( x = 7, y = 1, @@ -38870,8 +34270,7 @@ object MapManager { targetBankId = 74, targetMapId = 81, targetX = 7, - targetY = 1, - ), + targetY = 1), WarpTile( x = 3, y = 1, @@ -38879,8 +34278,7 @@ object MapManager { targetBankId = 74, targetMapId = 84, targetX = 3, - targetY = 1, - ), + targetY = 1), ), npcs = emptyList(), bgEvents = emptyList(), @@ -38892,17 +34290,13 @@ object MapManager { mapId = 83, width = 20, height = 30, - paletteIdx1 = 134, - paletteIdx2 = 112, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 119, + unknownShort = 432, + unknownByte = 67, borderTiles = listOf( - Tile2D(0x0381, 0), - Tile2D(0x0381, 0), - Tile2D(0x0381, 0), - Tile2D(0x0381, 0), - ), + Tile2D(0x0381, 0), Tile2D(0x0381, 0), Tile2D(0x0381, 0), Tile2D(0x0381, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -38917,8 +34311,8 @@ object MapManager { targetBankId = 74, targetMapId = 49, targetX = 28, - targetY = 11, - )), + targetY = 11), + ), npcs = emptyList(), bgEvents = emptyList(), ), @@ -38929,17 +34323,13 @@ object MapManager { mapId = 84, width = 14, height = 14, - paletteIdx1 = 112, - paletteIdx2 = 148, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 112, + unknownShort = 406, + unknownByte = 85, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -38954,8 +34344,7 @@ object MapManager { targetBankId = 74, targetMapId = 82, targetX = 3, - targetY = 1, - ), + targetY = 1), WarpTile( x = 10, y = 1, @@ -38963,8 +34352,7 @@ object MapManager { targetBankId = 74, targetMapId = 85, targetX = 16, - targetY = 14, - ), + targetY = 14), ), npcs = emptyList(), bgEvents = emptyList(), @@ -38976,17 +34364,13 @@ object MapManager { mapId = 85, width = 27, height = 24, - paletteIdx1 = 112, - paletteIdx2 = 148, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 112, + unknownShort = 406, + unknownByte = 85, borderTiles = listOf( - Tile2D(0x02C1, 0), - Tile2D(0x02C1, 0), - Tile2D(0x02C1, 0), - Tile2D(0x02C1, 0), - ), + Tile2D(0x02C1, 0), Tile2D(0x02C1, 0), Tile2D(0x02C1, 0), Tile2D(0x02C1, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.ROUTE, @@ -39001,8 +34385,8 @@ object MapManager { targetBankId = 74, targetMapId = 84, targetX = 10, - targetY = 1, - )), + targetY = 1), + ), npcs = emptyList(), bgEvents = emptyList(), ), @@ -39013,17 +34397,13 @@ object MapManager { mapId = 86, width = 37, height = 38, - paletteIdx1 = 92, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 106, + unknownShort = 430, + unknownByte = 198, borderTiles = listOf( - Tile2D(0x0271, 0), - Tile2D(0x0271, 0), - Tile2D(0x0271, 0), - Tile2D(0x0271, 0), - ), + Tile2D(0x0271, 0), Tile2D(0x0271, 0), Tile2D(0x0271, 0), Tile2D(0x0271, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -39038,8 +34418,7 @@ object MapManager { targetBankId = 74, targetMapId = 13, targetX = 16, - targetY = 18, - ), + targetY = 18), WarpTile( x = 25, y = 34, @@ -39047,8 +34426,7 @@ object MapManager { targetBankId = 74, targetMapId = 87, targetX = 8, - targetY = 2, - ), + targetY = 2), WarpTile( x = 31, y = 3, @@ -39056,8 +34434,7 @@ object MapManager { targetBankId = 74, targetMapId = 88, targetX = 36, - targetY = 4, - ), + targetY = 4), WarpTile( x = 20, y = 22, @@ -39065,8 +34442,7 @@ object MapManager { targetBankId = 74, targetMapId = 93, targetX = 16, - targetY = 1, - ), + targetY = 1), ), npcs = emptyList(), bgEvents = emptyList(), @@ -39078,17 +34454,13 @@ object MapManager { mapId = 87, width = 33, height = 39, - paletteIdx1 = 92, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 106, + unknownShort = 430, + unknownByte = 198, borderTiles = listOf( - Tile2D(0x0271, 0), - Tile2D(0x0271, 0), - Tile2D(0x0271, 0), - Tile2D(0x0271, 0), - ), + Tile2D(0x0271, 0), Tile2D(0x0271, 0), Tile2D(0x0271, 0), Tile2D(0x0271, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -39103,8 +34475,7 @@ object MapManager { targetBankId = 74, targetMapId = 88, targetX = 10, - targetY = 22, - ), + targetY = 22), WarpTile( x = 8, y = 2, @@ -39112,8 +34483,7 @@ object MapManager { targetBankId = 74, targetMapId = 86, targetX = 25, - targetY = 34, - ), + targetY = 34), WarpTile( x = 17, y = 33, @@ -39121,8 +34491,7 @@ object MapManager { targetBankId = 74, targetMapId = 89, targetX = 23, - targetY = 3, - ), + targetY = 3), ), npcs = emptyList(), bgEvents = emptyList(), @@ -39134,17 +34503,13 @@ object MapManager { mapId = 88, width = 49, height = 28, - paletteIdx1 = 92, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 106, + unknownShort = 430, + unknownByte = 198, borderTiles = listOf( - Tile2D(0x0271, 0), - Tile2D(0x0271, 0), - Tile2D(0x0271, 0), - Tile2D(0x0271, 0), - ), + Tile2D(0x0271, 0), Tile2D(0x0271, 0), Tile2D(0x0271, 0), Tile2D(0x0271, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -39159,8 +34524,7 @@ object MapManager { targetBankId = 74, targetMapId = 87, targetX = 11, - targetY = 23, - ), + targetY = 23), WarpTile( x = 36, y = 4, @@ -39168,8 +34532,7 @@ object MapManager { targetBankId = 74, targetMapId = 86, targetX = 31, - targetY = 3, - ), + targetY = 3), ), npcs = emptyList(), bgEvents = emptyList(), @@ -39181,17 +34544,13 @@ object MapManager { mapId = 89, width = 28, height = 24, - paletteIdx1 = 92, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 106, + unknownShort = 430, + unknownByte = 198, borderTiles = listOf( - Tile2D(0x0271, 0), - Tile2D(0x0271, 0), - Tile2D(0x0271, 0), - Tile2D(0x0271, 0), - ), + Tile2D(0x0271, 0), Tile2D(0x0271, 0), Tile2D(0x0271, 0), Tile2D(0x0271, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -39206,8 +34565,7 @@ object MapManager { targetBankId = 74, targetMapId = 91, targetX = 46, - targetY = 7, - ), + targetY = 7), WarpTile( x = 21, y = 9, @@ -39215,8 +34573,7 @@ object MapManager { targetBankId = 74, targetMapId = 90, targetX = 12, - targetY = 15, - ), + targetY = 15), WarpTile( x = 23, y = 3, @@ -39224,8 +34581,7 @@ object MapManager { targetBankId = 74, targetMapId = 87, targetX = 17, - targetY = 33, - ), + targetY = 33), ), npcs = emptyList(), bgEvents = emptyList(), @@ -39237,17 +34593,13 @@ object MapManager { mapId = 90, width = 24, height = 17, - paletteIdx1 = 92, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 106, + unknownShort = 430, + unknownByte = 198, borderTiles = listOf( - Tile2D(0x0271, 0), - Tile2D(0x0271, 0), - Tile2D(0x0271, 0), - Tile2D(0x0271, 0), - ), + Tile2D(0x0271, 0), Tile2D(0x0271, 0), Tile2D(0x0271, 0), Tile2D(0x0271, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -39262,8 +34614,8 @@ object MapManager { targetBankId = 74, targetMapId = 89, targetX = 21, - targetY = 9, - )), + targetY = 9), + ), npcs = emptyList(), bgEvents = emptyList(), ), @@ -39274,17 +34626,13 @@ object MapManager { mapId = 91, width = 59, height = 28, - paletteIdx1 = 92, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 106, + unknownShort = 430, + unknownByte = 198, borderTiles = listOf( - Tile2D(0x0271, 0), - Tile2D(0x0271, 0), - Tile2D(0x0271, 0), - Tile2D(0x0271, 0), - ), + Tile2D(0x0271, 0), Tile2D(0x0271, 0), Tile2D(0x0271, 0), Tile2D(0x0271, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -39299,8 +34647,7 @@ object MapManager { targetBankId = 74, targetMapId = 89, targetX = 7, - targetY = 21, - ), + targetY = 21), WarpTile( x = 20, y = 21, @@ -39308,8 +34655,7 @@ object MapManager { targetBankId = 74, targetMapId = 92, targetX = 16, - targetY = 21, - ), + targetY = 21), ), npcs = emptyList(), bgEvents = emptyList(), @@ -39321,17 +34667,13 @@ object MapManager { mapId = 92, width = 33, height = 24, - paletteIdx1 = 92, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 106, + unknownShort = 430, + unknownByte = 198, borderTiles = listOf( - Tile2D(0x0271, 0), - Tile2D(0x0271, 0), - Tile2D(0x0271, 0), - Tile2D(0x0271, 0), - ), + Tile2D(0x0271, 0), Tile2D(0x0271, 0), Tile2D(0x0271, 0), Tile2D(0x0271, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -39346,8 +34688,7 @@ object MapManager { targetBankId = 74, targetMapId = 93, targetX = 16, - targetY = 13, - ), + targetY = 13), WarpTile( x = 16, y = 21, @@ -39355,8 +34696,7 @@ object MapManager { targetBankId = 74, targetMapId = 91, targetX = 20, - targetY = 21, - ), + targetY = 21), ), npcs = emptyList(), bgEvents = emptyList(), @@ -39368,17 +34708,13 @@ object MapManager { mapId = 93, width = 60, height = 19, - paletteIdx1 = 92, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 106, + unknownShort = 430, + unknownByte = 198, borderTiles = listOf( - Tile2D(0x0271, 0), - Tile2D(0x0271, 0), - Tile2D(0x0271, 0), - Tile2D(0x0271, 0), - ), + Tile2D(0x0271, 0), Tile2D(0x0271, 0), Tile2D(0x0271, 0), Tile2D(0x0271, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -39393,8 +34729,7 @@ object MapManager { targetBankId = 74, targetMapId = 86, targetX = 20, - targetY = 22, - ), + targetY = 22), WarpTile( x = 16, y = 13, @@ -39402,8 +34737,7 @@ object MapManager { targetBankId = 74, targetMapId = 92, targetX = 16, - targetY = 1, - ), + targetY = 1), ), npcs = emptyList(), bgEvents = emptyList(), @@ -39415,17 +34749,13 @@ object MapManager { mapId = 94, width = 21, height = 17, - paletteIdx1 = 123, - paletteIdx2 = 107, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 166, + unknownShort = 406, + unknownByte = 199, borderTiles = listOf( - Tile2D(0x0245, 0), - Tile2D(0x0245, 0), - Tile2D(0x0245, 0), - Tile2D(0x0245, 0), - ), + Tile2D(0x0245, 0), Tile2D(0x0245, 0), Tile2D(0x0245, 0), Tile2D(0x0245, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -39440,8 +34770,7 @@ object MapManager { targetBankId = 50, targetMapId = 26, targetX = 19, - targetY = 58, - ), + targetY = 58), WarpTile( x = 15, y = 2, @@ -39449,8 +34778,7 @@ object MapManager { targetBankId = 74, targetMapId = 95, targetX = 15, - targetY = 2, - ), + targetY = 2), ), npcs = emptyList(), bgEvents = emptyList(), @@ -39462,17 +34790,13 @@ object MapManager { mapId = 95, width = 21, height = 17, - paletteIdx1 = 123, - paletteIdx2 = 107, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 166, + unknownShort = 406, + unknownByte = 199, borderTiles = listOf( - Tile2D(0x0245, 0), - Tile2D(0x0245, 0), - Tile2D(0x0245, 0), - Tile2D(0x0245, 0), - ), + Tile2D(0x0245, 0), Tile2D(0x0245, 0), Tile2D(0x0245, 0), Tile2D(0x0245, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -39487,8 +34811,7 @@ object MapManager { targetBankId = 74, targetMapId = 96, targetX = 18, - targetY = 12, - ), + targetY = 12), WarpTile( x = 15, y = 2, @@ -39496,8 +34819,7 @@ object MapManager { targetBankId = 74, targetMapId = 94, targetX = 15, - targetY = 2, - ), + targetY = 2), ), npcs = emptyList(), bgEvents = emptyList(), @@ -39509,17 +34831,13 @@ object MapManager { mapId = 96, width = 21, height = 17, - paletteIdx1 = 123, - paletteIdx2 = 107, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 166, + unknownShort = 406, + unknownByte = 199, borderTiles = listOf( - Tile2D(0x0245, 0), - Tile2D(0x0245, 0), - Tile2D(0x0245, 0), - Tile2D(0x0245, 0), - ), + Tile2D(0x0245, 0), Tile2D(0x0245, 0), Tile2D(0x0245, 0), Tile2D(0x0245, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -39534,8 +34852,7 @@ object MapManager { targetBankId = 74, targetMapId = 95, targetX = 18, - targetY = 12, - ), + targetY = 12), WarpTile( x = 2, y = 4, @@ -39543,8 +34860,7 @@ object MapManager { targetBankId = 74, targetMapId = 97, targetX = 1, - targetY = 4, - ), + targetY = 4), ), npcs = emptyList(), bgEvents = emptyList(), @@ -39556,17 +34872,13 @@ object MapManager { mapId = 97, width = 13, height = 10, - paletteIdx1 = 123, - paletteIdx2 = 107, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 166, + unknownShort = 406, + unknownByte = 199, borderTiles = listOf( - Tile2D(0x0245, 0), - Tile2D(0x0245, 0), - Tile2D(0x0245, 0), - Tile2D(0x0245, 0), - ), + Tile2D(0x0245, 0), Tile2D(0x0245, 0), Tile2D(0x0245, 0), Tile2D(0x0245, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -39581,8 +34893,8 @@ object MapManager { targetBankId = 74, targetMapId = 96, targetX = 2, - targetY = 4, - )), + targetY = 4), + ), npcs = emptyList(), bgEvents = emptyList(), ), @@ -39593,17 +34905,13 @@ object MapManager { mapId = 98, width = 139, height = 23, - paletteIdx1 = 134, - paletteIdx2 = 112, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 119, + unknownShort = 406, + unknownByte = 209, borderTiles = listOf( - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - ), + Tile2D(0x0211, 0), Tile2D(0x0211, 0), Tile2D(0x0211, 0), Tile2D(0x0211, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -39618,8 +34926,8 @@ object MapManager { targetBankId = 70, targetMapId = 1, targetX = 6, - targetY = 2, - )), + targetY = 2), + ), npcs = emptyList(), bgEvents = emptyList(), ), @@ -39630,17 +34938,13 @@ object MapManager { mapId = 99, width = 46, height = 54, - paletteIdx1 = 134, - paletteIdx2 = 112, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 119, + unknownShort = 366, + unknownByte = 202, borderTiles = listOf( - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - ), + Tile2D(0x0211, 0), Tile2D(0x0211, 0), Tile2D(0x0211, 0), Tile2D(0x0211, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -39655,8 +34959,7 @@ object MapManager { targetBankId = 76, targetMapId = 4, targetX = 39, - targetY = 55, - ), + targetY = 55), WarpTile( x = 38, y = 5, @@ -39664,8 +34967,7 @@ object MapManager { targetBankId = 74, targetMapId = 100, targetX = 6, - targetY = 5, - ), + targetY = 5), ), npcs = emptyList(), bgEvents = @@ -39674,26 +34976,22 @@ object MapManager { x = 32, y = 29, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 27, y = 8, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 7, y = 5, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 19, y = 43, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), ), ), // ArtisanCave_1F (MAP_ARTISAN_CAVE_1F) @@ -39703,17 +35001,13 @@ object MapManager { mapId = 100, width = 21, height = 22, - paletteIdx1 = 134, - paletteIdx2 = 112, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 119, + unknownShort = 366, + unknownByte = 202, borderTiles = listOf( - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - ), + Tile2D(0x0211, 0), Tile2D(0x0211, 0), Tile2D(0x0211, 0), Tile2D(0x0211, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -39728,8 +35022,7 @@ object MapManager { targetBankId = 76, targetMapId = 14, targetX = 28, - targetY = 7, - ), + targetY = 7), WarpTile( x = 6, y = 5, @@ -39737,8 +35030,7 @@ object MapManager { targetBankId = 74, targetMapId = 99, targetX = 38, - targetY = 5, - ), + targetY = 5), ), npcs = emptyList(), bgEvents = emptyList(), @@ -39750,17 +35042,13 @@ object MapManager { mapId = 101, width = 20, height = 10, - paletteIdx1 = 120, - paletteIdx2 = 114, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 144, + unknownShort = 366, + unknownByte = 204, borderTiles = listOf( - Tile2D(0x0213, 0), - Tile2D(0x0213, 0), - Tile2D(0x0213, 0), - Tile2D(0x0213, 0), - ), + Tile2D(0x0213, 0), Tile2D(0x0213, 0), Tile2D(0x0213, 0), Tile2D(0x0213, 0)), lighting = Lighting.REGULAR, weather = Weather.UNDERWATER_MIST, mapType = MapType.UNDERWATER, @@ -39777,17 +35065,13 @@ object MapManager { mapId = 102, width = 20, height = 20, - paletteIdx1 = 134, - paletteIdx2 = 112, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 119, + unknownShort = 366, + unknownByte = 203, borderTiles = listOf( - Tile2D(0x02F1, 0), - Tile2D(0x02F1, 0), - Tile2D(0x02F1, 0), - Tile2D(0x02F1, 0), - ), + Tile2D(0x02F1, 0), Tile2D(0x02F1, 0), Tile2D(0x02F1, 0), Tile2D(0x02F1, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -39802,8 +35086,8 @@ object MapManager { targetBankId = 74, targetMapId = 103, targetX = 20, - targetY = 4, - )), + targetY = 4), + ), npcs = emptyList(), bgEvents = emptyList(), ), @@ -39814,17 +35098,13 @@ object MapManager { mapId = 103, width = 27, height = 30, - paletteIdx1 = 134, - paletteIdx2 = 112, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 119, + unknownShort = 366, + unknownByte = 203, borderTiles = listOf( - Tile2D(0x02F1, 0), - Tile2D(0x02F1, 0), - Tile2D(0x02F1, 0), - Tile2D(0x02F1, 0), - ), + Tile2D(0x02F1, 0), Tile2D(0x02F1, 0), Tile2D(0x02F1, 0), Tile2D(0x02F1, 0)), lighting = Lighting.REGULAR, weather = Weather.STEADY_MIST, mapType = MapType.UNDERGROUND, @@ -39839,8 +35119,8 @@ object MapManager { targetBankId = 74, targetMapId = 102, targetX = 14, - targetY = 1, - )), + targetY = 1), + ), npcs = emptyList(), bgEvents = emptyList(), ), @@ -39851,17 +35131,13 @@ object MapManager { mapId = 104, width = 20, height = 20, - paletteIdx1 = 134, - paletteIdx2 = 112, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 119, + unknownShort = 366, + unknownByte = 205, borderTiles = listOf( - Tile2D(0x02F1, 0), - Tile2D(0x02F1, 0), - Tile2D(0x02F1, 0), - Tile2D(0x02F1, 0), - ), + Tile2D(0x02F1, 0), Tile2D(0x02F1, 0), Tile2D(0x02F1, 0), Tile2D(0x02F1, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -39876,8 +35152,8 @@ object MapManager { targetBankId = 74, targetMapId = 105, targetX = 5, - targetY = 4, - )), + targetY = 4), + ), npcs = emptyList(), bgEvents = emptyList(), ), @@ -39888,17 +35164,13 @@ object MapManager { mapId = 105, width = 27, height = 30, - paletteIdx1 = 134, - paletteIdx2 = 112, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 119, + unknownShort = 366, + unknownByte = 205, borderTiles = listOf( - Tile2D(0x02F1, 0), - Tile2D(0x02F1, 0), - Tile2D(0x02F1, 0), - Tile2D(0x02F1, 0), - ), + Tile2D(0x02F1, 0), Tile2D(0x02F1, 0), Tile2D(0x02F1, 0), Tile2D(0x02F1, 0)), lighting = Lighting.REGULAR, weather = Weather.STEADY_MIST, mapType = MapType.UNDERGROUND, @@ -39913,8 +35185,8 @@ object MapManager { targetBankId = 74, targetMapId = 104, targetX = 14, - targetY = 1, - )), + targetY = 1), + ), npcs = emptyList(), bgEvents = emptyList(), ), @@ -39925,17 +35197,13 @@ object MapManager { mapId = 106, width = 32, height = 24, - paletteIdx1 = 134, - paletteIdx2 = 112, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 119, + unknownShort = 543, + unknownByte = 210, borderTiles = listOf( - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - ), + Tile2D(0x0211, 0), Tile2D(0x0211, 0), Tile2D(0x0211, 0), Tile2D(0x0211, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -39950,8 +35218,8 @@ object MapManager { targetBankId = 50, targetMapId = 18, targetX = 45, - targetY = 6, - )), + targetY = 6), + ), npcs = emptyList(), bgEvents = emptyList(), ), @@ -39962,17 +35230,13 @@ object MapManager { mapId = 107, width = 30, height = 32, - paletteIdx1 = 131, - paletteIdx2 = 103, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 123, + unknownShort = 386, + unknownByte = 63, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -39987,8 +35251,8 @@ object MapManager { targetBankId = 74, targetMapId = 0, targetX = 4, - targetY = 2, - )), + targetY = 2), + ), npcs = listOf( NpcDef( @@ -40001,9 +35265,9 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 0, - script = "MeteorFalls_StevensCave_EventScript_Steven", - )), + facing = 1, + script = "MeteorFalls_StevensCave_EventScript_Steven"), + ), bgEvents = emptyList(), ), // SecretBase_RedCave1 (MAP_SECRET_BASE_RED_CAVE1) @@ -40013,17 +35277,13 @@ object MapManager { mapId = 0, width = 11, height = 9, - paletteIdx1 = 135, - paletteIdx2 = 111, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 157, + paletteIdx2 = 137, + unknownShort = 382, + unknownByte = 86, borderTiles = listOf( - Tile2D(0x0210, 0), - Tile2D(0x0210, 0), - Tile2D(0x0210, 0), - Tile2D(0x0210, 0), - ), + Tile2D(0x0210, 0), Tile2D(0x0210, 0), Tile2D(0x0210, 0), Tile2D(0x0210, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.SECRET_BASE, @@ -40040,17 +35300,13 @@ object MapManager { mapId = 1, width = 11, height = 9, - paletteIdx1 = 128, - paletteIdx2 = 108, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 157, + paletteIdx2 = 132, + unknownShort = 382, + unknownByte = 86, borderTiles = listOf( - Tile2D(0x0210, 0), - Tile2D(0x0210, 0), - Tile2D(0x0210, 0), - Tile2D(0x0210, 0), - ), + Tile2D(0x0210, 0), Tile2D(0x0210, 0), Tile2D(0x0210, 0), Tile2D(0x0210, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.SECRET_BASE, @@ -40067,17 +35323,13 @@ object MapManager { mapId = 2, width = 11, height = 9, - paletteIdx1 = 98, - paletteIdx2 = 124, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 157, + paletteIdx2 = 135, + unknownShort = 382, + unknownByte = 86, borderTiles = listOf( - Tile2D(0x0210, 0), - Tile2D(0x0210, 0), - Tile2D(0x0210, 0), - Tile2D(0x0210, 0), - ), + Tile2D(0x0210, 0), Tile2D(0x0210, 0), Tile2D(0x0210, 0), Tile2D(0x0210, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.SECRET_BASE, @@ -40094,17 +35346,13 @@ object MapManager { mapId = 3, width = 11, height = 9, - paletteIdx1 = 108, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 157, + paletteIdx2 = 136, + unknownShort = 382, + unknownByte = 86, borderTiles = listOf( - Tile2D(0x0210, 0), - Tile2D(0x0210, 0), - Tile2D(0x0210, 0), - Tile2D(0x0210, 0), - ), + Tile2D(0x0210, 0), Tile2D(0x0210, 0), Tile2D(0x0210, 0), Tile2D(0x0210, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.SECRET_BASE, @@ -40121,17 +35369,13 @@ object MapManager { mapId = 4, width = 11, height = 9, - paletteIdx1 = 137, - paletteIdx2 = 93, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 157, + paletteIdx2 = 133, + unknownShort = 382, + unknownByte = 86, borderTiles = listOf( - Tile2D(0x0208, 0), - Tile2D(0x0208, 0), - Tile2D(0x0208, 0), - Tile2D(0x0208, 0), - ), + Tile2D(0x0208, 0), Tile2D(0x0208, 0), Tile2D(0x0208, 0), Tile2D(0x0208, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.SECRET_BASE, @@ -40148,17 +35392,13 @@ object MapManager { mapId = 5, width = 11, height = 9, - paletteIdx1 = 111, - paletteIdx2 = 105, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 157, + paletteIdx2 = 134, + unknownShort = 382, + unknownByte = 86, borderTiles = listOf( - Tile2D(0x0208, 0), - Tile2D(0x0208, 0), - Tile2D(0x0208, 0), - Tile2D(0x0208, 0), - ), + Tile2D(0x0208, 0), Tile2D(0x0208, 0), Tile2D(0x0208, 0), Tile2D(0x0208, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.SECRET_BASE, @@ -40175,17 +35415,13 @@ object MapManager { mapId = 6, width = 7, height = 16, - paletteIdx1 = 135, - paletteIdx2 = 111, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 157, + paletteIdx2 = 137, + unknownShort = 382, + unknownByte = 86, borderTiles = listOf( - Tile2D(0x0210, 0), - Tile2D(0x0210, 0), - Tile2D(0x0210, 0), - Tile2D(0x0210, 0), - ), + Tile2D(0x0210, 0), Tile2D(0x0210, 0), Tile2D(0x0210, 0), Tile2D(0x0210, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.SECRET_BASE, @@ -40202,17 +35438,13 @@ object MapManager { mapId = 7, width = 14, height = 9, - paletteIdx1 = 128, - paletteIdx2 = 108, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 157, + paletteIdx2 = 132, + unknownShort = 382, + unknownByte = 86, borderTiles = listOf( - Tile2D(0x0210, 0), - Tile2D(0x0210, 0), - Tile2D(0x0210, 0), - Tile2D(0x0210, 0), - ), + Tile2D(0x0210, 0), Tile2D(0x0210, 0), Tile2D(0x0210, 0), Tile2D(0x0210, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.SECRET_BASE, @@ -40229,17 +35461,13 @@ object MapManager { mapId = 8, width = 15, height = 7, - paletteIdx1 = 98, - paletteIdx2 = 124, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 157, + paletteIdx2 = 135, + unknownShort = 382, + unknownByte = 86, borderTiles = listOf( - Tile2D(0x0210, 0), - Tile2D(0x0210, 0), - Tile2D(0x0210, 0), - Tile2D(0x0210, 0), - ), + Tile2D(0x0210, 0), Tile2D(0x0210, 0), Tile2D(0x0210, 0), Tile2D(0x0210, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.SECRET_BASE, @@ -40256,17 +35484,13 @@ object MapManager { mapId = 9, width = 14, height = 9, - paletteIdx1 = 108, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 157, + paletteIdx2 = 136, + unknownShort = 382, + unknownByte = 86, borderTiles = listOf( - Tile2D(0x0210, 0), - Tile2D(0x0210, 0), - Tile2D(0x0210, 0), - Tile2D(0x0210, 0), - ), + Tile2D(0x0210, 0), Tile2D(0x0210, 0), Tile2D(0x0210, 0), Tile2D(0x0210, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.SECRET_BASE, @@ -40283,17 +35507,13 @@ object MapManager { mapId = 10, width = 7, height = 16, - paletteIdx1 = 137, - paletteIdx2 = 93, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 157, + paletteIdx2 = 133, + unknownShort = 382, + unknownByte = 86, borderTiles = listOf( - Tile2D(0x0208, 0), - Tile2D(0x0208, 0), - Tile2D(0x0208, 0), - Tile2D(0x0208, 0), - ), + Tile2D(0x0208, 0), Tile2D(0x0208, 0), Tile2D(0x0208, 0), Tile2D(0x0208, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.SECRET_BASE, @@ -40310,17 +35530,13 @@ object MapManager { mapId = 11, width = 15, height = 7, - paletteIdx1 = 111, - paletteIdx2 = 105, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 157, + paletteIdx2 = 134, + unknownShort = 382, + unknownByte = 86, borderTiles = listOf( - Tile2D(0x0208, 0), - Tile2D(0x0208, 0), - Tile2D(0x0208, 0), - Tile2D(0x0208, 0), - ), + Tile2D(0x0208, 0), Tile2D(0x0208, 0), Tile2D(0x0208, 0), Tile2D(0x0208, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.SECRET_BASE, @@ -40337,17 +35553,13 @@ object MapManager { mapId = 12, width = 15, height = 8, - paletteIdx1 = 135, - paletteIdx2 = 111, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 157, + paletteIdx2 = 137, + unknownShort = 382, + unknownByte = 86, borderTiles = listOf( - Tile2D(0x0210, 0), - Tile2D(0x0210, 0), - Tile2D(0x0210, 0), - Tile2D(0x0210, 0), - ), + Tile2D(0x0210, 0), Tile2D(0x0210, 0), Tile2D(0x0210, 0), Tile2D(0x0210, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.SECRET_BASE, @@ -40364,17 +35576,13 @@ object MapManager { mapId = 13, width = 15, height = 11, - paletteIdx1 = 128, - paletteIdx2 = 108, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 157, + paletteIdx2 = 132, + unknownShort = 382, + unknownByte = 86, borderTiles = listOf( - Tile2D(0x0210, 0), - Tile2D(0x0210, 0), - Tile2D(0x0210, 0), - Tile2D(0x0210, 0), - ), + Tile2D(0x0210, 0), Tile2D(0x0210, 0), Tile2D(0x0210, 0), Tile2D(0x0210, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.SECRET_BASE, @@ -40398,17 +35606,13 @@ object MapManager { mapId = 14, width = 10, height = 17, - paletteIdx1 = 98, - paletteIdx2 = 124, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 157, + paletteIdx2 = 135, + unknownShort = 382, + unknownByte = 86, borderTiles = listOf( - Tile2D(0x0210, 0), - Tile2D(0x0210, 0), - Tile2D(0x0210, 0), - Tile2D(0x0210, 0), - ), + Tile2D(0x0210, 0), Tile2D(0x0210, 0), Tile2D(0x0210, 0), Tile2D(0x0210, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.SECRET_BASE, @@ -40425,17 +35629,13 @@ object MapManager { mapId = 15, width = 12, height = 11, - paletteIdx1 = 108, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 157, + paletteIdx2 = 136, + unknownShort = 382, + unknownByte = 86, borderTiles = listOf( - Tile2D(0x0210, 0), - Tile2D(0x0210, 0), - Tile2D(0x0210, 0), - Tile2D(0x0210, 0), - ), + Tile2D(0x0210, 0), Tile2D(0x0210, 0), Tile2D(0x0210, 0), Tile2D(0x0210, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.SECRET_BASE, @@ -40452,17 +35652,13 @@ object MapManager { mapId = 16, width = 17, height = 8, - paletteIdx1 = 137, - paletteIdx2 = 93, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 157, + paletteIdx2 = 133, + unknownShort = 382, + unknownByte = 86, borderTiles = listOf( - Tile2D(0x0208, 0), - Tile2D(0x0208, 0), - Tile2D(0x0208, 0), - Tile2D(0x0208, 0), - ), + Tile2D(0x0208, 0), Tile2D(0x0208, 0), Tile2D(0x0208, 0), Tile2D(0x0208, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.SECRET_BASE, @@ -40479,17 +35675,13 @@ object MapManager { mapId = 17, width = 13, height = 11, - paletteIdx1 = 111, - paletteIdx2 = 105, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 157, + paletteIdx2 = 134, + unknownShort = 382, + unknownByte = 86, borderTiles = listOf( - Tile2D(0x0208, 0), - Tile2D(0x0208, 0), - Tile2D(0x0208, 0), - Tile2D(0x0208, 0), - ), + Tile2D(0x0208, 0), Tile2D(0x0208, 0), Tile2D(0x0208, 0), Tile2D(0x0208, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.SECRET_BASE, @@ -40506,17 +35698,13 @@ object MapManager { mapId = 18, width = 9, height = 15, - paletteIdx1 = 135, - paletteIdx2 = 111, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 157, + paletteIdx2 = 137, + unknownShort = 382, + unknownByte = 86, borderTiles = listOf( - Tile2D(0x0210, 0), - Tile2D(0x0210, 0), - Tile2D(0x0210, 0), - Tile2D(0x0210, 0), - ), + Tile2D(0x0210, 0), Tile2D(0x0210, 0), Tile2D(0x0210, 0), Tile2D(0x0210, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.SECRET_BASE, @@ -40533,17 +35721,13 @@ object MapManager { mapId = 19, width = 14, height = 12, - paletteIdx1 = 128, - paletteIdx2 = 108, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 157, + paletteIdx2 = 132, + unknownShort = 382, + unknownByte = 86, borderTiles = listOf( - Tile2D(0x0210, 0), - Tile2D(0x0210, 0), - Tile2D(0x0210, 0), - Tile2D(0x0210, 0), - ), + Tile2D(0x0210, 0), Tile2D(0x0210, 0), Tile2D(0x0210, 0), Tile2D(0x0210, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.SECRET_BASE, @@ -40560,17 +35744,13 @@ object MapManager { mapId = 20, width = 9, height = 17, - paletteIdx1 = 98, - paletteIdx2 = 124, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 157, + paletteIdx2 = 135, + unknownShort = 382, + unknownByte = 86, borderTiles = listOf( - Tile2D(0x0210, 0), - Tile2D(0x0210, 0), - Tile2D(0x0210, 0), - Tile2D(0x0210, 0), - ), + Tile2D(0x0210, 0), Tile2D(0x0210, 0), Tile2D(0x0210, 0), Tile2D(0x0210, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.SECRET_BASE, @@ -40587,17 +35767,13 @@ object MapManager { mapId = 21, width = 13, height = 14, - paletteIdx1 = 108, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 157, + paletteIdx2 = 136, + unknownShort = 382, + unknownByte = 86, borderTiles = listOf( - Tile2D(0x0210, 0), - Tile2D(0x0210, 0), - Tile2D(0x0210, 0), - Tile2D(0x0210, 0), - ), + Tile2D(0x0210, 0), Tile2D(0x0210, 0), Tile2D(0x0210, 0), Tile2D(0x0210, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.SECRET_BASE, @@ -40614,17 +35790,13 @@ object MapManager { mapId = 22, width = 14, height = 14, - paletteIdx1 = 137, - paletteIdx2 = 93, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 157, + paletteIdx2 = 133, + unknownShort = 382, + unknownByte = 86, borderTiles = listOf( - Tile2D(0x0208, 0), - Tile2D(0x0208, 0), - Tile2D(0x0208, 0), - Tile2D(0x0208, 0), - ), + Tile2D(0x0208, 0), Tile2D(0x0208, 0), Tile2D(0x0208, 0), Tile2D(0x0208, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.SECRET_BASE, @@ -40641,17 +35813,13 @@ object MapManager { mapId = 23, width = 14, height = 11, - paletteIdx1 = 111, - paletteIdx2 = 105, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 157, + paletteIdx2 = 134, + unknownShort = 382, + unknownByte = 86, borderTiles = listOf( - Tile2D(0x0208, 0), - Tile2D(0x0208, 0), - Tile2D(0x0208, 0), - Tile2D(0x0208, 0), - ), + Tile2D(0x0208, 0), Tile2D(0x0208, 0), Tile2D(0x0208, 0), Tile2D(0x0208, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.SECRET_BASE, @@ -40668,17 +35836,13 @@ object MapManager { mapId = 24, width = 14, height = 9, - paletteIdx1 = 98, - paletteIdx2 = 110, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 125, + unknownShort = 422, + unknownByte = 87, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -40698,8 +35862,8 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 2, - script = "BattleColosseum_2P_EventScript_Attendant", - )), + script = "BattleColosseum_2P_EventScript_Attendant"), + ), bgEvents = emptyList(), ), // TradeCenter (MAP_TRADE_CENTER) @@ -40709,17 +35873,13 @@ object MapManager { mapId = 25, width = 12, height = 9, - paletteIdx1 = 98, - paletteIdx2 = 110, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 125, + unknownShort = 422, + unknownByte = 87, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -40739,8 +35899,8 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 2, - script = "TradeCenter_EventScript_Attendant", - )), + script = "TradeCenter_EventScript_Attendant"), + ), bgEvents = emptyList(), ), // RecordCorner (MAP_RECORD_CORNER) @@ -40750,17 +35910,13 @@ object MapManager { mapId = 26, width = 20, height = 10, - paletteIdx1 = 98, - paletteIdx2 = 110, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 125, + unknownShort = 422, + unknownByte = 87, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -40779,9 +35935,9 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "RecordCorner_EventScript_Attendant", - )), + facing = 0, + script = "RecordCorner_EventScript_Attendant"), + ), bgEvents = emptyList(), ), // BattleColosseum_4P (MAP_BATTLE_COLOSSEUM_4P) @@ -40791,17 +35947,13 @@ object MapManager { mapId = 27, width = 14, height = 9, - paletteIdx1 = 98, - paletteIdx2 = 110, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 125, + unknownShort = 422, + unknownByte = 87, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -40818,17 +35970,13 @@ object MapManager { mapId = 28, width = 15, height = 11, - paletteIdx1 = 83, - paletteIdx2 = 89, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 140, + unknownShort = 440, + unknownByte = 87, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -40847,9 +35995,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "0x0", - ), + facing = 0, + script = "0x0"), NpcDef( entityIdx = 1, graphicsId = 0, @@ -40860,9 +36007,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "0x0", - ), + facing = 0, + script = "0x0"), NpcDef( entityIdx = 2, graphicsId = 240, @@ -40873,9 +36019,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 0, - script = "0x0", - ), + facing = 1, + script = "0x0"), NpcDef( entityIdx = 3, graphicsId = 0, @@ -40886,9 +36031,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 0, - script = "0x0", - ), + facing = 1, + script = "0x0"), NpcDef( entityIdx = 4, graphicsId = 0, @@ -40899,9 +36043,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 0, - script = "0x0", - ), + facing = 1, + script = "0x0"), NpcDef( entityIdx = 5, graphicsId = 0, @@ -40913,8 +36056,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "0x0", - ), + script = "0x0"), NpcDef( entityIdx = 6, graphicsId = 0, @@ -40925,9 +36067,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "0x0", - ), + facing = 0, + script = "0x0"), NpcDef( entityIdx = 7, graphicsId = 0, @@ -40938,9 +36079,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "0x0", - ), + facing = 0, + script = "0x0"), NpcDef( entityIdx = 8, graphicsId = 0, @@ -40951,9 +36091,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "0x0", - ), + facing = 0, + script = "0x0"), NpcDef( entityIdx = 9, graphicsId = 0, @@ -40964,9 +36103,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "0x0", - ), + facing = 0, + script = "0x0"), NpcDef( entityIdx = 10, graphicsId = 0, @@ -40978,8 +36116,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 2, - script = "0x0", - ), + script = "0x0"), NpcDef( entityIdx = 11, graphicsId = 0, @@ -40991,8 +36128,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "0x0", - ), + script = "0x0"), NpcDef( entityIdx = 13, graphicsId = 0, @@ -41003,9 +36139,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 0, - script = "0x0", - ), + facing = 1, + script = "0x0"), NpcDef( entityIdx = 14, graphicsId = 0, @@ -41017,8 +36152,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 2, - script = "0x0", - ), + script = "0x0"), ), bgEvents = emptyList(), ), @@ -41029,17 +36163,13 @@ object MapManager { mapId = 29, width = 1, height = 1, - paletteIdx1 = 91, - paletteIdx2 = 109, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 140, + unknownShort = 357, + unknownByte = 87, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -41056,17 +36186,13 @@ object MapManager { mapId = 30, width = 1, height = 1, - paletteIdx1 = 91, - paletteIdx2 = 109, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 140, + unknownShort = 357, + unknownByte = 87, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -41083,17 +36209,13 @@ object MapManager { mapId = 31, width = 1, height = 1, - paletteIdx1 = 91, - paletteIdx2 = 109, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 140, + unknownShort = 357, + unknownByte = 87, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -41110,17 +36232,13 @@ object MapManager { mapId = 32, width = 1, height = 1, - paletteIdx1 = 91, - paletteIdx2 = 109, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 140, + unknownShort = 357, + unknownByte = 87, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -41137,17 +36255,13 @@ object MapManager { mapId = 33, width = 1, height = 1, - paletteIdx1 = 91, - paletteIdx2 = 109, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 140, + unknownShort = 357, + unknownByte = 87, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -41164,17 +36278,13 @@ object MapManager { mapId = 34, width = 1, height = 1, - paletteIdx1 = 91, - paletteIdx2 = 109, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 140, + unknownShort = 357, + unknownByte = 87, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -41191,17 +36301,13 @@ object MapManager { mapId = 35, width = 15, height = 11, - paletteIdx1 = 83, - paletteIdx2 = 89, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 140, + unknownShort = 440, + unknownByte = 87, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -41218,17 +36324,13 @@ object MapManager { mapId = 36, width = 15, height = 11, - paletteIdx1 = 83, - paletteIdx2 = 89, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 140, + unknownShort = 440, + unknownByte = 87, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -41245,17 +36347,13 @@ object MapManager { mapId = 37, width = 15, height = 11, - paletteIdx1 = 83, - paletteIdx2 = 89, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 140, + unknownShort = 440, + unknownByte = 87, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -41272,17 +36370,13 @@ object MapManager { mapId = 38, width = 15, height = 11, - paletteIdx1 = 83, - paletteIdx2 = 89, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 140, + unknownShort = 440, + unknownByte = 87, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -41299,17 +36393,13 @@ object MapManager { mapId = 39, width = 15, height = 11, - paletteIdx1 = 83, - paletteIdx2 = 89, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 140, + unknownShort = 440, + unknownByte = 87, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -41326,17 +36416,13 @@ object MapManager { mapId = 40, width = 5, height = 5, - paletteIdx1 = 123, - paletteIdx2 = 91, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 138, + unknownShort = 0, + unknownByte = 84, borderTiles = listOf( - Tile2D(0x0206, 0), - Tile2D(0x0206, 0), - Tile2D(0x0206, 0), - Tile2D(0x0206, 0), - ), + Tile2D(0x0206, 0), Tile2D(0x0206, 0), Tile2D(0x0206, 0), Tile2D(0x0206, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -41355,9 +36441,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "InsideOfTruck_EventScript_MovingBox", - ), + facing = 0, + script = "InsideOfTruck_EventScript_MovingBox"), NpcDef( entityIdx = 1, graphicsId = 0, @@ -41368,9 +36453,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "InsideOfTruck_EventScript_MovingBox", - ), + facing = 0, + script = "InsideOfTruck_EventScript_MovingBox"), NpcDef( entityIdx = 2, graphicsId = 0, @@ -41381,9 +36465,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "InsideOfTruck_EventScript_MovingBox", - ), + facing = 0, + script = "InsideOfTruck_EventScript_MovingBox"), ), bgEvents = listOf( @@ -41391,32 +36474,27 @@ object MapManager { x = 1, y = 0, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "InsideOfTruck_EventScript_MovingBox", - ), + script = "InsideOfTruck_EventScript_MovingBox"), BgEventDef( x = 3, y = 4, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "InsideOfTruck_EventScript_MovingBox", - ), + script = "InsideOfTruck_EventScript_MovingBox"), BgEventDef( x = 2, y = 3, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "InsideOfTruck_EventScript_MovingBox", - ), + script = "InsideOfTruck_EventScript_MovingBox"), BgEventDef( x = 0, y = 1, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "InsideOfTruck_EventScript_MovingBox", - ), + script = "InsideOfTruck_EventScript_MovingBox"), BgEventDef( x = 0, y = 2, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "InsideOfTruck_EventScript_MovingBox", - ), + script = "InsideOfTruck_EventScript_MovingBox"), ), ), // SSTidalCorridor (MAP_SS_TIDAL_CORRIDOR) @@ -41426,17 +36504,13 @@ object MapManager { mapId = 41, width = 18, height = 13, - paletteIdx1 = 125, - paletteIdx2 = 105, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 156, + unknownShort = 431, + unknownByte = 87, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -41451,8 +36525,7 @@ object MapManager { targetBankId = 75, targetMapId = 43, targetX = 4, - targetY = 16, - ), + targetY = 16), WarpTile( x = 7, y = 9, @@ -41460,8 +36533,7 @@ object MapManager { targetBankId = 75, targetMapId = 43, targetX = 13, - targetY = 16, - ), + targetY = 16), WarpTile( x = 10, y = 9, @@ -41469,8 +36541,7 @@ object MapManager { targetBankId = 75, targetMapId = 43, targetX = 22, - targetY = 16, - ), + targetY = 16), WarpTile( x = 13, y = 9, @@ -41478,8 +36549,7 @@ object MapManager { targetBankId = 75, targetMapId = 43, targetX = 31, - targetY = 16, - ), + targetY = 16), WarpTile( x = 4, y = 3, @@ -41487,8 +36557,7 @@ object MapManager { targetBankId = 75, targetMapId = 43, targetX = 4, - targetY = 1, - ), + targetY = 1), WarpTile( x = 7, y = 3, @@ -41496,8 +36565,7 @@ object MapManager { targetBankId = 75, targetMapId = 43, targetX = 13, - targetY = 1, - ), + targetY = 1), WarpTile( x = 10, y = 3, @@ -41505,8 +36573,7 @@ object MapManager { targetBankId = 75, targetMapId = 43, targetX = 22, - targetY = 1, - ), + targetY = 1), WarpTile( x = 13, y = 3, @@ -41514,8 +36581,7 @@ object MapManager { targetBankId = 75, targetMapId = 43, targetX = 31, - targetY = 1, - ), + targetY = 1), WarpTile( x = 16, y = 2, @@ -41523,8 +36589,7 @@ object MapManager { targetBankId = 75, targetMapId = 42, targetX = 15, - targetY = 2, - ), + targetY = 2), ), npcs = listOf( @@ -41538,9 +36603,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 0, - script = "SSTidalCorridor_EventScript_ExitSailor", - ), + facing = 1, + script = "SSTidalCorridor_EventScript_ExitSailor"), NpcDef( entityIdx = 1, graphicsId = 49, @@ -41552,8 +36616,7 @@ object MapManager { movementRangeY = 2, trainerType = 0, facing = 0, - script = "SSTidalCorridor_EventScript_Sailor", - ), + script = "SSTidalCorridor_EventScript_Sailor"), ), bgEvents = listOf( @@ -41561,74 +36624,62 @@ object MapManager { x = 2, y = 1, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "SSTidalCorridor_EventScript_Porthole", - ), + script = "SSTidalCorridor_EventScript_Porthole"), BgEventDef( x = 4, y = 1, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "SSTidalCorridor_EventScript_Porthole", - ), + script = "SSTidalCorridor_EventScript_Porthole"), BgEventDef( x = 6, y = 1, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "SSTidalCorridor_EventScript_Porthole", - ), + script = "SSTidalCorridor_EventScript_Porthole"), BgEventDef( x = 8, y = 1, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "SSTidalCorridor_EventScript_Porthole", - ), + script = "SSTidalCorridor_EventScript_Porthole"), BgEventDef( x = 10, y = 1, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "SSTidalCorridor_EventScript_Porthole", - ), + script = "SSTidalCorridor_EventScript_Porthole"), BgEventDef( x = 12, y = 1, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "SSTidalCorridor_EventScript_Porthole", - ), + script = "SSTidalCorridor_EventScript_Porthole"), BgEventDef( x = 14, y = 1, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "SSTidalCorridor_EventScript_Porthole", - ), + script = "SSTidalCorridor_EventScript_Porthole"), BgEventDef( x = 16, y = 1, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "SSTidalCorridor_EventScript_Porthole", - ), + script = "SSTidalCorridor_EventScript_Porthole"), BgEventDef( x = 5, y = 9, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "SSTidalCorridor_EventScript_Cabin1Sign", - ), + script = "SSTidalCorridor_EventScript_Cabin1Sign"), BgEventDef( x = 8, y = 9, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "SSTidalCorridor_EventScript_Cabin2Sign", - ), + script = "SSTidalCorridor_EventScript_Cabin2Sign"), BgEventDef( x = 11, y = 9, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "SSTidalCorridor_EventScript_Cabin3Sign", - ), + script = "SSTidalCorridor_EventScript_Cabin3Sign"), BgEventDef( x = 14, y = 9, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "SSTidalCorridor_EventScript_Cabin4Sign", - ), + script = "SSTidalCorridor_EventScript_Cabin4Sign"), ), ), // SSTidalLowerDeck (MAP_SS_TIDAL_LOWER_DECK) @@ -41638,17 +36689,13 @@ object MapManager { mapId = 42, width = 17, height = 13, - paletteIdx1 = 125, - paletteIdx2 = 105, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 156, + unknownShort = 431, + unknownByte = 87, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -41663,8 +36710,8 @@ object MapManager { targetBankId = 75, targetMapId = 41, targetX = 16, - targetY = 2, - )), + targetY = 2), + ), npcs = listOf( NpcDef( @@ -41678,8 +36725,7 @@ object MapManager { movementRangeY = 4, trainerType = 1, facing = 0, - script = "SSTidalLowerDeck_EventScript_Phillip", - ), + script = "SSTidalLowerDeck_EventScript_Phillip"), NpcDef( entityIdx = 1, graphicsId = 49, @@ -41691,8 +36737,7 @@ object MapManager { movementRangeY = 4, trainerType = 1, facing = 0, - script = "SSTidalLowerDeck_EventScript_Leonard", - ), + script = "SSTidalLowerDeck_EventScript_Leonard"), ), bgEvents = listOf( @@ -41700,8 +36745,8 @@ object MapManager { x = 0, y = 2, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - )), + script = "undefined"), + ), ), // SSTidalRooms (MAP_SS_TIDAL_ROOMS) MapDef( @@ -41710,17 +36755,13 @@ object MapManager { mapId = 43, width = 36, height = 18, - paletteIdx1 = 125, - paletteIdx2 = 105, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 156, + unknownShort = 431, + unknownByte = 87, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -41735,8 +36776,7 @@ object MapManager { targetBankId = 75, targetMapId = 41, targetX = 4, - targetY = 9, - ), + targetY = 9), WarpTile( x = 5, y = 16, @@ -41744,8 +36784,7 @@ object MapManager { targetBankId = 75, targetMapId = 41, targetX = 4, - targetY = 9, - ), + targetY = 9), WarpTile( x = 13, y = 16, @@ -41753,8 +36792,7 @@ object MapManager { targetBankId = 75, targetMapId = 41, targetX = 7, - targetY = 9, - ), + targetY = 9), WarpTile( x = 14, y = 16, @@ -41762,8 +36800,7 @@ object MapManager { targetBankId = 75, targetMapId = 41, targetX = 7, - targetY = 9, - ), + targetY = 9), WarpTile( x = 22, y = 16, @@ -41771,8 +36808,7 @@ object MapManager { targetBankId = 75, targetMapId = 41, targetX = 10, - targetY = 9, - ), + targetY = 9), WarpTile( x = 23, y = 16, @@ -41780,8 +36816,7 @@ object MapManager { targetBankId = 75, targetMapId = 41, targetX = 10, - targetY = 9, - ), + targetY = 9), WarpTile( x = 31, y = 16, @@ -41789,8 +36824,7 @@ object MapManager { targetBankId = 75, targetMapId = 41, targetX = 13, - targetY = 9, - ), + targetY = 9), WarpTile( x = 32, y = 16, @@ -41798,8 +36832,7 @@ object MapManager { targetBankId = 75, targetMapId = 41, targetX = 13, - targetY = 9, - ), + targetY = 9), WarpTile( x = 4, y = 1, @@ -41807,8 +36840,7 @@ object MapManager { targetBankId = 75, targetMapId = 41, targetX = 4, - targetY = 3, - ), + targetY = 3), WarpTile( x = 13, y = 1, @@ -41816,8 +36848,7 @@ object MapManager { targetBankId = 75, targetMapId = 41, targetX = 7, - targetY = 3, - ), + targetY = 3), WarpTile( x = 22, y = 1, @@ -41825,8 +36856,7 @@ object MapManager { targetBankId = 75, targetMapId = 41, targetX = 10, - targetY = 3, - ), + targetY = 3), WarpTile( x = 31, y = 1, @@ -41834,8 +36864,7 @@ object MapManager { targetBankId = 75, targetMapId = 41, targetX = 13, - targetY = 3, - ), + targetY = 3), ), npcs = listOf( @@ -41850,8 +36879,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 3, - script = "SSTidalRooms_EventScript_Colton", - ), + script = "SSTidalRooms_EventScript_Colton"), NpcDef( entityIdx = 1, graphicsId = 48, @@ -41863,8 +36891,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 2, - script = "SSTidalRooms_EventScript_Micah", - ), + script = "SSTidalRooms_EventScript_Micah"), NpcDef( entityIdx = 2, graphicsId = 48, @@ -41876,8 +36903,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 3, - script = "SSTidalRooms_EventScript_Thomas", - ), + script = "SSTidalRooms_EventScript_Thomas"), NpcDef( entityIdx = 3, graphicsId = 65, @@ -41888,9 +36914,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 1, - facing = 1, - script = "SSTidalRooms_EventScript_Jed", - ), + facing = 0, + script = "SSTidalRooms_EventScript_Jed"), NpcDef( entityIdx = 4, graphicsId = 26, @@ -41901,9 +36926,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 1, - facing = 1, - script = "SSTidalRooms_EventScript_Lea", - ), + facing = 0, + script = "SSTidalRooms_EventScript_Lea"), NpcDef( entityIdx = 5, graphicsId = 15, @@ -41914,9 +36938,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 1, - facing = 1, - script = "SSTidalRooms_EventScript_Garret", - ), + facing = 0, + script = "SSTidalRooms_EventScript_Garret"), NpcDef( entityIdx = 6, graphicsId = 20, @@ -41928,8 +36951,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 2, - script = "SSTidalRooms_EventScript_Naomi", - ), + script = "SSTidalRooms_EventScript_Naomi"), ), bgEvents = listOf( @@ -41937,14 +36959,12 @@ object MapManager { x = 15, y = 11, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "SSTidalRooms_EventScript_Bed", - ), + script = "SSTidalRooms_EventScript_Bed"), BgEventDef( x = 15, y = 12, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "SSTidalRooms_EventScript_Bed", - ), + script = "SSTidalRooms_EventScript_Bed"), ), ), // BattlePyramidSquare01 (MAP_BATTLE_PYRAMID_SQUARE01) @@ -41954,17 +36974,13 @@ object MapManager { mapId = 44, width = 8, height = 8, - paletteIdx1 = 107, - paletteIdx2 = 95, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 165, + unknownShort = 0, + unknownByte = 87, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -41984,8 +37000,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "BattlePyramid_TrainerBattle", - ), + script = "BattlePyramid_TrainerBattle"), NpcDef( entityIdx = 1, graphicsId = 14, @@ -41997,8 +37012,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "BattlePyramid_TrainerBattle", - ), + script = "BattlePyramid_TrainerBattle"), NpcDef( entityIdx = 2, graphicsId = 15, @@ -42010,8 +37024,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "BattlePyramid_TrainerBattle", - ), + script = "BattlePyramid_TrainerBattle"), NpcDef( entityIdx = 3, graphicsId = 9, @@ -42023,8 +37036,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 2, - script = "BattlePyramid_TrainerBattle", - ), + script = "BattlePyramid_TrainerBattle"), NpcDef( entityIdx = 4, graphicsId = 59, @@ -42036,8 +37048,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattlePyramid_FindItemBall", - ), + script = "BattlePyramid_FindItemBall"), NpcDef( entityIdx = 5, graphicsId = 59, @@ -42049,8 +37060,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattlePyramid_FindItemBall", - ), + script = "BattlePyramid_FindItemBall"), NpcDef( entityIdx = 6, graphicsId = 59, @@ -42062,8 +37072,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattlePyramid_FindItemBall", - ), + script = "BattlePyramid_FindItemBall"), ), bgEvents = emptyList(), ), @@ -42074,17 +37083,13 @@ object MapManager { mapId = 45, width = 8, height = 8, - paletteIdx1 = 107, - paletteIdx2 = 95, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 165, + unknownShort = 0, + unknownByte = 87, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -42104,8 +37109,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "BattlePyramid_TrainerBattle", - ), + script = "BattlePyramid_TrainerBattle"), NpcDef( entityIdx = 1, graphicsId = 18, @@ -42117,8 +37121,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "BattlePyramid_TrainerBattle", - ), + script = "BattlePyramid_TrainerBattle"), NpcDef( entityIdx = 2, graphicsId = 17, @@ -42130,8 +37133,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "BattlePyramid_TrainerBattle", - ), + script = "BattlePyramid_TrainerBattle"), NpcDef( entityIdx = 3, graphicsId = 6, @@ -42143,8 +37145,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "BattlePyramid_TrainerBattle", - ), + script = "BattlePyramid_TrainerBattle"), NpcDef( entityIdx = 4, graphicsId = 59, @@ -42156,8 +37157,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattlePyramid_FindItemBall", - ), + script = "BattlePyramid_FindItemBall"), NpcDef( entityIdx = 5, graphicsId = 59, @@ -42169,8 +37169,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattlePyramid_FindItemBall", - ), + script = "BattlePyramid_FindItemBall"), NpcDef( entityIdx = 6, graphicsId = 59, @@ -42182,8 +37181,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattlePyramid_FindItemBall", - ), + script = "BattlePyramid_FindItemBall"), ), bgEvents = emptyList(), ), @@ -42194,17 +37192,13 @@ object MapManager { mapId = 46, width = 8, height = 8, - paletteIdx1 = 107, - paletteIdx2 = 95, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 165, + unknownShort = 0, + unknownByte = 87, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -42224,8 +37218,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "BattlePyramid_TrainerBattle", - ), + script = "BattlePyramid_TrainerBattle"), NpcDef( entityIdx = 1, graphicsId = 11, @@ -42237,8 +37230,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "BattlePyramid_TrainerBattle", - ), + script = "BattlePyramid_TrainerBattle"), NpcDef( entityIdx = 2, graphicsId = 50, @@ -42250,8 +37242,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "BattlePyramid_TrainerBattle", - ), + script = "BattlePyramid_TrainerBattle"), NpcDef( entityIdx = 3, graphicsId = 33, @@ -42263,8 +37254,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "BattlePyramid_TrainerBattle", - ), + script = "BattlePyramid_TrainerBattle"), NpcDef( entityIdx = 4, graphicsId = 59, @@ -42276,8 +37266,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattlePyramid_FindItemBall", - ), + script = "BattlePyramid_FindItemBall"), NpcDef( entityIdx = 5, graphicsId = 59, @@ -42289,8 +37278,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattlePyramid_FindItemBall", - ), + script = "BattlePyramid_FindItemBall"), NpcDef( entityIdx = 6, graphicsId = 59, @@ -42302,8 +37290,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattlePyramid_FindItemBall", - ), + script = "BattlePyramid_FindItemBall"), ), bgEvents = emptyList(), ), @@ -42314,17 +37301,13 @@ object MapManager { mapId = 47, width = 8, height = 8, - paletteIdx1 = 107, - paletteIdx2 = 95, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 165, + unknownShort = 0, + unknownByte = 87, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -42344,8 +37327,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "BattlePyramid_TrainerBattle", - ), + script = "BattlePyramid_TrainerBattle"), NpcDef( entityIdx = 1, graphicsId = 8, @@ -42357,8 +37339,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "BattlePyramid_TrainerBattle", - ), + script = "BattlePyramid_TrainerBattle"), NpcDef( entityIdx = 2, graphicsId = 15, @@ -42370,8 +37351,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "BattlePyramid_TrainerBattle", - ), + script = "BattlePyramid_TrainerBattle"), NpcDef( entityIdx = 3, graphicsId = 14, @@ -42383,8 +37363,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "BattlePyramid_TrainerBattle", - ), + script = "BattlePyramid_TrainerBattle"), NpcDef( entityIdx = 4, graphicsId = 59, @@ -42396,8 +37375,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattlePyramid_FindItemBall", - ), + script = "BattlePyramid_FindItemBall"), NpcDef( entityIdx = 5, graphicsId = 59, @@ -42409,8 +37387,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattlePyramid_FindItemBall", - ), + script = "BattlePyramid_FindItemBall"), NpcDef( entityIdx = 6, graphicsId = 59, @@ -42422,8 +37399,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattlePyramid_FindItemBall", - ), + script = "BattlePyramid_FindItemBall"), ), bgEvents = emptyList(), ), @@ -42434,17 +37410,13 @@ object MapManager { mapId = 48, width = 8, height = 8, - paletteIdx1 = 107, - paletteIdx2 = 95, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 165, + unknownShort = 0, + unknownByte = 87, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -42463,9 +37435,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 1, - facing = 0, - script = "BattlePyramid_TrainerBattle", - ), + facing = 1, + script = "BattlePyramid_TrainerBattle"), NpcDef( entityIdx = 1, graphicsId = 9, @@ -42477,8 +37448,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "BattlePyramid_TrainerBattle", - ), + script = "BattlePyramid_TrainerBattle"), NpcDef( entityIdx = 2, graphicsId = 9, @@ -42489,9 +37459,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 1, - facing = 1, - script = "BattlePyramid_TrainerBattle", - ), + facing = 0, + script = "BattlePyramid_TrainerBattle"), NpcDef( entityIdx = 3, graphicsId = 9, @@ -42503,8 +37472,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "BattlePyramid_TrainerBattle", - ), + script = "BattlePyramid_TrainerBattle"), NpcDef( entityIdx = 4, graphicsId = 59, @@ -42516,8 +37484,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattlePyramid_FindItemBall", - ), + script = "BattlePyramid_FindItemBall"), NpcDef( entityIdx = 5, graphicsId = 59, @@ -42529,8 +37496,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattlePyramid_FindItemBall", - ), + script = "BattlePyramid_FindItemBall"), NpcDef( entityIdx = 6, graphicsId = 59, @@ -42542,8 +37508,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattlePyramid_FindItemBall", - ), + script = "BattlePyramid_FindItemBall"), ), bgEvents = emptyList(), ), @@ -42554,17 +37519,13 @@ object MapManager { mapId = 49, width = 8, height = 8, - paletteIdx1 = 107, - paletteIdx2 = 95, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 165, + unknownShort = 0, + unknownByte = 87, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -42584,8 +37545,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "BattlePyramid_TrainerBattle", - ), + script = "BattlePyramid_TrainerBattle"), NpcDef( entityIdx = 1, graphicsId = 10, @@ -42597,8 +37557,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "BattlePyramid_TrainerBattle", - ), + script = "BattlePyramid_TrainerBattle"), NpcDef( entityIdx = 2, graphicsId = 10, @@ -42610,8 +37569,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "BattlePyramid_TrainerBattle", - ), + script = "BattlePyramid_TrainerBattle"), NpcDef( entityIdx = 3, graphicsId = 10, @@ -42623,8 +37581,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "BattlePyramid_TrainerBattle", - ), + script = "BattlePyramid_TrainerBattle"), NpcDef( entityIdx = 4, graphicsId = 59, @@ -42636,8 +37593,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattlePyramid_FindItemBall", - ), + script = "BattlePyramid_FindItemBall"), NpcDef( entityIdx = 5, graphicsId = 59, @@ -42649,8 +37605,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattlePyramid_FindItemBall", - ), + script = "BattlePyramid_FindItemBall"), NpcDef( entityIdx = 6, graphicsId = 59, @@ -42662,8 +37617,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattlePyramid_FindItemBall", - ), + script = "BattlePyramid_FindItemBall"), ), bgEvents = emptyList(), ), @@ -42674,17 +37628,13 @@ object MapManager { mapId = 50, width = 8, height = 8, - paletteIdx1 = 107, - paletteIdx2 = 95, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 165, + unknownShort = 0, + unknownByte = 87, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -42704,8 +37654,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 3, - script = "BattlePyramid_TrainerBattle", - ), + script = "BattlePyramid_TrainerBattle"), NpcDef( entityIdx = 1, graphicsId = 11, @@ -42717,8 +37666,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "BattlePyramid_TrainerBattle", - ), + script = "BattlePyramid_TrainerBattle"), NpcDef( entityIdx = 2, graphicsId = 11, @@ -42729,9 +37677,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 1, - facing = 1, - script = "BattlePyramid_TrainerBattle", - ), + facing = 0, + script = "BattlePyramid_TrainerBattle"), NpcDef( entityIdx = 3, graphicsId = 11, @@ -42743,8 +37690,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "BattlePyramid_TrainerBattle", - ), + script = "BattlePyramid_TrainerBattle"), NpcDef( entityIdx = 4, graphicsId = 59, @@ -42756,8 +37702,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattlePyramid_FindItemBall", - ), + script = "BattlePyramid_FindItemBall"), NpcDef( entityIdx = 5, graphicsId = 59, @@ -42769,8 +37714,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattlePyramid_FindItemBall", - ), + script = "BattlePyramid_FindItemBall"), NpcDef( entityIdx = 6, graphicsId = 59, @@ -42782,8 +37726,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattlePyramid_FindItemBall", - ), + script = "BattlePyramid_FindItemBall"), ), bgEvents = emptyList(), ), @@ -42794,17 +37737,13 @@ object MapManager { mapId = 51, width = 8, height = 8, - paletteIdx1 = 107, - paletteIdx2 = 95, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 165, + unknownShort = 0, + unknownByte = 87, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -42824,8 +37763,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "BattlePyramid_TrainerBattle", - ), + script = "BattlePyramid_TrainerBattle"), NpcDef( entityIdx = 1, graphicsId = 12, @@ -42837,8 +37775,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "BattlePyramid_TrainerBattle", - ), + script = "BattlePyramid_TrainerBattle"), NpcDef( entityIdx = 2, graphicsId = 12, @@ -42850,8 +37787,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "BattlePyramid_TrainerBattle", - ), + script = "BattlePyramid_TrainerBattle"), NpcDef( entityIdx = 3, graphicsId = 12, @@ -42863,8 +37799,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "BattlePyramid_TrainerBattle", - ), + script = "BattlePyramid_TrainerBattle"), NpcDef( entityIdx = 4, graphicsId = 59, @@ -42876,8 +37811,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattlePyramid_FindItemBall", - ), + script = "BattlePyramid_FindItemBall"), NpcDef( entityIdx = 5, graphicsId = 59, @@ -42889,8 +37823,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattlePyramid_FindItemBall", - ), + script = "BattlePyramid_FindItemBall"), NpcDef( entityIdx = 6, graphicsId = 59, @@ -42902,8 +37835,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattlePyramid_FindItemBall", - ), + script = "BattlePyramid_FindItemBall"), ), bgEvents = emptyList(), ), @@ -42914,17 +37846,13 @@ object MapManager { mapId = 52, width = 8, height = 8, - paletteIdx1 = 107, - paletteIdx2 = 95, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 165, + unknownShort = 0, + unknownByte = 87, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -42943,9 +37871,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 1, - facing = 1, - script = "BattlePyramid_TrainerBattle", - ), + facing = 0, + script = "BattlePyramid_TrainerBattle"), NpcDef( entityIdx = 1, graphicsId = 12, @@ -42957,8 +37884,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "BattlePyramid_TrainerBattle", - ), + script = "BattlePyramid_TrainerBattle"), NpcDef( entityIdx = 2, graphicsId = 12, @@ -42970,8 +37896,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "BattlePyramid_TrainerBattle", - ), + script = "BattlePyramid_TrainerBattle"), NpcDef( entityIdx = 3, graphicsId = 12, @@ -42983,8 +37908,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "BattlePyramid_TrainerBattle", - ), + script = "BattlePyramid_TrainerBattle"), NpcDef( entityIdx = 4, graphicsId = 59, @@ -42996,8 +37920,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattlePyramid_FindItemBall", - ), + script = "BattlePyramid_FindItemBall"), NpcDef( entityIdx = 5, graphicsId = 59, @@ -43009,8 +37932,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattlePyramid_FindItemBall", - ), + script = "BattlePyramid_FindItemBall"), NpcDef( entityIdx = 6, graphicsId = 59, @@ -43022,8 +37944,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattlePyramid_FindItemBall", - ), + script = "BattlePyramid_FindItemBall"), ), bgEvents = emptyList(), ), @@ -43034,17 +37955,13 @@ object MapManager { mapId = 53, width = 8, height = 8, - paletteIdx1 = 107, - paletteIdx2 = 95, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 165, + unknownShort = 0, + unknownByte = 87, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -43064,8 +37981,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "BattlePyramid_TrainerBattle", - ), + script = "BattlePyramid_TrainerBattle"), NpcDef( entityIdx = 1, graphicsId = 14, @@ -43077,8 +37993,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 3, - script = "BattlePyramid_TrainerBattle", - ), + script = "BattlePyramid_TrainerBattle"), NpcDef( entityIdx = 2, graphicsId = 14, @@ -43090,8 +38005,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 2, - script = "BattlePyramid_TrainerBattle", - ), + script = "BattlePyramid_TrainerBattle"), NpcDef( entityIdx = 3, graphicsId = 14, @@ -43103,8 +38017,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 3, - script = "BattlePyramid_TrainerBattle", - ), + script = "BattlePyramid_TrainerBattle"), NpcDef( entityIdx = 4, graphicsId = 59, @@ -43116,8 +38029,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattlePyramid_FindItemBall", - ), + script = "BattlePyramid_FindItemBall"), NpcDef( entityIdx = 5, graphicsId = 59, @@ -43129,8 +38041,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattlePyramid_FindItemBall", - ), + script = "BattlePyramid_FindItemBall"), NpcDef( entityIdx = 6, graphicsId = 59, @@ -43142,8 +38053,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattlePyramid_FindItemBall", - ), + script = "BattlePyramid_FindItemBall"), ), bgEvents = emptyList(), ), @@ -43154,17 +38064,13 @@ object MapManager { mapId = 54, width = 8, height = 8, - paletteIdx1 = 107, - paletteIdx2 = 95, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 165, + unknownShort = 0, + unknownByte = 87, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -43183,9 +38089,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 1, - facing = 1, - script = "BattlePyramid_TrainerBattle", - ), + facing = 0, + script = "BattlePyramid_TrainerBattle"), NpcDef( entityIdx = 1, graphicsId = 15, @@ -43197,8 +38102,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "BattlePyramid_TrainerBattle", - ), + script = "BattlePyramid_TrainerBattle"), NpcDef( entityIdx = 2, graphicsId = 15, @@ -43209,9 +38113,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 1, - facing = 1, - script = "BattlePyramid_TrainerBattle", - ), + facing = 0, + script = "BattlePyramid_TrainerBattle"), NpcDef( entityIdx = 3, graphicsId = 15, @@ -43222,9 +38125,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 1, - facing = 0, - script = "BattlePyramid_TrainerBattle", - ), + facing = 1, + script = "BattlePyramid_TrainerBattle"), NpcDef( entityIdx = 4, graphicsId = 59, @@ -43236,8 +38138,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattlePyramid_FindItemBall", - ), + script = "BattlePyramid_FindItemBall"), NpcDef( entityIdx = 5, graphicsId = 59, @@ -43249,8 +38150,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattlePyramid_FindItemBall", - ), + script = "BattlePyramid_FindItemBall"), NpcDef( entityIdx = 6, graphicsId = 59, @@ -43262,8 +38162,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattlePyramid_FindItemBall", - ), + script = "BattlePyramid_FindItemBall"), ), bgEvents = emptyList(), ), @@ -43274,17 +38173,13 @@ object MapManager { mapId = 55, width = 8, height = 8, - paletteIdx1 = 107, - paletteIdx2 = 95, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 165, + unknownShort = 0, + unknownByte = 87, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -43304,8 +38199,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 2, - script = "BattlePyramid_TrainerBattle", - ), + script = "BattlePyramid_TrainerBattle"), NpcDef( entityIdx = 1, graphicsId = 16, @@ -43317,8 +38211,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 3, - script = "BattlePyramid_TrainerBattle", - ), + script = "BattlePyramid_TrainerBattle"), NpcDef( entityIdx = 2, graphicsId = 16, @@ -43329,9 +38222,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 1, - facing = 1, - script = "BattlePyramid_TrainerBattle", - ), + facing = 0, + script = "BattlePyramid_TrainerBattle"), NpcDef( entityIdx = 3, graphicsId = 16, @@ -43342,9 +38234,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 1, - facing = 0, - script = "BattlePyramid_TrainerBattle", - ), + facing = 1, + script = "BattlePyramid_TrainerBattle"), NpcDef( entityIdx = 4, graphicsId = 59, @@ -43356,8 +38247,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattlePyramid_FindItemBall", - ), + script = "BattlePyramid_FindItemBall"), NpcDef( entityIdx = 5, graphicsId = 59, @@ -43369,8 +38259,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattlePyramid_FindItemBall", - ), + script = "BattlePyramid_FindItemBall"), NpcDef( entityIdx = 6, graphicsId = 59, @@ -43382,8 +38271,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattlePyramid_FindItemBall", - ), + script = "BattlePyramid_FindItemBall"), ), bgEvents = emptyList(), ), @@ -43394,17 +38282,13 @@ object MapManager { mapId = 56, width = 8, height = 8, - paletteIdx1 = 107, - paletteIdx2 = 95, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 165, + unknownShort = 0, + unknownByte = 87, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -43423,9 +38307,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 1, - facing = 1, - script = "BattlePyramid_TrainerBattle", - ), + facing = 0, + script = "BattlePyramid_TrainerBattle"), NpcDef( entityIdx = 1, graphicsId = 17, @@ -43436,9 +38319,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 1, - facing = 0, - script = "BattlePyramid_TrainerBattle", - ), + facing = 1, + script = "BattlePyramid_TrainerBattle"), NpcDef( entityIdx = 2, graphicsId = 17, @@ -43449,9 +38331,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 1, - facing = 1, - script = "BattlePyramid_TrainerBattle", - ), + facing = 0, + script = "BattlePyramid_TrainerBattle"), NpcDef( entityIdx = 3, graphicsId = 17, @@ -43462,9 +38343,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 1, - facing = 0, - script = "BattlePyramid_TrainerBattle", - ), + facing = 1, + script = "BattlePyramid_TrainerBattle"), NpcDef( entityIdx = 4, graphicsId = 59, @@ -43476,8 +38356,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattlePyramid_FindItemBall", - ), + script = "BattlePyramid_FindItemBall"), NpcDef( entityIdx = 5, graphicsId = 59, @@ -43489,8 +38368,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattlePyramid_FindItemBall", - ), + script = "BattlePyramid_FindItemBall"), NpcDef( entityIdx = 6, graphicsId = 59, @@ -43502,8 +38380,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattlePyramid_FindItemBall", - ), + script = "BattlePyramid_FindItemBall"), ), bgEvents = emptyList(), ), @@ -43514,17 +38391,13 @@ object MapManager { mapId = 57, width = 8, height = 8, - paletteIdx1 = 107, - paletteIdx2 = 95, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 165, + unknownShort = 0, + unknownByte = 87, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -43544,8 +38417,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "BattlePyramid_TrainerBattle", - ), + script = "BattlePyramid_TrainerBattle"), NpcDef( entityIdx = 1, graphicsId = 18, @@ -43557,8 +38429,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "BattlePyramid_TrainerBattle", - ), + script = "BattlePyramid_TrainerBattle"), NpcDef( entityIdx = 2, graphicsId = 18, @@ -43570,8 +38441,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "BattlePyramid_TrainerBattle", - ), + script = "BattlePyramid_TrainerBattle"), NpcDef( entityIdx = 3, graphicsId = 18, @@ -43583,8 +38453,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "BattlePyramid_TrainerBattle", - ), + script = "BattlePyramid_TrainerBattle"), NpcDef( entityIdx = 4, graphicsId = 59, @@ -43596,8 +38465,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattlePyramid_FindItemBall", - ), + script = "BattlePyramid_FindItemBall"), NpcDef( entityIdx = 5, graphicsId = 59, @@ -43609,8 +38477,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattlePyramid_FindItemBall", - ), + script = "BattlePyramid_FindItemBall"), NpcDef( entityIdx = 6, graphicsId = 59, @@ -43622,8 +38489,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattlePyramid_FindItemBall", - ), + script = "BattlePyramid_FindItemBall"), ), bgEvents = emptyList(), ), @@ -43634,17 +38500,13 @@ object MapManager { mapId = 58, width = 8, height = 8, - paletteIdx1 = 107, - paletteIdx2 = 95, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 165, + unknownShort = 0, + unknownByte = 87, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -43664,8 +38526,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "BattlePyramid_TrainerBattle", - ), + script = "BattlePyramid_TrainerBattle"), NpcDef( entityIdx = 1, graphicsId = 18, @@ -43677,8 +38538,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "BattlePyramid_TrainerBattle", - ), + script = "BattlePyramid_TrainerBattle"), NpcDef( entityIdx = 2, graphicsId = 18, @@ -43690,8 +38550,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "BattlePyramid_TrainerBattle", - ), + script = "BattlePyramid_TrainerBattle"), NpcDef( entityIdx = 3, graphicsId = 18, @@ -43703,8 +38562,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "BattlePyramid_TrainerBattle", - ), + script = "BattlePyramid_TrainerBattle"), NpcDef( entityIdx = 4, graphicsId = 59, @@ -43716,8 +38574,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattlePyramid_FindItemBall", - ), + script = "BattlePyramid_FindItemBall"), NpcDef( entityIdx = 5, graphicsId = 59, @@ -43729,8 +38586,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattlePyramid_FindItemBall", - ), + script = "BattlePyramid_FindItemBall"), NpcDef( entityIdx = 6, graphicsId = 59, @@ -43742,8 +38598,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattlePyramid_FindItemBall", - ), + script = "BattlePyramid_FindItemBall"), ), bgEvents = emptyList(), ), @@ -43754,17 +38609,13 @@ object MapManager { mapId = 59, width = 8, height = 8, - paletteIdx1 = 107, - paletteIdx2 = 95, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 165, + unknownShort = 0, + unknownByte = 87, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -43784,8 +38635,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "BattlePyramid_TrainerBattle", - ), + script = "BattlePyramid_TrainerBattle"), NpcDef( entityIdx = 1, graphicsId = 18, @@ -43797,8 +38647,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "BattlePyramid_TrainerBattle", - ), + script = "BattlePyramid_TrainerBattle"), NpcDef( entityIdx = 2, graphicsId = 18, @@ -43810,8 +38659,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "BattlePyramid_TrainerBattle", - ), + script = "BattlePyramid_TrainerBattle"), NpcDef( entityIdx = 3, graphicsId = 18, @@ -43823,8 +38671,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 0, - script = "BattlePyramid_TrainerBattle", - ), + script = "BattlePyramid_TrainerBattle"), NpcDef( entityIdx = 4, graphicsId = 59, @@ -43836,8 +38683,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattlePyramid_FindItemBall", - ), + script = "BattlePyramid_FindItemBall"), NpcDef( entityIdx = 5, graphicsId = 59, @@ -43849,8 +38695,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattlePyramid_FindItemBall", - ), + script = "BattlePyramid_FindItemBall"), NpcDef( entityIdx = 6, graphicsId = 59, @@ -43862,8 +38707,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattlePyramid_FindItemBall", - ), + script = "BattlePyramid_FindItemBall"), ), bgEvents = emptyList(), ), @@ -43874,17 +38718,13 @@ object MapManager { mapId = 60, width = 15, height = 12, - paletteIdx1 = 97, - paletteIdx2 = 115, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 174, + unknownShort = 422, + unknownByte = 87, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -43903,9 +38743,9 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "UnionRoom_EventScript_Attendant", - )), + facing = 0, + script = "UnionRoom_EventScript_Attendant"), + ), bgEvents = emptyList(), ), // SafariZone_Northwest (MAP_SAFARI_ZONE_NORTHWEST) @@ -43915,35 +38755,21 @@ object MapManager { mapId = 0, width = 40, height = 40, - paletteIdx1 = 104, - paletteIdx2 = 136, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 109, + unknownShort = 428, + unknownByte = 57, borderTiles = listOf( - Tile2D(0x01D4, 0), - Tile2D(0x01D5, 0), - Tile2D(0x01DC, 0), - Tile2D(0x01DD, 0), - ), + Tile2D(0x01D4, 0), Tile2D(0x01D5, 0), Tile2D(0x01DC, 0), Tile2D(0x01DD, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.ROUTE, encounterType = EncounterType.RANDOM, connections = listOf( - GbaConnection( - direction = 4, - unknown = 0, - targetBank = 76, - targetMap = 1, - ), - GbaConnection( - direction = 1, - unknown = 0, - targetBank = 76, - targetMap = 2, - ), + GbaConnection(direction = 4, unknown = 0, targetBank = 76, targetMap = 1), + GbaConnection(direction = 1, unknown = 0, targetBank = 76, targetMap = 2), ), warps = emptyList(), npcs = @@ -43958,9 +38784,9 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "SafariZone_Northwest_EventScript_Man", - )), + facing = 0, + script = "SafariZone_Northwest_EventScript_Man"), + ), bgEvents = emptyList(), ), // SafariZone_North (MAP_SAFARI_ZONE_NORTH) @@ -43970,41 +38796,22 @@ object MapManager { mapId = 1, width = 40, height = 40, - paletteIdx1 = 104, - paletteIdx2 = 136, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 109, + unknownShort = 428, + unknownByte = 57, borderTiles = listOf( - Tile2D(0x01D4, 0), - Tile2D(0x01D5, 0), - Tile2D(0x01DC, 0), - Tile2D(0x01DD, 0), - ), + Tile2D(0x01D4, 0), Tile2D(0x01D5, 0), Tile2D(0x01DC, 0), Tile2D(0x01DD, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.ROUTE, encounterType = EncounterType.RANDOM, connections = listOf( - GbaConnection( - direction = 3, - unknown = 0, - targetBank = 76, - targetMap = 0, - ), - GbaConnection( - direction = 1, - unknown = 0, - targetBank = 76, - targetMap = 3, - ), - GbaConnection( - direction = 4, - unknown = 0, - targetBank = 76, - targetMap = 12, - ), + GbaConnection(direction = 3, unknown = 0, targetBank = 76, targetMap = 0), + GbaConnection(direction = 1, unknown = 0, targetBank = 76, targetMap = 3), + GbaConnection(direction = 4, unknown = 0, targetBank = 76, targetMap = 12), ), warps = emptyList(), npcs = @@ -44020,8 +38827,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "SafariZone_North_EventScript_Fisherman", - ), + script = "SafariZone_North_EventScript_Fisherman"), NpcDef( entityIdx = 1, graphicsId = 65, @@ -44033,8 +38839,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "SafariZone_North_EventScript_Man", - ), + script = "SafariZone_North_EventScript_Man"), ), bgEvents = emptyList(), ), @@ -44045,35 +38850,21 @@ object MapManager { mapId = 2, width = 40, height = 40, - paletteIdx1 = 104, - paletteIdx2 = 136, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 109, + unknownShort = 428, + unknownByte = 57, borderTiles = listOf( - Tile2D(0x01D4, 0), - Tile2D(0x01D5, 0), - Tile2D(0x01DC, 0), - Tile2D(0x01DD, 0), - ), + Tile2D(0x01D4, 0), Tile2D(0x01D5, 0), Tile2D(0x01DC, 0), Tile2D(0x01DD, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.ROUTE, encounterType = EncounterType.RANDOM, connections = listOf( - GbaConnection( - direction = 2, - unknown = 0, - targetBank = 76, - targetMap = 0, - ), - GbaConnection( - direction = 4, - unknown = 0, - targetBank = 76, - targetMap = 3, - ), + GbaConnection(direction = 2, unknown = 0, targetBank = 76, targetMap = 0), + GbaConnection(direction = 4, unknown = 0, targetBank = 76, targetMap = 3), ), warps = listOf( @@ -44084,8 +38875,8 @@ object MapManager { targetBankId = 76, targetMapId = 11, targetX = 3, - targetY = 8, - )), + targetY = 8), + ), npcs = listOf( NpcDef( @@ -44098,17 +38889,17 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "SafariZone_Southwest_EventScript_Woman", - )), + facing = 0, + script = "SafariZone_Southwest_EventScript_Woman"), + ), bgEvents = listOf( BgEventDef( x = 32, y = 7, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "SafariZone_Southwest_EventScript_RestHouseSign", - )), + script = "SafariZone_Southwest_EventScript_RestHouseSign"), + ), ), // SafariZone_South (MAP_SAFARI_ZONE_SOUTH) MapDef( @@ -44117,41 +38908,22 @@ object MapManager { mapId = 3, width = 40, height = 40, - paletteIdx1 = 104, - paletteIdx2 = 136, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 109, + unknownShort = 428, + unknownByte = 57, borderTiles = listOf( - Tile2D(0x01D4, 0), - Tile2D(0x01D5, 0), - Tile2D(0x01DC, 0), - Tile2D(0x01DD, 0), - ), + Tile2D(0x01D4, 0), Tile2D(0x01D5, 0), Tile2D(0x01DC, 0), Tile2D(0x01DD, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.ROUTE, encounterType = EncounterType.RANDOM, connections = listOf( - GbaConnection( - direction = 2, - unknown = 0, - targetBank = 76, - targetMap = 1, - ), - GbaConnection( - direction = 3, - unknown = 0, - targetBank = 76, - targetMap = 2, - ), - GbaConnection( - direction = 4, - unknown = 0, - targetBank = 76, - targetMap = 13, - ), + GbaConnection(direction = 2, unknown = 0, targetBank = 76, targetMap = 1), + GbaConnection(direction = 3, unknown = 0, targetBank = 76, targetMap = 2), + GbaConnection(direction = 4, unknown = 0, targetBank = 76, targetMap = 13), ), warps = listOf( @@ -44162,8 +38934,8 @@ object MapManager { targetBankId = 73, targetMapId = 0, targetX = 2, - targetY = 5, - )), + targetY = 5), + ), npcs = listOf( NpcDef( @@ -44176,9 +38948,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "SafariZone_South_EventScript_ExitAttendant", - ), + facing = 0, + script = "SafariZone_South_EventScript_ExitAttendant"), NpcDef( entityIdx = 1, graphicsId = 7, @@ -44190,8 +38961,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "SafariZone_South_EventScript_Boy", - ), + script = "SafariZone_South_EventScript_Boy"), NpcDef( entityIdx = 2, graphicsId = 65, @@ -44202,9 +38972,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "SafariZone_South_EventScript_Man", - ), + facing = 0, + script = "SafariZone_South_EventScript_Man"), NpcDef( entityIdx = 3, graphicsId = 35, @@ -44216,8 +38985,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "SafariZone_South_EventScript_Youngster", - ), + script = "SafariZone_South_EventScript_Youngster"), ), bgEvents = emptyList(), ), @@ -44228,29 +38996,21 @@ object MapManager { mapId = 4, width = 56, height = 72, - paletteIdx1 = 106, - paletteIdx2 = 86, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 114, + unknownShort = 457, + unknownByte = 58, borderTiles = listOf( - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - ), + Tile2D(0x0170, 0), Tile2D(0x0170, 0), Tile2D(0x0170, 0), Tile2D(0x0170, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.ROUTE, encounterType = EncounterType.RANDOM, connections = listOf( - GbaConnection( - direction = 4, - unknown = 0, - targetBank = 76, - targetMap = 14, - )), + GbaConnection(direction = 4, unknown = 0, targetBank = 76, targetMap = 14), + ), warps = listOf( WarpTile( @@ -44260,8 +39020,7 @@ object MapManager { targetBankId = 76, targetMapId = 34, targetX = 5, - targetY = 12, - ), + targetY = 12), WarpTile( x = 19, y = 17, @@ -44269,8 +39028,7 @@ object MapManager { targetBankId = 76, targetMapId = 18, targetX = 11, - targetY = 16, - ), + targetY = 16), WarpTile( x = 11, y = 38, @@ -44278,8 +39036,7 @@ object MapManager { targetBankId = 76, targetMapId = 31, targetX = 9, - targetY = 11, - ), + targetY = 11), WarpTile( x = 45, y = 44, @@ -44287,8 +39044,7 @@ object MapManager { targetBankId = 76, targetMapId = 43, targetX = 1, - targetY = 7, - ), + targetY = 7), WarpTile( x = 51, y = 51, @@ -44296,8 +39052,7 @@ object MapManager { targetBankId = 76, targetMapId = 55, targetX = 3, - targetY = 7, - ), + targetY = 7), WarpTile( x = 44, y = 5, @@ -44305,8 +39060,7 @@ object MapManager { targetBankId = 76, targetMapId = 46, targetX = 2, - targetY = 7, - ), + targetY = 7), WarpTile( x = 53, y = 44, @@ -44314,8 +39068,7 @@ object MapManager { targetBankId = 76, targetMapId = 45, targetX = 4, - targetY = 9, - ), + targetY = 9), WarpTile( x = 5, y = 20, @@ -44323,8 +39076,7 @@ object MapManager { targetBankId = 76, targetMapId = 49, targetX = 4, - targetY = 9, - ), + targetY = 9), WarpTile( x = 26, y = 65, @@ -44332,8 +39084,7 @@ object MapManager { targetBankId = 76, targetMapId = 50, targetX = 4, - targetY = 13, - ), + targetY = 13), WarpTile( x = 26, y = 61, @@ -44341,8 +39092,7 @@ object MapManager { targetBankId = 76, targetMapId = 50, targetX = 4, - targetY = 1, - ), + targetY = 1), WarpTile( x = 39, y = 55, @@ -44350,8 +39100,7 @@ object MapManager { targetBankId = 74, targetMapId = 99, targetX = 8, - targetY = 48, - ), + targetY = 48), ), npcs = listOf( @@ -44366,8 +39115,7 @@ object MapManager { movementRangeY = 2, trainerType = 0, facing = 0, - script = "BattleFrontier_OutsideWest_EventScript_Boy1", - ), + script = "BattleFrontier_OutsideWest_EventScript_Boy1"), NpcDef( entityIdx = 1, graphicsId = 0, @@ -44379,8 +39127,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 3, - script = "0x0", - ), + script = "0x0"), NpcDef( entityIdx = 2, graphicsId = 45, @@ -44391,9 +39138,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 0, - script = "BattleFrontier_OutsideWest_EventScript_FerryAttendant", - ), + facing = 1, + script = "BattleFrontier_OutsideWest_EventScript_FerryAttendant"), NpcDef( entityIdx = 3, graphicsId = 21, @@ -44405,8 +39151,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BattleFrontier_OutsideWest_EventScript_ExpertM", - ), + script = "BattleFrontier_OutsideWest_EventScript_ExpertM"), NpcDef( entityIdx = 4, graphicsId = 33, @@ -44418,8 +39163,7 @@ object MapManager { movementRangeY = 3, trainerType = 0, facing = 0, - script = "BattleFrontier_OutsideWest_EventScript_Man1", - ), + script = "BattleFrontier_OutsideWest_EventScript_Man1"), NpcDef( entityIdx = 5, graphicsId = 34, @@ -44431,8 +39175,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattleFrontier_OutsideWest_EventScript_Woman1", - ), + script = "BattleFrontier_OutsideWest_EventScript_Woman1"), NpcDef( entityIdx = 6, graphicsId = 17, @@ -44444,8 +39187,7 @@ object MapManager { movementRangeY = 3, trainerType = 0, facing = 0, - script = "BattleFrontier_OutsideWest_EventScript_FatMan1", - ), + script = "BattleFrontier_OutsideWest_EventScript_FatMan1"), NpcDef( entityIdx = 7, graphicsId = 48, @@ -44457,8 +39199,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattleFrontier_OutsideWest_EventScript_Gentleman", - ), + script = "BattleFrontier_OutsideWest_EventScript_Gentleman"), NpcDef( entityIdx = 8, graphicsId = 39, @@ -44469,9 +39210,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 0, - script = "BattleFrontier_OutsideWest_EventScript_Maniac1", - ), + facing = 1, + script = "BattleFrontier_OutsideWest_EventScript_Maniac1"), NpcDef( entityIdx = 9, graphicsId = 39, @@ -44482,9 +39222,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 0, - script = "BattleFrontier_OutsideWest_EventScript_Maniac2", - ), + facing = 1, + script = "BattleFrontier_OutsideWest_EventScript_Maniac2"), NpcDef( entityIdx = 10, graphicsId = 66, @@ -44496,8 +39235,7 @@ object MapManager { movementRangeY = 2, trainerType = 0, facing = 0, - script = "BattleFrontier_OutsideWest_EventScript_Man2", - ), + script = "BattleFrontier_OutsideWest_EventScript_Man2"), NpcDef( entityIdx = 11, graphicsId = 8, @@ -44509,8 +39247,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattleFrontier_OutsideWest_EventScript_Girl", - ), + script = "BattleFrontier_OutsideWest_EventScript_Girl"), NpcDef( entityIdx = 12, graphicsId = 24, @@ -44522,8 +39259,7 @@ object MapManager { movementRangeY = 3, trainerType = 0, facing = 0, - script = "BattleFrontier_OutsideWest_EventScript_Woman2", - ), + script = "BattleFrontier_OutsideWest_EventScript_Woman2"), NpcDef( entityIdx = 13, graphicsId = 31, @@ -44535,8 +39271,7 @@ object MapManager { movementRangeY = 2, trainerType = 0, facing = 0, - script = "BattleFrontier_OutsideWest_EventScript_Camper", - ), + script = "BattleFrontier_OutsideWest_EventScript_Camper"), NpcDef( entityIdx = 14, graphicsId = 47, @@ -44548,8 +39283,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattleFrontier_OutsideWest_EventScript_Lass", - ), + script = "BattleFrontier_OutsideWest_EventScript_Lass"), NpcDef( entityIdx = 15, graphicsId = 23, @@ -44561,8 +39295,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 2, - script = "BattleFrontier_OutsideWest_EventScript_Man3", - ), + script = "BattleFrontier_OutsideWest_EventScript_Man3"), NpcDef( entityIdx = 16, graphicsId = 50, @@ -44573,9 +39306,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "BattleFrontier_OutsideWest_EventScript_Fisherman1", - ), + facing = 0, + script = "BattleFrontier_OutsideWest_EventScript_Fisherman1"), NpcDef( entityIdx = 17, graphicsId = 50, @@ -44587,8 +39319,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattleFrontier_OutsideWest_EventScript_Fisherman2", - ), + script = "BattleFrontier_OutsideWest_EventScript_Fisherman2"), NpcDef( entityIdx = 18, graphicsId = 17, @@ -44600,8 +39331,7 @@ object MapManager { movementRangeY = 3, trainerType = 0, facing = 0, - script = "BattleFrontier_OutsideWest_EventScript_FatMan2", - ), + script = "BattleFrontier_OutsideWest_EventScript_FatMan2"), NpcDef( entityIdx = 19, graphicsId = 20, @@ -44612,9 +39342,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "BattleFrontier_OutsideWest_EventScript_Woman3", - ), + facing = 0, + script = "BattleFrontier_OutsideWest_EventScript_Woman3"), NpcDef( entityIdx = 20, graphicsId = 7, @@ -44625,9 +39354,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 0, - script = "BattleFrontier_OutsideWest_EventScript_Boy2", - ), + facing = 1, + script = "BattleFrontier_OutsideWest_EventScript_Boy2"), NpcDef( entityIdx = 21, graphicsId = 29, @@ -44639,8 +39367,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattleFrontier_OutsideWest_EventScript_OldMan", - ), + script = "BattleFrontier_OutsideWest_EventScript_OldMan"), NpcDef( entityIdx = 22, graphicsId = 65, @@ -44651,9 +39378,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "BattleFrontier_OutsideWest_EventScript_Man4", - ), + facing = 0, + script = "BattleFrontier_OutsideWest_EventScript_Man4"), NpcDef( entityIdx = 23, graphicsId = 18, @@ -44665,8 +39391,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattleFrontier_OutsideWest_EventScript_PokefanF", - ), + script = "BattleFrontier_OutsideWest_EventScript_PokefanF"), ), bgEvents = listOf( @@ -44674,32 +39399,27 @@ object MapManager { x = 15, y = 18, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "BattleFrontier_OutsideWest_EventScript_BattleDomeSign", - ), + script = "BattleFrontier_OutsideWest_EventScript_BattleDomeSign"), BgEventDef( x = 45, y = 30, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "BattleFrontier_OutsideWest_EventScript_BattlePikeSign", - ), + script = "BattleFrontier_OutsideWest_EventScript_BattlePikeSign"), BgEventDef( x = 16, y = 43, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "BattleFrontier_OutsideWest_EventScript_BattleFactorySign", - ), + script = "BattleFrontier_OutsideWest_EventScript_BattleFactorySign"), BgEventDef( x = 52, y = 51, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Common_EventScript_ShowPokemartSign", - ), + script = "Common_EventScript_ShowPokemartSign"), BgEventDef( x = 53, y = 51, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Common_EventScript_ShowPokemartSign", - ), + script = "Common_EventScript_ShowPokemartSign"), ), ), // BattleFrontier_BattleTowerLobby (MAP_BATTLE_FRONTIER_BATTLE_TOWER_LOBBY) @@ -44709,17 +39429,13 @@ object MapManager { mapId = 5, width = 25, height = 10, - paletteIdx1 = 90, - paletteIdx2 = 98, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 159, + unknownShort = 465, + unknownByte = 58, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -44734,8 +39450,7 @@ object MapManager { targetBankId = 76, targetMapId = 14, targetX = 16, - targetY = 14, - ), + targetY = 14), WarpTile( x = 13, y = 9, @@ -44743,8 +39458,7 @@ object MapManager { targetBankId = 76, targetMapId = 14, targetX = 16, - targetY = 14, - ), + targetY = 14), WarpTile( x = 6, y = 1, @@ -44752,8 +39466,7 @@ object MapManager { targetBankId = 76, targetMapId = 8, targetX = 5, - targetY = 8, - ), + targetY = 8), ), npcs = listOf( @@ -44767,9 +39480,9 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "BattleFrontier_BattleTowerLobby_EventScript_SinglesAttendant", - ), + facing = 0, + script = + "BattleFrontier_BattleTowerLobby_EventScript_SinglesAttendant"), NpcDef( entityIdx = 1, graphicsId = 65, @@ -44780,9 +39493,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "BattleFrontier_BattleTowerLobby_EventScript_FeelingsMan", - ), + facing = 0, + script = "BattleFrontier_BattleTowerLobby_EventScript_FeelingsMan"), NpcDef( entityIdx = 2, graphicsId = 34, @@ -44794,8 +39506,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattleFrontier_BattleTowerLobby_EventScript_Woman", - ), + script = "BattleFrontier_BattleTowerLobby_EventScript_Woman"), NpcDef( entityIdx = 3, graphicsId = 7, @@ -44807,8 +39518,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattleFrontier_BattleTowerLobby_EventScript_Boy", - ), + script = "BattleFrontier_BattleTowerLobby_EventScript_Boy"), NpcDef( entityIdx = 6, graphicsId = 0, @@ -44819,9 +39529,9 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "BattleFrontier_BattleTowerLobby_EventScript_DoublesAttendant", - ), + facing = 0, + script = + "BattleFrontier_BattleTowerLobby_EventScript_DoublesAttendant"), NpcDef( entityIdx = 7, graphicsId = 0, @@ -44832,9 +39542,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "BattleFrontier_BattleTowerLobby_EventScript_MultisAttendant", - ), + facing = 0, + script = "BattleFrontier_BattleTowerLobby_EventScript_MultisAttendant"), NpcDef( entityIdx = 8, graphicsId = 0, @@ -44845,10 +39554,9 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, + facing = 0, script = - "BattleFrontier_BattleTowerLobby_EventScript_LinkMultisAttendant", - ), + "BattleFrontier_BattleTowerLobby_EventScript_LinkMultisAttendant"), ), bgEvents = listOf( @@ -44857,35 +39565,30 @@ object MapManager { y = 5, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", script = - "BattleFrontier_BattleTowerLobby_EventScript_ShowSinglesResults", - ), + "BattleFrontier_BattleTowerLobby_EventScript_ShowSinglesResults"), BgEventDef( x = 8, y = 5, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", script = - "BattleFrontier_BattleTowerLobby_EventScript_ShowDoublesResults", - ), + "BattleFrontier_BattleTowerLobby_EventScript_ShowDoublesResults"), BgEventDef( x = 12, y = 5, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", script = - "BattleFrontier_BattleTowerLobby_EventScript_ShowMultisResults", - ), + "BattleFrontier_BattleTowerLobby_EventScript_ShowMultisResults"), BgEventDef( x = 16, y = 5, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", script = - "BattleFrontier_BattleTowerLobby_EventScript_ShowLinkMultisResults", - ), + "BattleFrontier_BattleTowerLobby_EventScript_ShowLinkMultisResults"), BgEventDef( x = 2, y = 1, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "BattleFrontier_BattleTowerLobby_EventScript_RulesBoard", - ), + script = "BattleFrontier_BattleTowerLobby_EventScript_RulesBoard"), ), ), // BattleFrontier_BattleTowerElevator (MAP_BATTLE_FRONTIER_BATTLE_TOWER_ELEVATOR) @@ -44895,17 +39598,13 @@ object MapManager { mapId = 6, width = 5, height = 7, - paletteIdx1 = 90, - paletteIdx2 = 98, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 159, + unknownShort = 465, + unknownByte = 58, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -44924,9 +39623,9 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 0, - script = "0x0", - )), + facing = 1, + script = "0x0"), + ), bgEvents = emptyList(), ), // BattleFrontier_BattleTowerCorridor (MAP_BATTLE_FRONTIER_BATTLE_TOWER_CORRIDOR) @@ -44936,17 +39635,13 @@ object MapManager { mapId = 7, width = 17, height = 5, - paletteIdx1 = 90, - paletteIdx2 = 98, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 159, + unknownShort = 465, + unknownByte = 58, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -44966,29 +39661,24 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 2, - script = "0x0", - )), + script = "0x0"), + ), bgEvents = emptyList(), ), - // BattleFrontier_BattleTowerBattleRoom - // (MAP_BATTLE_FRONTIER_BATTLE_TOWER_BATTLE_ROOM) + // BattleFrontier_BattleTowerBattleRoom (MAP_BATTLE_FRONTIER_BATTLE_TOWER_BATTLE_ROOM) MapDef( regionId = 1, bankId = 76, mapId = 8, width = 10, height = 9, - paletteIdx1 = 90, - paletteIdx2 = 98, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 159, + unknownShort = 465, + unknownByte = 58, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -45003,8 +39693,7 @@ object MapManager { targetBankId = 76, targetMapId = 5, targetX = 6, - targetY = 1, - ), + targetY = 1), WarpTile( x = 6, y = 8, @@ -45012,8 +39701,7 @@ object MapManager { targetBankId = 76, targetMapId = 5, targetX = 6, - targetY = 1, - ), + targetY = 1), ), npcs = listOf( @@ -45028,8 +39716,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "0x0", - ), + script = "0x0"), NpcDef( entityIdx = 2, graphicsId = 0, @@ -45040,9 +39727,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 0, - script = "0x0", - ), + facing = 1, + script = "0x0"), ), bgEvents = emptyList(), ), @@ -45053,17 +39739,13 @@ object MapManager { mapId = 9, width = 33, height = 30, - paletteIdx1 = 82, - paletteIdx2 = 118, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 102, + unknownShort = 381, + unknownByte = 73, borderTiles = listOf( - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - ), + Tile2D(0x0170, 0), Tile2D(0x0170, 0), Tile2D(0x0170, 0), Tile2D(0x0170, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.ROUTE, @@ -45078,8 +39760,7 @@ object MapManager { targetBankId = 76, targetMapId = 10, targetX = 13, - targetY = 18, - ), + targetY = 18), WarpTile( x = 15, y = 5, @@ -45087,8 +39768,7 @@ object MapManager { targetBankId = 76, targetMapId = 10, targetX = 14, - targetY = 18, - ), + targetY = 18), ), npcs = listOf( @@ -45102,9 +39782,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 0, - script = "SouthernIsland_Exterior_EventScript_Sailor", - ), + facing = 1, + script = "SouthernIsland_Exterior_EventScript_Sailor"), NpcDef( entityIdx = 1, graphicsId = 0, @@ -45116,8 +39795,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "0x0", - ), + script = "0x0"), ), bgEvents = listOf( @@ -45125,8 +39803,8 @@ object MapManager { x = 16, y = 7, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "SouthernIsland_Exterior_EventScript_Sign", - )), + script = "SouthernIsland_Exterior_EventScript_Sign"), + ), ), // SouthernIsland_Interior (MAP_SOUTHERN_ISLAND_INTERIOR) MapDef( @@ -45135,17 +39813,13 @@ object MapManager { mapId = 10, width = 27, height = 24, - paletteIdx1 = 82, - paletteIdx2 = 118, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 102, + unknownShort = 381, + unknownByte = 73, borderTiles = listOf( - Tile2D(0x01D4, 0), - Tile2D(0x01D5, 0), - Tile2D(0x01DC, 0), - Tile2D(0x01DD, 0), - ), + Tile2D(0x01D4, 0), Tile2D(0x01D5, 0), Tile2D(0x01DC, 0), Tile2D(0x01DD, 0)), lighting = Lighting.REGULAR, weather = Weather.CLOUDY, mapType = MapType.ROUTE, @@ -45160,8 +39834,7 @@ object MapManager { targetBankId = 76, targetMapId = 9, targetX = 14, - targetY = 5, - ), + targetY = 5), WarpTile( x = 14, y = 18, @@ -45169,8 +39842,7 @@ object MapManager { targetBankId = 76, targetMapId = 9, targetX = 15, - targetY = 5, - ), + targetY = 5), ), npcs = emptyList(), bgEvents = @@ -45179,8 +39851,8 @@ object MapManager { x = 13, y = 11, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "SouthernIsland_Interior_EventScript_TryLatiEncounter", - )), + script = "SouthernIsland_Interior_EventScript_TryLatiEncounter"), + ), ), // SafariZone_RestHouse (MAP_SAFARI_ZONE_REST_HOUSE) MapDef( @@ -45189,17 +39861,13 @@ object MapManager { mapId = 11, width = 10, height = 9, - paletteIdx1 = 98, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 147, + unknownShort = 428, + unknownByte = 57, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -45214,8 +39882,7 @@ object MapManager { targetBankId = 76, targetMapId = 2, targetX = 29, - targetY = 7, - ), + targetY = 7), WarpTile( x = 4, y = 8, @@ -45223,8 +39890,7 @@ object MapManager { targetBankId = 76, targetMapId = 2, targetX = 29, - targetY = 7, - ), + targetY = 7), ), npcs = listOf( @@ -45239,8 +39905,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 3, - script = "SafariZone_RestHouse_EventScript_Youngster", - ), + script = "SafariZone_RestHouse_EventScript_Youngster"), NpcDef( entityIdx = 1, graphicsId = 37, @@ -45252,8 +39917,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 2, - script = "SafariZone_RestHouse_EventScript_PsychicM", - ), + script = "SafariZone_RestHouse_EventScript_PsychicM"), NpcDef( entityIdx = 2, graphicsId = 17, @@ -45265,8 +39929,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 3, - script = "SafariZone_RestHouse_EventScript_FatMan", - ), + script = "SafariZone_RestHouse_EventScript_FatMan"), ), bgEvents = emptyList(), ), @@ -45277,35 +39940,21 @@ object MapManager { mapId = 12, width = 40, height = 40, - paletteIdx1 = 104, - paletteIdx2 = 136, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 109, + unknownShort = 428, + unknownByte = 57, borderTiles = listOf( - Tile2D(0x01D4, 0), - Tile2D(0x01D5, 0), - Tile2D(0x01DC, 0), - Tile2D(0x01DD, 0), - ), + Tile2D(0x01D4, 0), Tile2D(0x01D5, 0), Tile2D(0x01DC, 0), Tile2D(0x01DD, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.ROUTE, encounterType = EncounterType.RANDOM, connections = listOf( - GbaConnection( - direction = 3, - unknown = 0, - targetBank = 76, - targetMap = 1, - ), - GbaConnection( - direction = 1, - unknown = 0, - targetBank = 76, - targetMap = 13, - ), + GbaConnection(direction = 3, unknown = 0, targetBank = 76, targetMap = 1), + GbaConnection(direction = 1, unknown = 0, targetBank = 76, targetMap = 13), ), warps = emptyList(), npcs = @@ -45321,8 +39970,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "SafariZone_Northeast_EventScript_Boy", - ), + script = "SafariZone_Northeast_EventScript_Boy"), NpcDef( entityIdx = 1, graphicsId = 14, @@ -45334,8 +39982,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "SafariZone_Northeast_EventScript_Girl", - ), + script = "SafariZone_Northeast_EventScript_Girl"), NpcDef( entityIdx = 3, graphicsId = 16, @@ -45347,8 +39994,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "SafariZone_Northeast_EventScript_Woman", - ), + script = "SafariZone_Northeast_EventScript_Woman"), ), bgEvents = listOf( @@ -45356,14 +40002,12 @@ object MapManager { x = 31, y = 35, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 21, y = 5, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), ), ), ) @@ -45380,35 +40024,21 @@ object MapManager { mapId = 13, width = 40, height = 40, - paletteIdx1 = 104, - paletteIdx2 = 136, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 109, + unknownShort = 428, + unknownByte = 57, borderTiles = listOf( - Tile2D(0x01D4, 0), - Tile2D(0x01D5, 0), - Tile2D(0x01DC, 0), - Tile2D(0x01DD, 0), - ), + Tile2D(0x01D4, 0), Tile2D(0x01D5, 0), Tile2D(0x01DC, 0), Tile2D(0x01DD, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.ROUTE, encounterType = EncounterType.RANDOM, connections = listOf( - GbaConnection( - direction = 3, - unknown = 0, - targetBank = 76, - targetMap = 3, - ), - GbaConnection( - direction = 2, - unknown = 0, - targetBank = 76, - targetMap = 12, - ), + GbaConnection(direction = 3, unknown = 0, targetBank = 76, targetMap = 3), + GbaConnection(direction = 2, unknown = 0, targetBank = 76, targetMap = 12), ), warps = emptyList(), npcs = @@ -45424,8 +40054,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "SafariZone_Southeast_EventScript_RichBoy", - ), + script = "SafariZone_Southeast_EventScript_RichBoy"), NpcDef( entityIdx = 1, graphicsId = 17, @@ -45437,8 +40066,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "SafariZone_Southeast_EventScript_FatMan", - ), + script = "SafariZone_Southeast_EventScript_FatMan"), NpcDef( entityIdx = 2, graphicsId = 12, @@ -45450,8 +40078,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "SafariZone_Southeast_EventScript_LittleGirl", - ), + script = "SafariZone_Southeast_EventScript_LittleGirl"), ), bgEvents = listOf( @@ -45459,14 +40086,12 @@ object MapManager { x = 19, y = 36, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), BgEventDef( x = 32, y = 33, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - ), + script = "undefined"), ), ), // BattleFrontier_OutsideEast (MAP_BATTLE_FRONTIER_OUTSIDE_EAST) @@ -45476,29 +40101,21 @@ object MapManager { mapId = 14, width = 72, height = 72, - paletteIdx1 = 92, - paletteIdx2 = 92, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 115, + unknownShort = 457, + unknownByte = 58, borderTiles = listOf( - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - ), + Tile2D(0x0170, 0), Tile2D(0x0170, 0), Tile2D(0x0170, 0), Tile2D(0x0170, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.ROUTE, encounterType = EncounterType.RANDOM, connections = listOf( - GbaConnection( - direction = 3, - unknown = 0, - targetBank = 76, - targetMap = 4, - )), + GbaConnection(direction = 3, unknown = 0, targetBank = 76, targetMap = 4), + ), warps = listOf( WarpTile( @@ -45508,8 +40125,7 @@ object MapManager { targetBankId = 76, targetMapId = 5, targetX = 12, - targetY = 9, - ), + targetY = 9), WarpTile( x = 39, y = 29, @@ -45517,8 +40133,7 @@ object MapManager { targetBankId = 76, targetMapId = 28, targetX = 7, - targetY = 12, - ), + targetY = 12), WarpTile( x = 45, y = 56, @@ -45526,8 +40141,7 @@ object MapManager { targetBankId = 76, targetMapId = 22, targetX = 12, - targetY = 11, - ), + targetY = 11), WarpTile( x = 58, y = 14, @@ -45535,8 +40149,7 @@ object MapManager { targetBankId = 76, targetMapId = 25, targetX = 7, - targetY = 17, - ), + targetY = 17), WarpTile( x = 35, y = 12, @@ -45544,8 +40157,7 @@ object MapManager { targetBankId = 76, targetMapId = 40, targetX = 26, - targetY = 14, - ), + targetY = 14), WarpTile( x = 4, y = 44, @@ -45553,8 +40165,7 @@ object MapManager { targetBankId = 76, targetMapId = 41, targetX = 4, - targetY = 9, - ), + targetY = 9), WarpTile( x = 10, y = 28, @@ -45562,8 +40173,7 @@ object MapManager { targetBankId = 76, targetMapId = 42, targetX = 7, - targetY = 10, - ), + targetY = 10), WarpTile( x = 22, y = 51, @@ -45571,8 +40181,7 @@ object MapManager { targetBankId = 76, targetMapId = 47, targetX = 1, - targetY = 7, - ), + targetY = 7), WarpTile( x = 5, y = 8, @@ -45580,8 +40189,7 @@ object MapManager { targetBankId = 76, targetMapId = 48, targetX = 4, - targetY = 9, - ), + targetY = 9), WarpTile( x = 65, y = 31, @@ -45589,8 +40197,7 @@ object MapManager { targetBankId = 76, targetMapId = 44, targetX = 4, - targetY = 9, - ), + targetY = 9), WarpTile( x = 14, y = 51, @@ -45598,8 +40205,7 @@ object MapManager { targetBankId = 76, targetMapId = 51, targetX = 4, - targetY = 9, - ), + targetY = 9), WarpTile( x = 21, y = 45, @@ -45607,8 +40213,7 @@ object MapManager { targetBankId = 76, targetMapId = 52, targetX = 1, - targetY = 9, - ), + targetY = 9), WarpTile( x = 3, y = 51, @@ -45616,8 +40221,7 @@ object MapManager { targetBankId = 76, targetMapId = 53, targetX = 7, - targetY = 8, - ), + targetY = 8), WarpTile( x = 28, y = 7, @@ -45625,8 +40229,7 @@ object MapManager { targetBankId = 74, targetMapId = 100, targetX = 10, - targetY = 17, - ), + targetY = 17), ), npcs = listOf( @@ -45641,8 +40244,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattleFrontier_OutsideEast_EventScript_NinjaBoy", - ), + script = "BattleFrontier_OutsideEast_EventScript_NinjaBoy"), NpcDef( entityIdx = 1, graphicsId = 33, @@ -45654,8 +40256,7 @@ object MapManager { movementRangeY = 3, trainerType = 0, facing = 0, - script = "BattleFrontier_OutsideEast_EventScript_Man1", - ), + script = "BattleFrontier_OutsideEast_EventScript_Man1"), NpcDef( entityIdx = 2, graphicsId = 55, @@ -45666,9 +40267,8 @@ object MapManager { movementRangeX = 2, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "BattleFrontier_OutsideEast_EventScript_Hiker", - ), + facing = 0, + script = "BattleFrontier_OutsideEast_EventScript_Hiker"), NpcDef( entityIdx = 3, graphicsId = 40, @@ -45680,8 +40280,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattleFrontier_OutsideEast_EventScript_HexManiac", - ), + script = "BattleFrontier_OutsideEast_EventScript_HexManiac"), NpcDef( entityIdx = 4, graphicsId = 44, @@ -45692,9 +40291,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 0, - script = "BattleFrontier_OutsideEast_EventScript_BlackBelt1", - ), + facing = 1, + script = "BattleFrontier_OutsideEast_EventScript_BlackBelt1"), NpcDef( entityIdx = 5, graphicsId = 27, @@ -45706,8 +40304,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 2, - script = "BattleFrontier_OutsideEast_EventScript_Cook", - ), + script = "BattleFrontier_OutsideEast_EventScript_Cook"), NpcDef( entityIdx = 6, graphicsId = 22, @@ -45719,8 +40316,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattleFrontier_OutsideEast_EventScript_ExpertF", - ), + script = "BattleFrontier_OutsideEast_EventScript_ExpertF"), NpcDef( entityIdx = 7, graphicsId = 51, @@ -45732,8 +40328,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattleFrontier_OutsideEast_EventScript_TriathleteM", - ), + script = "BattleFrontier_OutsideEast_EventScript_TriathleteM"), NpcDef( entityIdx = 8, graphicsId = 15, @@ -45745,8 +40340,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattleFrontier_OutsideEast_EventScript_RichBoy", - ), + script = "BattleFrontier_OutsideEast_EventScript_RichBoy"), NpcDef( entityIdx = 9, graphicsId = 57, @@ -45758,8 +40352,7 @@ object MapManager { movementRangeY = 6, trainerType = 0, facing = 0, - script = "BattleFrontier_OutsideEast_EventScript_TriathleteF", - ), + script = "BattleFrontier_OutsideEast_EventScript_TriathleteF"), NpcDef( entityIdx = 10, graphicsId = 6, @@ -45771,8 +40364,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattleFrontier_OutsideEast_EventScript_Twin", - ), + script = "BattleFrontier_OutsideEast_EventScript_Twin"), NpcDef( entityIdx = 11, graphicsId = 19, @@ -45784,8 +40376,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 3, - script = "BattleFrontier_OutsideEast_EventScript_Man2", - ), + script = "BattleFrontier_OutsideEast_EventScript_Man2"), NpcDef( entityIdx = 12, graphicsId = 0, @@ -45797,8 +40388,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattleFrontier_OutsideEast_EventScript_Zigzagoon", - ), + script = "BattleFrontier_OutsideEast_EventScript_Zigzagoon"), NpcDef( entityIdx = 14, graphicsId = 39, @@ -45810,8 +40400,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattleFrontier_OutsideEast_EventScript_Maniac1", - ), + script = "BattleFrontier_OutsideEast_EventScript_Maniac1"), NpcDef( entityIdx = 15, graphicsId = 14, @@ -45823,8 +40412,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattleFrontier_OutsideEast_EventScript_Girl", - ), + script = "BattleFrontier_OutsideEast_EventScript_Girl"), NpcDef( entityIdx = 16, graphicsId = 37, @@ -45836,8 +40424,7 @@ object MapManager { movementRangeY = 6, trainerType = 0, facing = 0, - script = "BattleFrontier_OutsideEast_EventScript_PsychicM", - ), + script = "BattleFrontier_OutsideEast_EventScript_PsychicM"), NpcDef( entityIdx = 17, graphicsId = 33, @@ -45849,8 +40436,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattleFrontier_OutsideEast_EventScript_Man3", - ), + script = "BattleFrontier_OutsideEast_EventScript_Man3"), NpcDef( entityIdx = 18, graphicsId = 34, @@ -45862,8 +40448,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 3, - script = "BattleFrontier_OutsideEast_EventScript_Woman1", - ), + script = "BattleFrontier_OutsideEast_EventScript_Woman1"), NpcDef( entityIdx = 19, graphicsId = 34, @@ -45875,8 +40460,7 @@ object MapManager { movementRangeY = 2, trainerType = 0, facing = 0, - script = "BattleFrontier_OutsideEast_EventScript_Woman2", - ), + script = "BattleFrontier_OutsideEast_EventScript_Woman2"), NpcDef( entityIdx = 20, graphicsId = 44, @@ -45887,9 +40471,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 0, - script = "BattleFrontier_OutsideEast_EventScript_BlackBelt2", - ), + facing = 1, + script = "BattleFrontier_OutsideEast_EventScript_BlackBelt2"), NpcDef( entityIdx = 21, graphicsId = 39, @@ -45901,8 +40484,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 2, - script = "BattleFrontier_OutsideEast_EventScript_Maniac2", - ), + script = "BattleFrontier_OutsideEast_EventScript_Maniac2"), NpcDef( entityIdx = 22, graphicsId = 26, @@ -45913,9 +40495,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 0, - script = "BattleFrontier_OutsideEast_EventScript_Woman3", - ), + facing = 1, + script = "BattleFrontier_OutsideEast_EventScript_Woman3"), NpcDef( entityIdx = 23, graphicsId = 30, @@ -45927,8 +40508,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattleFrontier_OutsideEast_EventScript_OldWoman", - ), + script = "BattleFrontier_OutsideEast_EventScript_OldWoman"), NpcDef( entityIdx = 24, graphicsId = 48, @@ -45939,9 +40519,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 0, - script = "BattleFrontier_OutsideEast_EventScript_Gentleman", - ), + facing = 1, + script = "BattleFrontier_OutsideEast_EventScript_Gentleman"), NpcDef( entityIdx = 25, graphicsId = 31, @@ -45952,9 +40531,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 0, - script = "BattleFrontier_OutsideEast_EventScript_Camper", - ), + facing = 1, + script = "BattleFrontier_OutsideEast_EventScript_Camper"), ), bgEvents = listOf( @@ -45962,50 +40540,42 @@ object MapManager { x = 13, y = 17, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "BattleFrontier_OutsideEast_EventScript_BattleTowerSign", - ), + script = "BattleFrontier_OutsideEast_EventScript_BattleTowerSign"), BgEventDef( x = 43, y = 56, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "BattleFrontier_OutsideEast_EventScript_BattlePalaceSign", - ), + script = "BattleFrontier_OutsideEast_EventScript_BattlePalaceSign"), BgEventDef( x = 36, y = 34, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "BattleFrontier_OutsideEast_EventScript_BattleArenaSign", - ), + script = "BattleFrontier_OutsideEast_EventScript_BattleArenaSign"), BgEventDef( x = 62, y = 15, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "BattleFrontier_OutsideEast_EventScript_BattlePyramidSign", - ), + script = "BattleFrontier_OutsideEast_EventScript_BattlePyramidSign"), BgEventDef( x = 7, y = 29, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "BattleFrontier_OutsideEast_EventScript_ExchangeCornerSign", - ), + script = "BattleFrontier_OutsideEast_EventScript_ExchangeCornerSign"), BgEventDef( x = 32, y = 13, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "BattleFrontier_OutsideEast_EventScript_RankingHallSign", - ), + script = "BattleFrontier_OutsideEast_EventScript_RankingHallSign"), BgEventDef( x = 4, y = 51, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Common_EventScript_ShowPokemonCenterSign", - ), + script = "Common_EventScript_ShowPokemonCenterSign"), BgEventDef( x = 5, y = 51, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Common_EventScript_ShowPokemonCenterSign", - ), + script = "Common_EventScript_ShowPokemonCenterSign"), ), ), // BattleFrontier_BattleTowerMultiPartnerRoom @@ -46016,17 +40586,13 @@ object MapManager { mapId = 15, width = 21, height = 15, - paletteIdx1 = 90, - paletteIdx2 = 98, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 159, + unknownShort = 465, + unknownByte = 58, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -46045,10 +40611,10 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, + facing = 0, script = - "BattleFrontier_BattleTowerMultiPartnerRoom_EventScript_Attendant", - )), + "BattleFrontier_BattleTowerMultiPartnerRoom_EventScript_Attendant"), + ), bgEvents = emptyList(), ), // BattleFrontier_BattleTowerMultiCorridor @@ -46059,17 +40625,13 @@ object MapManager { mapId = 16, width = 17, height = 5, - paletteIdx1 = 90, - paletteIdx2 = 98, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 159, + unknownShort = 465, + unknownByte = 58, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -46088,9 +40650,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "0x0", - ), + facing = 0, + script = "0x0"), NpcDef( entityIdx = 1, graphicsId = 0, @@ -46101,9 +40662,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 0, - script = "0x0", - ), + facing = 1, + script = "0x0"), NpcDef( entityIdx = 2, graphicsId = 0, @@ -46114,9 +40674,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 0, - script = "0x0", - ), + facing = 1, + script = "0x0"), NpcDef( entityIdx = 3, graphicsId = 0, @@ -46127,9 +40686,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "0x0", - ), + facing = 0, + script = "0x0"), ), bgEvents = emptyList(), ), @@ -46141,17 +40699,13 @@ object MapManager { mapId = 17, width = 10, height = 9, - paletteIdx1 = 90, - paletteIdx2 = 98, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 159, + unknownShort = 465, + unknownByte = 58, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -46171,8 +40725,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "0x0", - ), + script = "0x0"), NpcDef( entityIdx = 2, graphicsId = 0, @@ -46184,8 +40737,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "0x0", - ), + script = "0x0"), NpcDef( entityIdx = 4, graphicsId = 0, @@ -46196,9 +40748,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 0, - script = "0x0", - ), + facing = 1, + script = "0x0"), NpcDef( entityIdx = 5, graphicsId = 0, @@ -46209,9 +40760,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 0, - script = "0x0", - ), + facing = 1, + script = "0x0"), ), bgEvents = emptyList(), ), @@ -46222,17 +40772,13 @@ object MapManager { mapId = 18, width = 23, height = 17, - paletteIdx1 = 88, - paletteIdx2 = 94, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 161, + unknownShort = 473, + unknownByte = 58, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -46247,8 +40793,7 @@ object MapManager { targetBankId = 76, targetMapId = 4, targetX = 19, - targetY = 17, - ), + targetY = 17), WarpTile( x = 12, y = 16, @@ -46256,8 +40801,7 @@ object MapManager { targetBankId = 76, targetMapId = 4, targetX = 19, - targetY = 17, - ), + targetY = 17), ), npcs = listOf( @@ -46271,9 +40815,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "BattleFrontier_BattleDomeLobby_EventScript_SinglesAttendant", - ), + facing = 0, + script = "BattleFrontier_BattleDomeLobby_EventScript_SinglesAttendant"), NpcDef( entityIdx = 1, graphicsId = 33, @@ -46285,8 +40828,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattleFrontier_BattleDomeLobby_EventScript_Man", - ), + script = "BattleFrontier_BattleDomeLobby_EventScript_Man"), NpcDef( entityIdx = 2, graphicsId = 47, @@ -46298,8 +40840,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattleFrontier_BattleDomeLobby_EventScript_Lass", - ), + script = "BattleFrontier_BattleDomeLobby_EventScript_Lass"), NpcDef( entityIdx = 3, graphicsId = 17, @@ -46311,8 +40852,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattleFrontier_BattleDomeLobby_EventScript_FatMan", - ), + script = "BattleFrontier_BattleDomeLobby_EventScript_FatMan"), NpcDef( entityIdx = 4, graphicsId = 39, @@ -46324,8 +40864,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattleFrontier_BattleDomeLobby_EventScript_Maniac", - ), + script = "BattleFrontier_BattleDomeLobby_EventScript_Maniac"), NpcDef( entityIdx = 5, graphicsId = 0, @@ -46336,9 +40875,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "BattleFrontier_BattleDomeLobby_EventScript_DoublesAttendant", - ), + facing = 0, + script = "BattleFrontier_BattleDomeLobby_EventScript_DoublesAttendant"), ), bgEvents = listOf( @@ -46347,28 +40885,24 @@ object MapManager { y = 10, facingDir = "BG_EVENT_PLAYER_FACING_ANY", script = - "BattleFrontier_BattleDomeLobby_EventScript_ShowSinglesResults", - ), + "BattleFrontier_BattleDomeLobby_EventScript_ShowSinglesResults"), BgEventDef( x = 7, y = 10, facingDir = "BG_EVENT_PLAYER_FACING_ANY", script = - "BattleFrontier_BattleDomeLobby_EventScript_ShowPrevTourneyTree", - ), + "BattleFrontier_BattleDomeLobby_EventScript_ShowPrevTourneyTree"), BgEventDef( x = 18, y = 10, facingDir = "BG_EVENT_PLAYER_FACING_ANY", script = - "BattleFrontier_BattleDomeLobby_EventScript_ShowDoublesResults", - ), + "BattleFrontier_BattleDomeLobby_EventScript_ShowDoublesResults"), BgEventDef( x = 15, y = 10, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "BattleFrontier_BattleDomeLobby_EventScript_RulesBoard", - ), + script = "BattleFrontier_BattleDomeLobby_EventScript_RulesBoard"), ), ), // BattleFrontier_BattleDomeCorridor (MAP_BATTLE_FRONTIER_BATTLE_DOME_CORRIDOR) @@ -46378,17 +40912,13 @@ object MapManager { mapId = 19, width = 48, height = 7, - paletteIdx1 = 88, - paletteIdx2 = 94, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 161, + unknownShort = 473, + unknownByte = 58, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -46403,8 +40933,7 @@ object MapManager { targetBankId = 76, targetMapId = 4, targetX = 19, - targetY = 17, - ), + targetY = 17), WarpTile( x = 7, y = 8, @@ -46412,8 +40941,7 @@ object MapManager { targetBankId = 76, targetMapId = 4, targetX = 19, - targetY = 17, - ), + targetY = 17), ), npcs = listOf( @@ -46427,9 +40955,9 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "0x0", - )), + facing = 0, + script = "0x0"), + ), bgEvents = emptyList(), ), // BattleFrontier_BattleDomePreBattleRoom @@ -46440,17 +40968,13 @@ object MapManager { mapId = 20, width = 9, height = 8, - paletteIdx1 = 88, - paletteIdx2 = 94, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 161, + unknownShort = 467, + unknownByte = 58, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -46465,8 +40989,7 @@ object MapManager { targetBankId = 76, targetMapId = 4, targetX = 19, - targetY = 17, - ), + targetY = 17), WarpTile( x = 7, y = 8, @@ -46474,8 +40997,7 @@ object MapManager { targetBankId = 76, targetMapId = 4, targetX = 19, - targetY = 17, - ), + targetY = 17), ), npcs = listOf( @@ -46489,9 +41011,9 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "0x0", - )), + facing = 0, + script = "0x0"), + ), bgEvents = emptyList(), ), // BattleFrontier_BattleDomeBattleRoom (MAP_BATTLE_FRONTIER_BATTLE_DOME_BATTLE_ROOM) @@ -46501,17 +41023,13 @@ object MapManager { mapId = 21, width = 20, height = 10, - paletteIdx1 = 88, - paletteIdx2 = 94, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 161, + unknownShort = 467, + unknownByte = 58, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -46530,9 +41048,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "0x0", - ), + facing = 0, + script = "0x0"), NpcDef( entityIdx = 1, graphicsId = 6, @@ -46543,9 +41060,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "0x0", - ), + facing = 0, + script = "0x0"), NpcDef( entityIdx = 2, graphicsId = 7, @@ -46556,9 +41072,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "0x0", - ), + facing = 0, + script = "0x0"), NpcDef( entityIdx = 3, graphicsId = 9, @@ -46569,9 +41084,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "0x0", - ), + facing = 0, + script = "0x0"), NpcDef( entityIdx = 4, graphicsId = 5, @@ -46582,9 +41096,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "0x0", - ), + facing = 0, + script = "0x0"), NpcDef( entityIdx = 5, graphicsId = 19, @@ -46595,9 +41108,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "0x0", - ), + facing = 0, + script = "0x0"), NpcDef( entityIdx = 6, graphicsId = 21, @@ -46608,9 +41120,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "0x0", - ), + facing = 0, + script = "0x0"), NpcDef( entityIdx = 7, graphicsId = 31, @@ -46621,9 +41132,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "0x0", - ), + facing = 0, + script = "0x0"), NpcDef( entityIdx = 8, graphicsId = 23, @@ -46634,9 +41144,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "0x0", - ), + facing = 0, + script = "0x0"), NpcDef( entityIdx = 9, graphicsId = 17, @@ -46647,9 +41156,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "0x0", - ), + facing = 0, + script = "0x0"), NpcDef( entityIdx = 10, graphicsId = 10, @@ -46660,9 +41168,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "0x0", - ), + facing = 0, + script = "0x0"), NpcDef( entityIdx = 11, graphicsId = 8, @@ -46673,9 +41180,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "0x0", - ), + facing = 0, + script = "0x0"), NpcDef( entityIdx = 12, graphicsId = 0, @@ -46686,9 +41192,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 0, - script = "0x0", - ), + facing = 1, + script = "0x0"), NpcDef( entityIdx = 13, graphicsId = 24, @@ -46699,9 +41204,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "0x0", - ), + facing = 0, + script = "0x0"), NpcDef( entityIdx = 14, graphicsId = 240, @@ -46713,8 +41217,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 2, - script = "0x0", - ), + script = "0x0"), ), bgEvents = emptyList(), ), @@ -46725,17 +41228,13 @@ object MapManager { mapId = 22, width = 25, height = 12, - paletteIdx1 = 97, - paletteIdx2 = 95, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 160, + unknownShort = 463, + unknownByte = 58, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -46750,8 +41249,7 @@ object MapManager { targetBankId = 76, targetMapId = 14, targetX = 45, - targetY = 56, - ), + targetY = 56), WarpTile( x = 13, y = 11, @@ -46759,8 +41257,7 @@ object MapManager { targetBankId = 76, targetMapId = 14, targetX = 45, - targetY = 56, - ), + targetY = 56), WarpTile( x = 5, y = 4, @@ -46768,8 +41265,7 @@ object MapManager { targetBankId = 76, targetMapId = 23, targetX = 8, - targetY = 13, - ), + targetY = 13), ), npcs = listOf( @@ -46783,10 +41279,9 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, + facing = 0, script = - "BattleFrontier_BattlePalaceLobby_EventScript_SinglesAttendant", - ), + "BattleFrontier_BattlePalaceLobby_EventScript_SinglesAttendant"), NpcDef( entityIdx = 1, graphicsId = 44, @@ -46798,8 +41293,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattleFrontier_BattlePalaceLobby_EventScript_BlackBelt", - ), + script = "BattleFrontier_BattlePalaceLobby_EventScript_BlackBelt"), NpcDef( entityIdx = 2, graphicsId = 39, @@ -46810,9 +41304,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "BattleFrontier_BattlePalaceLobby_EventScript_Maniac", - ), + facing = 0, + script = "BattleFrontier_BattlePalaceLobby_EventScript_Maniac"), NpcDef( entityIdx = 3, graphicsId = 33, @@ -46824,8 +41317,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattleFrontier_BattlePalaceLobby_EventScript_Man", - ), + script = "BattleFrontier_BattlePalaceLobby_EventScript_Man"), NpcDef( entityIdx = 4, graphicsId = 45, @@ -46837,8 +41329,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattleFrontier_BattlePalaceLobby_EventScript_Beauty", - ), + script = "BattleFrontier_BattlePalaceLobby_EventScript_Beauty"), NpcDef( entityIdx = 5, graphicsId = 21, @@ -46849,10 +41340,9 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, + facing = 0, script = - "BattleFrontier_BattlePalaceLobby_EventScript_DoublesAttendant", - ), + "BattleFrontier_BattlePalaceLobby_EventScript_DoublesAttendant"), ), bgEvents = listOf( @@ -46861,21 +41351,18 @@ object MapManager { y = 7, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", script = - "BattleFrontier_BattlePalaceLobby_EventScript_ShowSinglesResults", - ), + "BattleFrontier_BattlePalaceLobby_EventScript_ShowSinglesResults"), BgEventDef( x = 16, y = 7, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", script = - "BattleFrontier_BattlePalaceLobby_EventScript_ShowDoublesResults", - ), + "BattleFrontier_BattlePalaceLobby_EventScript_ShowDoublesResults"), BgEventDef( x = 10, y = 4, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "BattleFrontier_BattlePalaceLobby_EventScript_RulesBoard", - ), + script = "BattleFrontier_BattlePalaceLobby_EventScript_RulesBoard"), ), ), // BattleFrontier_BattlePalaceCorridor (MAP_BATTLE_FRONTIER_BATTLE_PALACE_CORRIDOR) @@ -46885,17 +41372,13 @@ object MapManager { mapId = 23, width = 17, height = 14, - paletteIdx1 = 129, - paletteIdx2 = 135, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 160, + unknownShort = 463, + unknownByte = 58, borderTiles = listOf( - Tile2D(0x0023, 0), - Tile2D(0x0023, 0), - Tile2D(0x0023, 0), - Tile2D(0x0023, 0), - ), + Tile2D(0x0023, 0), Tile2D(0x0023, 0), Tile2D(0x0023, 0), Tile2D(0x0023, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -46910,8 +41393,7 @@ object MapManager { targetBankId = 76, targetMapId = 22, targetX = 5, - targetY = 4, - ), + targetY = 4), WarpTile( x = 9, y = 13, @@ -46919,8 +41401,7 @@ object MapManager { targetBankId = 76, targetMapId = 22, targetX = 5, - targetY = 4, - ), + targetY = 4), WarpTile( x = 6, y = 3, @@ -46928,8 +41409,7 @@ object MapManager { targetBankId = 76, targetMapId = 24, targetX = 0, - targetY = 9, - ), + targetY = 9), WarpTile( x = 10, y = 3, @@ -46937,8 +41417,7 @@ object MapManager { targetBankId = 76, targetMapId = 24, targetX = 0, - targetY = 9, - ), + targetY = 9), ), npcs = listOf( @@ -46952,9 +41431,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 0, - script = "0x0", - ), + facing = 1, + script = "0x0"), NpcDef( entityIdx = 1, graphicsId = 0, @@ -46966,8 +41444,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "0x0", - ), + script = "0x0"), NpcDef( entityIdx = 2, graphicsId = 0, @@ -46979,8 +41456,7 @@ object MapManager { movementRangeY = 2, trainerType = 0, facing = 0, - script = "0x0", - ), + script = "0x0"), NpcDef( entityIdx = 3, graphicsId = 0, @@ -46992,8 +41468,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "0x0", - ), + script = "0x0"), NpcDef( entityIdx = 4, graphicsId = 0, @@ -47005,8 +41480,7 @@ object MapManager { movementRangeY = 2, trainerType = 0, facing = 0, - script = "0x0", - ), + script = "0x0"), NpcDef( entityIdx = 5, graphicsId = 0, @@ -47018,8 +41492,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "0x0", - ), + script = "0x0"), NpcDef( entityIdx = 6, graphicsId = 0, @@ -47031,30 +41504,24 @@ object MapManager { movementRangeY = 2, trainerType = 0, facing = 0, - script = "0x0", - ), + script = "0x0"), ), bgEvents = emptyList(), ), - // BattleFrontier_BattlePalaceBattleRoom - // (MAP_BATTLE_FRONTIER_BATTLE_PALACE_BATTLE_ROOM) + // BattleFrontier_BattlePalaceBattleRoom (MAP_BATTLE_FRONTIER_BATTLE_PALACE_BATTLE_ROOM) MapDef( regionId = 1, bankId = 76, mapId = 24, width = 15, height = 10, - paletteIdx1 = 129, - paletteIdx2 = 135, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 160, + unknownShort = 463, + unknownByte = 58, borderTiles = listOf( - Tile2D(0x0023, 0), - Tile2D(0x0023, 0), - Tile2D(0x0023, 0), - Tile2D(0x0023, 0), - ), + Tile2D(0x0023, 0), Tile2D(0x0023, 0), Tile2D(0x0023, 0), Tile2D(0x0023, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -47069,8 +41536,7 @@ object MapManager { targetBankId = 76, targetMapId = 23, targetX = 6, - targetY = 3, - ), + targetY = 3), WarpTile( x = 1, y = 9, @@ -47078,8 +41544,7 @@ object MapManager { targetBankId = 76, targetMapId = 23, targetX = 6, - targetY = 3, - ), + targetY = 3), ), npcs = listOf( @@ -47093,9 +41558,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 0, - script = "0x0", - ), + facing = 1, + script = "0x0"), NpcDef( entityIdx = 1, graphicsId = 240, @@ -47106,9 +41570,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "0x0", - ), + facing = 0, + script = "0x0"), NpcDef( entityIdx = 2, graphicsId = 21, @@ -47120,8 +41583,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 3, - script = "0x0", - ), + script = "0x0"), NpcDef( entityIdx = 3, graphicsId = 0, @@ -47132,9 +41594,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "0x0", - ), + facing = 0, + script = "0x0"), NpcDef( entityIdx = 4, graphicsId = 0, @@ -47145,9 +41606,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "0x0", - ), + facing = 0, + script = "0x0"), ), bgEvents = emptyList(), ), @@ -47158,17 +41618,13 @@ object MapManager { mapId = 25, width = 15, height = 18, - paletteIdx1 = 107, - paletteIdx2 = 95, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 165, + unknownShort = 461, + unknownByte = 58, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -47183,8 +41639,8 @@ object MapManager { targetBankId = 76, targetMapId = 14, targetX = 58, - targetY = 14, - )), + targetY = 14), + ), npcs = listOf( NpcDef( @@ -47197,9 +41653,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "BattleFrontier_BattlePyramidLobby_EventScript_Attendant", - ), + facing = 0, + script = "BattleFrontier_BattlePyramidLobby_EventScript_Attendant"), NpcDef( entityIdx = 1, graphicsId = 40, @@ -47211,8 +41666,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 2, - script = "BattleFrontier_BattlePyramidLobby_EventScript_HintGiver", - ), + script = "BattleFrontier_BattlePyramidLobby_EventScript_HintGiver"), NpcDef( entityIdx = 2, graphicsId = 24, @@ -47224,8 +41678,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattleFrontier_BattlePyramidLobby_EventScript_Woman", - ), + script = "BattleFrontier_BattlePyramidLobby_EventScript_Woman"), NpcDef( entityIdx = 3, graphicsId = 17, @@ -47237,8 +41690,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattleFrontier_BattlePyramidLobby_EventScript_FatMan", - ), + script = "BattleFrontier_BattlePyramidLobby_EventScript_FatMan"), ), bgEvents = listOf( @@ -47246,14 +41698,12 @@ object MapManager { x = 5, y = 12, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "BattleFrontier_BattlePyramidLobby_EventScript_ShowResults", - ), + script = "BattleFrontier_BattlePyramidLobby_EventScript_ShowResults"), BgEventDef( x = 1, y = 12, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "BattleFrontier_BattlePyramidLobby_EventScript_RulesBoard", - ), + script = "BattleFrontier_BattlePyramidLobby_EventScript_RulesBoard"), ), ), // BattleFrontier_BattlePyramidFloor (MAP_BATTLE_FRONTIER_BATTLE_PYRAMID_FLOOR) @@ -47263,17 +41713,13 @@ object MapManager { mapId = 26, width = 8, height = 8, - paletteIdx1 = 107, - paletteIdx2 = 95, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 165, + unknownShort = 0, + unknownByte = 58, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -47292,9 +41738,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "0x0", - ), + facing = 0, + script = "0x0"), NpcDef( entityIdx = 1, graphicsId = 100, @@ -47306,8 +41751,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "0x0", - ), + script = "0x0"), NpcDef( entityIdx = 2, graphicsId = 100, @@ -47319,8 +41763,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "0x0", - ), + script = "0x0"), NpcDef( entityIdx = 3, graphicsId = 100, @@ -47332,8 +41775,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "0x0", - ), + script = "0x0"), NpcDef( entityIdx = 4, graphicsId = 100, @@ -47345,8 +41787,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "0x0", - ), + script = "0x0"), NpcDef( entityIdx = 5, graphicsId = 100, @@ -47358,8 +41799,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "0x0", - ), + script = "0x0"), NpcDef( entityIdx = 6, graphicsId = 100, @@ -47371,8 +41811,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "0x0", - ), + script = "0x0"), NpcDef( entityIdx = 7, graphicsId = 100, @@ -47384,8 +41823,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "0x0", - ), + script = "0x0"), NpcDef( entityIdx = 8, graphicsId = 100, @@ -47397,8 +41835,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "0x0", - ), + script = "0x0"), NpcDef( entityIdx = 9, graphicsId = 100, @@ -47410,8 +41847,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "0x0", - ), + script = "0x0"), NpcDef( entityIdx = 10, graphicsId = 100, @@ -47423,8 +41859,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "0x0", - ), + script = "0x0"), NpcDef( entityIdx = 11, graphicsId = 100, @@ -47436,8 +41871,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "0x0", - ), + script = "0x0"), NpcDef( entityIdx = 12, graphicsId = 100, @@ -47449,8 +41883,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "0x0", - ), + script = "0x0"), NpcDef( entityIdx = 13, graphicsId = 100, @@ -47462,8 +41895,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "0x0", - ), + script = "0x0"), NpcDef( entityIdx = 14, graphicsId = 100, @@ -47475,8 +41907,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "0x0", - ), + script = "0x0"), NpcDef( entityIdx = 15, graphicsId = 100, @@ -47488,8 +41919,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "0x0", - ), + script = "0x0"), ), bgEvents = emptyList(), ), @@ -47500,17 +41930,13 @@ object MapManager { mapId = 27, width = 34, height = 23, - paletteIdx1 = 107, - paletteIdx2 = 95, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 165, + unknownShort = 0, + unknownByte = 58, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -47529,9 +41955,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "BattleFrontier_BattlePyramidTop_EventScript_Attendant", - ), + facing = 0, + script = "BattleFrontier_BattlePyramidTop_EventScript_Attendant"), NpcDef( entityIdx = 1, graphicsId = 0, @@ -47542,9 +41967,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 0, - script = "0x0", - ), + facing = 1, + script = "0x0"), ), bgEvents = emptyList(), ), @@ -47555,17 +41979,13 @@ object MapManager { mapId = 28, width = 16, height = 13, - paletteIdx1 = 94, - paletteIdx2 = 124, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 164, + unknownShort = 458, + unknownByte = 58, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -47580,8 +42000,8 @@ object MapManager { targetBankId = 76, targetMapId = 14, targetX = 39, - targetY = 29, - )), + targetY = 29), + ), npcs = listOf( NpcDef( @@ -47594,9 +42014,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "BattleFrontier_BattleArenaLobby_EventScript_Attendant", - ), + facing = 0, + script = "BattleFrontier_BattleArenaLobby_EventScript_Attendant"), NpcDef( entityIdx = 1, graphicsId = 34, @@ -47608,8 +42027,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattleFrontier_BattleArenaLobby_EventScript_Woman", - ), + script = "BattleFrontier_BattleArenaLobby_EventScript_Woman"), NpcDef( entityIdx = 2, graphicsId = 66, @@ -47621,8 +42039,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 2, - script = "BattleFrontier_BattleArenaLobby_EventScript_Man", - ), + script = "BattleFrontier_BattleArenaLobby_EventScript_Man"), NpcDef( entityIdx = 3, graphicsId = 31, @@ -47634,8 +42051,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 2, - script = "BattleFrontier_BattleArenaLobby_EventScript_Camper", - ), + script = "BattleFrontier_BattleArenaLobby_EventScript_Camper"), NpcDef( entityIdx = 4, graphicsId = 35, @@ -47647,8 +42063,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 2, - script = "BattleFrontier_BattleArenaLobby_EventScript_Youngster", - ), + script = "BattleFrontier_BattleArenaLobby_EventScript_Youngster"), ), bgEvents = listOf( @@ -47656,14 +42071,12 @@ object MapManager { x = 5, y = 9, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "BattleFrontier_BattleArenaLobby_EventScript_ShowResults", - ), + script = "BattleFrontier_BattleArenaLobby_EventScript_ShowResults"), BgEventDef( x = 1, y = 7, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "BattleFrontier_BattleArenaLobby_EventScript_RulesBoard", - ), + script = "BattleFrontier_BattleArenaLobby_EventScript_RulesBoard"), ), ), // BattleFrontier_BattleArenaCorridor (MAP_BATTLE_FRONTIER_BATTLE_ARENA_CORRIDOR) @@ -47673,17 +42086,13 @@ object MapManager { mapId = 29, width = 18, height = 14, - paletteIdx1 = 94, - paletteIdx2 = 124, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 164, + unknownShort = 458, + unknownByte = 58, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -47702,30 +42111,25 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "0x0", - )), + facing = 0, + script = "0x0"), + ), bgEvents = emptyList(), ), - // BattleFrontier_BattleArenaBattleRoom - // (MAP_BATTLE_FRONTIER_BATTLE_ARENA_BATTLE_ROOM) + // BattleFrontier_BattleArenaBattleRoom (MAP_BATTLE_FRONTIER_BATTLE_ARENA_BATTLE_ROOM) MapDef( regionId = 1, bankId = 76, mapId = 30, width = 16, height = 11, - paletteIdx1 = 94, - paletteIdx2 = 124, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 164, + unknownShort = 458, + unknownByte = 58, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -47744,9 +42148,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "0x0", - ), + facing = 0, + script = "0x0"), NpcDef( entityIdx = 1, graphicsId = 44, @@ -47757,9 +42160,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "0x0", - ), + facing = 0, + script = "0x0"), NpcDef( entityIdx = 2, graphicsId = 44, @@ -47770,9 +42172,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 0, - script = "0x0", - ), + facing = 1, + script = "0x0"), NpcDef( entityIdx = 3, graphicsId = 44, @@ -47783,9 +42184,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 0, - script = "0x0", - ), + facing = 1, + script = "0x0"), NpcDef( entityIdx = 4, graphicsId = 44, @@ -47797,8 +42197,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 3, - script = "0x0", - ), + script = "0x0"), NpcDef( entityIdx = 5, graphicsId = 44, @@ -47810,8 +42209,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 2, - script = "0x0", - ), + script = "0x0"), NpcDef( entityIdx = 6, graphicsId = 240, @@ -47823,8 +42221,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 2, - script = "0x0", - ), + script = "0x0"), NpcDef( entityIdx = 7, graphicsId = 0, @@ -47836,8 +42233,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 3, - script = "0x0", - ), + script = "0x0"), NpcDef( entityIdx = 8, graphicsId = 44, @@ -47848,9 +42244,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "0x0", - ), + facing = 0, + script = "0x0"), ), bgEvents = emptyList(), ), @@ -47861,17 +42256,13 @@ object MapManager { mapId = 31, width = 19, height = 12, - paletteIdx1 = 133, - paletteIdx2 = 137, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 162, + unknownShort = 469, + unknownByte = 58, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -47886,8 +42277,7 @@ object MapManager { targetBankId = 76, targetMapId = 4, targetX = 11, - targetY = 38, - ), + targetY = 38), WarpTile( x = 10, y = 11, @@ -47895,8 +42285,7 @@ object MapManager { targetBankId = 76, targetMapId = 4, targetX = 11, - targetY = 38, - ), + targetY = 38), ), npcs = listOf( @@ -47910,10 +42299,9 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, + facing = 0, script = - "BattleFrontier_BattleFactoryLobby_EventScript_SinglesAttendant", - ), + "BattleFrontier_BattleFactoryLobby_EventScript_SinglesAttendant"), NpcDef( entityIdx = 1, graphicsId = 16, @@ -47925,8 +42313,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattleFrontier_BattleFactoryLobby_EventScript_Woman", - ), + script = "BattleFrontier_BattleFactoryLobby_EventScript_Woman"), NpcDef( entityIdx = 2, graphicsId = 31, @@ -47937,9 +42324,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "BattleFrontier_BattleFactoryLobby_EventScript_Camper", - ), + facing = 0, + script = "BattleFrontier_BattleFactoryLobby_EventScript_Camper"), NpcDef( entityIdx = 3, graphicsId = 32, @@ -47951,8 +42337,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 3, - script = "BattleFrontier_BattleFactoryLobby_EventScript_Picnicker", - ), + script = "BattleFrontier_BattleFactoryLobby_EventScript_Picnicker"), NpcDef( entityIdx = 4, graphicsId = 17, @@ -47964,8 +42349,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattleFrontier_BattleFactoryLobby_EventScript_FatMan", - ), + script = "BattleFrontier_BattleFactoryLobby_EventScript_FatMan"), NpcDef( entityIdx = 5, graphicsId = 46, @@ -47976,10 +42360,9 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, + facing = 0, script = - "BattleFrontier_BattleFactoryLobby_EventScript_DoublesAttendant", - ), + "BattleFrontier_BattleFactoryLobby_EventScript_DoublesAttendant"), ), bgEvents = listOf( @@ -47988,21 +42371,18 @@ object MapManager { y = 7, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", script = - "BattleFrontier_BattleFactoryLobby_EventScript_ShowSinglesResults", - ), + "BattleFrontier_BattleFactoryLobby_EventScript_ShowSinglesResults"), BgEventDef( x = 11, y = 7, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", script = - "BattleFrontier_BattleFactoryLobby_EventScript_ShowDoublesResults", - ), + "BattleFrontier_BattleFactoryLobby_EventScript_ShowDoublesResults"), BgEventDef( x = 9, y = 4, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "BattleFrontier_BattleFactoryLobby_EventScript_RulesBoard", - ), + script = "BattleFrontier_BattleFactoryLobby_EventScript_RulesBoard"), ), ), // BattleFrontier_BattleFactoryPreBattleRoom @@ -48013,17 +42393,13 @@ object MapManager { mapId = 32, width = 17, height = 14, - paletteIdx1 = 133, - paletteIdx2 = 137, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 162, + unknownShort = 469, + unknownByte = 58, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -48042,9 +42418,9 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 0, - script = "0x0", - )), + facing = 1, + script = "0x0"), + ), bgEvents = emptyList(), ), // BattleFrontier_BattleFactoryBattleRoom @@ -48055,17 +42431,13 @@ object MapManager { mapId = 33, width = 13, height = 12, - paletteIdx1 = 133, - paletteIdx2 = 137, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 162, + unknownShort = 469, + unknownByte = 58, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -48084,9 +42456,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "0x0", - ), + facing = 0, + script = "0x0"), NpcDef( entityIdx = 1, graphicsId = 240, @@ -48097,9 +42468,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "0x0", - ), + facing = 0, + script = "0x0"), NpcDef( entityIdx = 2, graphicsId = 46, @@ -48110,9 +42480,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "0x0", - ), + facing = 0, + script = "0x0"), NpcDef( entityIdx = 3, graphicsId = 46, @@ -48123,9 +42492,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "0x0", - ), + facing = 0, + script = "0x0"), NpcDef( entityIdx = 4, graphicsId = 46, @@ -48136,9 +42504,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "0x0", - ), + facing = 0, + script = "0x0"), NpcDef( entityIdx = 5, graphicsId = 46, @@ -48149,9 +42516,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "0x0", - ), + facing = 0, + script = "0x0"), NpcDef( entityIdx = 6, graphicsId = 46, @@ -48162,9 +42528,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "0x0", - ), + facing = 0, + script = "0x0"), NpcDef( entityIdx = 7, graphicsId = 0, @@ -48175,9 +42540,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 0, - script = "0x0", - ), + facing = 1, + script = "0x0"), ), bgEvents = emptyList(), ), @@ -48189,16 +42553,12 @@ object MapManager { width = 11, height = 13, paletteIdx1 = 116, - paletteIdx2 = 86, - unknownShort = 405, - unknownByte = 0, + paletteIdx2 = 163, + unknownShort = 468, + unknownByte = 58, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -48213,8 +42573,7 @@ object MapManager { targetBankId = 76, targetMapId = 4, targetX = 42, - targetY = 27, - ), + targetY = 27), WarpTile( x = 4, y = 12, @@ -48222,8 +42581,7 @@ object MapManager { targetBankId = 76, targetMapId = 4, targetX = 42, - targetY = 27, - ), + targetY = 27), WarpTile( x = 6, y = 12, @@ -48231,8 +42589,7 @@ object MapManager { targetBankId = 76, targetMapId = 4, targetX = 42, - targetY = 27, - ), + targetY = 27), ), npcs = listOf( @@ -48246,9 +42603,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "BattleFrontier_BattlePikeLobby_EventScript_Attendant", - ), + facing = 0, + script = "BattleFrontier_BattlePikeLobby_EventScript_Attendant"), NpcDef( entityIdx = 1, graphicsId = 55, @@ -48259,9 +42615,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 0, - script = "BattleFrontier_BattlePikeLobby_EventScript_Hiker", - ), + facing = 1, + script = "BattleFrontier_BattlePikeLobby_EventScript_Hiker"), NpcDef( entityIdx = 2, graphicsId = 6, @@ -48273,8 +42628,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 2, - script = "BattleFrontier_BattlePikeLobby_EventScript_Twin", - ), + script = "BattleFrontier_BattlePikeLobby_EventScript_Twin"), NpcDef( entityIdx = 3, graphicsId = 45, @@ -48286,8 +42640,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattleFrontier_BattlePikeLobby_EventScript_Beauty", - ), + script = "BattleFrontier_BattlePikeLobby_EventScript_Beauty"), ), bgEvents = listOf( @@ -48295,14 +42648,12 @@ object MapManager { x = 8, y = 3, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "BattleFrontier_BattlePikeLobby_EventScript_ShowResults", - ), + script = "BattleFrontier_BattlePikeLobby_EventScript_ShowResults"), BgEventDef( x = 1, y = 3, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "BattleFrontier_BattlePikeLobby_EventScript_RulesBoard", - ), + script = "BattleFrontier_BattlePikeLobby_EventScript_RulesBoard"), ), ), // BattleFrontier_BattlePikeCorridor (MAP_BATTLE_FRONTIER_BATTLE_PIKE_CORRIDOR) @@ -48313,16 +42664,12 @@ object MapManager { width = 14, height = 8, paletteIdx1 = 116, - paletteIdx2 = 86, - unknownShort = 405, - unknownByte = 0, + paletteIdx2 = 163, + unknownShort = 468, + unknownByte = 58, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -48341,9 +42688,9 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "0x0", - )), + facing = 0, + script = "0x0"), + ), bgEvents = emptyList(), ), // BattleFrontier_BattlePikeThreePathRoom @@ -48355,16 +42702,12 @@ object MapManager { width = 13, height = 11, paletteIdx1 = 116, - paletteIdx2 = 86, - unknownShort = 405, - unknownByte = 0, + paletteIdx2 = 163, + unknownShort = 468, + unknownByte = 58, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -48384,8 +42727,8 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "BattleFrontier_BattlePikeThreePathRoom_EventScript_Attendant", - ), + script = + "BattleFrontier_BattlePikeThreePathRoom_EventScript_Attendant"), NpcDef( entityIdx = 1, graphicsId = 28, @@ -48396,9 +42739,9 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "BattleFrontier_BattlePikeThreePathRoom_EventScript_HintGiver", - ), + facing = 0, + script = + "BattleFrontier_BattlePikeThreePathRoom_EventScript_HintGiver"), ), bgEvents = emptyList(), ), @@ -48410,16 +42753,12 @@ object MapManager { width = 9, height = 8, paletteIdx1 = 116, - paletteIdx2 = 86, - unknownShort = 405, - unknownByte = 0, + paletteIdx2 = 163, + unknownShort = 468, + unknownByte = 58, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -48438,9 +42777,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "BattleFrontier_BattlePikeRoomNormal_EventScript_NPC", - ), + facing = 0, + script = "BattleFrontier_BattlePikeRoomNormal_EventScript_NPC"), NpcDef( entityIdx = 1, graphicsId = 0, @@ -48451,9 +42789,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "BattleFrontier_BattlePikeRoomNormal_EventScript_StatusMon", - ), + facing = 0, + script = "BattleFrontier_BattlePikeRoomNormal_EventScript_StatusMon"), ), bgEvents = emptyList(), ), @@ -48465,16 +42802,12 @@ object MapManager { width = 5, height = 8, paletteIdx1 = 116, - paletteIdx2 = 86, - unknownShort = 405, - unknownByte = 0, + paletteIdx2 = 163, + unknownShort = 468, + unknownByte = 58, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -48493,9 +42826,9 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "0x0", - )), + facing = 0, + script = "0x0"), + ), bgEvents = emptyList(), ), // BattleFrontier_BattlePikeRoomWildMons @@ -48507,16 +42840,12 @@ object MapManager { width = 9, height = 20, paletteIdx1 = 116, - paletteIdx2 = 86, - unknownShort = 405, - unknownByte = 0, + paletteIdx2 = 163, + unknownShort = 468, + unknownByte = 58, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -48533,17 +42862,13 @@ object MapManager { mapId = 40, width = 53, height = 15, - paletteIdx1 = 133, - paletteIdx2 = 81, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 171, + unknownShort = 373, + unknownByte = 58, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -48558,8 +42883,7 @@ object MapManager { targetBankId = 76, targetMapId = 14, targetX = 35, - targetY = 12, - ), + targetY = 12), WarpTile( x = 27, y = 14, @@ -48567,8 +42891,7 @@ object MapManager { targetBankId = 76, targetMapId = 14, targetX = 35, - targetY = 12, - ), + targetY = 12), ), npcs = listOf( @@ -48582,9 +42905,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "BattleFrontier_RankingHall_EventScript_Attendant", - ), + facing = 0, + script = "BattleFrontier_RankingHall_EventScript_Attendant"), NpcDef( entityIdx = 1, graphicsId = 5, @@ -48596,8 +42918,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattleFrontier_RankingHall_EventScript_NinjaBoy", - ), + script = "BattleFrontier_RankingHall_EventScript_NinjaBoy"), NpcDef( entityIdx = 2, graphicsId = 13, @@ -48609,8 +42930,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattleFrontier_RankingHall_EventScript_Boy", - ), + script = "BattleFrontier_RankingHall_EventScript_Boy"), ), bgEvents = listOf( @@ -48618,76 +42938,64 @@ object MapManager { x = 26, y = 9, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "BattleFrontier_RankingHall_EventScript_TowerSinglesRecords", - ), + script = "BattleFrontier_RankingHall_EventScript_TowerSinglesRecords"), BgEventDef( x = 23, y = 8, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "BattleFrontier_RankingHall_EventScript_TowerDoublesRecords", - ), + script = "BattleFrontier_RankingHall_EventScript_TowerDoublesRecords"), BgEventDef( x = 26, y = 5, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "BattleFrontier_RankingHall_EventScript_TowerMultisRecords", - ), + script = "BattleFrontier_RankingHall_EventScript_TowerMultisRecords"), BgEventDef( x = 29, y = 8, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "BattleFrontier_RankingHall_EventScript_TowerLinkRecords", - ), + script = "BattleFrontier_RankingHall_EventScript_TowerLinkRecords"), BgEventDef( x = 42, y = 9, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "BattleFrontier_RankingHall_EventScript_ArenaRecords", - ), + script = "BattleFrontier_RankingHall_EventScript_ArenaRecords"), BgEventDef( x = 46, y = 9, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "BattleFrontier_RankingHall_EventScript_PalaceRecords", - ), + script = "BattleFrontier_RankingHall_EventScript_PalaceRecords"), BgEventDef( x = 10, y = 9, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "BattleFrontier_RankingHall_EventScript_FactoryRecords", - ), + script = "BattleFrontier_RankingHall_EventScript_FactoryRecords"), BgEventDef( x = 8, y = 7, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "BattleFrontier_RankingHall_EventScript_DomeRecords", - ), + script = "BattleFrontier_RankingHall_EventScript_DomeRecords"), BgEventDef( x = 6, y = 9, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "BattleFrontier_RankingHall_EventScript_PikeRecords", - ), + script = "BattleFrontier_RankingHall_EventScript_PikeRecords"), BgEventDef( x = 44, y = 7, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "BattleFrontier_RankingHall_EventScript_PyramidRecords", - ), + script = "BattleFrontier_RankingHall_EventScript_PyramidRecords"), BgEventDef( x = 16, y = 8, facingDir = "BG_EVENT_PLAYER_FACING_ANY", script = - "BattleFrontier_RankingHall_EventScript_DomePikeFactoryRecordsSign", - ), + "BattleFrontier_RankingHall_EventScript_DomePikeFactoryRecordsSign"), BgEventDef( x = 36, y = 8, facingDir = "BG_EVENT_PLAYER_FACING_ANY", script = - "BattleFrontier_RankingHall_EventScript_PalaceArenaPyramidRecordsSIgn", - ), + "BattleFrontier_RankingHall_EventScript_PalaceArenaPyramidRecordsSIgn"), ), ), // BattleFrontier_Lounge1 (MAP_BATTLE_FRONTIER_LOUNGE1) @@ -48697,17 +43005,13 @@ object MapManager { mapId = 41, width = 9, height = 10, - paletteIdx1 = 90, - paletteIdx2 = 98, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 159, + unknownShort = 384, + unknownByte = 58, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -48722,8 +43026,8 @@ object MapManager { targetBankId = 76, targetMapId = 14, targetX = 4, - targetY = 44, - )), + targetY = 44), + ), npcs = listOf( NpcDef( @@ -48737,8 +43041,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 3, - script = "BattleFrontier_Lounge1_EventScript_Breeder", - ), + script = "BattleFrontier_Lounge1_EventScript_Breeder"), NpcDef( entityIdx = 1, graphicsId = 13, @@ -48750,8 +43053,7 @@ object MapManager { movementRangeY = 2, trainerType = 0, facing = 0, - script = "BattleFrontier_Lounge1_EventScript_Boy1", - ), + script = "BattleFrontier_Lounge1_EventScript_Boy1"), NpcDef( entityIdx = 2, graphicsId = 9, @@ -48763,30 +43065,24 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattleFrontier_Lounge1_EventScript_Boy2", - ), + script = "BattleFrontier_Lounge1_EventScript_Boy2"), ), bgEvents = emptyList(), ), - // BattleFrontier_ExchangeServiceCorner - // (MAP_BATTLE_FRONTIER_EXCHANGE_SERVICE_CORNER) + // BattleFrontier_ExchangeServiceCorner (MAP_BATTLE_FRONTIER_EXCHANGE_SERVICE_CORNER) MapDef( regionId = 1, bankId = 76, mapId = 42, width = 15, height = 11, - paletteIdx1 = 90, - paletteIdx2 = 98, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 159, + unknownShort = 384, + unknownByte = 58, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -48801,8 +43097,7 @@ object MapManager { targetBankId = 76, targetMapId = 14, targetX = 10, - targetY = 28, - ), + targetY = 28), WarpTile( x = 6, y = 10, @@ -48810,8 +43105,7 @@ object MapManager { targetBankId = 76, targetMapId = 14, targetX = 10, - targetY = 28, - ), + targetY = 28), WarpTile( x = 8, y = 10, @@ -48819,8 +43113,7 @@ object MapManager { targetBankId = 76, targetMapId = 14, targetX = 10, - targetY = 28, - ), + targetY = 28), ), npcs = listOf( @@ -48835,8 +43128,8 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 2, - script = "BattleFrontier_ExchangeServiceCorner_EventScript_DecorClerk1", - ), + script = + "BattleFrontier_ExchangeServiceCorner_EventScript_DecorClerk1"), NpcDef( entityIdx = 1, graphicsId = 15, @@ -48848,8 +43141,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 3, - script = "BattleFrontier_ExchangeServiceCorner_EventScript_RichBoy", - ), + script = "BattleFrontier_ExchangeServiceCorner_EventScript_RichBoy"), NpcDef( entityIdx = 2, graphicsId = 18, @@ -48860,9 +43152,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "BattleFrontier_ExchangeServiceCorner_EventScript_PokefanF", - ), + facing = 0, + script = "BattleFrontier_ExchangeServiceCorner_EventScript_PokefanF"), NpcDef( entityIdx = 3, graphicsId = 49, @@ -48874,8 +43165,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattleFrontier_ExchangeServiceCorner_EventScript_Sailor", - ), + script = "BattleFrontier_ExchangeServiceCorner_EventScript_Sailor"), NpcDef( entityIdx = 4, graphicsId = 66, @@ -48887,8 +43177,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattleFrontier_ExchangeServiceCorner_EventScript_Man", - ), + script = "BattleFrontier_ExchangeServiceCorner_EventScript_Man"), NpcDef( entityIdx = 5, graphicsId = 0, @@ -48899,9 +43188,9 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "BattleFrontier_ExchangeServiceCorner_EventScript_DecorClerk2", - ), + facing = 0, + script = + "BattleFrontier_ExchangeServiceCorner_EventScript_DecorClerk2"), NpcDef( entityIdx = 6, graphicsId = 0, @@ -48912,10 +43201,9 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, + facing = 0, script = - "BattleFrontier_ExchangeServiceCorner_EventScript_VitaminClerk", - ), + "BattleFrontier_ExchangeServiceCorner_EventScript_VitaminClerk"), NpcDef( entityIdx = 7, graphicsId = 0, @@ -48928,8 +43216,7 @@ object MapManager { trainerType = 0, facing = 3, script = - "BattleFrontier_ExchangeServiceCorner_EventScript_HoldItemClerk", - ), + "BattleFrontier_ExchangeServiceCorner_EventScript_HoldItemClerk"), NpcDef( entityIdx = 8, graphicsId = 8, @@ -48941,8 +43228,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattleFrontier_ExchangeServiceCorner_EventScript_Girl", - ), + script = "BattleFrontier_ExchangeServiceCorner_EventScript_Girl"), ), bgEvents = emptyList(), ), @@ -48953,17 +43239,13 @@ object MapManager { mapId = 43, width = 13, height = 8, - paletteIdx1 = 90, - paletteIdx2 = 98, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 159, + unknownShort = 384, + unknownByte = 58, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -48978,8 +43260,7 @@ object MapManager { targetBankId = 76, targetMapId = 4, targetX = 45, - targetY = 44, - ), + targetY = 44), WarpTile( x = 2, y = 7, @@ -48987,8 +43268,7 @@ object MapManager { targetBankId = 76, targetMapId = 4, targetX = 45, - targetY = 44, - ), + targetY = 44), ), npcs = listOf( @@ -49003,8 +43283,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 3, - script = "BattleFrontier_Lounge2_EventScript_FrontierManiac", - ), + script = "BattleFrontier_Lounge2_EventScript_FrontierManiac"), NpcDef( entityIdx = 1, graphicsId = 39, @@ -49016,8 +43295,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 2, - script = "BattleFrontier_Lounge2_EventScript_Maniac1", - ), + script = "BattleFrontier_Lounge2_EventScript_Maniac1"), NpcDef( entityIdx = 2, graphicsId = 39, @@ -49029,8 +43307,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 2, - script = "BattleFrontier_Lounge2_EventScript_Maniac2", - ), + script = "BattleFrontier_Lounge2_EventScript_Maniac2"), NpcDef( entityIdx = 3, graphicsId = 52, @@ -49042,8 +43319,7 @@ object MapManager { movementRangeY = 2, trainerType = 0, facing = 0, - script = "BattleFrontier_Lounge2_EventScript_TriathleteF", - ), + script = "BattleFrontier_Lounge2_EventScript_TriathleteF"), NpcDef( entityIdx = 4, graphicsId = 39, @@ -49055,8 +43331,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 2, - script = "BattleFrontier_Lounge2_EventScript_Maniac3", - ), + script = "BattleFrontier_Lounge2_EventScript_Maniac3"), ), bgEvents = emptyList(), ), @@ -49067,17 +43342,13 @@ object MapManager { mapId = 44, width = 9, height = 10, - paletteIdx1 = 90, - paletteIdx2 = 98, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 159, + unknownShort = 384, + unknownByte = 58, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -49092,8 +43363,8 @@ object MapManager { targetBankId = 76, targetMapId = 14, targetX = 65, - targetY = 31, - )), + targetY = 31), + ), npcs = listOf( NpcDef( @@ -49106,9 +43377,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 0, - script = "BattleFrontier_Lounge3_EventScript_Gambler", - ), + facing = 1, + script = "BattleFrontier_Lounge3_EventScript_Gambler"), NpcDef( entityIdx = 1, graphicsId = 17, @@ -49119,9 +43389,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "BattleFrontier_Lounge3_EventScript_FatMan", - ), + facing = 0, + script = "BattleFrontier_Lounge3_EventScript_FatMan"), NpcDef( entityIdx = 2, graphicsId = 20, @@ -49133,8 +43402,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 3, - script = "BattleFrontier_Lounge3_EventScript_Woman", - ), + script = "BattleFrontier_Lounge3_EventScript_Woman"), NpcDef( entityIdx = 3, graphicsId = 18, @@ -49146,8 +43414,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 2, - script = "BattleFrontier_Lounge3_EventScript_PokefanF", - ), + script = "BattleFrontier_Lounge3_EventScript_PokefanF"), NpcDef( entityIdx = 4, graphicsId = 33, @@ -49159,8 +43426,7 @@ object MapManager { movementRangeY = 3, trainerType = 0, facing = 0, - script = "BattleFrontier_Lounge3_EventScript_Man", - ), + script = "BattleFrontier_Lounge3_EventScript_Man"), ), bgEvents = emptyList(), ), @@ -49171,17 +43437,13 @@ object MapManager { mapId = 45, width = 9, height = 10, - paletteIdx1 = 90, - paletteIdx2 = 98, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 159, + unknownShort = 384, + unknownByte = 58, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -49196,8 +43458,8 @@ object MapManager { targetBankId = 76, targetMapId = 4, targetX = 53, - targetY = 44, - )), + targetY = 44), + ), npcs = listOf( NpcDef( @@ -49210,9 +43472,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 0, - script = "BattleFrontier_Lounge4_EventScript_Woman", - ), + facing = 1, + script = "BattleFrontier_Lounge4_EventScript_Woman"), NpcDef( entityIdx = 1, graphicsId = 27, @@ -49224,8 +43485,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattleFrontier_Lounge4_EventScript_Cook", - ), + script = "BattleFrontier_Lounge4_EventScript_Cook"), NpcDef( entityIdx = 2, graphicsId = 33, @@ -49237,8 +43497,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 3, - script = "BattleFrontier_Lounge4_EventScript_Man", - ), + script = "BattleFrontier_Lounge4_EventScript_Man"), ), bgEvents = emptyList(), ), @@ -49249,17 +43508,13 @@ object MapManager { mapId = 46, width = 6, height = 8, - paletteIdx1 = 90, - paletteIdx2 = 98, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 159, + unknownShort = 384, + unknownByte = 58, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -49274,8 +43529,7 @@ object MapManager { targetBankId = 76, targetMapId = 4, targetX = 44, - targetY = 5, - ), + targetY = 5), WarpTile( x = 3, y = 7, @@ -49283,8 +43537,7 @@ object MapManager { targetBankId = 76, targetMapId = 4, targetX = 44, - targetY = 5, - ), + targetY = 5), ), npcs = listOf( @@ -49299,8 +43552,8 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattleFrontier_ScottsHouse_EventScript_Scott", - )), + script = "BattleFrontier_ScottsHouse_EventScript_Scott"), + ), bgEvents = emptyList(), ), // BattleFrontier_Lounge5 (MAP_BATTLE_FRONTIER_LOUNGE5) @@ -49310,17 +43563,13 @@ object MapManager { mapId = 47, width = 13, height = 8, - paletteIdx1 = 90, - paletteIdx2 = 98, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 159, + unknownShort = 384, + unknownByte = 58, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -49335,8 +43584,7 @@ object MapManager { targetBankId = 76, targetMapId = 14, targetX = 22, - targetY = 51, - ), + targetY = 51), WarpTile( x = 2, y = 7, @@ -49344,8 +43592,7 @@ object MapManager { targetBankId = 76, targetMapId = 14, targetX = 22, - targetY = 51, - ), + targetY = 51), ), npcs = listOf( @@ -49360,8 +43607,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 2, - script = "BattleFrontier_Lounge5_EventScript_NatureGirl", - ), + script = "BattleFrontier_Lounge5_EventScript_NatureGirl"), NpcDef( entityIdx = 1, graphicsId = 48, @@ -49373,8 +43619,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 3, - script = "BattleFrontier_Lounge5_EventScript_Gentleman", - ), + script = "BattleFrontier_Lounge5_EventScript_Gentleman"), NpcDef( entityIdx = 2, graphicsId = 44, @@ -49386,8 +43631,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattleFrontier_Lounge5_EventScript_BlackBelt", - ), + script = "BattleFrontier_Lounge5_EventScript_BlackBelt"), NpcDef( entityIdx = 3, graphicsId = 11, @@ -49399,8 +43643,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattleFrontier_Lounge5_EventScript_LittleBoy", - ), + script = "BattleFrontier_Lounge5_EventScript_LittleBoy"), ), bgEvents = emptyList(), ), @@ -49411,17 +43654,13 @@ object MapManager { mapId = 48, width = 9, height = 10, - paletteIdx1 = 90, - paletteIdx2 = 98, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 159, + unknownShort = 384, + unknownByte = 58, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -49436,8 +43675,8 @@ object MapManager { targetBankId = 76, targetMapId = 14, targetX = 5, - targetY = 8, - )), + targetY = 8), + ), npcs = listOf( NpcDef( @@ -49451,8 +43690,8 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 3, - script = "BattleFrontier_Lounge6_EventScript_Trader", - )), + script = "BattleFrontier_Lounge6_EventScript_Trader"), + ), bgEvents = emptyList(), ), // BattleFrontier_Lounge7 (MAP_BATTLE_FRONTIER_LOUNGE7) @@ -49462,17 +43701,13 @@ object MapManager { mapId = 49, width = 9, height = 10, - paletteIdx1 = 90, - paletteIdx2 = 98, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 159, + unknownShort = 384, + unknownByte = 58, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -49487,8 +43722,8 @@ object MapManager { targetBankId = 76, targetMapId = 4, targetX = 5, - targetY = 20, - )), + targetY = 20), + ), npcs = listOf( NpcDef( @@ -49502,8 +43737,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "BattleFrontier_Lounge7_EventScript_Sailor", - ), + script = "BattleFrontier_Lounge7_EventScript_Sailor"), NpcDef( entityIdx = 1, graphicsId = 22, @@ -49515,8 +43749,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 3, - script = "BattleFrontier_Lounge7_EventScript_LeftMoveTutor", - ), + script = "BattleFrontier_Lounge7_EventScript_LeftMoveTutor"), NpcDef( entityIdx = 2, graphicsId = 22, @@ -49528,8 +43761,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 2, - script = "BattleFrontier_Lounge7_EventScript_RightMoveTutor", - ), + script = "BattleFrontier_Lounge7_EventScript_RightMoveTutor"), NpcDef( entityIdx = 3, graphicsId = 48, @@ -49541,8 +43773,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 2, - script = "BattleFrontier_Lounge7_EventScript_Gentleman", - ), + script = "BattleFrontier_Lounge7_EventScript_Gentleman"), ), bgEvents = emptyList(), ), @@ -49553,17 +43784,13 @@ object MapManager { mapId = 50, width = 9, height = 14, - paletteIdx1 = 114, - paletteIdx2 = 150, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 159, + unknownShort = 384, + unknownByte = 58, borderTiles = listOf( - Tile2D(0x0023, 0), - Tile2D(0x0023, 0), - Tile2D(0x0023, 0), - Tile2D(0x0023, 0), - ), + Tile2D(0x0023, 0), Tile2D(0x0023, 0), Tile2D(0x0023, 0), Tile2D(0x0023, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -49578,8 +43805,7 @@ object MapManager { targetBankId = 76, targetMapId = 4, targetX = 26, - targetY = 65, - ), + targetY = 65), WarpTile( x = 4, y = 1, @@ -49587,8 +43813,7 @@ object MapManager { targetBankId = 76, targetMapId = 4, targetX = 26, - targetY = 61, - ), + targetY = 61), ), npcs = listOf( @@ -49603,8 +43828,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 3, - script = "BattleFrontier_ReceptionGate_EventScript_Greeter", - ), + script = "BattleFrontier_ReceptionGate_EventScript_Greeter"), NpcDef( entityIdx = 1, graphicsId = 0, @@ -49616,8 +43840,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 2, - script = "BattleFrontier_ReceptionGate_EventScript_FacilityGuide", - ), + script = "BattleFrontier_ReceptionGate_EventScript_FacilityGuide"), NpcDef( entityIdx = 2, graphicsId = 23, @@ -49629,8 +43852,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 2, - script = "BattleFrontier_ReceptionGate_EventScript_RulesGuide", - ), + script = "BattleFrontier_ReceptionGate_EventScript_RulesGuide"), NpcDef( entityIdx = 4, graphicsId = 23, @@ -49642,8 +43864,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 3, - script = "BattleFrontier_ReceptionGate_EventScript_FrontierPassGuide", - ), + script = "BattleFrontier_ReceptionGate_EventScript_FrontierPassGuide"), ), bgEvents = emptyList(), ), @@ -49654,17 +43875,13 @@ object MapManager { mapId = 51, width = 9, height = 10, - paletteIdx1 = 90, - paletteIdx2 = 98, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 159, + unknownShort = 384, + unknownByte = 58, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -49679,8 +43896,8 @@ object MapManager { targetBankId = 76, targetMapId = 14, targetX = 14, - targetY = 51, - )), + targetY = 51), + ), npcs = listOf( NpcDef( @@ -49694,8 +43911,7 @@ object MapManager { movementRangeY = 2, trainerType = 0, facing = 0, - script = "BattleFrontier_Lounge8_EventScript_NinjaBoy", - ), + script = "BattleFrontier_Lounge8_EventScript_NinjaBoy"), NpcDef( entityIdx = 1, graphicsId = 33, @@ -49707,8 +43923,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 2, - script = "BattleFrontier_Lounge8_EventScript_Man", - ), + script = "BattleFrontier_Lounge8_EventScript_Man"), NpcDef( entityIdx = 2, graphicsId = 34, @@ -49720,8 +43935,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 2, - script = "BattleFrontier_Lounge8_EventScript_Woman", - ), + script = "BattleFrontier_Lounge8_EventScript_Woman"), ), bgEvents = emptyList(), ), @@ -49732,17 +43946,13 @@ object MapManager { mapId = 52, width = 9, height = 10, - paletteIdx1 = 90, - paletteIdx2 = 98, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 159, + unknownShort = 384, + unknownByte = 58, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -49757,8 +43967,7 @@ object MapManager { targetBankId = 76, targetMapId = 14, targetX = 21, - targetY = 45, - ), + targetY = 45), WarpTile( x = 2, y = 9, @@ -49766,8 +43975,7 @@ object MapManager { targetBankId = 76, targetMapId = 14, targetX = 21, - targetY = 45, - ), + targetY = 45), ), npcs = listOf( @@ -49782,8 +43990,8 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "0x0", - )), + script = "0x0"), + ), bgEvents = emptyList(), ), // BattleFrontier_PokemonCenter_1F (MAP_BATTLE_FRONTIER_POKEMON_CENTER_1F) @@ -49793,17 +44001,13 @@ object MapManager { mapId = 53, width = 14, height = 9, - paletteIdx1 = 87, - paletteIdx2 = 121, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 118, + unknownShort = 400, + unknownByte = 58, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -49818,8 +44022,7 @@ object MapManager { targetBankId = 76, targetMapId = 14, targetX = 3, - targetY = 51, - ), + targetY = 51), WarpTile( x = 6, y = 8, @@ -49827,8 +44030,7 @@ object MapManager { targetBankId = 76, targetMapId = 14, targetX = 3, - targetY = 51, - ), + targetY = 51), WarpTile( x = 1, y = 6, @@ -49836,8 +44038,7 @@ object MapManager { targetBankId = 76, targetMapId = 54, targetX = 1, - targetY = 6, - ), + targetY = 6), ), npcs = listOf( @@ -49851,9 +44052,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "BattleFrontier_PokemonCenter_1F_EventScript_Nurse", - ), + facing = 0, + script = "BattleFrontier_PokemonCenter_1F_EventScript_Nurse"), NpcDef( entityIdx = 1, graphicsId = 38, @@ -49865,8 +44065,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 0, - script = "BattleFrontier_PokemonCenter_1F_EventScript_SchoolKid", - ), + script = "BattleFrontier_PokemonCenter_1F_EventScript_SchoolKid"), NpcDef( entityIdx = 2, graphicsId = 33, @@ -49877,9 +44076,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "BattleFrontier_PokemonCenter_1F_EventScript_Man", - ), + facing = 0, + script = "BattleFrontier_PokemonCenter_1F_EventScript_Man"), NpcDef( entityIdx = 3, graphicsId = 32, @@ -49891,8 +44089,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 2, - script = "BattleFrontier_PokemonCenter_1F_EventScript_Picnicker", - ), + script = "BattleFrontier_PokemonCenter_1F_EventScript_Picnicker"), NpcDef( entityIdx = 4, graphicsId = 0, @@ -49904,8 +44101,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "BattleFrontier_PokemonCenter_1F_EventScript_Skitty", - ), + script = "BattleFrontier_PokemonCenter_1F_EventScript_Skitty"), ), bgEvents = emptyList(), ), @@ -49916,17 +44112,13 @@ object MapManager { mapId = 54, width = 14, height = 10, - paletteIdx1 = 87, - paletteIdx2 = 121, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 118, + unknownShort = 400, + unknownByte = 58, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -49941,8 +44133,7 @@ object MapManager { targetBankId = 76, targetMapId = 53, targetX = 1, - targetY = 6, - ), + targetY = 6), WarpTile( x = 5, y = 1, @@ -49950,8 +44141,7 @@ object MapManager { targetBankId = 75, targetMapId = 60, targetX = 7, - targetY = 11, - ), + targetY = 11), WarpTile( x = 9, y = 1, @@ -49959,8 +44149,7 @@ object MapManager { targetBankId = 75, targetMapId = 25, targetX = 5, - targetY = 8, - ), + targetY = 8), ), npcs = listOf( @@ -49974,9 +44163,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "Common_EventScript_UnionRoomAttendant", - ), + facing = 0, + script = "Common_EventScript_UnionRoomAttendant"), NpcDef( entityIdx = 1, graphicsId = 0, @@ -49987,9 +44175,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "Common_EventScript_WirelessClubAttendant", - ), + facing = 0, + script = "Common_EventScript_WirelessClubAttendant"), NpcDef( entityIdx = 2, graphicsId = 0, @@ -50000,9 +44187,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "Common_EventScript_DirectCornerAttendant", - ), + facing = 0, + script = "Common_EventScript_DirectCornerAttendant"), ), bgEvents = emptyList(), ), @@ -50013,17 +44199,13 @@ object MapManager { mapId = 55, width = 11, height = 8, - paletteIdx1 = 95, - paletteIdx2 = 87, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 117, + unknownShort = 404, + unknownByte = 58, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -50038,8 +44220,7 @@ object MapManager { targetBankId = 76, targetMapId = 4, targetX = 51, - targetY = 51, - ), + targetY = 51), WarpTile( x = 4, y = 7, @@ -50047,8 +44228,7 @@ object MapManager { targetBankId = 76, targetMapId = 4, targetX = 51, - targetY = 51, - ), + targetY = 51), ), npcs = listOf( @@ -50063,8 +44243,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "BattleFrontier_Mart_EventScript_Clerk", - ), + script = "BattleFrontier_Mart_EventScript_Clerk"), NpcDef( entityIdx = 1, graphicsId = 30, @@ -50076,8 +44255,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "BattleFrontier_Mart_EventScript_OldWoman", - ), + script = "BattleFrontier_Mart_EventScript_OldWoman"), NpcDef( entityIdx = 2, graphicsId = 29, @@ -50089,8 +44267,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "BattleFrontier_Mart_EventScript_OldMan", - ), + script = "BattleFrontier_Mart_EventScript_OldMan"), NpcDef( entityIdx = 3, graphicsId = 9, @@ -50102,8 +44279,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 2, - script = "BattleFrontier_Mart_EventScript_Boy", - ), + script = "BattleFrontier_Mart_EventScript_Boy"), ), bgEvents = emptyList(), ), @@ -50114,17 +44290,13 @@ object MapManager { mapId = 56, width = 34, height = 46, - paletteIdx1 = 82, - paletteIdx2 = 118, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 102, + unknownShort = 381, + unknownByte = 201, borderTiles = listOf( - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - ), + Tile2D(0x0170, 0), Tile2D(0x0170, 0), Tile2D(0x0170, 0), Tile2D(0x0170, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -50139,8 +44311,7 @@ object MapManager { targetBankId = 76, targetMapId = 57, targetX = 12, - targetY = 19, - ), + targetY = 19), WarpTile( x = 23, y = 7, @@ -50148,8 +44319,7 @@ object MapManager { targetBankId = 76, targetMapId = 57, targetX = 13, - targetY = 19, - ), + targetY = 19), ), npcs = listOf( @@ -50163,9 +44333,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 0, - script = "FarawayIsland_Entrance_EventScript_Sailor", - ), + facing = 1, + script = "FarawayIsland_Entrance_EventScript_Sailor"), NpcDef( entityIdx = 1, graphicsId = 0, @@ -50177,8 +44346,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "0x0", - ), + script = "0x0"), ), bgEvents = listOf( @@ -50186,8 +44354,8 @@ object MapManager { x = 3, y = 32, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "FarawayIsland_Entrance_EventScript_Sign", - )), + script = "FarawayIsland_Entrance_EventScript_Sign"), + ), ), // FarawayIsland_Interior (MAP_FARAWAY_ISLAND_INTERIOR) MapDef( @@ -50196,17 +44364,13 @@ object MapManager { mapId = 57, width = 29, height = 26, - paletteIdx1 = 94, - paletteIdx2 = 126, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 108, + unknownShort = 381, + unknownByte = 201, borderTiles = listOf( - Tile2D(0x00C6, 0), - Tile2D(0x00C6, 0), - Tile2D(0x00C6, 0), - Tile2D(0x00C6, 0), - ), + Tile2D(0x00C6, 0), Tile2D(0x00C6, 0), Tile2D(0x00C6, 0), Tile2D(0x00C6, 0)), lighting = Lighting.REGULAR, weather = Weather.CLOUDY, mapType = MapType.INSIDE, @@ -50221,8 +44385,7 @@ object MapManager { targetBankId = 76, targetMapId = 56, targetX = 22, - targetY = 7, - ), + targetY = 7), WarpTile( x = 13, y = 19, @@ -50230,8 +44393,7 @@ object MapManager { targetBankId = 76, targetMapId = 56, targetX = 23, - targetY = 7, - ), + targetY = 7), ), npcs = emptyList(), bgEvents = emptyList(), @@ -50243,17 +44405,13 @@ object MapManager { mapId = 58, width = 30, height = 30, - paletteIdx1 = 90, - paletteIdx2 = 124, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 103, + unknownShort = 0, + unknownByte = 200, borderTiles = listOf( - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - ), + Tile2D(0x0170, 0), Tile2D(0x0170, 0), Tile2D(0x0170, 0), Tile2D(0x0170, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -50268,8 +44426,8 @@ object MapManager { targetBankId = 76, targetMapId = 59, targetX = 8, - targetY = 2, - )), + targetY = 2), + ), npcs = emptyList(), bgEvents = emptyList(), ), @@ -50280,17 +44438,13 @@ object MapManager { mapId = 59, width = 17, height = 13, - paletteIdx1 = 118, - paletteIdx2 = 98, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 168, + unknownShort = 0, + unknownByte = 200, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -50305,8 +44459,8 @@ object MapManager { targetBankId = 76, targetMapId = 58, targetX = 15, - targetY = 24, - )), + targetY = 24), + ), npcs = listOf( NpcDef( @@ -50319,9 +44473,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 0, - script = "BirthIsland_Harbor_EventScript_Sailor", - ), + facing = 1, + script = "BirthIsland_Harbor_EventScript_Sailor"), NpcDef( entityIdx = 1, graphicsId = 0, @@ -50333,8 +44486,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 3, - script = "0x0", - ), + script = "0x0"), ), bgEvents = emptyList(), ), @@ -50345,17 +44497,13 @@ object MapManager { mapId = 60, width = 19, height = 17, - paletteIdx1 = 97, - paletteIdx2 = 103, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 169, + unknownShort = 384, + unknownByte = 212, borderTiles = listOf( - Tile2D(0x0208, 0), - Tile2D(0x0208, 0), - Tile2D(0x0208, 0), - Tile2D(0x0208, 0), - ), + Tile2D(0x0208, 0), Tile2D(0x0208, 0), Tile2D(0x0208, 0), Tile2D(0x0208, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -50370,8 +44518,7 @@ object MapManager { targetBankId = 50, targetMapId = 26, targetX = 31, - targetY = 113, - ), + targetY = 113), WarpTile( x = 10, y = 16, @@ -50379,8 +44526,7 @@ object MapManager { targetBankId = 50, targetMapId = 26, targetX = 31, - targetY = 113, - ), + targetY = 113), WarpTile( x = 9, y = 1, @@ -50388,8 +44534,7 @@ object MapManager { targetBankId = 76, targetMapId = 61, targetX = 2, - targetY = 1, - ), + targetY = 1), ), npcs = listOf( @@ -50404,8 +44549,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 2, - script = "TrainerHill_Entrance_EventScript_Attendant", - ), + script = "TrainerHill_Entrance_EventScript_Attendant"), NpcDef( entityIdx = 1, graphicsId = 58, @@ -50416,9 +44560,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "TrainerHill_Entrance_EventScript_Nurse", - ), + facing = 0, + script = "TrainerHill_Entrance_EventScript_Nurse"), NpcDef( entityIdx = 2, graphicsId = 83, @@ -50429,9 +44572,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "TrainerHill_Entrance_EventScript_Clerk", - ), + facing = 0, + script = "TrainerHill_Entrance_EventScript_Clerk"), NpcDef( entityIdx = 3, graphicsId = 14, @@ -50443,8 +44585,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "TrainerHill_Entrance_EventScript_Girl", - ), + script = "TrainerHill_Entrance_EventScript_Girl"), NpcDef( entityIdx = 4, graphicsId = 33, @@ -50456,8 +44597,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "TrainerHill_Entrance_EventScript_Man", - ), + script = "TrainerHill_Entrance_EventScript_Man"), ), bgEvents = listOf( @@ -50465,8 +44605,8 @@ object MapManager { x = 8, y = 10, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "TrainerHill_Entrance_EventScript_Records", - )), + script = "TrainerHill_Entrance_EventScript_Records"), + ), ), // TrainerHill_1F (MAP_TRAINER_HILL_1F) MapDef( @@ -50475,17 +44615,13 @@ object MapManager { mapId = 61, width = 16, height = 21, - paletteIdx1 = 97, - paletteIdx2 = 103, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 169, + unknownShort = 384, + unknownByte = 212, borderTiles = listOf( - Tile2D(0x0208, 0), - Tile2D(0x0208, 0), - Tile2D(0x0208, 0), - Tile2D(0x0208, 0), - ), + Tile2D(0x0208, 0), Tile2D(0x0208, 0), Tile2D(0x0208, 0), Tile2D(0x0208, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -50500,8 +44636,7 @@ object MapManager { targetBankId = 76, targetMapId = 60, targetX = 9, - targetY = 1, - ), + targetY = 1), WarpTile( x = 12, y = 1, @@ -50509,8 +44644,7 @@ object MapManager { targetBankId = 76, targetMapId = 62, targetX = 2, - targetY = 1, - ), + targetY = 1), ), npcs = emptyList(), bgEvents = emptyList(), @@ -50522,17 +44656,13 @@ object MapManager { mapId = 62, width = 16, height = 21, - paletteIdx1 = 97, - paletteIdx2 = 103, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 169, + unknownShort = 384, + unknownByte = 212, borderTiles = listOf( - Tile2D(0x0208, 0), - Tile2D(0x0208, 0), - Tile2D(0x0208, 0), - Tile2D(0x0208, 0), - ), + Tile2D(0x0208, 0), Tile2D(0x0208, 0), Tile2D(0x0208, 0), Tile2D(0x0208, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -50547,8 +44677,7 @@ object MapManager { targetBankId = 76, targetMapId = 61, targetX = 12, - targetY = 1, - ), + targetY = 1), WarpTile( x = 12, y = 1, @@ -50556,8 +44685,7 @@ object MapManager { targetBankId = 76, targetMapId = 63, targetX = 2, - targetY = 1, - ), + targetY = 1), ), npcs = emptyList(), bgEvents = emptyList(), @@ -50569,17 +44697,13 @@ object MapManager { mapId = 63, width = 16, height = 21, - paletteIdx1 = 97, - paletteIdx2 = 103, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 169, + unknownShort = 384, + unknownByte = 212, borderTiles = listOf( - Tile2D(0x0208, 0), - Tile2D(0x0208, 0), - Tile2D(0x0208, 0), - Tile2D(0x0208, 0), - ), + Tile2D(0x0208, 0), Tile2D(0x0208, 0), Tile2D(0x0208, 0), Tile2D(0x0208, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -50594,8 +44718,7 @@ object MapManager { targetBankId = 76, targetMapId = 62, targetX = 12, - targetY = 1, - ), + targetY = 1), WarpTile( x = 12, y = 1, @@ -50603,8 +44726,7 @@ object MapManager { targetBankId = 76, targetMapId = 64, targetX = 2, - targetY = 1, - ), + targetY = 1), ), npcs = emptyList(), bgEvents = emptyList(), @@ -50616,17 +44738,13 @@ object MapManager { mapId = 64, width = 16, height = 21, - paletteIdx1 = 97, - paletteIdx2 = 103, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 169, + unknownShort = 384, + unknownByte = 212, borderTiles = listOf( - Tile2D(0x0208, 0), - Tile2D(0x0208, 0), - Tile2D(0x0208, 0), - Tile2D(0x0208, 0), - ), + Tile2D(0x0208, 0), Tile2D(0x0208, 0), Tile2D(0x0208, 0), Tile2D(0x0208, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -50641,8 +44759,7 @@ object MapManager { targetBankId = 76, targetMapId = 63, targetX = 12, - targetY = 1, - ), + targetY = 1), WarpTile( x = 12, y = 1, @@ -50650,8 +44767,7 @@ object MapManager { targetBankId = 76, targetMapId = 65, targetX = 9, - targetY = 5, - ), + targetY = 5), ), npcs = emptyList(), bgEvents = emptyList(), @@ -50663,17 +44779,13 @@ object MapManager { mapId = 65, width = 25, height = 16, - paletteIdx1 = 97, - paletteIdx2 = 103, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 169, + unknownShort = 384, + unknownByte = 212, borderTiles = listOf( - Tile2D(0x0208, 0), - Tile2D(0x0208, 0), - Tile2D(0x0208, 0), - Tile2D(0x0208, 0), - ), + Tile2D(0x0208, 0), Tile2D(0x0208, 0), Tile2D(0x0208, 0), Tile2D(0x0208, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -50688,8 +44800,7 @@ object MapManager { targetBankId = 76, targetMapId = 64, targetX = 12, - targetY = 1, - ), + targetY = 1), WarpTile( x = 15, y = 5, @@ -50697,8 +44808,7 @@ object MapManager { targetBankId = 76, targetMapId = 88, targetX = 2, - targetY = 6, - ), + targetY = 6), ), npcs = listOf( @@ -50712,9 +44822,9 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "TrainerHill_Roof_EventScript_Owner", - )), + facing = 0, + script = "TrainerHill_Roof_EventScript_Owner"), + ), bgEvents = emptyList(), ), // NavelRock_Exterior (MAP_NAVEL_ROCK_EXTERIOR) @@ -50724,17 +44834,13 @@ object MapManager { mapId = 66, width = 21, height = 24, - paletteIdx1 = 90, - paletteIdx2 = 124, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 103, + unknownShort = 545, + unknownByte = 211, borderTiles = listOf( - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - Tile2D(0x0170, 0), - ), + Tile2D(0x0170, 0), Tile2D(0x0170, 0), Tile2D(0x0170, 0), Tile2D(0x0170, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -50749,8 +44855,7 @@ object MapManager { targetBankId = 76, targetMapId = 67, targetX = 8, - targetY = 2, - ), + targetY = 2), WarpTile( x = 10, y = 10, @@ -50758,8 +44863,7 @@ object MapManager { targetBankId = 76, targetMapId = 68, targetX = 10, - targetY = 26, - ), + targetY = 26), ), npcs = emptyList(), bgEvents = emptyList(), @@ -50771,17 +44875,13 @@ object MapManager { mapId = 67, width = 17, height = 13, - paletteIdx1 = 118, - paletteIdx2 = 98, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 168, + unknownShort = 545, + unknownByte = 211, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -50796,8 +44896,8 @@ object MapManager { targetBankId = 76, targetMapId = 66, targetX = 10, - targetY = 18, - )), + targetY = 18), + ), npcs = listOf( NpcDef( @@ -50810,9 +44910,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 0, - script = "NavelRock_Harbor_EventScript_Sailor", - ), + facing = 1, + script = "NavelRock_Harbor_EventScript_Sailor"), NpcDef( entityIdx = 1, graphicsId = 0, @@ -50824,8 +44923,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 3, - script = "0x0", - ), + script = "0x0"), ), bgEvents = emptyList(), ), @@ -50836,17 +44934,13 @@ object MapManager { mapId = 68, width = 21, height = 32, - paletteIdx1 = 134, - paletteIdx2 = 90, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 170, + unknownShort = 543, + unknownByte = 211, borderTiles = listOf( - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - ), + Tile2D(0x0211, 0), Tile2D(0x0211, 0), Tile2D(0x0211, 0), Tile2D(0x0211, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -50861,8 +44955,7 @@ object MapManager { targetBankId = 76, targetMapId = 69, targetX = 4, - targetY = 3, - ), + targetY = 3), WarpTile( x = 10, y = 26, @@ -50870,8 +44963,7 @@ object MapManager { targetBankId = 76, targetMapId = 66, targetX = 10, - targetY = 10, - ), + targetY = 10), ), npcs = emptyList(), bgEvents = emptyList(), @@ -50883,17 +44975,13 @@ object MapManager { mapId = 69, width = 23, height = 11, - paletteIdx1 = 134, - paletteIdx2 = 90, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 170, + unknownShort = 543, + unknownByte = 211, borderTiles = listOf( - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - ), + Tile2D(0x0211, 0), Tile2D(0x0211, 0), Tile2D(0x0211, 0), Tile2D(0x0211, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -50908,8 +44996,7 @@ object MapManager { targetBankId = 76, targetMapId = 68, targetX = 10, - targetY = 5, - ), + targetY = 5), WarpTile( x = 18, y = 9, @@ -50917,8 +45004,7 @@ object MapManager { targetBankId = 76, targetMapId = 70, targetX = 11, - targetY = 79, - ), + targetY = 79), ), npcs = emptyList(), bgEvents = emptyList(), @@ -50930,17 +45016,13 @@ object MapManager { mapId = 70, width = 27, height = 86, - paletteIdx1 = 134, - paletteIdx2 = 90, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 170, + unknownShort = 543, + unknownByte = 211, borderTiles = listOf( - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - ), + Tile2D(0x0211, 0), Tile2D(0x0211, 0), Tile2D(0x0211, 0), Tile2D(0x0211, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -50955,8 +45037,7 @@ object MapManager { targetBankId = 76, targetMapId = 71, targetX = 5, - targetY = 5, - ), + targetY = 5), WarpTile( x = 11, y = 79, @@ -50964,8 +45045,7 @@ object MapManager { targetBankId = 76, targetMapId = 69, targetX = 18, - targetY = 9, - ), + targetY = 9), WarpTile( x = 22, y = 6, @@ -50973,8 +45053,7 @@ object MapManager { targetBankId = 76, targetMapId = 76, targetX = 3, - targetY = 3, - ), + targetY = 3), ), npcs = emptyList(), bgEvents = emptyList(), @@ -50986,17 +45065,13 @@ object MapManager { mapId = 71, width = 9, height = 8, - paletteIdx1 = 134, - paletteIdx2 = 90, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 170, + unknownShort = 543, + unknownByte = 211, borderTiles = listOf( - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - ), + Tile2D(0x0211, 0), Tile2D(0x0211, 0), Tile2D(0x0211, 0), Tile2D(0x0211, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -51011,8 +45086,7 @@ object MapManager { targetBankId = 76, targetMapId = 70, targetX = 4, - targetY = 6, - ), + targetY = 6), WarpTile( x = 3, y = 3, @@ -51020,8 +45094,7 @@ object MapManager { targetBankId = 76, targetMapId = 72, targetX = 3, - targetY = 3, - ), + targetY = 3), ), npcs = emptyList(), bgEvents = emptyList(), @@ -51033,17 +45106,13 @@ object MapManager { mapId = 72, width = 9, height = 8, - paletteIdx1 = 134, - paletteIdx2 = 90, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 170, + unknownShort = 543, + unknownByte = 211, borderTiles = listOf( - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - ), + Tile2D(0x0211, 0), Tile2D(0x0211, 0), Tile2D(0x0211, 0), Tile2D(0x0211, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -51058,8 +45127,7 @@ object MapManager { targetBankId = 76, targetMapId = 71, targetX = 3, - targetY = 3, - ), + targetY = 3), WarpTile( x = 5, y = 5, @@ -51067,8 +45135,7 @@ object MapManager { targetBankId = 76, targetMapId = 73, targetX = 5, - targetY = 5, - ), + targetY = 5), ), npcs = emptyList(), bgEvents = emptyList(), @@ -51087,17 +45154,13 @@ object MapManager { mapId = 73, width = 9, height = 8, - paletteIdx1 = 134, - paletteIdx2 = 90, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 170, + unknownShort = 543, + unknownByte = 211, borderTiles = listOf( - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - ), + Tile2D(0x0211, 0), Tile2D(0x0211, 0), Tile2D(0x0211, 0), Tile2D(0x0211, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -51112,8 +45175,7 @@ object MapManager { targetBankId = 76, targetMapId = 72, targetX = 5, - targetY = 5, - ), + targetY = 5), WarpTile( x = 3, y = 3, @@ -51121,8 +45183,7 @@ object MapManager { targetBankId = 76, targetMapId = 74, targetX = 3, - targetY = 3, - ), + targetY = 3), ), npcs = emptyList(), bgEvents = emptyList(), @@ -51134,17 +45195,13 @@ object MapManager { mapId = 74, width = 9, height = 8, - paletteIdx1 = 134, - paletteIdx2 = 90, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 170, + unknownShort = 543, + unknownByte = 211, borderTiles = listOf( - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - ), + Tile2D(0x0211, 0), Tile2D(0x0211, 0), Tile2D(0x0211, 0), Tile2D(0x0211, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -51159,8 +45216,7 @@ object MapManager { targetBankId = 76, targetMapId = 73, targetX = 3, - targetY = 3, - ), + targetY = 3), WarpTile( x = 5, y = 5, @@ -51168,8 +45224,7 @@ object MapManager { targetBankId = 76, targetMapId = 75, targetX = 13, - targetY = 20, - ), + targetY = 20), ), npcs = emptyList(), bgEvents = emptyList(), @@ -51181,17 +45236,13 @@ object MapManager { mapId = 75, width = 25, height = 28, - paletteIdx1 = 134, - paletteIdx2 = 90, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 170, + unknownShort = 543, + unknownByte = 211, borderTiles = listOf( - Tile2D(0x033C, 0), - Tile2D(0x033C, 0), - Tile2D(0x033C, 0), - Tile2D(0x033C, 0), - ), + Tile2D(0x033C, 0), Tile2D(0x033C, 0), Tile2D(0x033C, 0), Tile2D(0x033C, 0)), lighting = Lighting.REGULAR, weather = Weather.CLOUDY, mapType = MapType.UNDERGROUND, @@ -51206,8 +45257,8 @@ object MapManager { targetBankId = 76, targetMapId = 74, targetX = 5, - targetY = 5, - )), + targetY = 5), + ), npcs = emptyList(), bgEvents = listOf( @@ -51215,8 +45266,8 @@ object MapManager { x = 12, y = 9, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - )), + script = "undefined"), + ), ), // NavelRock_Down01 (MAP_NAVEL_ROCK_DOWN01) MapDef( @@ -51225,17 +45276,13 @@ object MapManager { mapId = 76, width = 9, height = 8, - paletteIdx1 = 134, - paletteIdx2 = 90, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 170, + unknownShort = 543, + unknownByte = 211, borderTiles = listOf( - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - ), + Tile2D(0x0211, 0), Tile2D(0x0211, 0), Tile2D(0x0211, 0), Tile2D(0x0211, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -51250,8 +45297,7 @@ object MapManager { targetBankId = 76, targetMapId = 70, targetX = 22, - targetY = 6, - ), + targetY = 6), WarpTile( x = 5, y = 5, @@ -51259,8 +45305,7 @@ object MapManager { targetBankId = 76, targetMapId = 77, targetX = 5, - targetY = 5, - ), + targetY = 5), ), npcs = emptyList(), bgEvents = emptyList(), @@ -51272,17 +45317,13 @@ object MapManager { mapId = 77, width = 9, height = 8, - paletteIdx1 = 134, - paletteIdx2 = 90, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 170, + unknownShort = 543, + unknownByte = 211, borderTiles = listOf( - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - ), + Tile2D(0x0211, 0), Tile2D(0x0211, 0), Tile2D(0x0211, 0), Tile2D(0x0211, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -51297,8 +45338,7 @@ object MapManager { targetBankId = 76, targetMapId = 76, targetX = 5, - targetY = 5, - ), + targetY = 5), WarpTile( x = 3, y = 3, @@ -51306,8 +45346,7 @@ object MapManager { targetBankId = 76, targetMapId = 78, targetX = 3, - targetY = 3, - ), + targetY = 3), ), npcs = emptyList(), bgEvents = emptyList(), @@ -51319,17 +45358,13 @@ object MapManager { mapId = 78, width = 9, height = 8, - paletteIdx1 = 134, - paletteIdx2 = 90, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 170, + unknownShort = 543, + unknownByte = 211, borderTiles = listOf( - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - ), + Tile2D(0x0211, 0), Tile2D(0x0211, 0), Tile2D(0x0211, 0), Tile2D(0x0211, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -51344,8 +45379,7 @@ object MapManager { targetBankId = 76, targetMapId = 77, targetX = 3, - targetY = 3, - ), + targetY = 3), WarpTile( x = 5, y = 5, @@ -51353,8 +45387,7 @@ object MapManager { targetBankId = 76, targetMapId = 79, targetX = 5, - targetY = 5, - ), + targetY = 5), ), npcs = emptyList(), bgEvents = emptyList(), @@ -51366,17 +45399,13 @@ object MapManager { mapId = 79, width = 9, height = 8, - paletteIdx1 = 134, - paletteIdx2 = 90, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 170, + unknownShort = 543, + unknownByte = 211, borderTiles = listOf( - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - ), + Tile2D(0x0211, 0), Tile2D(0x0211, 0), Tile2D(0x0211, 0), Tile2D(0x0211, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -51391,8 +45420,7 @@ object MapManager { targetBankId = 76, targetMapId = 78, targetX = 5, - targetY = 5, - ), + targetY = 5), WarpTile( x = 3, y = 3, @@ -51400,8 +45428,7 @@ object MapManager { targetBankId = 76, targetMapId = 80, targetX = 3, - targetY = 3, - ), + targetY = 3), ), npcs = emptyList(), bgEvents = emptyList(), @@ -51413,17 +45440,13 @@ object MapManager { mapId = 80, width = 9, height = 8, - paletteIdx1 = 134, - paletteIdx2 = 90, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 170, + unknownShort = 543, + unknownByte = 211, borderTiles = listOf( - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - ), + Tile2D(0x0211, 0), Tile2D(0x0211, 0), Tile2D(0x0211, 0), Tile2D(0x0211, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -51438,8 +45461,7 @@ object MapManager { targetBankId = 76, targetMapId = 79, targetX = 3, - targetY = 3, - ), + targetY = 3), WarpTile( x = 5, y = 5, @@ -51447,8 +45469,7 @@ object MapManager { targetBankId = 76, targetMapId = 81, targetX = 5, - targetY = 5, - ), + targetY = 5), ), npcs = emptyList(), bgEvents = emptyList(), @@ -51460,17 +45481,13 @@ object MapManager { mapId = 81, width = 9, height = 8, - paletteIdx1 = 134, - paletteIdx2 = 90, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 170, + unknownShort = 543, + unknownByte = 211, borderTiles = listOf( - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - ), + Tile2D(0x0211, 0), Tile2D(0x0211, 0), Tile2D(0x0211, 0), Tile2D(0x0211, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -51485,8 +45502,7 @@ object MapManager { targetBankId = 76, targetMapId = 80, targetX = 5, - targetY = 5, - ), + targetY = 5), WarpTile( x = 3, y = 3, @@ -51494,8 +45510,7 @@ object MapManager { targetBankId = 76, targetMapId = 82, targetX = 3, - targetY = 3, - ), + targetY = 3), ), npcs = emptyList(), bgEvents = emptyList(), @@ -51507,17 +45522,13 @@ object MapManager { mapId = 82, width = 9, height = 8, - paletteIdx1 = 134, - paletteIdx2 = 90, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 170, + unknownShort = 543, + unknownByte = 211, borderTiles = listOf( - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - ), + Tile2D(0x0211, 0), Tile2D(0x0211, 0), Tile2D(0x0211, 0), Tile2D(0x0211, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -51532,8 +45543,7 @@ object MapManager { targetBankId = 76, targetMapId = 81, targetX = 3, - targetY = 3, - ), + targetY = 3), WarpTile( x = 5, y = 5, @@ -51541,8 +45551,7 @@ object MapManager { targetBankId = 76, targetMapId = 83, targetX = 5, - targetY = 5, - ), + targetY = 5), ), npcs = emptyList(), bgEvents = emptyList(), @@ -51554,17 +45563,13 @@ object MapManager { mapId = 83, width = 9, height = 8, - paletteIdx1 = 134, - paletteIdx2 = 90, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 170, + unknownShort = 543, + unknownByte = 211, borderTiles = listOf( - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - ), + Tile2D(0x0211, 0), Tile2D(0x0211, 0), Tile2D(0x0211, 0), Tile2D(0x0211, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -51579,8 +45584,7 @@ object MapManager { targetBankId = 76, targetMapId = 82, targetX = 5, - targetY = 5, - ), + targetY = 5), WarpTile( x = 3, y = 3, @@ -51588,8 +45592,7 @@ object MapManager { targetBankId = 76, targetMapId = 84, targetX = 3, - targetY = 3, - ), + targetY = 3), ), npcs = emptyList(), bgEvents = emptyList(), @@ -51601,17 +45604,13 @@ object MapManager { mapId = 84, width = 9, height = 8, - paletteIdx1 = 134, - paletteIdx2 = 90, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 170, + unknownShort = 543, + unknownByte = 211, borderTiles = listOf( - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - ), + Tile2D(0x0211, 0), Tile2D(0x0211, 0), Tile2D(0x0211, 0), Tile2D(0x0211, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -51626,8 +45625,7 @@ object MapManager { targetBankId = 76, targetMapId = 83, targetX = 3, - targetY = 3, - ), + targetY = 3), WarpTile( x = 5, y = 5, @@ -51635,8 +45633,7 @@ object MapManager { targetBankId = 76, targetMapId = 85, targetX = 5, - targetY = 5, - ), + targetY = 5), ), npcs = emptyList(), bgEvents = emptyList(), @@ -51648,17 +45645,13 @@ object MapManager { mapId = 85, width = 9, height = 8, - paletteIdx1 = 134, - paletteIdx2 = 90, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 170, + unknownShort = 543, + unknownByte = 211, borderTiles = listOf( - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - ), + Tile2D(0x0211, 0), Tile2D(0x0211, 0), Tile2D(0x0211, 0), Tile2D(0x0211, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -51673,8 +45666,7 @@ object MapManager { targetBankId = 76, targetMapId = 84, targetX = 5, - targetY = 5, - ), + targetY = 5), WarpTile( x = 3, y = 3, @@ -51682,8 +45674,7 @@ object MapManager { targetBankId = 76, targetMapId = 86, targetX = 3, - targetY = 3, - ), + targetY = 3), ), npcs = emptyList(), bgEvents = emptyList(), @@ -51695,17 +45686,13 @@ object MapManager { mapId = 86, width = 9, height = 8, - paletteIdx1 = 134, - paletteIdx2 = 90, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 170, + unknownShort = 543, + unknownByte = 211, borderTiles = listOf( - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - ), + Tile2D(0x0211, 0), Tile2D(0x0211, 0), Tile2D(0x0211, 0), Tile2D(0x0211, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -51720,8 +45707,7 @@ object MapManager { targetBankId = 76, targetMapId = 87, targetX = 14, - targetY = 19, - ), + targetY = 19), WarpTile( x = 3, y = 3, @@ -51729,8 +45715,7 @@ object MapManager { targetBankId = 76, targetMapId = 85, targetX = 3, - targetY = 3, - ), + targetY = 3), ), npcs = emptyList(), bgEvents = emptyList(), @@ -51742,17 +45727,13 @@ object MapManager { mapId = 87, width = 22, height = 22, - paletteIdx1 = 134, - paletteIdx2 = 90, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 170, + unknownShort = 543, + unknownByte = 211, borderTiles = listOf( - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - Tile2D(0x0211, 0), - ), + Tile2D(0x0211, 0), Tile2D(0x0211, 0), Tile2D(0x0211, 0), Tile2D(0x0211, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.UNDERGROUND, @@ -51767,8 +45748,8 @@ object MapManager { targetBankId = 76, targetMapId = 86, targetX = 5, - targetY = 5, - )), + targetY = 5), + ), npcs = emptyList(), bgEvents = emptyList(), ), @@ -51779,17 +45760,13 @@ object MapManager { mapId = 88, width = 5, height = 7, - paletteIdx1 = 90, - paletteIdx2 = 98, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 159, + unknownShort = 384, + unknownByte = 212, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -51804,8 +45781,7 @@ object MapManager { targetBankId = 76, targetMapId = 65, targetX = 15, - targetY = 5, - ), + targetY = 5), WarpTile( x = 2, y = 6, @@ -51813,8 +45789,7 @@ object MapManager { targetBankId = 76, targetMapId = 65, targetX = 15, - targetY = 5, - ), + targetY = 5), ), npcs = listOf( @@ -51828,9 +45803,9 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 0, - facing = 1, - script = "TrainerHill_Elevator_EventScript_Attendant", - )), + facing = 0, + script = "TrainerHill_Elevator_EventScript_Attendant"), + ), bgEvents = emptyList(), ), // Route104_Prototype (MAP_ROUTE104_PROTOTYPE) @@ -51840,17 +45815,13 @@ object MapManager { mapId = 0, width = 1, height = 1, - paletteIdx1 = 82, - paletteIdx2 = 118, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 100, + paletteIdx2 = 102, + unknownShort = 401, + unknownByte = 19, borderTiles = listOf( - Tile2D(0x01D4, 0), - Tile2D(0x01D5, 0), - Tile2D(0x01DC, 0), - Tile2D(0x01DD, 0), - ), + Tile2D(0x01D4, 0), Tile2D(0x01D5, 0), Tile2D(0x01DC, 0), Tile2D(0x01DD, 0)), lighting = Lighting.REGULAR, weather = Weather.REGULAR_WEATHER, mapType = MapType.ROUTE, @@ -51868,17 +45839,13 @@ object MapManager { mapId = 1, width = 15, height = 9, - paletteIdx1 = 112, - paletteIdx2 = 116, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 127, + unknownShort = 401, + unknownByte = 19, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -51895,17 +45862,13 @@ object MapManager { mapId = 0, width = 15, height = 10, - paletteIdx1 = 133, - paletteIdx2 = 95, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 126, + unknownShort = 427, + unknownByte = 24, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -51920,8 +45883,7 @@ object MapManager { targetBankId = 50, targetMapId = 24, targetX = 12, - targetY = 5, - ), + targetY = 5), WarpTile( x = 7, y = 9, @@ -51929,8 +45891,7 @@ object MapManager { targetBankId = 50, targetMapId = 24, targetX = 12, - targetY = 5, - ), + targetY = 5), ), npcs = listOf( @@ -51944,9 +45905,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "Route109_SeashoreHouse_EventScript_Owner", - ), + facing = 0, + script = "Route109_SeashoreHouse_EventScript_Owner"), NpcDef( entityIdx = 1, graphicsId = 49, @@ -51957,9 +45917,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 1, - facing = 1, - script = "Route109_SeashoreHouse_EventScript_Dwayne", - ), + facing = 0, + script = "Route109_SeashoreHouse_EventScript_Dwayne"), NpcDef( entityIdx = 2, graphicsId = 54, @@ -51971,8 +45930,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 2, - script = "Route109_SeashoreHouse_EventScript_Simon", - ), + script = "Route109_SeashoreHouse_EventScript_Simon"), NpcDef( entityIdx = 3, graphicsId = 45, @@ -51984,8 +45942,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 0, - script = "Route109_SeashoreHouse_EventScript_Johanna", - ), + script = "Route109_SeashoreHouse_EventScript_Johanna"), ), bgEvents = emptyList(), ), @@ -51996,17 +45953,13 @@ object MapManager { mapId = 0, width = 12, height = 8, - paletteIdx1 = 98, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 147, + unknownShort = 448, + unknownByte = 25, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -52021,8 +45974,7 @@ object MapManager { targetBankId = 50, targetMapId = 25, targetX = 11, - targetY = 66, - ), + targetY = 66), WarpTile( x = 6, y = 7, @@ -52030,8 +45982,7 @@ object MapManager { targetBankId = 50, targetMapId = 25, targetX = 11, - targetY = 66, - ), + targetY = 66), WarpTile( x = 5, y = 2, @@ -52039,8 +45990,7 @@ object MapManager { targetBankId = 79, targetMapId = 3, targetX = 0, - targetY = 21, - ), + targetY = 21), ), npcs = emptyList(), bgEvents = @@ -52049,8 +45999,8 @@ object MapManager { x = 5, y = 1, facingDir = "BG_EVENT_PLAYER_FACING_NORTH", - script = "Route110_TrickHouseEntrance_EventScript_Door", - )), + script = "Route110_TrickHouseEntrance_EventScript_Door"), + ), ), // Route110_TrickHouseEnd (MAP_ROUTE110_TRICK_HOUSE_END) MapDef( @@ -52059,17 +46009,13 @@ object MapManager { mapId = 1, width = 12, height = 8, - paletteIdx1 = 98, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 147, + unknownShort = 448, + unknownByte = 25, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -52084,8 +46030,7 @@ object MapManager { targetBankId = 79, targetMapId = 3, targetX = 13, - targetY = 1, - ), + targetY = 1), WarpTile( x = 2, y = 1, @@ -52093,8 +46038,7 @@ object MapManager { targetBankId = 79, targetMapId = 2, targetX = 13, - targetY = 3, - ), + targetY = 3), ), npcs = emptyList(), bgEvents = @@ -52103,8 +46047,8 @@ object MapManager { x = 4, y = 5, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "undefined", - )), + script = "undefined"), + ), ), // Route110_TrickHouseCorridor (MAP_ROUTE110_TRICK_HOUSE_CORRIDOR) MapDef( @@ -52113,17 +46057,13 @@ object MapManager { mapId = 2, width = 15, height = 24, - paletteIdx1 = 98, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 147, + unknownShort = 448, + unknownByte = 25, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -52138,8 +46078,7 @@ object MapManager { targetBankId = 79, targetMapId = 1, targetX = 2, - targetY = 1, - ), + targetY = 1), WarpTile( x = 14, y = 3, @@ -52147,8 +46086,7 @@ object MapManager { targetBankId = 79, targetMapId = 1, targetX = 2, - targetY = 1, - ), + targetY = 1), WarpTile( x = 4, y = 23, @@ -52156,8 +46094,7 @@ object MapManager { targetBankId = 79, targetMapId = 0, targetX = 5, - targetY = 2, - ), + targetY = 2), WarpTile( x = 5, y = 23, @@ -52165,8 +46102,7 @@ object MapManager { targetBankId = 79, targetMapId = 0, targetX = 5, - targetY = 2, - ), + targetY = 2), ), npcs = emptyList(), bgEvents = emptyList(), @@ -52178,17 +46114,13 @@ object MapManager { mapId = 3, width = 15, height = 22, - paletteIdx1 = 88, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 153, + unknownShort = 448, + unknownByte = 25, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -52203,8 +46135,7 @@ object MapManager { targetBankId = 79, targetMapId = 0, targetX = 5, - targetY = 2, - ), + targetY = 2), WarpTile( x = 1, y = 21, @@ -52212,8 +46143,7 @@ object MapManager { targetBankId = 79, targetMapId = 0, targetX = 5, - targetY = 2, - ), + targetY = 2), WarpTile( x = 13, y = 1, @@ -52221,8 +46151,7 @@ object MapManager { targetBankId = 79, targetMapId = 1, targetX = 10, - targetY = 1, - ), + targetY = 1), ), npcs = listOf( @@ -52237,8 +46166,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 2, - script = "Route110_TrickHousePuzzle1_EventScript_Sally", - ), + script = "Route110_TrickHousePuzzle1_EventScript_Sally"), NpcDef( entityIdx = 1, graphicsId = 35, @@ -52250,8 +46178,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 2, - script = "Route110_TrickHousePuzzle1_EventScript_Eddie", - ), + script = "Route110_TrickHousePuzzle1_EventScript_Eddie"), NpcDef( entityIdx = 2, graphicsId = 47, @@ -52262,9 +46189,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 1, - facing = 1, - script = "Route110_TrickHousePuzzle1_EventScript_Robin", - ), + facing = 0, + script = "Route110_TrickHousePuzzle1_EventScript_Robin"), ), bgEvents = listOf( @@ -52272,8 +46198,8 @@ object MapManager { x = 3, y = 16, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Route110_TrickHousePuzzle1_EventScript_Scroll", - )), + script = "Route110_TrickHousePuzzle1_EventScript_Scroll"), + ), ), // Route110_TrickHousePuzzle2 (MAP_ROUTE110_TRICK_HOUSE_PUZZLE2) MapDef( @@ -52282,17 +46208,13 @@ object MapManager { mapId = 4, width = 15, height = 22, - paletteIdx1 = 88, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 153, + unknownShort = 448, + unknownByte = 25, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -52307,8 +46229,7 @@ object MapManager { targetBankId = 79, targetMapId = 0, targetX = 5, - targetY = 2, - ), + targetY = 2), WarpTile( x = 1, y = 21, @@ -52316,8 +46237,7 @@ object MapManager { targetBankId = 79, targetMapId = 0, targetX = 5, - targetY = 2, - ), + targetY = 2), WarpTile( x = 13, y = 1, @@ -52325,8 +46245,7 @@ object MapManager { targetBankId = 79, targetMapId = 1, targetX = 10, - targetY = 1, - ), + targetY = 1), ), npcs = listOf( @@ -52341,8 +46260,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 3, - script = "Route110_TrickHousePuzzle2_EventScript_Ted", - ), + script = "Route110_TrickHousePuzzle2_EventScript_Ted"), NpcDef( entityIdx = 1, graphicsId = 38, @@ -52353,9 +46271,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 1, - facing = 1, - script = "Route110_TrickHousePuzzle2_EventScript_Paul", - ), + facing = 0, + script = "Route110_TrickHousePuzzle2_EventScript_Paul"), NpcDef( entityIdx = 2, graphicsId = 14, @@ -52367,8 +46284,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 2, - script = "Route110_TrickHousePuzzle2_EventScript_Georgia", - ), + script = "Route110_TrickHousePuzzle2_EventScript_Georgia"), ), bgEvents = listOf( @@ -52376,8 +46292,8 @@ object MapManager { x = 14, y = 14, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Route110_TrickHousePuzzle2_EventScript_Scroll", - )), + script = "Route110_TrickHousePuzzle2_EventScript_Scroll"), + ), ), // Route110_TrickHousePuzzle3 (MAP_ROUTE110_TRICK_HOUSE_PUZZLE3) MapDef( @@ -52386,17 +46302,13 @@ object MapManager { mapId = 5, width = 15, height = 22, - paletteIdx1 = 88, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 153, + unknownShort = 448, + unknownByte = 25, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -52411,8 +46323,7 @@ object MapManager { targetBankId = 79, targetMapId = 0, targetX = 5, - targetY = 2, - ), + targetY = 2), WarpTile( x = 1, y = 21, @@ -52420,8 +46331,7 @@ object MapManager { targetBankId = 79, targetMapId = 0, targetX = 5, - targetY = 2, - ), + targetY = 2), WarpTile( x = 13, y = 1, @@ -52429,8 +46339,7 @@ object MapManager { targetBankId = 79, targetMapId = 1, targetX = 10, - targetY = 1, - ), + targetY = 1), ), npcs = listOf( @@ -52444,9 +46353,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 1, - facing = 1, - script = "Route110_TrickHousePuzzle3_EventScript_Justin", - ), + facing = 0, + script = "Route110_TrickHousePuzzle3_EventScript_Justin"), NpcDef( entityIdx = 1, graphicsId = 32, @@ -52458,8 +46366,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 3, - script = "Route110_TrickHousePuzzle3_EventScript_Martha", - ), + script = "Route110_TrickHousePuzzle3_EventScript_Martha"), NpcDef( entityIdx = 2, graphicsId = 55, @@ -52470,9 +46377,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 1, - facing = 1, - script = "Route110_TrickHousePuzzle3_EventScript_Alan", - ), + facing = 0, + script = "Route110_TrickHousePuzzle3_EventScript_Alan"), ), bgEvents = listOf( @@ -52480,8 +46386,8 @@ object MapManager { x = 0, y = 14, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Route110_TrickHousePuzzle3_EventScript_Scroll", - )), + script = "Route110_TrickHousePuzzle3_EventScript_Scroll"), + ), ), // Route110_TrickHousePuzzle4 (MAP_ROUTE110_TRICK_HOUSE_PUZZLE4) MapDef( @@ -52490,17 +46396,13 @@ object MapManager { mapId = 6, width = 15, height = 22, - paletteIdx1 = 88, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 153, + unknownShort = 448, + unknownByte = 25, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -52515,8 +46417,7 @@ object MapManager { targetBankId = 79, targetMapId = 0, targetX = 5, - targetY = 2, - ), + targetY = 2), WarpTile( x = 1, y = 21, @@ -52524,8 +46425,7 @@ object MapManager { targetBankId = 79, targetMapId = 0, targetX = 5, - targetY = 2, - ), + targetY = 2), WarpTile( x = 13, y = 1, @@ -52533,8 +46433,7 @@ object MapManager { targetBankId = 79, targetMapId = 1, targetX = 10, - targetY = 1, - ), + targetY = 1), ), npcs = listOf( @@ -52548,9 +46447,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 1, - facing = 1, - script = "Route110_TrickHousePuzzle4_EventScript_Cora", - ), + facing = 0, + script = "Route110_TrickHousePuzzle4_EventScript_Cora"), NpcDef( entityIdx = 1, graphicsId = 14, @@ -52562,8 +46460,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 2, - script = "Route110_TrickHousePuzzle4_EventScript_Paula", - ), + script = "Route110_TrickHousePuzzle4_EventScript_Paula"), NpcDef( entityIdx = 2, graphicsId = 44, @@ -52575,8 +46472,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 3, - script = "Route110_TrickHousePuzzle4_EventScript_Yuji", - ), + script = "Route110_TrickHousePuzzle4_EventScript_Yuji"), ), bgEvents = listOf( @@ -52584,8 +46480,8 @@ object MapManager { x = 14, y = 13, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Route110_TrickHousePuzzle4_EventScript_Scroll", - )), + script = "Route110_TrickHousePuzzle4_EventScript_Scroll"), + ), ), // Route110_TrickHousePuzzle5 (MAP_ROUTE110_TRICK_HOUSE_PUZZLE5) MapDef( @@ -52594,17 +46490,13 @@ object MapManager { mapId = 7, width = 15, height = 22, - paletteIdx1 = 88, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 153, + unknownShort = 448, + unknownByte = 25, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -52619,8 +46511,7 @@ object MapManager { targetBankId = 79, targetMapId = 0, targetX = 5, - targetY = 2, - ), + targetY = 2), WarpTile( x = 1, y = 21, @@ -52628,8 +46519,7 @@ object MapManager { targetBankId = 79, targetMapId = 0, targetX = 5, - targetY = 2, - ), + targetY = 2), WarpTile( x = 13, y = 1, @@ -52637,8 +46527,7 @@ object MapManager { targetBankId = 79, targetMapId = 1, targetX = 10, - targetY = 1, - ), + targetY = 1), ), npcs = listOf( @@ -52653,8 +46542,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 2, - script = "Route110_TrickHousePuzzle5_EventScript_Mechadoll1", - ), + script = "Route110_TrickHousePuzzle5_EventScript_Mechadoll1"), NpcDef( entityIdx = 1, graphicsId = 19, @@ -52666,8 +46554,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "Route110_TrickHousePuzzle5_EventScript_Mechadoll2", - ), + script = "Route110_TrickHousePuzzle5_EventScript_Mechadoll2"), NpcDef( entityIdx = 2, graphicsId = 19, @@ -52679,8 +46566,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 2, - script = "Route110_TrickHousePuzzle5_EventScript_Mechadoll3", - ), + script = "Route110_TrickHousePuzzle5_EventScript_Mechadoll3"), NpcDef( entityIdx = 3, graphicsId = 19, @@ -52692,8 +46578,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 2, - script = "Route110_TrickHousePuzzle5_EventScript_Mechadoll4", - ), + script = "Route110_TrickHousePuzzle5_EventScript_Mechadoll4"), NpcDef( entityIdx = 4, graphicsId = 19, @@ -52705,8 +46590,7 @@ object MapManager { movementRangeY = 0, trainerType = 0, facing = 3, - script = "Route110_TrickHousePuzzle5_EventScript_Mechadoll5", - ), + script = "Route110_TrickHousePuzzle5_EventScript_Mechadoll5"), ), bgEvents = listOf( @@ -52714,8 +46598,8 @@ object MapManager { x = 11, y = 21, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Route110_TrickHousePuzzle5_EventScript_Scroll", - )), + script = "Route110_TrickHousePuzzle5_EventScript_Scroll"), + ), ), // Route110_TrickHousePuzzle6 (MAP_ROUTE110_TRICK_HOUSE_PUZZLE6) MapDef( @@ -52724,17 +46608,13 @@ object MapManager { mapId = 8, width = 15, height = 22, - paletteIdx1 = 88, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 153, + unknownShort = 448, + unknownByte = 25, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -52749,8 +46629,7 @@ object MapManager { targetBankId = 79, targetMapId = 0, targetX = 5, - targetY = 2, - ), + targetY = 2), WarpTile( x = 1, y = 21, @@ -52758,8 +46637,7 @@ object MapManager { targetBankId = 79, targetMapId = 0, targetX = 5, - targetY = 2, - ), + targetY = 2), WarpTile( x = 13, y = 1, @@ -52767,8 +46645,7 @@ object MapManager { targetBankId = 79, targetMapId = 1, targetX = 10, - targetY = 1, - ), + targetY = 1), ), npcs = listOf( @@ -52783,8 +46660,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 3, - script = "Route110_TrickHousePuzzle6_EventScript_Sophia", - ), + script = "Route110_TrickHousePuzzle6_EventScript_Sophia"), NpcDef( entityIdx = 1, graphicsId = 66, @@ -52796,8 +46672,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 3, - script = "Route110_TrickHousePuzzle6_EventScript_Benny", - ), + script = "Route110_TrickHousePuzzle6_EventScript_Benny"), NpcDef( entityIdx = 2, graphicsId = 31, @@ -52808,9 +46683,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 1, - facing = 0, - script = "Route110_TrickHousePuzzle6_EventScript_Sebastian", - ), + facing = 1, + script = "Route110_TrickHousePuzzle6_EventScript_Sebastian"), ), bgEvents = listOf( @@ -52818,8 +46692,8 @@ object MapManager { x = 0, y = 10, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Route110_TrickHousePuzzle6_EventScript_Scroll", - )), + script = "Route110_TrickHousePuzzle6_EventScript_Scroll"), + ), ), // Route110_TrickHousePuzzle7 (MAP_ROUTE110_TRICK_HOUSE_PUZZLE7) MapDef( @@ -52828,17 +46702,13 @@ object MapManager { mapId = 9, width = 15, height = 22, - paletteIdx1 = 88, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 153, + unknownShort = 448, + unknownByte = 25, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -52853,8 +46723,7 @@ object MapManager { targetBankId = 79, targetMapId = 0, targetX = 5, - targetY = 2, - ), + targetY = 2), WarpTile( x = 1, y = 21, @@ -52862,8 +46731,7 @@ object MapManager { targetBankId = 79, targetMapId = 0, targetX = 5, - targetY = 2, - ), + targetY = 2), WarpTile( x = 13, y = 1, @@ -52871,8 +46739,7 @@ object MapManager { targetBankId = 79, targetMapId = 1, targetX = 10, - targetY = 1, - ), + targetY = 1), WarpTile( x = 13, y = 4, @@ -52880,8 +46747,7 @@ object MapManager { targetBankId = 79, targetMapId = 9, targetX = 7, - targetY = 3, - ), + targetY = 3), WarpTile( x = 7, y = 3, @@ -52889,8 +46755,7 @@ object MapManager { targetBankId = 79, targetMapId = 9, targetX = 13, - targetY = 4, - ), + targetY = 4), WarpTile( x = 13, y = 11, @@ -52898,8 +46763,7 @@ object MapManager { targetBankId = 79, targetMapId = 9, targetX = 4, - targetY = 3, - ), + targetY = 3), WarpTile( x = 4, y = 3, @@ -52907,8 +46771,7 @@ object MapManager { targetBankId = 79, targetMapId = 9, targetX = 13, - targetY = 11, - ), + targetY = 11), WarpTile( x = 1, y = 17, @@ -52916,8 +46779,7 @@ object MapManager { targetBankId = 79, targetMapId = 9, targetX = 0, - targetY = 11, - ), + targetY = 11), WarpTile( x = 0, y = 11, @@ -52925,8 +46787,7 @@ object MapManager { targetBankId = 79, targetMapId = 9, targetX = 1, - targetY = 17, - ), + targetY = 17), WarpTile( x = 2, y = 3, @@ -52934,8 +46795,7 @@ object MapManager { targetBankId = 79, targetMapId = 9, targetX = 4, - targetY = 13, - ), + targetY = 13), WarpTile( x = 4, y = 13, @@ -52943,8 +46803,7 @@ object MapManager { targetBankId = 79, targetMapId = 9, targetX = 2, - targetY = 3, - ), + targetY = 3), WarpTile( x = 1, y = 3, @@ -52952,8 +46811,7 @@ object MapManager { targetBankId = 79, targetMapId = 9, targetX = 8, - targetY = 12, - ), + targetY = 12), WarpTile( x = 8, y = 12, @@ -52961,8 +46819,7 @@ object MapManager { targetBankId = 79, targetMapId = 9, targetX = 1, - targetY = 3, - ), + targetY = 3), ), npcs = listOf( @@ -52977,8 +46834,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 3, - script = "Route110_TrickHousePuzzle7_EventScript_Joshua", - ), + script = "Route110_TrickHousePuzzle7_EventScript_Joshua"), NpcDef( entityIdx = 1, graphicsId = 47, @@ -52989,9 +46845,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 1, - facing = 0, - script = "Route110_TrickHousePuzzle7_EventScript_Alexis", - ), + facing = 1, + script = "Route110_TrickHousePuzzle7_EventScript_Alexis"), NpcDef( entityIdx = 2, graphicsId = 40, @@ -53003,8 +46858,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 2, - script = "Route110_TrickHousePuzzle7_EventScript_Patricia", - ), + script = "Route110_TrickHousePuzzle7_EventScript_Patricia"), NpcDef( entityIdx = 4, graphicsId = 37, @@ -53015,9 +46869,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 1, - facing = 1, - script = "Route110_TrickHousePuzzle7_EventScript_Alvaro", - ), + facing = 0, + script = "Route110_TrickHousePuzzle7_EventScript_Alvaro"), NpcDef( entityIdx = 5, graphicsId = 47, @@ -53028,9 +46881,8 @@ object MapManager { movementRangeX = 1, movementRangeY = 1, trainerType = 1, - facing = 0, - script = "Route110_TrickHousePuzzle7_EventScript_Mariela", - ), + facing = 1, + script = "Route110_TrickHousePuzzle7_EventScript_Mariela"), NpcDef( entityIdx = 6, graphicsId = 48, @@ -53042,8 +46894,7 @@ object MapManager { movementRangeY = 1, trainerType = 1, facing = 2, - script = "Route110_TrickHousePuzzle7_EventScript_Everett", - ), + script = "Route110_TrickHousePuzzle7_EventScript_Everett"), NpcDef( entityIdx = 7, graphicsId = 0, @@ -53055,8 +46906,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "0x0", - ), + script = "0x0"), NpcDef( entityIdx = 8, graphicsId = 0, @@ -53068,8 +46918,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "0x0", - ), + script = "0x0"), ), bgEvents = listOf( @@ -53077,8 +46926,8 @@ object MapManager { x = 6, y = 17, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Route110_TrickHousePuzzle7_EventScript_Scroll", - )), + script = "Route110_TrickHousePuzzle7_EventScript_Scroll"), + ), ), // Route110_TrickHousePuzzle8 (MAP_ROUTE110_TRICK_HOUSE_PUZZLE8) MapDef( @@ -53087,17 +46936,13 @@ object MapManager { mapId = 10, width = 15, height = 22, - paletteIdx1 = 88, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 153, + unknownShort = 448, + unknownByte = 25, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -53112,8 +46957,7 @@ object MapManager { targetBankId = 79, targetMapId = 0, targetX = 5, - targetY = 2, - ), + targetY = 2), WarpTile( x = 1, y = 21, @@ -53121,8 +46965,7 @@ object MapManager { targetBankId = 79, targetMapId = 0, targetX = 5, - targetY = 2, - ), + targetY = 2), WarpTile( x = 13, y = 1, @@ -53130,8 +46973,7 @@ object MapManager { targetBankId = 79, targetMapId = 1, targetX = 10, - targetY = 1, - ), + targetY = 1), ), npcs = listOf( @@ -53145,9 +46987,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 1, - facing = 0, - script = "Route110_TrickHousePuzzle8_EventScript_Vincent", - ), + facing = 1, + script = "Route110_TrickHousePuzzle8_EventScript_Vincent"), NpcDef( entityIdx = 1, graphicsId = 33, @@ -53159,8 +47000,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 3, - script = "Route110_TrickHousePuzzle8_EventScript_Leroy", - ), + script = "Route110_TrickHousePuzzle8_EventScript_Leroy"), NpcDef( entityIdx = 2, graphicsId = 34, @@ -53172,8 +47012,7 @@ object MapManager { movementRangeY = 0, trainerType = 1, facing = 2, - script = "Route110_TrickHousePuzzle8_EventScript_Keira", - ), + script = "Route110_TrickHousePuzzle8_EventScript_Keira"), ), bgEvents = listOf( @@ -53181,8 +47020,8 @@ object MapManager { x = 3, y = 21, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Route110_TrickHousePuzzle8_EventScript_Scroll", - )), + script = "Route110_TrickHousePuzzle8_EventScript_Scroll"), + ), ), // Route110_SeasideCyclingRoadSouthEntrance // (MAP_ROUTE110_SEASIDE_CYCLING_ROAD_SOUTH_ENTRANCE) @@ -53192,17 +47031,13 @@ object MapManager { mapId = 11, width = 15, height = 6, - paletteIdx1 = 95, - paletteIdx2 = 87, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 117, + unknownShort = 433, + unknownByte = 25, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -53217,8 +47052,7 @@ object MapManager { targetBankId = 50, targetMapId = 25, targetX = 16, - targetY = 88, - ), + targetY = 88), WarpTile( x = 2, y = 5, @@ -53226,8 +47060,7 @@ object MapManager { targetBankId = 50, targetMapId = 25, targetX = 16, - targetY = 88, - ), + targetY = 88), WarpTile( x = 12, y = 5, @@ -53235,8 +47068,7 @@ object MapManager { targetBankId = 50, targetMapId = 25, targetX = 19, - targetY = 88, - ), + targetY = 88), WarpTile( x = 13, y = 5, @@ -53244,8 +47076,7 @@ object MapManager { targetBankId = 50, targetMapId = 25, targetX = 19, - targetY = 88, - ), + targetY = 88), ), npcs = listOf( @@ -53259,9 +47090,9 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "Route110_SeasideCyclingRoadSouthEntrance_EventScript_Clerk", - )), + facing = 0, + script = "Route110_SeasideCyclingRoadSouthEntrance_EventScript_Clerk"), + ), bgEvents = emptyList(), ), // Route110_SeasideCyclingRoadNorthEntrance @@ -53272,17 +47103,13 @@ object MapManager { mapId = 12, width = 15, height = 6, - paletteIdx1 = 95, - paletteIdx2 = 87, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 117, + unknownShort = 433, + unknownByte = 25, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -53297,8 +47124,7 @@ object MapManager { targetBankId = 50, targetMapId = 25, targetX = 15, - targetY = 16, - ), + targetY = 16), WarpTile( x = 2, y = 5, @@ -53306,8 +47132,7 @@ object MapManager { targetBankId = 50, targetMapId = 25, targetX = 15, - targetY = 16, - ), + targetY = 16), WarpTile( x = 12, y = 5, @@ -53315,8 +47140,7 @@ object MapManager { targetBankId = 50, targetMapId = 25, targetX = 18, - targetY = 16, - ), + targetY = 16), WarpTile( x = 13, y = 5, @@ -53324,8 +47148,7 @@ object MapManager { targetBankId = 50, targetMapId = 25, targetX = 18, - targetY = 16, - ), + targetY = 16), ), npcs = listOf( @@ -53339,9 +47162,9 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "Route110_SeasideCyclingRoadNorthEntrance_EventScript_Clerk", - )), + facing = 0, + script = "Route110_SeasideCyclingRoadNorthEntrance_EventScript_Clerk"), + ), bgEvents = emptyList(), ), // Route113_GlassWorkshop (MAP_ROUTE113_GLASS_WORKSHOP) @@ -53351,17 +47174,13 @@ object MapManager { mapId = 0, width = 10, height = 9, - paletteIdx1 = 98, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 147, + unknownShort = 399, + unknownByte = 28, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -53376,8 +47195,7 @@ object MapManager { targetBankId = 50, targetMapId = 28, targetX = 33, - targetY = 5, - ), + targetY = 5), WarpTile( x = 4, y = 8, @@ -53385,8 +47203,7 @@ object MapManager { targetBankId = 50, targetMapId = 28, targetX = 33, - targetY = 5, - ), + targetY = 5), ), npcs = listOf( @@ -53400,9 +47217,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "Route113_GlassWorkshop_EventScript_GlassWorker", - ), + facing = 0, + script = "Route113_GlassWorkshop_EventScript_GlassWorker"), NpcDef( entityIdx = 1, graphicsId = 5, @@ -53414,8 +47230,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "Route113_GlassWorkshop_EventScript_NinjaBoy", - ), + script = "Route113_GlassWorkshop_EventScript_NinjaBoy"), ), bgEvents = emptyList(), ), @@ -53426,17 +47241,13 @@ object MapManager { mapId = 0, width = 11, height = 8, - paletteIdx1 = 98, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 147, + unknownShort = 399, + unknownByte = 38, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -53451,8 +47262,7 @@ object MapManager { targetBankId = 50, targetMapId = 38, targetX = 22, - targetY = 6, - ), + targetY = 6), WarpTile( x = 4, y = 7, @@ -53460,8 +47270,7 @@ object MapManager { targetBankId = 50, targetMapId = 38, targetX = 22, - targetY = 6, - ), + targetY = 6), ), npcs = listOf( @@ -53475,9 +47284,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "Route123_BerryMastersHouse_EventScript_BerryMaster", - ), + facing = 0, + script = "Route123_BerryMastersHouse_EventScript_BerryMaster"), NpcDef( entityIdx = 1, graphicsId = 30, @@ -53488,9 +47296,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "Route123_BerryMastersHouse_EventScript_BerryMastersWife", - ), + facing = 0, + script = "Route123_BerryMastersHouse_EventScript_BerryMastersWife"), ), bgEvents = emptyList(), ), @@ -53503,15 +47310,11 @@ object MapManager { height = 13, paletteIdx1 = 116, paletteIdx2 = 143, - unknownShort = 405, - unknownByte = 0, + unknownShort = 399, + unknownByte = 34, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -53526,8 +47329,7 @@ object MapManager { targetBankId = 50, targetMapId = 34, targetX = 6, - targetY = 32, - ), + targetY = 32), WarpTile( x = 10, y = 12, @@ -53535,8 +47337,7 @@ object MapManager { targetBankId = 50, targetMapId = 34, targetX = 6, - targetY = 32, - ), + targetY = 32), WarpTile( x = 17, y = 1, @@ -53544,8 +47345,7 @@ object MapManager { targetBankId = 82, targetMapId = 1, targetX = 17, - targetY = 1, - ), + targetY = 1), ), npcs = listOf( @@ -53560,34 +47360,30 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "Route119_WeatherInstitute_1F_EventScript_LittleBoy", - )), + script = "Route119_WeatherInstitute_1F_EventScript_LittleBoy"), + ), bgEvents = listOf( BgEventDef( x = 1, y = 2, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Route119_WeatherInstitute_1F_EventScript_Bed", - ), + script = "Route119_WeatherInstitute_1F_EventScript_Bed"), BgEventDef( x = 1, y = 3, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Route119_WeatherInstitute_1F_EventScript_Bed", - ), + script = "Route119_WeatherInstitute_1F_EventScript_Bed"), BgEventDef( x = 0, y = 2, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Route119_WeatherInstitute_1F_EventScript_Bed", - ), + script = "Route119_WeatherInstitute_1F_EventScript_Bed"), BgEventDef( x = 0, y = 3, facingDir = "BG_EVENT_PLAYER_FACING_ANY", - script = "Route119_WeatherInstitute_1F_EventScript_Bed", - ), + script = "Route119_WeatherInstitute_1F_EventScript_Bed"), ), ), // Route119_WeatherInstitute_2F (MAP_ROUTE119_WEATHER_INSTITUTE_2F) @@ -53599,15 +47395,11 @@ object MapManager { height = 11, paletteIdx1 = 116, paletteIdx2 = 143, - unknownShort = 405, - unknownByte = 0, + unknownShort = 399, + unknownByte = 34, borderTiles = listOf( - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - Tile2D(0x0201, 0), - ), + Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0), Tile2D(0x0201, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -53622,8 +47414,8 @@ object MapManager { targetBankId = 82, targetMapId = 0, targetX = 17, - targetY = 1, - )), + targetY = 1), + ), npcs = listOf( NpcDef( @@ -53637,8 +47429,8 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "Route119_WeatherInstitute_2F_EventScript_WeatherScientist", - )), + script = "Route119_WeatherInstitute_2F_EventScript_WeatherScientist"), + ), bgEvents = emptyList(), ), // Route119_House (MAP_ROUTE119_HOUSE) @@ -53648,17 +47440,13 @@ object MapManager { mapId = 2, width = 10, height = 9, - paletteIdx1 = 98, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 147, + unknownShort = 399, + unknownByte = 34, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -53673,8 +47461,7 @@ object MapManager { targetBankId = 50, targetMapId = 34, targetX = 33, - targetY = 109, - ), + targetY = 109), WarpTile( x = 4, y = 8, @@ -53682,8 +47469,7 @@ object MapManager { targetBankId = 50, targetMapId = 34, targetX = 33, - targetY = 109, - ), + targetY = 109), ), npcs = listOf( @@ -53697,9 +47483,8 @@ object MapManager { movementRangeX = 0, movementRangeY = 0, trainerType = 0, - facing = 1, - script = "Route119_House_EventScript_Woman", - ), + facing = 0, + script = "Route119_House_EventScript_Woman"), NpcDef( entityIdx = 1, graphicsId = 0, @@ -53711,8 +47496,7 @@ object MapManager { movementRangeY = 2, trainerType = 0, facing = 0, - script = "Route119_House_EventScript_Wingull", - ), + script = "Route119_House_EventScript_Wingull"), NpcDef( entityIdx = 2, graphicsId = 0, @@ -53724,8 +47508,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "Route119_House_EventScript_Wingull", - ), + script = "Route119_House_EventScript_Wingull"), NpcDef( entityIdx = 3, graphicsId = 0, @@ -53737,8 +47520,7 @@ object MapManager { movementRangeY = 1, trainerType = 0, facing = 0, - script = "Route119_House_EventScript_Wingull", - ), + script = "Route119_House_EventScript_Wingull"), NpcDef( entityIdx = 4, graphicsId = 0, @@ -53750,8 +47532,7 @@ object MapManager { movementRangeY = 2, trainerType = 0, facing = 0, - script = "Route119_House_EventScript_Wingull", - ), + script = "Route119_House_EventScript_Wingull"), NpcDef( entityIdx = 5, graphicsId = 0, @@ -53763,8 +47544,7 @@ object MapManager { movementRangeY = 2, trainerType = 0, facing = 0, - script = "Route119_House_EventScript_Wingull", - ), + script = "Route119_House_EventScript_Wingull"), NpcDef( entityIdx = 6, graphicsId = 0, @@ -53776,8 +47556,7 @@ object MapManager { movementRangeY = 3, trainerType = 0, facing = 0, - script = "Route119_House_EventScript_Wingull", - ), + script = "Route119_House_EventScript_Wingull"), ), bgEvents = emptyList(), ), @@ -53788,17 +47567,13 @@ object MapManager { mapId = 0, width = 10, height = 9, - paletteIdx1 = 98, - paletteIdx2 = 128, - unknownShort = 405, - unknownByte = 0, + paletteIdx1 = 116, + paletteIdx2 = 147, + unknownShort = 408, + unknownByte = 39, borderTiles = listOf( - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - Tile2D(0x0001, 0), - ), + Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0), Tile2D(0x0001, 0)), lighting = Lighting.REGULAR, weather = Weather.IN_HOUSE_WEATHER, mapType = MapType.INSIDE, @@ -53813,8 +47588,7 @@ object MapManager { targetBankId = 50, targetMapId = 39, targetX = 70, - targetY = 48, - ), + targetY = 48), WarpTile( x = 4, y = 8, @@ -53822,8 +47596,7 @@ object MapManager { targetBankId = 50, targetMapId = 39, targetX = 70, - targetY = 48, - ), + targetY = 48), ), npcs = listOf( @@ -53839,8 +47612,8 @@ object MapManager { trainerType = 0, facing = 2, script = - "Route124_DivingTreasureHuntersHouse_EventScript_TreasureHunter", - )), + "Route124_DivingTreasureHuntersHouse_EventScript_TreasureHunter"), + ), bgEvents = listOf( BgEventDef( @@ -53848,8 +47621,8 @@ object MapManager { y = 1, facingDir = "BG_EVENT_PLAYER_FACING_ANY", script = - "Route124_DivingTreasureHuntersHouse_EventScript_ShardTradeBoard", - )), + "Route124_DivingTreasureHuntersHouse_EventScript_ShardTradeBoard"), + ), ), ) allMaps.forEach { registerMap(it) } diff --git a/server.game/src/main/kotlin/de/fiereu/openmmo/server/game/world/WarpExitRules.kt b/server.game/src/main/kotlin/de/fiereu/openmmo/server/game/world/WarpExitRules.kt new file mode 100644 index 0000000..c017cbf --- /dev/null +++ b/server.game/src/main/kotlin/de/fiereu/openmmo/server/game/world/WarpExitRules.kt @@ -0,0 +1,143 @@ +package de.fiereu.openmmo.server.game.world + +import de.fiereu.openmmo.common.enums.Direction +import de.fiereu.openmmo.common.enums.MapType + +data class WarpExitOverride( + val facing: Direction, + val autoStep: Boolean, +) + +object WarpExitRules { + + fun inferExitFacing( + destTileBehavior: String?, + destMap: MapDef?, + destX: Int, + destY: Int, + sourceMap: MapDef?, + ): Direction { + if (destMap == null) return Direction.DOWN + + // Future proper tile-behavior support. + when (destTileBehavior) { + "MB_NON_ANIMATED_DOOR", + "MB_ANIMATED_DOOR" -> return Direction.DOWN + + "MB_NORTH_ARROW_WARP" -> return Direction.DOWN + "MB_SOUTH_ARROW_WARP" -> return Direction.UP + "MB_WEST_ARROW_WARP" -> return Direction.RIGHT + "MB_EAST_ARROW_WARP" -> return Direction.LEFT + } + + val sourceMapType = sourceMap?.mapType + + // Temporary hardcoded special cases until tile behavior is parsed. + getKnownOverride(sourceMap, destMap, destX, destY)?.let { + return it.facing + } + + // Entering a cave/tunnel from outside. + if (isUndergroundMap(destMap.mapType) && !isUndergroundMap(sourceMapType)) { + return Direction.UP + } + + // Entering a building from outside. + if (isBuildingMap(destMap.mapType) && !isBuildingMap(sourceMapType)) { + return Direction.UP + } + + // Exiting a building to outside. + if (isBuildingMap(sourceMapType) && !isBuildingMap(destMap.mapType)) { + return Direction.DOWN + } + + // Room-to-room. + if (isBuildingMap(sourceMapType) && isBuildingMap(destMap.mapType)) { + return Direction.DOWN + } + + return inferFacingFromExactEdge(destMap, destX, destY) + } + + fun getKnownOverride( + sourceMap: MapDef?, + destMap: MapDef?, + destX: Int, + destY: Int, + ): WarpExitOverride? { + if (destMap == null) return null + + // Rusturf Tunnel: face UP into the tunnel, no auto-step. + if (destMap.bankId.toInt() == 74 && destMap.mapId.toInt() == 4) { + return when { + destX == 4 && destY == 10 -> WarpExitOverride(Direction.UP, autoStep = false) + destX == 29 && destY == 16 -> WarpExitOverride(Direction.UP, autoStep = false) + destX == 18 && destY == 20 -> WarpExitOverride(Direction.UP, autoStep = false) + else -> null + } + } + + // Petalburg Woods: facing only, no auto-step. + if (destMap.bankId.toInt() == 74 && destMap.mapId.toInt() == 11) { + return when { + (destX == 14 && destY == 5) || (destX == 15 && destY == 5) -> + WarpExitOverride(Direction.DOWN, autoStep = false) + + (destX == 16 && destY == 38) || + (destX == 17 && destY == 38) || + (destX == 36 && destY == 38) || + (destX == 37 && destY == 38) -> WarpExitOverride(Direction.UP, autoStep = false) + + else -> null + } + } + + return null + } + + private fun inferFacingFromExactEdge( + destMap: MapDef, + destX: Int, + destY: Int, + ): Direction { + return when { + destY <= 1 -> Direction.DOWN + destY >= destMap.height - 2 -> Direction.UP + destX <= 1 -> Direction.RIGHT + destX >= destMap.width - 2 -> Direction.LEFT + else -> Direction.DOWN + } + } + + fun shouldAutoStep( + sourceMap: MapDef?, + destMap: MapDef?, + ): Boolean { + if (sourceMap == null || destMap == null) return false + + val sourceBuilding = + sourceMap.mapType == MapType.INSIDE || sourceMap.mapType == MapType.SECRET_BASE + + val destBuilding = destMap.mapType == MapType.INSIDE || destMap.mapType == MapType.SECRET_BASE + + val enteringUnderground = + destMap.mapType == MapType.UNDERGROUND && sourceMap.mapType != MapType.UNDERGROUND + + // House/building exit to outside. + if (sourceBuilding && !destBuilding) return true + + // Cave/tunnel entrance from outside. + if (enteringUnderground) return true + + return false + } + + fun isBuildingMap(type: MapType?): Boolean { + return type == MapType.INSIDE || type == MapType.SECRET_BASE + } + + fun isUndergroundMap(type: MapType?): Boolean { + return type == MapType.UNDERGROUND + } +}