Modified the Thargoid Plans mission script to remove the standard energy unit - damaged or not - before awarding the naval one.

git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1680 127b21dd-08f5-0310-b4b7-95ae10353056
This commit is contained in:
Nikos Barkas 2008-06-19 15:47:12 +00:00
parent bfe691b517
commit a4dd5f4043

View File

@ -66,6 +66,14 @@ this.missionOffers = function ()
player.score += 256; // ship kills
mission.setInstructionsKey(); // reset the missionbriefing
missionVariables.thargplans = "MISSION_COMPLETE";
if (player.hasEquipment("EQ_ENERGY_UNIT"))
{
player.removeEquipment("EQ_ENERGY_UNIT");
}
else if (player.hasEquipment("EQ_ENERGY_UNIT_DAMAGED"))
{
player.removeEquipment("EQ_ENERGY_UNIT_DAMAGED");
}
player.awardEquipment("EQ_NAVAL_ENERGY_UNIT");
missionVariables.TL_FOR_EQ_NAVAL_ENERGY_UNIT = 13;
mission.unmarkSystem(36);