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:
parent
bfe691b517
commit
a4dd5f4043
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user