Helper method

This commit is contained in:
Chomp 2021-12-20 10:45:32 +00:00
parent 9df03f3286
commit 8ccacce4b3

View File

@ -127,6 +127,17 @@ namespace Common.Models.Input
public RightArm RightArm { get; set; } public RightArm RightArm { get; set; }
public LeftLeg LeftLeg { get; set; } public LeftLeg LeftLeg { get; set; }
public RightLeg RightLeg { 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 public class Repairable