Noticed this whilst going through the code. Obvious, if minor, bug.
It is a computing tech, but the research_leader has "leader_trait_expertise_voidcraft" for the weighting (but not the ai weight)
Code:
tech_synchronized_defences = {
area = physics
tier = 1
cost = @tier1cost2
category = { computing }
ai_update_type = military
prerequisites = { "tech_administrative_ai" }
is_rare = yes
weight = @tier1weight2
# unlocks orbital module - synchronized_defenses
weight_modifier = {
factor = 0.5
modifier = {
factor = 0.50
NOR = {
research_leader = {
area = physics
has_trait = "leader_trait_expertise_voidcraft"
}
research_leader = {
area = physics
has_trait = "leader_trait_curator"
}
}
}
modifier = {
factor = 0.75
has_ethic = ethic_pacifist
}
modifier = {
factor = 0.65
has_ethic = ethic_fanatic_pacifist
}
modifier = {
factor = 1.10
has_ethic = ethic_militarist
}
modifier = {
factor = 1.20
has_ethic = ethic_fanatic_militarist
}
}
ai_weight = {
modifier = {
factor = 1.25
research_leader = {
area = physics
has_trait = "leader_trait_expertise_computing"
}
}
}
}
It is a computing tech, but the research_leader has "leader_trait_expertise_voidcraft" for the weighting (but not the ai weight)