local gettext = require("i_18n")
_ = gettext.translate
dofile(LockOn_Options.script_path.."command_defs.lua")


ELEC_BATT_FAIL = 1
ELEC_TRN_FAIL = 2
ELEC_TRS_FAIL = 3
ELEC_ALT_1_TOTAL_FAIL = 4
ELEC_ALT_1_PART_FAIL = 5
ELEC_ALT_2_TOTAL_FAIL = 6
ELEC_ALT_2_PART_FAIL = 7

Damage = {	
	{Failure = ELEC_BATT_FAIL,          Failure_name = "ELEC_BATT_FAIL",        Failure_editor_name = _("Battery Fail"),                    Element = 11, Integrity_Treshold = 0.5, work_time_to_fail_probability = 0.5, work_time_to_fail = 3600*300},
	{Failure = ELEC_TRN_FAIL,           Failure_name = "ELEC_TRN_FAIL",         Failure_editor_name = _("Main DC Converter (TRN) Fail"),    Element = 11, Integrity_Treshold = 0.5, work_time_to_fail_probability = 0.5, work_time_to_fail = 3600*300},
	{Failure = ELEC_TRS_FAIL,           Failure_name = "ELEC_TRS_FAIL",         Failure_editor_name = _("Emer DC Converter (TRS) Fail"),    Element = 11, Integrity_Treshold = 0.5, work_time_to_fail_probability = 0.5, work_time_to_fail = 3600*300},
	{Failure = ELEC_ALT_1_TOTAL_FAIL,   Failure_name = "ELEC_ALT_1_TOTAL_FAIL", Failure_editor_name = _("AC Alternator 1 Total Fail"),      Element = 11, Integrity_Treshold = 0.5, work_time_to_fail_probability = 0.5, work_time_to_fail = 3600*300},
	{Failure = ELEC_ALT_1_PART_FAIL,    Failure_name = "ELEC_ALT_1_PART_FAIL",  Failure_editor_name = _("AC Alternator 1 Partial Fail"),    Element = 11, Integrity_Treshold = 0.5, work_time_to_fail_probability = 0.5, work_time_to_fail = 3600*300},
	{Failure = ELEC_ALT_2_TOTAL_FAIL,   Failure_name = "ELEC_ALT_2_TOTAL_FAIL", Failure_editor_name = _("AC Alternator 2 Total Fail"),      Element = 11, Integrity_Treshold = 0.5, work_time_to_fail_probability = 0.5, work_time_to_fail = 3600*300},
	{Failure = ELEC_ALT_2_PART_FAIL,    Failure_name = "ELEC_ALT_2_PART_FAIL",  Failure_editor_name = _("AC Alternator 2 Partial Fail"),    Element = 11, Integrity_Treshold = 0.5, work_time_to_fail_probability = 0.5, work_time_to_fail = 3600*300},
}

need_to_be_closed = true
