Skip to content

Commit

Permalink
[Sky Island] Add west bunker room upgrades to possible missions (Clev…
Browse files Browse the repository at this point in the history
…erRaven#73161)

* Initial commit

* Singular forms only

* Kick tests
  • Loading branch information
Standing-Storm authored Apr 21, 2024
1 parent 0a3e18c commit 874122c
Show file tree
Hide file tree
Showing 3 changed files with 474 additions and 0 deletions.
51 changes: 51 additions & 0 deletions data/mods/Sky_Island/dialog_statue.json
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,57 @@
"effect": [ { "assign_mission": "SKYISLAND_BUILD_bigroom4" } ],
"topic": "SKYISLAND_UPGRADES_INFRASTRUCTURE"
},
{
"text": "Construct: West Room 1",
"condition": {
"and": [
{ "not": { "u_has_mission": "SKYISLAND_BUILD_westroom1" } },
{ "math": [ "skyisland_build_bigroom", ">=", "1" ] },
{ "math": [ "skyisland_build_westroom", "==", "0" ] }
]
},
"effect": [ { "assign_mission": "SKYISLAND_BUILD_westroom1" } ],
"topic": "SKYISLAND_UPGRADES_INFRASTRUCTURE"
},
{
"text": "Construct: West Room 2",
"condition": {
"and": [
{ "not": { "u_has_mission": "SKYISLAND_BUILD_westroom2" } },
{ "math": [ "skyisland_build_westroom", "==", "1" ] },
{ "math": [ "skyisland_build_bigroom", ">=", "1" ] },
{ "math": [ "islandrank", ">=", "2" ] }
]
},
"effect": [ { "assign_mission": "SKYISLAND_BUILD_westroom2" } ],
"topic": "SKYISLAND_UPGRADES_INFRASTRUCTURE"
},
{
"text": "Construct: West Room 3",
"condition": {
"and": [
{ "not": { "u_has_mission": "SKYISLAND_BUILD_westroom3" } },
{ "math": [ "skyisland_build_westroom", "==", "2" ] },
{ "math": [ "skyisland_build_bigroom", ">=", "2" ] },
{ "math": [ "islandrank", ">=", "3" ] }
]
},
"effect": [ { "assign_mission": "SKYISLAND_BUILD_westroom3" } ],
"topic": "SKYISLAND_UPGRADES_INFRASTRUCTURE"
},
{
"text": "Construct: West Room Gallery",
"condition": {
"and": [
{ "not": { "u_has_mission": "SKYISLAND_BUILD_westroom4" } },
{ "math": [ "skyisland_build_westroom", "==", "3" ] },
{ "math": [ "skyisland_build_bigroom", ">=", "3" ] },
{ "math": [ "islandrank", ">=", "3" ] }
]
},
"effect": [ { "assign_mission": "SKYISLAND_BUILD_westroom4" } ],
"topic": "SKYISLAND_UPGRADES_INFRASTRUCTURE"
},
{ "text": "Nevermind.", "topic": "SKYISLAND_UPGRADE" }
]
}
Expand Down
161 changes: 161 additions & 0 deletions data/mods/Sky_Island/island_upgrades.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,26 @@
"id": "EOC_skyisland_build_bigroom4",
"effect": [ { "mapgen_update": "mx_skyisland_a4", "target_var": { "global_val": "OM_island_subcenter" } } ]
},
{
"type": "effect_on_condition",
"id": "EOC_skyisland_build_westroom1",
"effect": [ { "mapgen_update": "mx_skyisland_w1", "target_var": { "global_val": "OM_island_subw" } } ]
},
{
"type": "effect_on_condition",
"id": "EOC_skyisland_build_westroom2",
"effect": [ { "mapgen_update": "mx_skyisland_w2", "target_var": { "global_val": "OM_island_subw" } } ]
},
{
"type": "effect_on_condition",
"id": "EOC_skyisland_build_westroom3",
"effect": [ { "mapgen_update": "mx_skyisland_w3", "target_var": { "global_val": "OM_island_subw" } } ]
},
{
"type": "effect_on_condition",
"id": "EOC_skyisland_build_westroom4",
"effect": [ { "mapgen_update": "mx_skyisland_w4", "target_var": { "global_val": "OM_island_subw" } } ]
},
{
"type": "effect_on_condition",
"id": "EOC_memorize_island",
Expand Down Expand Up @@ -393,6 +413,7 @@
"+": "t_door_metal_c",
"#": "t_wall_metal",
"-": [ "t_null" ],
"G": "t_wall_glass",
"O": [ "t_null" ],
"x": [ "t_null" ],
"T": [ "t_null" ],
Expand All @@ -401,5 +422,145 @@
},
"furniture": { "X": "f_exitportal", "V": "f_islandstatue" },
"items": { }
},
{
"type": "mapgen",
"method": "json",
"update_mapgen_id": "mx_skyisland_w1",
"object": {
"rows": [
" ",
" ",
" ",
" ",
" ",
" ",
" ##### ",
" #...##########",
" #.*.+.........",
" #...##########",
" ##### ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" "
],
"flags": [ "NO_UNDERLYING_ROTATE", "ALLOW_TERRAIN_UNDER_OTHER_DATA" ],
"palettes": [ "skyisland_bunker" ]
}
},
{
"type": "mapgen",
"method": "json",
"update_mapgen_id": "mx_skyisland_w2",
"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_w3",
"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_w4",
"object": {
"rows": [
" ",
" ########### ",
" ##.........## ",
" #####...........## ",
" G..#.............# ",
" G..#...-------...# ",
" G..#...-------...# ",
" G..#...-------...#xxxx",
" G..+....--O---...+----",
" G..#...-------...#xxxx",
" G..#...-------...# ",
" G..#...-------...# ",
" G..#.............# ",
" #####...........## ",
" ##.........## ",
" ########### ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" "
],
"flags": [ "NO_UNDERLYING_ROTATE", "ALLOW_TERRAIN_UNDER_OTHER_DATA" ],
"palettes": [ "skyisland_bunker" ]
}
}
]
Loading

0 comments on commit 874122c

Please sign in to comment.