Improvements and fixups for New Status Effect API (#38660)

This commit is contained in:
Princess Cheeseballs
2025-07-02 10:46:30 -07:00
committed by GitHub
parent 159c187971
commit 579b38b92b
6 changed files with 210 additions and 97 deletions

View File

@@ -53,7 +53,7 @@ public sealed class NarcolepsySystem : EntitySystem
// Make sure the sleep time doesn't cut into the time to next incident.
narcolepsy.NextIncidentTime += duration;
_statusEffects.TryAddStatusEffect(uid, SleepingSystem.StatusEffectForcedSleeping, TimeSpan.FromSeconds(duration));
_statusEffects.TryAddStatusEffectDuration(uid, SleepingSystem.StatusEffectForcedSleeping, TimeSpan.FromSeconds(duration));
}
}
}