From 146e012ef380b39ec6d5a06f888333016373947d Mon Sep 17 00:00:00 2001 From: "Standing-StormStanding-Storm git config --global user.name Standing-Storm git config --global user.name Standing-Storm" Date: Sun, 21 Apr 2024 15:32:51 -0500 Subject: [PATCH] Initial commit --- data/mods/Sky_Island/dialog_statue.json | 51 ++++ data/mods/Sky_Island/island_upgrades.json | 160 +++++++++++++ data/mods/Sky_Island/upgrade_missions.json | 262 +++++++++++++++++++++ 3 files changed, 473 insertions(+) diff --git a/data/mods/Sky_Island/dialog_statue.json b/data/mods/Sky_Island/dialog_statue.json index b2bd302ab0ef0..3d7e21c29d92b 100644 --- a/data/mods/Sky_Island/dialog_statue.json +++ b/data/mods/Sky_Island/dialog_statue.json @@ -584,6 +584,57 @@ "effect": [ { "assign_mission": "SKYISLAND_BUILD_westroom4" } ], "topic": "SKYISLAND_UPGRADES_INFRASTRUCTURE" }, + { + "text": "Construct: East Room 1", + "condition": { + "and": [ + { "not": { "u_has_mission": "SKYISLAND_BUILD_eastroom1" } }, + { "math": [ "skyisland_build_bigroom", ">=", "1" ] }, + { "math": [ "skyisland_build_eastroom", "==", "0" ] } + ] + }, + "effect": [ { "assign_mission": "SKYISLAND_BUILD_eastroom1" } ], + "topic": "SKYISLAND_UPGRADES_INFRASTRUCTURE" + }, + { + "text": "Construct: East Room 2", + "condition": { + "and": [ + { "not": { "u_has_mission": "SKYISLAND_BUILD_eastroom2" } }, + { "math": [ "skyisland_build_eastroom", "==", "1" ] }, + { "math": [ "skyisland_build_bigroom", ">=", "1" ] }, + { "math": [ "islandrank", ">=", "2" ] } + ] + }, + "effect": [ { "assign_mission": "SKYISLAND_BUILD_eastroom2" } ], + "topic": "SKYISLAND_UPGRADES_INFRASTRUCTURE" + }, + { + "text": "Construct: East Room 3", + "condition": { + "and": [ + { "not": { "u_has_mission": "SKYISLAND_BUILD_eastroom3" } }, + { "math": [ "skyisland_build_eastroom", "==", "2" ] }, + { "math": [ "skyisland_build_bigroom", ">=", "2" ] }, + { "math": [ "islandrank", ">=", "3" ] } + ] + }, + "effect": [ { "assign_mission": "SKYISLAND_BUILD_eastroom3" } ], + "topic": "SKYISLAND_UPGRADES_INFRASTRUCTURE" + }, + { + "text": "Construct: East Room Gallery", + "condition": { + "and": [ + { "not": { "u_has_mission": "SKYISLAND_BUILD_eastroom4" } }, + { "math": [ "skyisland_build_eastroom", "==", "3" ] }, + { "math": [ "skyisland_build_bigroom", ">=", "3" ] }, + { "math": [ "islandrank", ">=", "3" ] } + ] + }, + "effect": [ { "assign_mission": "SKYISLAND_BUILD_eastroom4" } ], + "topic": "SKYISLAND_UPGRADES_INFRASTRUCTURE" + }, { "text": "Nevermind.", "topic": "SKYISLAND_UPGRADE" } ] } diff --git a/data/mods/Sky_Island/island_upgrades.json b/data/mods/Sky_Island/island_upgrades.json index 6e7f1874aba19..d3fb44191a517 100644 --- a/data/mods/Sky_Island/island_upgrades.json +++ b/data/mods/Sky_Island/island_upgrades.json @@ -51,6 +51,26 @@ "id": "EOC_skyisland_build_westroom4", "effect": [ { "mapgen_update": "mx_skyisland_w4", "target_var": { "global_val": "OM_island_subw" } } ] }, + { + "type": "effect_on_condition", + "id": "EOC_skyisland_build_eastroom1", + "effect": [ { "mapgen_update": "mx_skyisland_e1", "target_var": { "global_val": "OM_island_sube" } } ] + }, + { + "type": "effect_on_condition", + "id": "EOC_skyisland_build_eastroom2", + "effect": [ { "mapgen_update": "mx_skyisland_e2", "target_var": { "global_val": "OM_island_sube" } } ] + }, + { + "type": "effect_on_condition", + "id": "EOC_skyisland_build_eastroom3", + "effect": [ { "mapgen_update": "mx_skyisland_e3", "target_var": { "global_val": "OM_island_sube" } } ] + }, + { + "type": "effect_on_condition", + "id": "EOC_skyisland_build_eastroom4", + "effect": [ { "mapgen_update": "mx_skyisland_e4", "target_var": { "global_val": "OM_island_sube" } } ] + }, { "type": "effect_on_condition", "id": "EOC_memorize_island", @@ -562,5 +582,145 @@ "flags": [ "NO_UNDERLYING_ROTATE", "ALLOW_TERRAIN_UNDER_OTHER_DATA" ], "palettes": [ "skyisland_bunker" ] } + }, + { + "type": "mapgen", + "method": "json", + "update_mapgen_id": "mx_skyisland_e1", + "object": { + "rows": [ + " ", + " ", + " ", + " ", + " ", + " ", + " ##### ", + "##########...# ", + ".........+.*.# ", + "##########...# ", + " ##### ", + " ", + " ", + " ", + " ", + " ", + " ", + " ", + " ", + " ", + " ", + " ", + " ", + " " + ], + "flags": [ "NO_UNDERLYING_ROTATE", "ALLOW_TERRAIN_UNDER_OTHER_DATA" ], + "palettes": [ "skyisland_bunker" ] + } + }, + { + "type": "mapgen", + "method": "json", + "update_mapgen_id": "mx_skyisland_e2", + "object": { + "rows": [ + " ", + " ", + " ", + " ", + " ######### ", + " #.......# ", + " #.......# ", + "xxxxxxx#..---..# ", + "-------+-.-O-..# ", + "xxxxxxx#..---..# ", + " #.......# ", + " #.......# ", + " ######### ", + " ", + " ", + " ", + " ", + " ", + " ", + " ", + " ", + " ", + " ", + " " + ], + "flags": [ "NO_UNDERLYING_ROTATE", "ALLOW_TERRAIN_UNDER_OTHER_DATA" ], + "palettes": [ "skyisland_bunker" ] + } + }, + { + "type": "mapgen", + "method": "json", + "update_mapgen_id": "mx_skyisland_e3", + "object": { + "rows": [ + " ", + " ########### ", + " ##.........## ", + " ##...........## ", + " #.............# ", + " #...-------...# ", + " #...-------...# ", + "xxxx#...-------...# ", + "----+...---O--....# ", + "xxxx#...-------...# ", + " #...-------...# ", + " #...-------...# ", + " #.............# ", + " ##...........## ", + " ##.........## ", + " ########### ", + " ", + " ", + " ", + " ", + " ", + " ", + " ", + " " + ], + "flags": [ "NO_UNDERLYING_ROTATE", "ALLOW_TERRAIN_UNDER_OTHER_DATA" ], + "palettes": [ "skyisland_bunker" ] + } + }, + { + "type": "mapgen", + "method": "json", + "update_mapgen_id": "mx_skyisland_e4", + "object": { + "rows": [ + " ", + " ########### ", + " ##.........## ", + " ##...........##### ", + " #.............#..G ", + " #...-------...#..G ", + " #...-------...#..G ", + "xxxx#...-------...#..G ", + "----+...---O--....+..G ", + "xxxx#...-------...#..G ", + " #...-------...#..G ", + " #...-------...#..G ", + " #.............#..G ", + " ##...........##### ", + " ##.........## ", + " ########### ", + " ", + " ", + " ", + " ", + " ", + " ", + " ", + " " + ], + "flags": [ "NO_UNDERLYING_ROTATE", "ALLOW_TERRAIN_UNDER_OTHER_DATA" ], + "palettes": [ "skyisland_bunker" ] + } } ] diff --git a/data/mods/Sky_Island/upgrade_missions.json b/data/mods/Sky_Island/upgrade_missions.json index 8998c0c861fdc..44aef557e12b1 100644 --- a/data/mods/Sky_Island/upgrade_missions.json +++ b/data/mods/Sky_Island/upgrade_missions.json @@ -2557,6 +2557,268 @@ [ [ "cordage", 1, "LIST" ] ] ] }, + { + "id": "SKYISLAND_BUILD_eastroom1", + "type": "mission_definition", + "name": "Construct: East Room 1", + "description": "Completing this mission will instantly build a new structure on your home island.\n\nCraft a Miner's Cameo from simple tools and common building materials. The Heart of the Island has already placed the recipe inside your mind.\n\nNew Structure: east Room 1. A hollow chamber east of the island's center to serve as a multipurpose space, with tons of room to expand.", + "goal": "MGOAL_FIND_ITEM", + "item": "buildkey_eastroom1", + "count": 1, + "difficulty": 0, + "value": 0, + "has_generic_rewards": false, + "start": { + "effect": [ + { "u_learn_recipe": "buildkey_eastroom1" }, + { + "u_message": "Now that you have corridors snaking beneath your island, you could build rooms in various areas. The eastern quadrant might be a good place for another room.\nA new recipe has been learned. Craft this artifact to permanently upgrade the island.\n\nNew Structure: East Room 1. A hollow chamber to the east of the island's center to serve as a multipurpose space, with tons of room to expand.", + "popup": true + } + ] + }, + "end": { + "effect": [ + { "math": [ "skyisland_build_eastroom", "=", "1" ] }, + { "u_forget_recipe": "buildkey_eastroom1" }, + { "run_eocs": "EOC_skyisland_build_eastroom1" }, + { + "u_message": "Construction complete. A room has been dug out to the east of the central area in the bunker beneath the island.", + "popup": true + } + ] + } + }, + { + "id": "buildkey_eastroom1", + "type": "GENERIC", + "category": "spare_parts", + "name": { "str_sp": "Miner's Cameo (East)" }, + "description": "This strange metaphysical artifact is used to build a structure on the island. Will be used automatically upon crafting, and can only be used once.\n\nASSOCIATED BUILD: East Room 1", + "volume": "25000 ml", + "weight": "15000 g", + "longest_side": "90 cm", + "material": [ "stone" ], + "symbol": "V", + "color": "white" + }, + { + "result": "buildkey_eastroom1", + "type": "recipe", + "activity_level": "NO_EXERCISE", + "category": "CC_WARP", + "subcategory": "CSC_WARP_UPGRADES", + "skill_used": "survival", + "difficulty": 0, + "time": "15 m", + "flags": [ "SECRET", "BLIND_EASY" ], + "reversible": false, + "tools": [ [ [ "fakeitem_statue", -1 ] ] ], + "qualities": [ { "id": "DIG", "level": 1 }, { "id": "HAMMER", "level": 2 }, { "id": "SCREW", "level": 1 } ], + "components": [ + [ [ "2x4", 1 ] ], + [ [ "hinge", 5 ] ], + [ [ "nail", 20 ] ], + [ [ "nuts_bolts", 15 ] ], + [ [ "box_medium", 4 ], [ "box_large", 2 ], [ "box_oversize", 1 ] ], + [ [ "cordage", 5, "LIST" ] ] + ] + }, + { + "id": "SKYISLAND_BUILD_eastroom2", + "type": "mission_definition", + "name": "Construct: East Room 2", + "description": "Completing this mission will instantly build a new structure on your home island.\n\nCraft a Hollow Carver from simple tools and common building materials. The Heart of the Island has already placed the recipe inside your mind.\n\nNew Structure: East Room 2. Expand the eastern room to fit more loot, furniture, or anything else you may need.", + "goal": "MGOAL_FIND_ITEM", + "item": "buildkey_eastroom2", + "count": 1, + "difficulty": 0, + "value": 0, + "has_generic_rewards": false, + "start": { + "effect": [ + { "u_learn_recipe": "buildkey_eastroom2" }, + { + "u_message": "The eastern room would be a lot more useful if it were larger. Time to get to work.\nA new recipe has been learned. Craft this artifact to permanently upgrade the island.\n\nNew Structure: East Room 2. Expand the eastern room to fit more loot, furniture, or anything else you may need.", + "popup": true + } + ] + }, + "end": { + "effect": [ + { "math": [ "skyisland_build_eastroom", "=", "2" ] }, + { "u_forget_recipe": "buildkey_eastroom2" }, + { "run_eocs": "EOC_skyisland_build_eastroom2" }, + { "u_message": "Construction complete. The eastern room has grown.", "popup": true } + ] + } + }, + { + "id": "buildkey_eastroom2", + "type": "GENERIC", + "category": "spare_parts", + "name": { "str_sp": "Hollow Carver (East)" }, + "description": "This strange metaphysical artifact is used to build a structure on the island. Will be used automatically upon crafting, and can only be used once.\n\nASSOCIATED BUILD: East Room 2", + "volume": "25000 ml", + "weight": "15000 g", + "longest_side": "90 cm", + "material": [ "stone" ], + "symbol": "V", + "color": "white" + }, + { + "result": "buildkey_eastroom2", + "type": "recipe", + "activity_level": "NO_EXERCISE", + "category": "CC_WARP", + "subcategory": "CSC_WARP_UPGRADES", + "skill_used": "survival", + "difficulty": 0, + "time": "15 m", + "flags": [ "SECRET", "BLIND_EASY" ], + "reversible": false, + "tools": [ [ [ "fakeitem_statue", -1 ] ] ], + "qualities": [ { "id": "WRENCH", "level": 2 }, { "id": "SCREW_FINE", "level": 1 }, { "id": "DRILL", "level": 1 } ], + "components": [ + [ [ "shovel", 1 ], [ "shovel_snow", 1 ] ], + [ [ "sheet_metal", 8 ] ], + [ [ "frame", 2 ] ], + [ [ "cordage", 1, "LIST" ] ] + ] + }, + { + "id": "SKYISLAND_BUILD_eastroom3", + "type": "mission_definition", + "name": "Construct: East Room 3", + "description": "Completing this mission will instantly build a new structure on your home island.\n\nCraft a Warped Reinforcement from simple tools and common building materials. The Heart of the Island has already placed the recipe inside your mind.\n\nNew Structure: East Room 3. Expand the eastern room to very generous dimensions.", + "goal": "MGOAL_FIND_ITEM", + "item": "buildkey_eastroom3", + "count": 1, + "difficulty": 0, + "value": 0, + "has_generic_rewards": false, + "start": { + "effect": [ + { "u_learn_recipe": "buildkey_eastroom3" }, + { + "u_message": "The eastern room is a good start, but it could be much bigger. Time to get to work.\nA new recipe has been learned. Craft this artifact to permanently upgrade the island.\n\nNew Structure: East Room 3. Expand the eastern room to very generous dimensions.", + "popup": true + } + ] + }, + "end": { + "effect": [ + { "math": [ "skyisland_build_eastroom", "=", "3" ] }, + { "u_forget_recipe": "buildkey_eastroom3" }, + { "run_eocs": "EOC_skyisland_build_eastroom3" }, + { "u_message": "Construction complete. The eastern room has grown even further.", "popup": true } + ] + } + }, + { + "id": "buildkey_eastroom3", + "type": "GENERIC", + "category": "spare_parts", + "name": { "str_sp": "Warped Reinforcement (East)" }, + "description": "This strange metaphysical artifact is used to build a structure on the island. Will be used automatically upon crafting, and can only be used once.\n\nASSOCIATED BUILD: east Room 3", + "volume": "25000 ml", + "weight": "15000 g", + "longest_side": "90 cm", + "material": [ "stone" ], + "symbol": "V", + "color": "white" + }, + { + "result": "buildkey_eastroom3", + "type": "recipe", + "activity_level": "NO_EXERCISE", + "category": "CC_WARP", + "subcategory": "CSC_WARP_UPGRADES", + "skill_used": "survival", + "difficulty": 0, + "time": "15 m", + "flags": [ "SECRET", "BLIND_EASY" ], + "reversible": false, + "tools": [ [ [ "fakeitem_statue", -1 ] ] ], + "qualities": [ { "id": "WRENCH", "level": 2 }, { "id": "SCREW_FINE", "level": 1 }, { "id": "DRILL", "level": 1 } ], + "components": [ + [ [ "wood_beam", 4 ] ], + [ [ "sheet_metal", 8 ] ], + [ [ "frame", 2 ] ], + [ [ "wearable_light", 2 ] ], + [ [ "hard_plate", 4 ], [ "steel_plate", 8 ] ], + [ [ "battery_car", 1 ], [ "battery_motorbike", 1 ], [ "medium_storage_battery", 1 ] ], + [ [ "cordage", 1, "LIST" ] ] + ] + }, + { + "id": "SKYISLAND_BUILD_eastroom4", + "type": "mission_definition", + "name": "Construct: east Room Gallery", + "description": "Completing this mission will instantly build a new structure on your home island.\n\nCraft a Crystalline Glass from simple tools and common building materials. The Heart of the Island has already placed the recipe inside your mind.\n\nNew Structure: east Room Gallery. Add an enclosed gallery to the eastern room to allow viewing off the side of the island.", + "goal": "MGOAL_FIND_ITEM", + "item": "buildkey_eastroom4", + "count": 1, + "difficulty": 0, + "value": 0, + "has_generic_rewards": false, + "start": { + "effect": [ + { "u_learn_recipe": "buildkey_eastroom4" }, + { + "u_message": "The eastern room is a nice size, but you're on a floating island. What if you had a place where you could admire the beautiful view without having to worry about the blowing winds? Time to get to work.\nA new recipe has been learned. Craft this artifact to permanently upgrade the island.\n\nNew Structure: East Room Gallery. Add an enclosed gallery to the eastern room to allow viewing off the side of the island.", + "popup": true + } + ] + }, + "end": { + "effect": [ + { "math": [ "skyisland_build_eastroom", "=", "4" ] }, + { "u_forget_recipe": "buildkey_eastroom4" }, + { "run_eocs": "EOC_skyisland_build_eastroom4" }, + { "u_message": "Construction complete. The eastern room has now has a viewing gallery.", "popup": true } + ] + } + }, + { + "id": "buildkey_eastroom4", + "type": "GENERIC", + "category": "spare_parts", + "name": { "str_sp": "Crystalline Glass (East)" }, + "description": "This strange metaphysical artifact is used to build a structure on the island. Will be used automatically upon crafting, and can only be used once.\n\nASSOCIATED BUILD: East Room Gallery", + "volume": "25000 ml", + "weight": "15000 g", + "longest_side": "90 cm", + "material": [ "stone" ], + "symbol": "V", + "color": "white" + }, + { + "result": "buildkey_eastroom4", + "type": "recipe", + "activity_level": "NO_EXERCISE", + "category": "CC_WARP", + "subcategory": "CSC_WARP_UPGRADES", + "skill_used": "survival", + "difficulty": 0, + "time": "15 m", + "flags": [ "SECRET", "BLIND_EASY" ], + "reversible": false, + "tools": [ [ [ "fakeitem_statue", -1 ] ] ], + "qualities": [ + { "id": "WRENCH", "level": 2 }, + { "id": "SCREW_FINE", "level": 1 }, + { "id": "DRILL", "level": 1 }, + { "id": "HAMMER_FINE", "level": 1 } + ], + "components": [ + [ [ "glass_sheet", 4 ] ], + [ [ "sheet_metal", 4 ] ], + [ [ "glass_shard", 100 ] ], + [ [ "battery_car", 1 ], [ "battery_motorbike", 1 ], [ "medium_storage_battery", 1 ] ], + [ [ "cordage", 1, "LIST" ] ] + ] + }, { "id": "SKYISLAND_UPGRADE_security1", "type": "mission_definition",