"use strict";
this.name = "IR-defences.js";
this.author = "Ramirez";
this.copyright = "August 2010";
this.description = "Script for maintaining status of IR defences thread";
this.version = "2.0";

//-------------------------------------------------------------------------------------------------------------
this.incrementDefencesStatus = function () {
	++missionVariables.IR_defences_status_no;
	if (missionVariables.IR_defences_status_no == 1) mission.markSystem({name:"IR-main-script.js", system:23});
	if (missionVariables.IR_defences_status_no == 2) mission.markSystem({name:"IR-main-script.js", system:180});
	if (missionVariables.IR_defences_status_no == 4) mission.markSystem({name:"IR-main-script.js", system:23});
	worldScripts["IR-main-script.js"]._setInstructionsKey("IR_defences_brief_" + [missionVariables.IR_defences_status_no], "IR-defences.js");
}

//-------------------------------------------------------------------------------------------------------------
this.clearDefencesStatus = function () {
	worldScripts["IR-main-script.js"]._setInstructionsKey(null, "IR-defences.js");
}

//-------------------------------------------------------------------------------------------------------------
this.setDefencesStatus = function () {
	worldScripts["IR-main-script.js"]._setInstructionsKey("IR_defences_brief_" + [missionVariables.IR_defences_status_no], "IR-defences.js");
}

