.NET Format Style Fixes
This commit is contained in:
@@ -679,18 +679,20 @@ public class BotGenerator(
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
return bodyParts.Select(bp => new
|
return bodyParts
|
||||||
|
.Select(bp => new
|
||||||
{
|
{
|
||||||
BodyPart = bp,
|
BodyPart = bp,
|
||||||
TotalMaxHp = bp.Head.Max +
|
TotalMaxHp = bp.Head.Max
|
||||||
bp.Chest.Max +
|
+ bp.Chest.Max
|
||||||
bp.LeftArm.Max +
|
+ bp.LeftArm.Max
|
||||||
bp.RightArm.Max +
|
+ bp.RightArm.Max
|
||||||
bp.LeftLeg.Max +
|
+ bp.LeftLeg.Max
|
||||||
bp.RightLeg.Max
|
+ bp.RightLeg.Max,
|
||||||
})
|
})
|
||||||
.OrderBy(x => x.TotalMaxHp)
|
.OrderBy(x => x.TotalMaxHp)
|
||||||
.FirstOrDefault()?.BodyPart;
|
.FirstOrDefault()
|
||||||
|
?.BodyPart;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user