diff options
author | PikalaxALT <PikalaxALT@users.noreply.github.com> | 2021-05-13 14:24:11 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-13 14:24:11 -0400 |
commit | 3dce3407d5f9bca69d61b1cf1b314fb1e921d572 (patch) | |
tree | fdd4a094b5351ce6d9f71418e2859ed4cf1e3ba9 | |
parent | 0ccdd940f728d533ffff43288314cb2a3693d183 (diff) | |
parent | 7deccc36b74a9c8344d8f48d9b2e65ae913a3b88 (diff) |
Merge pull request #427 from GriffinRichards/name-mapgroups
Name map groups
-rw-r--r-- | data/event_scripts.s | 8 | ||||
-rw-r--r-- | data/maps/Route19_UnusedHouse/map.json (renamed from data/maps/UnusedHouse_27_00/map.json) | 4 | ||||
-rw-r--r-- | data/maps/Route19_UnusedHouse/scripts.inc | 2 | ||||
-rw-r--r-- | data/maps/Route23_UnusedHouse/map.json (renamed from data/maps/UnusedHouse_29_00/map.json) | 4 | ||||
-rw-r--r-- | data/maps/Route23_UnusedHouse/scripts.inc | 2 | ||||
-rw-r--r-- | data/maps/Route6_UnusedHouse/map.json (renamed from data/maps/UnknownMap_18_01/map.json) | 4 | ||||
-rw-r--r-- | data/maps/Route6_UnusedHouse/scripts.inc | 2 | ||||
-rw-r--r-- | data/maps/SevenIsland_UnusedHouse/map.json (renamed from data/maps/UnusedHouse_31_05/map.json) | 4 | ||||
-rw-r--r-- | data/maps/SevenIsland_UnusedHouse/scripts.inc | 2 | ||||
-rw-r--r-- | data/maps/UnknownMap_18_01/scripts.inc | 2 | ||||
-rw-r--r-- | data/maps/UnusedHouse_27_00/scripts.inc | 2 | ||||
-rw-r--r-- | data/maps/UnusedHouse_29_00/scripts.inc | 2 | ||||
-rw-r--r-- | data/maps/UnusedHouse_31_05/scripts.inc | 2 | ||||
-rw-r--r-- | data/maps/map_groups.json | 182 | ||||
-rw-r--r-- | include/constants/map_groups.h | 94 | ||||
-rw-r--r-- | tools/mapjson/mapjson.cpp | 6 |
16 files changed, 163 insertions, 159 deletions
diff --git a/data/event_scripts.s b/data/event_scripts.s index cbc607230..d1f46fef1 100644 --- a/data/event_scripts.s +++ b/data/event_scripts.s @@ -440,7 +440,7 @@ gStdScriptsEnd:: .include "data/maps/Route5_PokemonDayCare/scripts.inc" .include "data/maps/Route5_SouthEntrance/scripts.inc" .include "data/maps/Route6_NorthEntrance/scripts.inc" - .include "data/maps/UnknownMap_18_01/scripts.inc" + .include "data/maps/Route6_UnusedHouse/scripts.inc" .include "data/maps/Route7_EastEntrance/scripts.inc" .include "data/maps/Route8_WestEntrance/scripts.inc" .include "data/maps/Route10_PokemonCenter_1F/scripts.inc" @@ -457,16 +457,16 @@ gStdScriptsEnd:: .include "data/maps/Route16_NorthEntrance_2F/scripts.inc" .include "data/maps/Route18_EastEntrance_1F/scripts.inc" .include "data/maps/Route18_EastEntrance_2F/scripts.inc" - .include "data/maps/UnusedHouse_27_00/scripts.inc" + .include "data/maps/Route19_UnusedHouse/scripts.inc" .include "data/maps/Route22_NorthEntrance/scripts.inc" - .include "data/maps/UnusedHouse_29_00/scripts.inc" + .include "data/maps/Route23_UnusedHouse/scripts.inc" .include "data/maps/Route25_SeaCottage/scripts.inc" .include "data/maps/SevenIsland_House_Room1/scripts.inc" .include "data/maps/SevenIsland_House_Room2/scripts.inc" .include "data/maps/SevenIsland_Mart/scripts.inc" .include "data/maps/SevenIsland_PokemonCenter_1F/scripts.inc" .include "data/maps/SevenIsland_PokemonCenter_2F/scripts.inc" - .include "data/maps/UnusedHouse_31_05/scripts.inc" + .include "data/maps/SevenIsland_UnusedHouse/scripts.inc" .include "data/maps/SevenIsland_Harbor/scripts.inc" .include "data/maps/OneIsland_PokemonCenter_1F/scripts.inc" .include "data/maps/OneIsland_PokemonCenter_2F/scripts.inc" diff --git a/data/maps/UnusedHouse_27_00/map.json b/data/maps/Route19_UnusedHouse/map.json index 0d5b626e3..33a86a9b8 100644 --- a/data/maps/UnusedHouse_27_00/map.json +++ b/data/maps/Route19_UnusedHouse/map.json @@ -1,6 +1,6 @@ { - "id": "MAP_UNUSED_HOUSE_27_00", - "name": "UnusedHouse_27_00", + "id": "MAP_ROUTE19_UNUSED_HOUSE", + "name": "Route19_UnusedHouse", "layout": "LAYOUT_HOUSE2", "music": "MUS_ROUTE3", "region_map_section": "MAPSEC_ROUTE_19", diff --git a/data/maps/Route19_UnusedHouse/scripts.inc b/data/maps/Route19_UnusedHouse/scripts.inc new file mode 100644 index 000000000..5f807660c --- /dev/null +++ b/data/maps/Route19_UnusedHouse/scripts.inc @@ -0,0 +1,2 @@ +Route19_UnusedHouse_MapScripts:: @ 81704FA + .byte 0 diff --git a/data/maps/UnusedHouse_29_00/map.json b/data/maps/Route23_UnusedHouse/map.json index f5563c4cb..c8f7f260c 100644 --- a/data/maps/UnusedHouse_29_00/map.json +++ b/data/maps/Route23_UnusedHouse/map.json @@ -1,6 +1,6 @@ { - "id": "MAP_UNUSED_HOUSE_29_00", - "name": "UnusedHouse_29_00", + "id": "MAP_ROUTE23_UNUSED_HOUSE", + "name": "Route23_UnusedHouse", "layout": "LAYOUT_HOUSE2", "music": "MUS_VICTORY_ROAD", "region_map_section": "MAPSEC_ROUTE_23", diff --git a/data/maps/Route23_UnusedHouse/scripts.inc b/data/maps/Route23_UnusedHouse/scripts.inc new file mode 100644 index 000000000..276915e12 --- /dev/null +++ b/data/maps/Route23_UnusedHouse/scripts.inc @@ -0,0 +1,2 @@ +Route23_UnusedHouse_MapScripts:: @ 8170522 + .byte 0 diff --git a/data/maps/UnknownMap_18_01/map.json b/data/maps/Route6_UnusedHouse/map.json index 603f2bc97..6db713c52 100644 --- a/data/maps/UnknownMap_18_01/map.json +++ b/data/maps/Route6_UnusedHouse/map.json @@ -1,6 +1,6 @@ { - "id": "MAP_UNKNOWN_MAP_18_01", - "name": "UnknownMap_18_01", + "id": "MAP_ROUTE6_UNUSED_HOUSE", + "name": "Route6_UnusedHouse", "layout": "LAYOUT_HOUSE2", "music": "MUS_ROUTE3", "region_map_section": "MAPSEC_ROUTE_6", diff --git a/data/maps/Route6_UnusedHouse/scripts.inc b/data/maps/Route6_UnusedHouse/scripts.inc new file mode 100644 index 000000000..365de06a3 --- /dev/null +++ b/data/maps/Route6_UnusedHouse/scripts.inc @@ -0,0 +1,2 @@ +Route6_UnusedHouse_MapScripts:: @ 816FA8C + .byte 0 diff --git a/data/maps/UnusedHouse_31_05/map.json b/data/maps/SevenIsland_UnusedHouse/map.json index 9e850ee52..d9f8f1666 100644 --- a/data/maps/UnusedHouse_31_05/map.json +++ b/data/maps/SevenIsland_UnusedHouse/map.json @@ -1,6 +1,6 @@ { - "id": "MAP_UNUSED_HOUSE_31_05", - "name": "UnusedHouse_31_05", + "id": "MAP_SEVEN_ISLAND_UNUSED_HOUSE", + "name": "SevenIsland_UnusedHouse", "layout": "LAYOUT_HOUSE4", "music": "MUS_SEVII_67", "region_map_section": "MAPSEC_SEVEN_ISLAND", diff --git a/data/maps/SevenIsland_UnusedHouse/scripts.inc b/data/maps/SevenIsland_UnusedHouse/scripts.inc new file mode 100644 index 000000000..d6014463c --- /dev/null +++ b/data/maps/SevenIsland_UnusedHouse/scripts.inc @@ -0,0 +1,2 @@ +SevenIsland_UnusedHouse_MapScripts:: @ 8170BE3 + .byte 0 diff --git a/data/maps/UnknownMap_18_01/scripts.inc b/data/maps/UnknownMap_18_01/scripts.inc deleted file mode 100644 index 15459c3a9..000000000 --- a/data/maps/UnknownMap_18_01/scripts.inc +++ /dev/null @@ -1,2 +0,0 @@ -UnknownMap_18_01_MapScripts:: @ 816FA8C - .byte 0 diff --git a/data/maps/UnusedHouse_27_00/scripts.inc b/data/maps/UnusedHouse_27_00/scripts.inc deleted file mode 100644 index 973665fa1..000000000 --- a/data/maps/UnusedHouse_27_00/scripts.inc +++ /dev/null @@ -1,2 +0,0 @@ -UnusedHouse_27_00_MapScripts:: @ 81704FA - .byte 0 diff --git a/data/maps/UnusedHouse_29_00/scripts.inc b/data/maps/UnusedHouse_29_00/scripts.inc deleted file mode 100644 index d0a4cc1a8..000000000 --- a/data/maps/UnusedHouse_29_00/scripts.inc +++ /dev/null @@ -1,2 +0,0 @@ -UnusedHouse_29_00_MapScripts:: @ 8170522 - .byte 0 diff --git a/data/maps/UnusedHouse_31_05/scripts.inc b/data/maps/UnusedHouse_31_05/scripts.inc deleted file mode 100644 index ee5cfa2cb..000000000 --- a/data/maps/UnusedHouse_31_05/scripts.inc +++ /dev/null @@ -1,2 +0,0 @@ -UnusedHouse_31_05_MapScripts:: @ 8170BE3 - .byte 0 diff --git a/data/maps/map_groups.json b/data/maps/map_groups.json index a468baa37..ad423a9db 100644 --- a/data/maps/map_groups.json +++ b/data/maps/map_groups.json @@ -1,57 +1,57 @@ { "group_order": [ - "gMapGroup0", - "gMapGroup1", - "gMapGroup2", - "gMapGroup3", - "gMapGroup4", - "gMapGroup5", - "gMapGroup6", - "gMapGroup7", - "gMapGroup8", - "gMapGroup9", - "gMapGroup10", - "gMapGroup11", - "gMapGroup12", - "gMapGroup13", - "gMapGroup14", - "gMapGroup15", - "gMapGroup16", - "gMapGroup17", - "gMapGroup18", - "gMapGroup19", - "gMapGroup20", - "gMapGroup21", - "gMapGroup22", - "gMapGroup23", - "gMapGroup24", - "gMapGroup25", - "gMapGroup26", - "gMapGroup27", - "gMapGroup28", - "gMapGroup29", - "gMapGroup30", - "gMapGroup31", - "gMapGroup32", - "gMapGroup33", - "gMapGroup34", - "gMapGroup35", - "gMapGroup36", - "gMapGroup37", - "gMapGroup38", - "gMapGroup39", - "gMapGroup40", - "gMapGroup41", - "gMapGroup42" - ], - "gMapGroup0": [ + "gMapGroup_Link", + "gMapGroup_Dungeons", + "gMapGroup_SpecialArea", + "gMapGroup_TownsAndRoutes", + "gMapGroup_IndoorPallet", + "gMapGroup_IndoorViridian", + "gMapGroup_IndoorPewter", + "gMapGroup_IndoorCerulean", + "gMapGroup_IndoorLavender", + "gMapGroup_IndoorVermilion", + "gMapGroup_IndoorCeladon", + "gMapGroup_IndoorFuchsia", + "gMapGroup_IndoorCinnabar", + "gMapGroup_IndoorIndigoPlateau", + "gMapGroup_IndoorSaffron", + "gMapGroup_IndoorRoute2", + "gMapGroup_IndoorRoute4", + "gMapGroup_IndoorRoute5", + "gMapGroup_IndoorRoute6", + "gMapGroup_IndoorRoute7", + "gMapGroup_IndoorRoute8", + "gMapGroup_IndoorRoute10", + "gMapGroup_IndoorRoute11", + "gMapGroup_IndoorRoute12", + "gMapGroup_IndoorRoute15", + "gMapGroup_IndoorRoute16", + "gMapGroup_IndoorRoute18", + "gMapGroup_IndoorRoute19", + "gMapGroup_IndoorRoute22", + "gMapGroup_IndoorRoute23", + "gMapGroup_IndoorRoute25", + "gMapGroup_IndoorSevenIsland", + "gMapGroup_IndoorOneIsland", + "gMapGroup_IndoorTwoIsland", + "gMapGroup_IndoorThreeIsland", + "gMapGroup_IndoorFourIsland", + "gMapGroup_IndoorFiveIsland", + "gMapGroup_IndoorSixIsland", + "gMapGroup_IndoorThreeIslandRoute", + "gMapGroup_IndoorFiveIslandRoute", + "gMapGroup_IndoorTwoIslandRoute", + "gMapGroup_IndoorSixIslandRoute", + "gMapGroup_IndoorSevenIslandRoute" + ], + "gMapGroup_Link": [ "BattleColosseum_2P", "TradeCenter", "RecordCorner", "BattleColosseum_4P", "UnionRoom" ], - "gMapGroup1": [ + "gMapGroup_Dungeons": [ "ViridianForest", "MtMoon_1F", "MtMoon_B1F", @@ -176,7 +176,7 @@ "SixIsland_PatternBush", "SixIsland_AlteringCave" ], - "gMapGroup2": [ + "gMapGroup_SpecialArea": [ "NavelRock_Exterior", "TrainerTower_1F", "TrainerTower_2F", @@ -238,7 +238,7 @@ "BirthIsland_Harbor", "NavelRock_Harbor" ], - "gMapGroup3": [ + "gMapGroup_TownsAndRoutes": [ "PalletTown", "ViridianCity", "PewterCity", @@ -306,13 +306,13 @@ "SevenIsland_SevaultCanyon", "SevenIsland_TanobyRuins" ], - "gMapGroup4": [ + "gMapGroup_IndoorPallet": [ "PalletTown_PlayersHouse_1F", "PalletTown_PlayersHouse_2F", "PalletTown_RivalsHouse", "PalletTown_ProfessorOaksLab" ], - "gMapGroup5": [ + "gMapGroup_IndoorViridian": [ "ViridianCity_House1", "ViridianCity_Gym", "ViridianCity_House2", @@ -320,7 +320,7 @@ "ViridianCity_PokemonCenter_1F", "ViridianCity_PokemonCenter_2F" ], - "gMapGroup6": [ + "gMapGroup_IndoorPewter": [ "PewterCity_Museum_1F", "PewterCity_Museum_2F", "PewterCity_Gym", @@ -330,7 +330,7 @@ "PewterCity_PokemonCenter_2F", "PewterCity_House2" ], - "gMapGroup7": [ + "gMapGroup_IndoorCerulean": [ "CeruleanCity_House1", "CeruleanCity_House2", "CeruleanCity_House3", @@ -342,7 +342,7 @@ "CeruleanCity_House4", "CeruleanCity_House5" ], - "gMapGroup8": [ + "gMapGroup_IndoorLavender": [ "LavenderTown_PokemonCenter_1F", "LavenderTown_PokemonCenter_2F", "LavenderTown_VolunteerPokemonHouse", @@ -350,7 +350,7 @@ "LavenderTown_House2", "LavenderTown_Mart" ], - "gMapGroup9": [ + "gMapGroup_IndoorVermilion": [ "VermilionCity_House1", "VermilionCity_PokemonCenter_1F", "VermilionCity_PokemonCenter_2F", @@ -360,7 +360,7 @@ "VermilionCity_Gym", "VermilionCity_House3" ], - "gMapGroup10": [ + "gMapGroup_IndoorCeladon": [ "CeladonCity_DepartmentStore_1F", "CeladonCity_DepartmentStore_2F", "CeladonCity_DepartmentStore_3F", @@ -382,7 +382,7 @@ "CeladonCity_House1", "CeladonCity_Hotel" ], - "gMapGroup11": [ + "gMapGroup_IndoorFuchsia": [ "FuchsiaCity_SafariZone_Entrance", "FuchsiaCity_Mart", "FuchsiaCity_SafariZone_Office", @@ -394,7 +394,7 @@ "FuchsiaCity_House2", "FuchsiaCity_House3" ], - "gMapGroup12": [ + "gMapGroup_IndoorCinnabar": [ "CinnabarIsland_Gym", "CinnabarIsland_PokemonLab_Entrance", "CinnabarIsland_PokemonLab_Lounge", @@ -404,11 +404,11 @@ "CinnabarIsland_PokemonCenter_2F", "CinnabarIsland_Mart" ], - "gMapGroup13": [ + "gMapGroup_IndoorIndigoPlateau": [ "IndigoPlateau_PokemonCenter_1F", "IndigoPlateau_PokemonCenter_2F" ], - "gMapGroup14": [ + "gMapGroup_IndoorSaffron": [ "SaffronCity_CopycatsHouse_1F", "SaffronCity_CopycatsHouse_2F", "SaffronCity_Dojo", @@ -420,92 +420,92 @@ "SaffronCity_MrPsychicsHouse", "SaffronCity_PokemonTrainerFanClub" ], - "gMapGroup15": [ + "gMapGroup_IndoorRoute2": [ "Route2_ViridianForest_SouthEntrance", "Route2_House", "Route2_EastBuilding", "Route2_ViridianForest_NorthEntrance" ], - "gMapGroup16": [ + "gMapGroup_IndoorRoute4": [ "Route4_PokemonCenter_1F", "Route4_PokemonCenter_2F" ], - "gMapGroup17": [ + "gMapGroup_IndoorRoute5": [ "Route5_PokemonDayCare", "Route5_SouthEntrance" ], - "gMapGroup18": [ + "gMapGroup_IndoorRoute6": [ "Route6_NorthEntrance", - "UnknownMap_18_01" + "Route6_UnusedHouse" ], - "gMapGroup19": [ + "gMapGroup_IndoorRoute7": [ "Route7_EastEntrance" ], - "gMapGroup20": [ + "gMapGroup_IndoorRoute8": [ "Route8_WestEntrance" ], - "gMapGroup21": [ + "gMapGroup_IndoorRoute10": [ "Route10_PokemonCenter_1F", "Route10_PokemonCenter_2F" ], - "gMapGroup22": [ + "gMapGroup_IndoorRoute11": [ "Route11_EastEntrance_1F", "Route11_EastEntrance_2F" ], - "gMapGroup23": [ + "gMapGroup_IndoorRoute12": [ "Route12_NorthEntrance_1F", "Route12_NorthEntrance_2F", "Route12_FishingHouse" ], - "gMapGroup24": [ + "gMapGroup_IndoorRoute15": [ "Route15_WestEntrance_1F", "Route15_WestEntrance_2F" ], - "gMapGroup25": [ + "gMapGroup_IndoorRoute16": [ "Route16_House", "Route16_NorthEntrance_1F", "Route16_NorthEntrance_2F" ], - "gMapGroup26": [ + "gMapGroup_IndoorRoute18": [ "Route18_EastEntrance_1F", "Route18_EastEntrance_2F" ], - "gMapGroup27": [ - "UnusedHouse_27_00" + "gMapGroup_IndoorRoute19": [ + "Route19_UnusedHouse" ], - "gMapGroup28": [ + "gMapGroup_IndoorRoute22": [ "Route22_NorthEntrance" ], - "gMapGroup29": [ - "UnusedHouse_29_00" + "gMapGroup_IndoorRoute23": [ + "Route23_UnusedHouse" ], - "gMapGroup30": [ + "gMapGroup_IndoorRoute25": [ "Route25_SeaCottage" ], - "gMapGroup31": [ + "gMapGroup_IndoorSevenIsland": [ "SevenIsland_House_Room1", "SevenIsland_House_Room2", "SevenIsland_Mart", "SevenIsland_PokemonCenter_1F", "SevenIsland_PokemonCenter_2F", - "UnusedHouse_31_05", + "SevenIsland_UnusedHouse", "SevenIsland_Harbor" ], - "gMapGroup32": [ + "gMapGroup_IndoorOneIsland": [ "OneIsland_PokemonCenter_1F", "OneIsland_PokemonCenter_2F", "OneIsland_House1", "OneIsland_House2", "OneIsland_Harbor" ], - "gMapGroup33": [ + "gMapGroup_IndoorTwoIsland": [ "TwoIsland_JoyfulGameCorner", "TwoIsland_House", "TwoIsland_PokemonCenter_1F", "TwoIsland_PokemonCenter_2F", "TwoIsland_Harbor" ], - "gMapGroup34": [ + "gMapGroup_IndoorThreeIsland": [ "ThreeIsland_House1", "ThreeIsland_PokemonCenter_1F", "ThreeIsland_PokemonCenter_2F", @@ -515,7 +515,7 @@ "ThreeIsland_House4", "ThreeIsland_House5" ], - "gMapGroup35": [ + "gMapGroup_IndoorFourIsland": [ "FourIsland_PokemonDayCare", "FourIsland_PokemonCenter_1F", "FourIsland_PokemonCenter_2F", @@ -525,34 +525,34 @@ "FourIsland_House2", "FourIsland_Mart" ], - "gMapGroup36": [ + "gMapGroup_IndoorFiveIsland": [ "FiveIsland_PokemonCenter_1F", "FiveIsland_PokemonCenter_2F", "FiveIsland_Harbor", "FiveIsland_House1", "FiveIsland_House2" ], - "gMapGroup37": [ + "gMapGroup_IndoorSixIsland": [ "SixIsland_PokemonCenter_1F", "SixIsland_PokemonCenter_2F", "SixIsland_Harbor", "SixIsland_House", "SixIsland_Mart" ], - "gMapGroup38": [ + "gMapGroup_IndoorThreeIslandRoute": [ "ThreeIsland_Harbor" ], - "gMapGroup39": [ + "gMapGroup_IndoorFiveIslandRoute": [ "FiveIsland_ResortGorgeous_House" ], - "gMapGroup40": [ + "gMapGroup_IndoorTwoIslandRoute": [ "TwoIsland_CapeBrink_House" ], - "gMapGroup41": [ + "gMapGroup_IndoorSixIslandRoute": [ "SixIsland_WaterPath_House1", "SixIsland_WaterPath_House2" ], - "gMapGroup42": [ + "gMapGroup_IndoorSevenIslandRoute": [ "SevenIsland_SevaultCanyon_House" ], "connections_include_order": [ diff --git a/include/constants/map_groups.h b/include/constants/map_groups.h index 788ea7bda..b22eca15c 100644 --- a/include/constants/map_groups.h +++ b/include/constants/map_groups.h @@ -5,14 +5,14 @@ // DO NOT MODIFY THIS FILE! It is auto-generated from data/maps/map_groups.json // -// Map Group 0 +// gMapGroup_Link #define MAP_BATTLE_COLOSSEUM_2P (0 | (0 << 8)) #define MAP_TRADE_CENTER (1 | (0 << 8)) #define MAP_RECORD_CORNER (2 | (0 << 8)) #define MAP_BATTLE_COLOSSEUM_4P (3 | (0 << 8)) #define MAP_UNION_ROOM (4 | (0 << 8)) -// Map Group 1 +// gMapGroup_Dungeons #define MAP_VIRIDIAN_FOREST (0 | (1 << 8)) #define MAP_MT_MOON_1F (1 | (1 << 8)) #define MAP_MT_MOON_B1F (2 | (1 << 8)) @@ -137,7 +137,7 @@ #define MAP_SIX_ISLAND_PATTERN_BUSH (121 | (1 << 8)) #define MAP_SIX_ISLAND_ALTERING_CAVE (122 | (1 << 8)) -// Map Group 2 +// gMapGroup_SpecialArea #define MAP_NAVEL_ROCK_EXTERIOR (0 | (2 << 8)) #define MAP_TRAINER_TOWER_1F (1 | (2 << 8)) #define MAP_TRAINER_TOWER_2F (2 | (2 << 8)) @@ -199,7 +199,7 @@ #define MAP_BIRTH_ISLAND_HARBOR (58 | (2 << 8)) #define MAP_NAVEL_ROCK_HARBOR (59 | (2 << 8)) -// Map Group 3 +// gMapGroup_TownsAndRoutes #define MAP_PALLET_TOWN (0 | (3 << 8)) #define MAP_VIRIDIAN_CITY (1 | (3 << 8)) #define MAP_PEWTER_CITY (2 | (3 << 8)) @@ -267,13 +267,13 @@ #define MAP_SEVEN_ISLAND_SEVAULT_CANYON (64 | (3 << 8)) #define MAP_SEVEN_ISLAND_TANOBY_RUINS (65 | (3 << 8)) -// Map Group 4 +// gMapGroup_IndoorPallet #define MAP_PALLET_TOWN_PLAYERS_HOUSE_1F (0 | (4 << 8)) #define MAP_PALLET_TOWN_PLAYERS_HOUSE_2F (1 | (4 << 8)) #define MAP_PALLET_TOWN_RIVALS_HOUSE (2 | (4 << 8)) #define MAP_PALLET_TOWN_PROFESSOR_OAKS_LAB (3 | (4 << 8)) -// Map Group 5 +// gMapGroup_IndoorViridian #define MAP_VIRIDIAN_CITY_HOUSE1 (0 | (5 << 8)) #define MAP_VIRIDIAN_CITY_GYM (1 | (5 << 8)) #define MAP_VIRIDIAN_CITY_HOUSE2 (2 | (5 << 8)) @@ -281,7 +281,7 @@ #define MAP_VIRIDIAN_CITY_POKEMON_CENTER_1F (4 | (5 << 8)) #define MAP_VIRIDIAN_CITY_POKEMON_CENTER_2F (5 | (5 << 8)) -// Map Group 6 +// gMapGroup_IndoorPewter #define MAP_PEWTER_CITY_MUSEUM_1F (0 | (6 << 8)) #define MAP_PEWTER_CITY_MUSEUM_2F (1 | (6 << 8)) #define MAP_PEWTER_CITY_GYM (2 | (6 << 8)) @@ -291,7 +291,7 @@ #define MAP_PEWTER_CITY_POKEMON_CENTER_2F (6 | (6 << 8)) #define MAP_PEWTER_CITY_HOUSE2 (7 | (6 << 8)) -// Map Group 7 +// gMapGroup_IndoorCerulean #define MAP_CERULEAN_CITY_HOUSE1 (0 | (7 << 8)) #define MAP_CERULEAN_CITY_HOUSE2 (1 | (7 << 8)) #define MAP_CERULEAN_CITY_HOUSE3 (2 | (7 << 8)) @@ -303,7 +303,7 @@ #define MAP_CERULEAN_CITY_HOUSE4 (8 | (7 << 8)) #define MAP_CERULEAN_CITY_HOUSE5 (9 | (7 << 8)) -// Map Group 8 +// gMapGroup_IndoorLavender #define MAP_LAVENDER_TOWN_POKEMON_CENTER_1F (0 | (8 << 8)) #define MAP_LAVENDER_TOWN_POKEMON_CENTER_2F (1 | (8 << 8)) #define MAP_LAVENDER_TOWN_VOLUNTEER_POKEMON_HOUSE (2 | (8 << 8)) @@ -311,7 +311,7 @@ #define MAP_LAVENDER_TOWN_HOUSE2 (4 | (8 << 8)) #define MAP_LAVENDER_TOWN_MART (5 | (8 << 8)) -// Map Group 9 +// gMapGroup_IndoorVermilion #define MAP_VERMILION_CITY_HOUSE1 (0 | (9 << 8)) #define MAP_VERMILION_CITY_POKEMON_CENTER_1F (1 | (9 << 8)) #define MAP_VERMILION_CITY_POKEMON_CENTER_2F (2 | (9 << 8)) @@ -321,7 +321,7 @@ #define MAP_VERMILION_CITY_GYM (6 | (9 << 8)) #define MAP_VERMILION_CITY_HOUSE3 (7 | (9 << 8)) -// Map Group 10 +// gMapGroup_IndoorCeladon #define MAP_CELADON_CITY_DEPARTMENT_STORE_1F (0 | (10 << 8)) #define MAP_CELADON_CITY_DEPARTMENT_STORE_2F (1 | (10 << 8)) #define MAP_CELADON_CITY_DEPARTMENT_STORE_3F (2 | (10 << 8)) @@ -343,7 +343,7 @@ #define MAP_CELADON_CITY_HOUSE1 (18 | (10 << 8)) #define MAP_CELADON_CITY_HOTEL (19 | (10 << 8)) -// Map Group 11 +// gMapGroup_IndoorFuchsia #define MAP_FUCHSIA_CITY_SAFARI_ZONE_ENTRANCE (0 | (11 << 8)) #define MAP_FUCHSIA_CITY_MART (1 | (11 << 8)) #define MAP_FUCHSIA_CITY_SAFARI_ZONE_OFFICE (2 | (11 << 8)) @@ -355,7 +355,7 @@ #define MAP_FUCHSIA_CITY_HOUSE2 (8 | (11 << 8)) #define MAP_FUCHSIA_CITY_HOUSE3 (9 | (11 << 8)) -// Map Group 12 +// gMapGroup_IndoorCinnabar #define MAP_CINNABAR_ISLAND_GYM (0 | (12 << 8)) #define MAP_CINNABAR_ISLAND_POKEMON_LAB_ENTRANCE (1 | (12 << 8)) #define MAP_CINNABAR_ISLAND_POKEMON_LAB_LOUNGE (2 | (12 << 8)) @@ -365,11 +365,11 @@ #define MAP_CINNABAR_ISLAND_POKEMON_CENTER_2F (6 | (12 << 8)) #define MAP_CINNABAR_ISLAND_MART (7 | (12 << 8)) -// Map Group 13 +// gMapGroup_IndoorIndigoPlateau #define MAP_INDIGO_PLATEAU_POKEMON_CENTER_1F (0 | (13 << 8)) #define MAP_INDIGO_PLATEAU_POKEMON_CENTER_2F (1 | (13 << 8)) -// Map Group 14 +// gMapGroup_IndoorSaffron #define MAP_SAFFRON_CITY_COPYCATS_HOUSE_1F (0 | (14 << 8)) #define MAP_SAFFRON_CITY_COPYCATS_HOUSE_2F (1 | (14 << 8)) #define MAP_SAFFRON_CITY_DOJO (2 | (14 << 8)) @@ -381,92 +381,92 @@ #define MAP_SAFFRON_CITY_MR_PSYCHICS_HOUSE (8 | (14 << 8)) #define MAP_SAFFRON_CITY_POKEMON_TRAINER_FAN_CLUB (9 | (14 << 8)) -// Map Group 15 +// gMapGroup_IndoorRoute2 #define MAP_ROUTE2_VIRIDIAN_FOREST_SOUTH_ENTRANCE (0 | (15 << 8)) #define MAP_ROUTE2_HOUSE (1 | (15 << 8)) #define MAP_ROUTE2_EAST_BUILDING (2 | (15 << 8)) #define MAP_ROUTE2_VIRIDIAN_FOREST_NORTH_ENTRANCE (3 | (15 << 8)) -// Map Group 16 +// gMapGroup_IndoorRoute4 #define MAP_ROUTE4_POKEMON_CENTER_1F (0 | (16 << 8)) #define MAP_ROUTE4_POKEMON_CENTER_2F (1 | (16 << 8)) -// Map Group 17 +// gMapGroup_IndoorRoute5 #define MAP_ROUTE5_POKEMON_DAY_CARE (0 | (17 << 8)) #define MAP_ROUTE5_SOUTH_ENTRANCE (1 | (17 << 8)) -// Map Group 18 +// gMapGroup_IndoorRoute6 #define MAP_ROUTE6_NORTH_ENTRANCE (0 | (18 << 8)) -#define MAP_UNKNOWN_MAP_18_01 (1 | (18 << 8)) +#define MAP_ROUTE6_UNUSED_HOUSE (1 | (18 << 8)) -// Map Group 19 +// gMapGroup_IndoorRoute7 #define MAP_ROUTE7_EAST_ENTRANCE (0 | (19 << 8)) -// Map Group 20 +// gMapGroup_IndoorRoute8 #define MAP_ROUTE8_WEST_ENTRANCE (0 | (20 << 8)) -// Map Group 21 +// gMapGroup_IndoorRoute10 #define MAP_ROUTE10_POKEMON_CENTER_1F (0 | (21 << 8)) #define MAP_ROUTE10_POKEMON_CENTER_2F (1 | (21 << 8)) -// Map Group 22 +// gMapGroup_IndoorRoute11 #define MAP_ROUTE11_EAST_ENTRANCE_1F (0 | (22 << 8)) #define MAP_ROUTE11_EAST_ENTRANCE_2F (1 | (22 << 8)) -// Map Group 23 +// gMapGroup_IndoorRoute12 #define MAP_ROUTE12_NORTH_ENTRANCE_1F (0 | (23 << 8)) #define MAP_ROUTE12_NORTH_ENTRANCE_2F (1 | (23 << 8)) #define MAP_ROUTE12_FISHING_HOUSE (2 | (23 << 8)) -// Map Group 24 +// gMapGroup_IndoorRoute15 #define MAP_ROUTE15_WEST_ENTRANCE_1F (0 | (24 << 8)) #define MAP_ROUTE15_WEST_ENTRANCE_2F (1 | (24 << 8)) -// Map Group 25 +// gMapGroup_IndoorRoute16 #define MAP_ROUTE16_HOUSE (0 | (25 << 8)) #define MAP_ROUTE16_NORTH_ENTRANCE_1F (1 | (25 << 8)) #define MAP_ROUTE16_NORTH_ENTRANCE_2F (2 | (25 << 8)) -// Map Group 26 +// gMapGroup_IndoorRoute18 #define MAP_ROUTE18_EAST_ENTRANCE_1F (0 | (26 << 8)) #define MAP_ROUTE18_EAST_ENTRANCE_2F (1 | (26 << 8)) -// Map Group 27 -#define MAP_UNUSED_HOUSE_27_00 (0 | (27 << 8)) +// gMapGroup_IndoorRoute19 +#define MAP_ROUTE19_UNUSED_HOUSE (0 | (27 << 8)) -// Map Group 28 +// gMapGroup_IndoorRoute22 #define MAP_ROUTE22_NORTH_ENTRANCE (0 | (28 << 8)) -// Map Group 29 -#define MAP_UNUSED_HOUSE_29_00 (0 | (29 << 8)) +// gMapGroup_IndoorRoute23 +#define MAP_ROUTE23_UNUSED_HOUSE (0 | (29 << 8)) -// Map Group 30 +// gMapGroup_IndoorRoute25 #define MAP_ROUTE25_SEA_COTTAGE (0 | (30 << 8)) -// Map Group 31 +// gMapGroup_IndoorSevenIsland #define MAP_SEVEN_ISLAND_HOUSE_ROOM1 (0 | (31 << 8)) #define MAP_SEVEN_ISLAND_HOUSE_ROOM2 (1 | (31 << 8)) #define MAP_SEVEN_ISLAND_MART (2 | (31 << 8)) #define MAP_SEVEN_ISLAND_POKEMON_CENTER_1F (3 | (31 << 8)) #define MAP_SEVEN_ISLAND_POKEMON_CENTER_2F (4 | (31 << 8)) -#define MAP_UNUSED_HOUSE_31_05 (5 | (31 << 8)) +#define MAP_SEVEN_ISLAND_UNUSED_HOUSE (5 | (31 << 8)) #define MAP_SEVEN_ISLAND_HARBOR (6 | (31 << 8)) -// Map Group 32 +// gMapGroup_IndoorOneIsland #define MAP_ONE_ISLAND_POKEMON_CENTER_1F (0 | (32 << 8)) #define MAP_ONE_ISLAND_POKEMON_CENTER_2F (1 | (32 << 8)) #define MAP_ONE_ISLAND_HOUSE1 (2 | (32 << 8)) #define MAP_ONE_ISLAND_HOUSE2 (3 | (32 << 8)) #define MAP_ONE_ISLAND_HARBOR (4 | (32 << 8)) -// Map Group 33 +// gMapGroup_IndoorTwoIsland #define MAP_TWO_ISLAND_JOYFUL_GAME_CORNER (0 | (33 << 8)) #define MAP_TWO_ISLAND_HOUSE (1 | (33 << 8)) #define MAP_TWO_ISLAND_POKEMON_CENTER_1F (2 | (33 << 8)) #define MAP_TWO_ISLAND_POKEMON_CENTER_2F (3 | (33 << 8)) #define MAP_TWO_ISLAND_HARBOR (4 | (33 << 8)) -// Map Group 34 +// gMapGroup_IndoorThreeIsland #define MAP_THREE_ISLAND_HOUSE1 (0 | (34 << 8)) #define MAP_THREE_ISLAND_POKEMON_CENTER_1F (1 | (34 << 8)) #define MAP_THREE_ISLAND_POKEMON_CENTER_2F (2 | (34 << 8)) @@ -476,7 +476,7 @@ #define MAP_THREE_ISLAND_HOUSE4 (6 | (34 << 8)) #define MAP_THREE_ISLAND_HOUSE5 (7 | (34 << 8)) -// Map Group 35 +// gMapGroup_IndoorFourIsland #define MAP_FOUR_ISLAND_POKEMON_DAY_CARE (0 | (35 << 8)) #define MAP_FOUR_ISLAND_POKEMON_CENTER_1F (1 | (35 << 8)) #define MAP_FOUR_ISLAND_POKEMON_CENTER_2F (2 | (35 << 8)) @@ -486,34 +486,34 @@ #define MAP_FOUR_ISLAND_HOUSE2 (6 | (35 << 8)) #define MAP_FOUR_ISLAND_MART (7 | (35 << 8)) -// Map Group 36 +// gMapGroup_IndoorFiveIsland #define MAP_FIVE_ISLAND_POKEMON_CENTER_1F (0 | (36 << 8)) #define MAP_FIVE_ISLAND_POKEMON_CENTER_2F (1 | (36 << 8)) #define MAP_FIVE_ISLAND_HARBOR (2 | (36 << 8)) #define MAP_FIVE_ISLAND_HOUSE1 (3 | (36 << 8)) #define MAP_FIVE_ISLAND_HOUSE2 (4 | (36 << 8)) -// Map Group 37 +// gMapGroup_IndoorSixIsland #define MAP_SIX_ISLAND_POKEMON_CENTER_1F (0 | (37 << 8)) #define MAP_SIX_ISLAND_POKEMON_CENTER_2F (1 | (37 << 8)) #define MAP_SIX_ISLAND_HARBOR (2 | (37 << 8)) #define MAP_SIX_ISLAND_HOUSE (3 | (37 << 8)) #define MAP_SIX_ISLAND_MART (4 | (37 << 8)) -// Map Group 38 +// gMapGroup_IndoorThreeIslandRoute #define MAP_THREE_ISLAND_HARBOR (0 | (38 << 8)) -// Map Group 39 +// gMapGroup_IndoorFiveIslandRoute #define MAP_FIVE_ISLAND_RESORT_GORGEOUS_HOUSE (0 | (39 << 8)) -// Map Group 40 +// gMapGroup_IndoorTwoIslandRoute #define MAP_TWO_ISLAND_CAPE_BRINK_HOUSE (0 | (40 << 8)) -// Map Group 41 +// gMapGroup_IndoorSixIslandRoute #define MAP_SIX_ISLAND_WATER_PATH_HOUSE1 (0 | (41 << 8)) #define MAP_SIX_ISLAND_WATER_PATH_HOUSE2 (1 | (41 << 8)) -// Map Group 42 +// gMapGroup_IndoorSevenIslandRoute #define MAP_SEVEN_ISLAND_SEVAULT_CANYON_HOUSE (0 | (42 << 8)) #define MAP_GROUPS_COUNT 43 diff --git a/tools/mapjson/mapjson.cpp b/tools/mapjson/mapjson.cpp index 44afcaf22..0b07f1208 100644 --- a/tools/mapjson/mapjson.cpp +++ b/tools/mapjson/mapjson.cpp @@ -78,6 +78,10 @@ string generate_map_header_text(Json map_data, Json layouts_data) { ostringstream text; + text << "@\n@ DO NOT MODIFY THIS FILE! It is auto-generated from data/maps/" + << map_data["name"].string_value() + << "/map.json\n@\n\n"; + text << map_data["name"].string_value() << "::\n" << "\t.4byte " << layout["name"].string_value() << "\n"; @@ -514,7 +518,7 @@ string generate_map_constants_text(string groups_filepath, Json groups_data) { int group_num = 0; for (auto &group : groups_data["group_order"].array_items()) { - text << "// Map Group " << group_num << "\n"; + text << "// " << group.string_value() << "\n"; vector<Json> map_ids; size_t max_length = 0; |