bm: add decision to stop machine production

This commit is contained in:
Mateusz Słodkowicz 2024-06-06 21:08:25 +02:00
parent 2aed975e32
commit 1b23807244
Signed by: materus
GPG Key ID: 28D140BCA60B4FD1
1 changed files with 59 additions and 0 deletions

View File

@ -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
}
}
}
}