Improvements and fixups for New Status Effect API (#38660)
This commit is contained in:
committed by
GitHub
parent
159c187971
commit
579b38b92b
@@ -1,4 +1,4 @@
|
||||
using Content.Server.StatusEffectNew;
|
||||
using Content.Server.StatusEffectNew;
|
||||
using Content.Shared.Bed.Sleep;
|
||||
using Content.Shared.Drowsiness;
|
||||
using Content.Shared.StatusEffectNew;
|
||||
@@ -47,7 +47,7 @@ public sealed class DrowsinessSystem : SharedDrowsinessSystem
|
||||
// Make sure the sleep time doesn't cut into the time to next incident.
|
||||
drowsiness.NextIncidentTime += duration;
|
||||
|
||||
_statusEffects.TryAddStatusEffect(statusEffect.AppliedTo.Value, SleepingSystem.StatusEffectForcedSleeping, duration);
|
||||
_statusEffects.TryAddStatusEffectDuration(statusEffect.AppliedTo.Value, SleepingSystem.StatusEffectForcedSleeping, duration);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user