From b10865605788ee8ff696bc96595304863ff0b08f Mon Sep 17 00:00:00 2001 From: PatrikLundell Date: Fri, 5 Aug 2022 13:38:41 +0200 Subject: [PATCH] Added wind turbine appliances (#58370) * Added wind turbine appliances * trigger tests * trigger tests * Update data/json/construction.json Co-authored-by: Fris0uman <41293484+Fris0uman@users.noreply.github.com> * Update data/json/construction.json Co-authored-by: Fris0uman <41293484+Fris0uman@users.noreply.github.com> * Update data/json/construction.json Co-authored-by: anothersimulacrum * Update data/json/construction.json Co-authored-by: anothersimulacrum Co-authored-by: Fris0uman <41293484+Fris0uman@users.noreply.github.com> Co-authored-by: anothersimulacrum --- data/json/construction.json | 26 +++++++++++++++++++ data/json/construction_group.json | 10 +++++++ .../furniture_and_terrain/appliances.json | 24 +++++++++++++++++ 3 files changed, 60 insertions(+) diff --git a/data/json/construction.json b/data/json/construction.json index 11999d1b11958..025f8b681d7cf 100644 --- a/data/json/construction.json +++ b/data/json/construction.json @@ -3544,6 +3544,32 @@ "post_special": "done_appliance", "activity_level": "LIGHT_EXERCISE" }, + { + "type": "construction", + "id": "app_wind_turbine", + "group": "place_wind_turbine", + "category": "APPLIANCE", + "required_skills": [ [ "fabrication", 1 ] ], + "time": "30 m", + "qualities": [ [ { "id": "WRENCH", "level": 2 } ] ], + "components": [ [ [ "wind_turbine", 1 ] ] ], + "pre_special": "check_empty", + "post_special": "done_appliance", + "activity_level": "MODERATE_EXERCISE" + }, + { + "type": "construction", + "id": "app_xl_wind_turbine", + "group": "place_xl_wind_turbine", + "category": "APPLIANCE", + "required_skills": [ [ "fabrication", 1 ] ], + "time": "30 m", + "qualities": [ [ { "id": "WRENCH", "level": 2 } ] ], + "components": [ [ [ "xl_wind_turbine", 1 ] ] ], + "pre_special": "check_empty", + "post_special": "done_appliance", + "activity_level": "MODERATE_EXERCISE" + }, { "type": "construction", "id": "app_heater_large", diff --git a/data/json/construction_group.json b/data/json/construction_group.json index 3a997b73a1da1..7d279865d793d 100644 --- a/data/json/construction_group.json +++ b/data/json/construction_group.json @@ -1264,6 +1264,16 @@ "id": "place_reinforced_solar_panel_v2", "name": "Place Upgraded Reinforced Solar Panel" }, + { + "type": "construction_group", + "id": "place_wind_turbine", + "name": "Place Wind Turbine" + }, + { + "type": "construction_group", + "id": "place_xl_wind_turbine", + "name": "Place Large Wind Turbine" + }, { "type": "construction_group", "id": "place_small_battery", diff --git a/data/json/furniture_and_terrain/appliances.json b/data/json/furniture_and_terrain/appliances.json index d830923a74e9b..ad73a94c785f3 100644 --- a/data/json/furniture_and_terrain/appliances.json +++ b/data/json/furniture_and_terrain/appliances.json @@ -697,6 +697,30 @@ "copy-from": "reinforced_solar_panel_v2", "requirements": { "removal": { "time": "3 m", "using": [ [ "vehicle_wrench_2", 1 ] ] } } }, + { + "type": "vehicle_part", + "id": "ap_wind_turbine", + "name": { "str": "wind turbine" }, + "symbol": "T", + "location": "structure", + "color": "yellow", + "flags": [ "WIND_TURBINE", "OBSTACLE", "APPLIANCE" ], + "description": "A mounted wind turbine, ready to power other appliances.", + "copy-from": "wind_turbine", + "requirements": { "removal": { "time": "15 m", "using": [ [ "vehicle_wrench_2", 1 ] ] } } + }, + { + "type": "vehicle_part", + "id": "ap_xl_wind_turbine", + "name": { "str": "large wind turbine" }, + "symbol": "Y", + "location": "structure", + "color": "yellow", + "flags": [ "WIND_TURBINE", "OBSTACLE", "APPLIANCE" ], + "description": "A mounted large wind turbine, ready to power other appliances.", + "copy-from": "xl_wind_turbine", + "requirements": { "removal": { "time": "15 m", "using": [ [ "vehicle_wrench_2", 1 ] ] } } + }, { "type": "vehicle_part", "id": "ap_battery_small",