private bool AtLeastOneBetterArmor(float remainingSpace)
{
if (_shipDesign.Armor.Technology == _availableArmorTechs[_availableArmorTechs.Count - 1])
{
if (_shipDesign.Armor.UseSecondary)
{
//Already the best armor with double hull
return false;
}
Equipment armor = new Equipment(_shipDesign.Armor.Technology, true);
return armor.GetSize(_techLevels, _shipDesign.Size) <= remainingSpace;
}
int index = _availableArmorTechs.IndexOf(_shipDesign.Armor.Technology) + 1; //Just one level higher will suffice
return GetSpaceUsed(_availableArmorTechs[index], false) <= remainingSpace;
}