Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

Commit 8412db5

Browse files
GacyrGacyr
authored andcommitted
Updated silverman script to use gib wound limit getter so it includes positive damaging attachables
1 parent 05b4db9 commit 8412db5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Techion.rte/Actors/Infantry/SilverMan/Regeneration.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ function Update(self)
1010
if self.regenTimer:IsPastSimMS(self.regenDelay) then
1111
self.regenTimer:Reset();
1212
if self.Health > 0 then
13-
local damageRatio = (self.WoundCount - self.lastWoundCount)/self.GibWoundLimit + (self.lastHealth - self.Health)/self.MaxHealth;
13+
local damageRatio = (self.WoundCount - self.lastWoundCount)/self:GetGibWoundLimit(true, false, false) + (self.lastHealth - self.Health)/self.MaxHealth;
1414
if damageRatio > 0 then
1515
self.regenDelay = self.regenDelay * (1 + damageRatio);
1616
else

0 commit comments

Comments
 (0)