From 8ccacce4b3964bd080f7e87135ffeb533378093d Mon Sep 17 00:00:00 2001 From: Chomp Date: Mon, 20 Dec 2021 10:45:32 +0000 Subject: [PATCH] Helper method --- Common.Models/Input/Settings.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Common.Models/Input/Settings.cs b/Common.Models/Input/Settings.cs index f83a1fa..5e91fa2 100644 --- a/Common.Models/Input/Settings.cs +++ b/Common.Models/Input/Settings.cs @@ -127,6 +127,17 @@ namespace Common.Models.Input public RightArm RightArm { get; set; } public LeftLeg LeftLeg { get; set; } public RightLeg RightLeg { get; set; } + + public int GetHpMaxTotal() + { + return Head.Health.Maximum + + Chest.Health.Maximum + + Stomach.Health.Maximum + + LeftArm.Health.Maximum + + RightArm.Health.Maximum + + LeftLeg.Health.Maximum + + RightLeg.Health.Maximum; + } } public class Repairable