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

Commit 08dd419

Browse files
GacyrGacyr
authored andcommitted
Forgot to commit these, oops
1 parent 0b870cb commit 08dd419

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Base.rte/Activities/MetaFight.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ function MetaFight:StartActivity()
581581
end
582582

583583
-- 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
585585
value = value * 0.5
586586
end
587587

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.TotalWoundLimit + (self.lastHealth - self.Health)/self.MaxHealth;
13+
local damageRatio = (self.WoundCount - self.lastWoundCount)/self.GibWoundLimit + (self.lastHealth - self.Health)/self.MaxHealth;
1414
if damageRatio > 0 then
1515
self.regenDelay = self.regenDelay * (1 + damageRatio);
1616
else

Techion.rte/Devices/Shared/Scripts/Disintegrator.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function Create(self)
3535
end
3636
end
3737
--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;
3939
if resistance - strength < 0 then
4040
--Leave this Actor alone if it already has a disintegrator particle assigned to it
4141
if ToActor(target):NumberValueExists("ToDisintegrate") then

0 commit comments

Comments
 (0)