Heres the properties of Corsair from SW1
Code:
function GetPropertyCost_Corsair(property)
local properties =
{
Piloting_1 = 2,
Piloting_2 = 25,
Piloting_3 = 50,
Tactics = 200,
Gunnery_1 = 2,
Gunnery_2 = 25,
Gunnery_3 = 50,
Fearless = 75,
Lone_Wolf = 150,
Criticals_1 = 100,
Hard_to_Kill = 200,
Elite = 250,
Missiles_Rockets = 1,
Missiles_2 = 5,
Missiles_3 = 25,
Missiles_4 = 50,
Missiles_5 = 100,
Rockets_1 = 20,
Rockets_2 = 40,
missile_salvo_1 = 25,
missile_salvo_2 = 50,
missile_salvo_3 = 100,
missile_salvo_4 = 150,
Black_Market = 5,
weak_spot_1 = 50,
weak_spot_2 = 100,
weak_spot_3 = 200,
Systems_1 = 5,
Systems_2 = 35,
Countermeasures = 50,
Countermeasures_Exp = 100,
Missile_Range = 75
}
return properties[property];
end;
and heres the CanHaveProperty function (if needed)
Code:
function CanAddProperty_Corsair(pilot, property)
if (property == "Piloting_1")
then
return 1;
end;
if (property == "Piloting_2")
then
if (pilot:HasProperty("Piloting_1"))
then
return 1;
end;
return 0;
end;
if (property == "Piloting_3")
then
if (pilot:HasProperty("Piloting_2"))
then
return 1;
end;
return 0;
end;
if (property == "Tactics")
then
if (pilot:HasProperty("Piloting_3"))
then
return 1;
end;
return 0;
end;
if (property == "Gunnery_1")
then
return 1;
end;
if (property == "Gunnery_2")
then
if (pilot:HasProperty("Gunnery_1"))
then
return 1;
end;
return 0;
end;
if (property == "Gunnery_3")
then
if (pilot:HasProperty("Gunnery_2"))
then
return 1;
end;
return 0;
end;
if (property == "Fearless")
then
if (pilot:HasProperty("Piloting_2"))
then
return 1;
end;
return 0;
end;
if (property == "Lone_Wolf")
then
if (pilot:HasProperty("Piloting_3"))
then
return 1;
end;
return 0;
end;
if (property == "Criticals_1")
then
if (pilot:HasProperty("Gunnery_3"))
then
return 1;
end;
return 0;
end;
if (property == "Hard_to_Kill")
then
if (pilot:HasProperty("Fearless"))
then
return 1;
end;
return 0;
end;
if (property == "Elite")
then
if (pilot:HasProperty("Lone_Wolf") and pilot:HasProperty("Missiles_4"))
then
return 1;
end;
return 0;
end;
if (property == "Missiles_Rockets")
then
return 1;
end;
if (property == "Missiles_2")
then
if (pilot:HasProperty("Missiles_Rockets"))
then
return 1;
end;
return 0;
end;
if (property == "Missiles_3")
then
if (pilot:HasProperty("Missiles_2"))
then
return 1;
end;
return 0;
end;
if (property == "Missiles_4")
then
if (pilot:HasProperty("Missiles_3"))
then
return 1;
end;
return 0;
end;
if (property == "Missiles_5")
then
if (pilot:HasProperty("Missiles_4"))
then
return 1;
end;
return 0;
end;
if (property == "Rockets_1")
then
if (pilot:HasProperty("Missiles_Rockets"))
then
return 1;
end;
return 0;
end;
if (property == "Rockets_2")
then
if (pilot:HasProperty("Rockets_1"))
then
return 1;
end;
return 0;
end;
if (property == "missile_salvo_1")
then
if (pilot:HasProperty("Missiles_Rockets"))
then
return 1;
end;
return 0;
end;
if (property == "missile_salvo_2")
then
if (pilot:HasProperty("missile_salvo_1"))
then
return 1;
end;
return 0;
end;
if (property == "missile_salvo_3")
then
if (pilot:HasProperty("missile_salvo_2"))
then
return 1;
end;
return 0;
end;
if (property == "missile_salvo_4")
then
if (pilot:HasProperty("missile_salvo_3"))
then
return 1;
end;
return 0;
end;
if (property == "Black_Market")
then
return 1;
end;
if (property == "weak_spot_1")
then
if (pilot:HasProperty("missile_salvo_1"))
then
return 1;
end;
return 0;
end;
if (property == "weak_spot_2")
then
if (pilot:HasProperty("weak_spot_1"))
then
return 1;
end;
return 0;
end;
if (property == "weak_spot_3")
then
if (pilot:HasProperty("weak_spot_2") and pilot:HasProperty("missile_salvo_4") and pilot:HasProperty("Countermeasures_Exp"))
then
return 1;
end;
return 0;
end;
if (property == "Systems_1")
then
return 1;
end;
if (property == "Systems_2")
then
if (pilot:HasProperty("Systems_1"))
then
return 1;
end;
return 0;
end;
if (property == "Countermeasures")
then
if (pilot:HasProperty("Systems_2"))
then
return 1;
end;
return 0;
end;
if (property == "Countermeasures_Exp")
then
if (pilot:HasProperty("Countermeasures"))
then
return 1;
end;
return 0;
end;
if (property == "Missile_Range")
then
if (pilot:HasProperty("Countermeasures"))
then
return 1;
end;
return 0;
end;
return 0
end;