This repository was archived by the owner on Jan 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Actors/Infantry/SilverMan Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -581,7 +581,7 @@ function MetaFight:StartActivity()
581
581
end
582
582
583
583
-- Further reduce value if actors are badly damaged in terms of wounds
584
- if Act .WoundCount / Act .TotalWoundLimit > 0.5 then
584
+ if Act .WoundCount / Act .GibWoundLimit > 0.5 then
585
585
value = value * 0.5
586
586
end
587
587
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ function Update(self)
10
10
if self .regenTimer :IsPastSimMS (self .regenDelay ) then
11
11
self .regenTimer :Reset ();
12
12
if self .Health > 0 then
13
- local damageRatio = (self .WoundCount - self .lastWoundCount )/ self .TotalWoundLimit + (self .lastHealth - self .Health )/ self .MaxHealth ;
13
+ local damageRatio = (self .WoundCount - self .lastWoundCount )/ self .GibWoundLimit + (self .lastHealth - self .Health )/ self .MaxHealth ;
14
14
if damageRatio > 0 then
15
15
self .regenDelay = self .regenDelay * (1 + damageRatio );
16
16
else
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ function Create(self)
35
35
end
36
36
end
37
37
-- Elaborate effect resistance strength calculations based on various Actor values
38
- local resistance = ((actor .Mass + size + actor .Material .StructuralIntegrity ) * 0.3 + (actor .TotalWoundLimit - actor .WoundCount ) + actor .Health ) * 0.5 ;
38
+ local resistance = ((actor .Mass + size + actor .Material .StructuralIntegrity ) * 0.3 + (actor .GibWoundLimit - actor .WoundCount ) + actor .Health ) * 0.5 ;
39
39
if resistance - strength < 0 then
40
40
-- Leave this Actor alone if it already has a disintegrator particle assigned to it
41
41
if ToActor (target ):NumberValueExists (" ToDisintegrate" ) then
You can’t perform that action at this time.
0 commit comments