decisions = {

	use_mech_dec = {
		is_high_prio = yes
		ai = no #ai decides via event
		potential = { 
			any_artifact = {
				artifact_type = mech_suit
				is_artifact_equipped = yes
			}
			in_battle = yes
			in_command = yes
			NOT = { has_character_modifier = usedmech }
			trait = mech_pilot
			
		}
		
		allow = {	
			in_battle = yes
			NOT = { has_character_modifier = usedmech }
			}	
			
		effect = {
			character_event = { id = mechfl.2 }
			}
			
		ai_will_do = {
			factor = 2
		}		
	}
}


decisions = {

	use_mech_def_dec = { #Working clean up tooltip
		is_high_prio = yes
		potential = { 
			any_artifact = {
				artifact_type = mech_suit
				is_artifact_equipped = yes
			}
			in_battle = yes
			in_command = yes
			NOT = { has_character_modifier = usedmech }
		}
		
		allow = {	
			in_command = yes
			NOT = { has_character_modifier = usedmech }
			}	
			
		effect = {
			character_event = { id = mechfl.3 }
			}
			
		ai_will_do = {
			factor = 0.5
		}		
	}
}

decisions = {

	use_comm_mech_dec = {
		is_high_prio = yes
		potential = { 
			any_artifact = {
				artifact_type = common_mech_suit
				is_artifact_equipped = yes
			}
			in_battle = yes
			in_command = yes
			NOT = { has_character_modifier = usedmech }
			trait = mech_pilot
		}
		
		allow = {	
			in_battle = yes
			NOT = { has_character_modifier = usedmech }
			}	
			
		effect = {
			character_event = { id = mechfl.4 }
			}
			
		ai_will_do = {
			factor = 1
		}		
	}
}

decisions = {

	use_super_mech_dec = {
		is_high_prio = yes
		potential = { 
			any_artifact = {
				artifact_type = super_mech_suit
				is_artifact_equipped = yes
			}
			in_battle = yes
			in_command = yes
			NOT = { has_character_modifier = usedmech }
			trait = mech_pilot
		}
		
		allow = {	
			in_battle = yes
			NOT = { has_character_modifier = usedmech }
			}	
			
		effect = {
			character_event = { id = mechfl.5 }
			}
			
		ai_will_do = {
			factor = 1
		}		
	}
}

decisions = {

	heal_super_mech_dec = {
		is_high_prio = yes
		ai = no #ai decides via event
		potential = { 
			any_artifact = {
				artifact_type = super_mech_suit
				is_artifact_equipped = yes
			}
			in_battle = yes
			in_command = yes
			NOT = { has_character_modifier = usedmech }
			trait = mech_pilot
		}
		
		allow = {	
			in_battle = yes
			NOT = { has_character_modifier = usedmech }
			}	
			
		effect = {
			character_event = { id = mechfl.6 }
			}
			
		ai_will_do = {
			factor = 0.5
		}		
	}
}