namespace = est_collectivism

#Collectivism 3, bonus on planets without crime.
country_event = {
	id = est_collectivism.1
	hide_window = yes
	is_triggered_only = yes
	
	trigger = {
		has_active_tradition = tr_est_collectivism_3
	}
	
	immediate = {
		every_owned_planet = {
			if = {
				limit = {
					planet_crime < 1
				}
				if = {
					limit = {
						Not = {
							has_modifier = mod_est_collectivism_3
						}
					}
					add_modifier = {
						modifier = "mod_est_collectivism_3"
						days = -1
					}	
				}
			}		
			else = {
				if = {
					limit = {
						has_modifier = mod_est_collectivism_3
					}
					remove_modifier = "mod_est_collectivism_3"
				}
			}			
		}
	}
}