private int GetTotalPercentageExcludingTypeAndLocked(TechField techField)
{
int total = 0;
if (!ComputerLocked && techField != TechField.COMPUTER)
{
total += ComputerPercentage;
}
if (!ConstructionLocked && techField != TechField.CONSTRUCTION)
{
total += ConstructionPercentage;
}
if (!ForceFieldLocked && techField != TechField.FORCE_FIELD)
{
total += ForceFieldPercentage;
}
if (!PlanetologyLocked && techField != TechField.PLANETOLOGY)
{
total += PlanetologyPercentage;
}
if (!PropulsionLocked && techField != TechField.PROPULSION)
{
total += PropulsionPercentage;
}
if (!WeaponLocked && techField != TechField.WEAPON)
{
total += WeaponPercentage;
}
return total;
}