Refactoring body system to use containers and general body cleanup (#20202)
Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
This commit is contained in:
@@ -94,8 +94,9 @@ public sealed class PricingSystem : EntitySystem
|
||||
return;
|
||||
}
|
||||
|
||||
var partList = _bodySystem.GetBodyAllSlots(uid, body).ToList();
|
||||
var totalPartsPresent = partList.Sum(x => x.Child != null ? 1 : 0);
|
||||
// TODO: Better handling of missing.
|
||||
var partList = _bodySystem.GetBodyChildren(uid, body).ToList();
|
||||
var totalPartsPresent = partList.Sum(_ => 1);
|
||||
var totalParts = partList.Count;
|
||||
|
||||
var partRatio = totalPartsPresent / (double) totalParts;
|
||||
|
||||
Reference in New Issue
Block a user