diff --git a/paydayHealth.cs b/paydayHealth.cs index ed31ff1..e460a18 100644 --- a/paydayHealth.cs +++ b/paydayHealth.cs @@ -71,6 +71,11 @@ namespace pdHealth } } + if (pl.Armor < armorVal) { + if (armorDefense < 1.0F) { + pl.Health = (int)Math.Round(pl.Health - ((armorVal - pl.Armor)*1.0f-armorDefense)); + } + } if (timeUntilRegen > 0) { timeUntilRegen = timeUntilRegen - tickTime; if (timeUntilRegen < 0) { timeUntilRegen = 0; }