tweak: понизил дамаг по стамине и время стана

This commit is contained in:
CaYpeN1
2024-03-21 14:14:18 +05:00
parent 92156fbd45
commit 022f6ad355
2 changed files with 4 additions and 4 deletions

View File

@@ -54,7 +54,7 @@ public sealed class NarcoticEffect : EntitySystem
switch (component.Effects[index]) switch (component.Effects[index])
{ {
case "TremorAndShake" when _statusEffectsSystem.HasStatusEffect(uid, "Drunk", statusEffectsComp): case "TremorAndShake" when _statusEffectsSystem.HasStatusEffect(uid, "Drunk", statusEffectsComp):
Timer.SpawnRepeating(timer, () => _stamina.TakeStaminaDamage(uid, 20F), token); Timer.SpawnRepeating(timer, () => _stamina.TakeStaminaDamage(uid, 15F), token);
_statusEffectsSystem.TryAddTime(uid, "Drunk", TimeSpan.FromSeconds(slur), statusEffectsComp); _statusEffectsSystem.TryAddTime(uid, "Drunk", TimeSpan.FromSeconds(slur), statusEffectsComp);
break; break;
@@ -72,12 +72,12 @@ public sealed class NarcoticEffect : EntitySystem
break; break;
case "TremorAndShake": case "TremorAndShake":
Timer.SpawnRepeating(timer, () => _stamina.TakeStaminaDamage(uid, 20F), token); Timer.SpawnRepeating(timer, () => _stamina.TakeStaminaDamage(uid, 15F), token);
_statusEffectsSystem.TryAddStatusEffect<DrunkComponent>(uid, "Drunk", TimeSpan.FromSeconds(slur), true, statusEffectsComp); _statusEffectsSystem.TryAddStatusEffect<DrunkComponent>(uid, "Drunk", TimeSpan.FromSeconds(slur), true, statusEffectsComp);
break; break;
case "Tremor": case "Tremor":
Timer.SpawnRepeating(timer, () => _stamina.TakeStaminaDamage(uid, 20F), token); Timer.SpawnRepeating(timer, () => _stamina.TakeStaminaDamage(uid, 15F), token);
break; break;
case "Shake": case "Shake":

View File

@@ -9,7 +9,7 @@ namespace Content.Server._White.Chemistry;
public sealed partial class NarcoticEffectComponent : Component public sealed partial class NarcoticEffectComponent : Component
{ {
[ViewVariables(VVAccess.ReadWrite), DataField] [ViewVariables(VVAccess.ReadWrite), DataField]
public float StunTime = 2.5f; public float StunTime = 2f;
[ViewVariables(VVAccess.ReadWrite), DataField] [ViewVariables(VVAccess.ReadWrite), DataField]
public CancellationTokenSource cancelTokenSource = new(); public CancellationTokenSource cancelTokenSource = new();