wither_skeleton_machine = {
	##允许AI使用凋零骷髅刷怪塔
	allow_ai_use_wither_skeleton_machine = {
		icon = GFX_decision_generic_nationalism
		allowed = { }
		visible = {
			is_ai = no
		}
		cost = 0
		days_remove = 0
		available = {
		}
		modifier = {
		}
		ai_will_do = {
			factor = 0
		}
		complete_effect = {
			set_global_flag = allow_ai_use_wither_skeleton_machine
		}
	}
	##不允许AI使用凋零骷髅刷怪塔
	not_allow_ai_use_wither_skeleton_machine = {
		icon = GFX_decision_generic_nationalism
		allowed = { }
		visible = {
			is_ai = no
			has_global_flag = allow_ai_use_wither_skeleton_machine
		}
		cost = 0
		days_remove = 0
		available = {
		}
		modifier = {
		}
		ai_will_do = {
			factor = 0
		}
		complete_effect = {
			clr_global_flag = allow_ai_use_wither_skeleton_machine
		}
	}
	##显示凋零骷髅刷怪塔
	Display_wither_skeleton_machine = {
		icon = GFX_decision_generic_nationalism
		allowed = { }
		visible = {
			has_global_flag = Hide_wither_skeleton_machine
		}
		cost = 0
		days_remove = 0
		available = {
		}
		modifier = {
		}
		ai_will_do = {
			factor = 0
		}
		complete_effect = {
			clr_global_flag = Hide_wither_skeleton_machine
		}
	}
	##隐藏凋零骷髅刷怪塔
	Hide_wither_skeleton_machine = {
		icon = GFX_decision_generic_nationalism
		allowed = { }
		visible = {
			not = { has_global_flag = Hide_wither_skeleton_machine }
		}
		cost = 0
		days_remove = 0
		available = {
		}
		modifier = {
		}
		ai_will_do = {
			factor = 0
		}
		complete_effect = {
			set_global_flag = Hide_wither_skeleton_machine
		}
	}
	##建设凋零骷髅刷怪塔
	build_landmark_wither_skeleton_machine = {
		icon = GFX_decision_generic_construction
		allowed = { }
		visible = {
			not = { has_global_flag = Hide_wither_skeleton_machine }
		}
		target_trigger = {
			FROM = {
				not = { has_dynamic_modifier = { modifier = landmark_wither_skeleton_machine } }
			}
		}
		state_target = yes
		on_map_mode = map_only
		target_array = controlled_states
		fire_only_once = yes
		cost = 25
		days_remove = 30
		available = {
			num_of_civilian_factories_available_for_projects > 4
		}
		modifier = {
			civilian_factory_use = 5
		}
		ai_will_do = {
			factor = 0
			modifier = {
				add = 1000
				has_global_flag = allow_ai_use_wither_skeleton_machine
				check_variable = { resource@coal < 0 }
			}
		}
		remove_effect = {
			FROM = {
				add_dynamic_modifier = {
					modifier = landmark_wither_skeleton_machine
				}
			}
		}
	}
}