public Killer(string edName, string edModel, CombatRating rating) { this.name = edName; this.combatRating = rating; // Might be a ship killerShip = ShipDefinitions.FromEDModel(edModel, false); // Might be a SRV or Fighter killerVehicle = VehicleDefinition.EDNameExists(edModel) ? VehicleDefinition.FromEDName(edModel) : null; // Might be an on foot commander killerCmdrSuit = Suit.EDNameExists(edModel) ? Suit.FromEDName(edModel) : null; // Might be an on foot NPC killerNpcSuitLoadout = NpcSuitLoadout.EDNameExists(edModel) ? NpcSuitLoadout.FromEDName(edModel) : null; }
/// <summary> /// Augment the ship's information from the model /// </summary> public void Augment() { Ship template = ShipDefinitions.FromModel(model); if (template != null) { EDID = template.EDID; EDName = template.EDName; manufacturer = template.manufacturer; phoneticmanufacturer = template.phoneticmanufacturer; phoneticmodel = template.phoneticmodel; size = template.size; if (role == null) { role = EddiDataDefinitions.Role.MultiPurpose; } } }