Пример #1
0
 internal Weights(MechDef mechDef)
 {
     StandardArmorWeight           = mechDef.StandardArmorTonnage();
     StandardStructureWeight       = mechDef.Chassis.Tonnage / 10f;
     StandardChassisWeightCapacity = mechDef.Chassis.Tonnage;
     Engine             = mechDef.GetEngine();
     Factors            = Engine?.WeightFactors ?? WeightsUtils.GetWeightFactorsFromInventory(mechDef.Inventory);
     ComponentSumWeight = mechDef.Inventory.Sum(mechComponentRef => mechComponentRef.Def.Tonnage) - (Engine?.CoreDef.Def.Tonnage ?? 0);
 }