This repository was archived by the owner on Jan 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
Data/Base.rte/Actors/Shared/Scripts Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 1
1
-- Self-healing script complete with animations, for AHuman use only
2
2
function Create (self )
3
3
self .baseHealDelay = 500 ;
4
+ self .woundDamageReturnRate = 0.5 ;
4
5
self .PieMenu :AddPieSlice (CreatePieSlice (" Self Heal" ), self );
5
6
self .healCrossParticle = CreateMOSParticle (" Particle Heal Effect" , " Base.rte" );
6
7
end
@@ -11,11 +12,7 @@ function Update(self)
11
12
if self .healing .wound then
12
13
if self .healing .timer :IsPastSimMS (self .healing .delay ) then
13
14
self .healing .timer :Reset ();
14
- if self .healing .part .DamageMultiplier > 1 then
15
- self .Health = math.min (self .Health + self .healing .wound .BurstDamage * math.sqrt (self .healing .part .DamageMultiplier ), self .MaxHealth );
16
- else
17
- self .Health = math.min (self .Health + self .healing .wound .BurstDamage * self .healing .part .DamageMultiplier , self .MaxHealth );
18
- end
15
+ self .Health = math.min (self .Health + self .healing .wound .BurstDamage * self .healing .part .DamageMultiplier * self .woundDamageReturnRate , self .MaxHealth );
19
16
self .healing .wound .ToDelete = true ;
20
17
self .healing .wound = nil ;
21
18
for wound in self .healing .part .Wounds do
You can’t perform that action at this time.
0 commit comments