Made armor-regenaration disableable
This commit is contained in:
parent
94bbbbb104
commit
6bd4804acb
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user