Added overrideArmor
This commit is contained in:
parent
97e72b3143
commit
3a5d3d044c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user