1 using System.Collections.Generic;
8 readonly List<Item> itemsNeedingRepair =
new List<Item>();
14 itemsNeedingRepair.Clear();
20 itemsNeedingRepair.Add(item);
24 if (itemsNeedingRepair.Any())
26 itemsNeedingRepair.Sort((x, y) => y.ConditionPercentage.CompareTo(x.ConditionPercentage));
27 float modifiedPercentage = itemsNeedingRepair.TakeLast(3).Average(x => x.ConditionPercentage) * 0.6f + itemsNeedingRepair.TakeLast(10).Average(x => x.ConditionPercentage) * 0.4f;
static bool NearlyFullCondition(Item item)
static bool ViableForRepair(Item item, Character character, HumanAIController humanAIController)
virtual AIController AIController
readonly Character character
Submarine CommandedSubmarine
ShipCommandManager shipCommandManager
override void CalculateGlobalIssue()
ShipGlobalIssueRepairSystems(ShipCommandManager shipCommandManager)
readonly ShipCommandManager shipCommandManager
ShipIssueWorkerRepairSystems(ShipCommandManager shipCommandManager, Order order, ShipGlobalIssueRepairSystems shipGlobalIssueRepairSystems)
List< Item > GetItems(bool alsoFromConnectedSubs)