Skip to content

Commit

Permalink
Fix godco mapgen_updates searches (#77665)
Browse files Browse the repository at this point in the history
* Fix godco_place_coop_new's mapgen_update search

* Rest of the godco missions
  • Loading branch information
Procyonae authored Nov 9, 2024
1 parent 75ee644 commit 6cfa618
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 15 deletions.
61 changes: 50 additions & 11 deletions data/json/effects_on_condition/mapgen_eocs/godco_mapgen_eocs.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,17 @@
"type": "effect_on_condition",
"id": "godco_place_coop_new",
"global": false,
"effect": [ { "mapgen_update": "darryl_place_coop", "om_terrain": "godco_7" }, { "math": [ "darryl_building_coop", "=", "2" ] } ]
"effect": [
{ "mapgen_update": "darryl_place_coop", "om_terrain": "godco_7", "target_var": { "context_val": "search_locale" } },
{ "math": [ "darryl_building_coop", "=", "2" ] }
]
},
{
"type": "effect_on_condition",
"id": "godco_place_herb_garden_new",
"global": false,
"effect": [
{ "mapgen_update": "place_herb_garden", "om_terrain": "godco_1_2" },
{ "mapgen_update": "place_herb_garden", "om_terrain": "godco_1_2", "target_var": { "context_val": "search_locale" } },
{ "math": [ "kostas_building_garden", "=", "2" ] }
]
},
Expand All @@ -20,14 +23,46 @@
"global": false,
"//": "4 hours 20 minutes per wall (from regular ground to full palisade) * 373 walls = ~1,567 hours. Divided into 8-hour work shifts, that's ~196 days, or six and a half months for one person. Presuming we have ~11 people working in a single shift, each building 1 wall, that should be ~18 days to build. Please correct me if I messed up the math.",
"effect": [
{ "mapgen_update": "place_right_corner_wall", "om_terrain": "godco_1" },
{ "mapgen_update": "place_gate_wall", "om_terrain": "godco_2" },
{ "mapgen_update": "place_left_corner_wall", "om_terrain": "godco_3" },
{ "mapgen_update": "place_straight_up_wall_right", "om_terrain": "godco_4" },
{ "mapgen_update": "place_straight_up_wall_left", "om_terrain": "godco_6" },
{ "mapgen_update": "place_right_corner_wall_bottom", "om_terrain": "godco_7" },
{ "mapgen_update": "place_straight_bottom_wall", "om_terrain": "godco_8" },
{ "mapgen_update": "place_left_corner_wall_bottom", "om_terrain": "godco_9" },
{
"mapgen_update": "place_right_corner_wall",
"om_terrain": "godco_1",
"target_var": { "context_val": "search_locale" }
},
{
"mapgen_update": "place_gate_wall",
"om_terrain": "godco_2",
"target_var": { "context_val": "search_locale" }
},
{
"mapgen_update": "place_left_corner_wall",
"om_terrain": "godco_3",
"target_var": { "context_val": "search_locale" }
},
{
"mapgen_update": "place_straight_up_wall_right",
"om_terrain": "godco_4",
"target_var": { "context_val": "search_locale" }
},
{
"mapgen_update": "place_straight_up_wall_left",
"om_terrain": "godco_6",
"target_var": { "context_val": "search_locale" }
},
{
"mapgen_update": "place_right_corner_wall_bottom",
"om_terrain": "godco_7",
"target_var": { "context_val": "search_locale" }
},
{
"mapgen_update": "place_straight_bottom_wall",
"om_terrain": "godco_8",
"target_var": { "context_val": "search_locale" }
},
{
"mapgen_update": "place_left_corner_wall_bottom",
"om_terrain": "godco_9",
"target_var": { "context_val": "search_locale" }
},
{ "math": [ "wall_in_progress", "=", "2" ] }
]
},
Expand All @@ -38,7 +73,11 @@
"//": "1 hour 30 minutes per wood wall * 50 walls = 75 hours for walls. 132 wood floors * 1 hour 40 minutes a floor = 220 hours. 1 hour 30 minutes per shelf * 68 shelves = 102 hours. (397 so far) 2 hours per roof * 132 roof tiles (assume same as floors) = 264 hours.",
"//2": "In total, this takes 661 labor hours to build. Assuming work is in 8-hour shifts, that's 83 days, or 2 months and 22 days for a single worker. Assume we have ~6 people on the job (isn't as urgent as a wall), this takes us ~14 days to build, or two weeks.",
"effect": [
{ "mapgen_update": "place_food_warehouse", "om_terrain": "forest_thick" },
{
"mapgen_update": "place_food_warehouse",
"om_terrain": "forest_thick",
"target_var": { "context_val": "search_locale" }
},
{ "math": [ "godco_warehouse_in_progress", "=", "2" ] }
]
}
Expand Down
28 changes: 24 additions & 4 deletions data/json/npcs/godco/godco_missions.json
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,12 @@
},
"end": {
"effect": [
{ "queue_eocs": "godco_place_warehouse_new", "time_in_future": "336 hours" },
{ "npc_location_variable": { "context_val": "search_locale" } },
{
"queue_eocs": "godco_place_warehouse_new",
"time_in_future": "336 hours",
"variables": { "search_locale": { "context_val": "search_locale" } }
},
{ "u_spawn_item": "icon", "count": 137 }
],
"opinion": { "trust": 7, "value": 6, "anger": -3 }
Expand Down Expand Up @@ -312,8 +317,13 @@
},
"end": {
"effect": [
{ "npc_location_variable": { "context_val": "search_locale" } },
{ "math": [ "darryl_building_coop", "=", "1" ] },
{ "queue_eocs": "godco_place_coop_new", "time_in_future": "168 hours" },
{
"queue_eocs": "godco_place_coop_new",
"time_in_future": "168 hours",
"variables": { "search_locale": { "context_val": "search_locale" } }
},
{ "u_spawn_item": "icon", "count": 6 }
],
"opinion": { "trust": 2, "value": 2 }
Expand Down Expand Up @@ -968,7 +978,12 @@
"end": {
"effect": [
{ "u_spawn_item": "icon", "count": 90 },
{ "queue_eocs": "godco_place_herb_garden_new", "time_in_future": "72 hours" }
{ "npc_location_variable": { "context_val": "search_locale" } },
{
"queue_eocs": "godco_place_herb_garden_new",
"time_in_future": "72 hours",
"variables": { "search_locale": { "context_val": "search_locale" } }
}
],
"opinion": { "trust": 3, "value": 2 }
},
Expand Down Expand Up @@ -1243,7 +1258,12 @@
"end": {
"effect": [
{ "mapgen_update": "helena_planer", "om_terrain": "godco_8" },
{ "queue_eocs": "godco_place_wall_new", "time_in_future": "432 hours" },
{ "npc_location_variable": { "context_val": "search_locale" } },
{
"queue_eocs": "godco_place_wall_new",
"time_in_future": "432 hours",
"variables": { "search_locale": { "context_val": "search_locale" } }
},
{ "u_spawn_item": "icon", "count": 40 }
],
"opinion": { "trust": 2, "value": 1 }
Expand Down

0 comments on commit 6cfa618

Please sign in to comment.