Made armor-regenaration disableable

This commit is contained in:
Fierelier 2018-05-15 10:24:55 +02:00
parent 94bbbbb104
commit 6bd4804acb

View File

@ -75,6 +75,7 @@ namespace pdHealth
}
}
if (armorRegen > 0) {
if (pl.Armor < armorVal) { timeUntilRegen = armorRegenDelay; }
if (pl.Health < healthVal) { timeUntilRegen = armorRegenDelay; }
@ -87,6 +88,7 @@ namespace pdHealth
if (pl.Armor > armorRegen) { pl.Armor = armorRegen; }
}
}
}
armorVal = pl.Armor;
healthVal = pl.Health;