From 1b23807244310c5488f11a97a5ec8da415c46188 Mon Sep 17 00:00:00 2001 From: materus Date: Thu, 6 Jun 2024 21:08:25 +0200 Subject: [PATCH] bm: add decision to stop machine production --- .../common/decisions/~00_bm_decisions.txt | 59 +++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 better_mi/common/decisions/~00_bm_decisions.txt diff --git a/better_mi/common/decisions/~00_bm_decisions.txt b/better_mi/common/decisions/~00_bm_decisions.txt new file mode 100644 index 0000000..2934c63 --- /dev/null +++ b/better_mi/common/decisions/~00_bm_decisions.txt @@ -0,0 +1,59 @@ +# Stop Robot/Droid Assembly +decision_enact_robot_assembly_control = { + owned_planets_only = yes + sound = event_administrative_work + icon = decision_politics + + resources = { + category = decisions + cost = { + unity = 250 + } + } + + potential = { + owner = { + OR = { + AND = { + is_regular_empire = yes + NOT = { has_policy_flag = robots_outlawed } + has_technology = tech_robotic_workers + OR = { + AND = { + has_policy_flag = ai_full_rights + has_policy_flag = population_controls_allowed + } + NOT = { + has_policy_flag = ai_full_rights + } + } + } + is_individual_machine = yes + OR = { + has_ascension_perk = ap_organo_machine_interfacing + has_civic = civic_machine_assimilator + } + } + } + NOT = { has_modifier = planet_robot_assembly_control } + } + + effect = { + add_modifier = { modifier = "planet_robot_assembly_control" days = -1 } + } + + ai_weight = { + weight = 5 + modifier = { # don't enable if you have free housing and no city districts left to build + factor = 0 + OR = { + free_housing > 0 + num_free_districts = { + type = any + value > 0 + } + has_building_construction = yes #Added since they're probably building housing + } + } + } +} \ No newline at end of file