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
@@ -92,7 +92,7 @@ public sealed class DamageOnInteractSystem : EntitySystem
|
||||
|
||||
// Attempt to paralyze the user after they have taken damage
|
||||
if (_random.Prob(entity.Comp.StunChance))
|
||||
_stun.TryParalyze(args.User, TimeSpan.FromSeconds(entity.Comp.StunSeconds), true);
|
||||
_stun.TryUpdateParalyzeDuration(args.User, TimeSpan.FromSeconds(entity.Comp.StunSeconds));
|
||||
}
|
||||
// Check if the entity's Throw bool is false, or if the entity has the PullableComponent, then if the entity is currently being pulled.
|
||||
// BeingPulled must be checked because the entity will be spastically thrown around without this.
|
||||
|
||||
Reference in New Issue
Block a user