//Set default values in Constructor public ShipHullData() { Name = ""; ShipObject = ""; SlotLayout = ""; HardPoints = ""; Icon = ""; MaxTurnTilt = 30.0f; ExplosionScale = 1.0f; BaseCommandPoints = 1; BaseCrew = 100; BaseFTL = 3f; BaseSupply = 20f; BaseFuel = 100f; BaseSensor = 20f; BaseLongRangeSensor = 25f; BaseAdvancedSensor = 0f; BaseResearch = 0f; BaseRepair = 0.5f; BaseHealthPerSlot = 5f; BaseArmorPerSlot = 2f; ModuleLimitFore = ModuleLimitType.NoEngines; ModuleLimitAft = ModuleLimitType.AllowAll; ModuleLimitPort = ModuleLimitType.NoEngines; ModuleLimitStarboard = ModuleLimitType.NoEngines; ModuleLimitCenter = ModuleLimitType.NoWeaponsOrEngines; }
public StationHullData() { Name = ""; StationObject = ""; SlotLayout = ""; HardPoints = ""; Icon = ""; BaseCrew = 100; BaseSensor = 20f; BaseLongRangeSensor = 25f; BaseAdvancedSensor = 0f; BaseResearch = 0f; BaseTrading = 0f; BaseMining = 0f; BaseRepair = 0.5f; BaseHealthPerSlot = 5f; BaseArmorPerSlot = 2f; ExperienceKillValue = 1; ModuleLimitations = ModuleLimitType.NoEngines; }
protected bool CheckHullModuleAllow(ModuleLimitType limit, ModuleCategory category) { if (category == ModuleCategory.Systems) { return(true); } if (category == ModuleCategory.Engines) { if (limit == ModuleLimitType.NoEngines || limit == ModuleLimitType.NoWeaponsOrEngines) { return(false); } } if (category == ModuleCategory.Weapons) { if (limit == ModuleLimitType.NoWeapons || limit == ModuleLimitType.NoWeaponsOrEngines) { return(false); } } return(true); }