From d501e3584478d12f3127149a2d92deec7487fe30 Mon Sep 17 00:00:00 2001 From: ademblon Date: Mon, 27 Nov 2023 20:15:28 +0100 Subject: [PATCH] power plant does not require workforce (workforce = 0) --- .../scripted_effects/lroai_static_data_effects_modding_tool.txt | 2 +- .../lroai_static_data_triggers_modding_tool.txt | 2 +- tools/vanilla_building_types.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/LRoAI/common/scripted_effects/lroai_static_data_effects_modding_tool.txt b/LRoAI/common/scripted_effects/lroai_static_data_effects_modding_tool.txt index 6717a6c..d85b76a 100644 --- a/LRoAI/common/scripted_effects/lroai_static_data_effects_modding_tool.txt +++ b/LRoAI/common/scripted_effects/lroai_static_data_effects_modding_tool.txt @@ -300,7 +300,7 @@ lroai_perform_for_every_building_type = { lroai_perform_for_building_type = { effect = $effect$ key = building_shipyards id = 43 class = 6 counter = 43 order = 8 limit = 5 workforce = 1 allocate = 1 branching = 1 scaling = 0 } lroai_perform_for_building_type = { effect = $effect$ key = building_power_plant id = 44 - class = 6 counter = 44 order = 4 limit = 5 workforce = 1 allocate = 1 branching = 1 scaling = 0 } + class = 6 counter = 44 order = 4 limit = 5 workforce = 0 allocate = 1 branching = 1 scaling = 0 } lroai_perform_for_building_type = { effect = $effect$ key = building_electrics_industry id = 45 class = 6 counter = 45 order = 8 limit = 5 workforce = 1 allocate = 1 branching = 1 scaling = 1 } lroai_perform_for_building_type = { effect = $effect$ key = building_arms_industry id = 46 diff --git a/LRoAI/common/scripted_triggers/lroai_static_data_triggers_modding_tool.txt b/LRoAI/common/scripted_triggers/lroai_static_data_triggers_modding_tool.txt index 408c8aa..98728b9 100644 --- a/LRoAI/common/scripted_triggers/lroai_static_data_triggers_modding_tool.txt +++ b/LRoAI/common/scripted_triggers/lroai_static_data_triggers_modding_tool.txt @@ -92,7 +92,7 @@ lroai_is_true_for_any_building_type = { lroai_is_true_for_building_type = { trigger = $trigger$ key = building_shipyards id = 43 class = 6 counter = 43 order = 8 limit = 5 workforce = 1 allocate = 1 branching = 1 scaling = 0 } lroai_is_true_for_building_type = { trigger = $trigger$ key = building_power_plant id = 44 - class = 6 counter = 44 order = 4 limit = 5 workforce = 1 allocate = 1 branching = 1 scaling = 0 } + class = 6 counter = 44 order = 4 limit = 5 workforce = 0 allocate = 1 branching = 1 scaling = 0 } lroai_is_true_for_building_type = { trigger = $trigger$ key = building_electrics_industry id = 45 class = 6 counter = 45 order = 8 limit = 5 workforce = 1 allocate = 1 branching = 1 scaling = 1 } lroai_is_true_for_building_type = { trigger = $trigger$ key = building_arms_industry id = 46 diff --git a/tools/vanilla_building_types.js b/tools/vanilla_building_types.js index 44432bd..847607a 100644 --- a/tools/vanilla_building_types.js +++ b/tools/vanilla_building_types.js @@ -46,7 +46,7 @@ var buildings = [ '', ["building_steel_mills", 41, 6, false, 6, 5, dc, true, 10, true, false], ["building_motor_industry", 42, 6, false, 7, 5, dc, true, false, true, true], ["building_shipyards", 43, 6, false, 8, 5, dc, true, false, true, false], - ["building_power_plant", 44, 6, false, 4, 5, dc, true, false, true, false], + ["building_power_plant", 44, 6, false, 4, 5, dc, false, false, true, false], ["building_electrics_industry", 45, 6, false, 8, 5, dc, true, false, true, true], ["building_arms_industry", 46, 6, false, 7, 5, dc, true, 5, true, false], ["building_munition_plants", 47, 6, false, 7, 5, dc, true, 5, true, false],