Added overrideArmor

This commit is contained in:
Fierelier 2018-05-15 09:59:42 +02:00
parent 97e72b3143
commit 3a5d3d044c

View File

@ -42,6 +42,12 @@ namespace pdHealth
//if (pl.Health > overrideHealth) { Player.MaxHealth = overrideHealth; pl.Health = overrideHealth; }
if (pl.Health > overrideHealth) { pl.Health = overrideHealth; }
}
if (overrideArmor != -1) {
//if (pl.Armor > overrideArmor) { Player.MaxArmor = overrideArmor; pl.Armor = overrideArmor; }
if (pl.Armor > overrideArmor) { pl.Armor = overrideArmor; }
}
if (pl.isAlive == false) {
armorVal = -1;
healthVal = -1;