Stunnable New Status and Cleanup (#38618)
Co-authored-by: Princess Cheeseballs <66055347+Pronana@users.noreply.github.com> Co-authored-by: pa.pecherskij <pa.pecherskij@interfax.ru>
This commit is contained in:
committed by
GitHub
parent
2b2b9b11b8
commit
e85bc1bb8c
@@ -46,7 +46,7 @@ public sealed class DamageOnHighSpeedImpactSystem : EntitySystem
|
||||
component.LastHit = _gameTiming.CurTime;
|
||||
|
||||
if (_robustRandom.Prob(component.StunChance))
|
||||
_stun.TryStun(uid, TimeSpan.FromSeconds(component.StunSeconds), true);
|
||||
_stun.TryUpdateStunDuration(uid, TimeSpan.FromSeconds(component.StunSeconds));
|
||||
|
||||
var damageScale = component.SpeedDamageFactor * speed / component.MinimumSpeed;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user