`NarcolepsySystem` refactor (#40305)

* Refactor

* Update

* Update
This commit is contained in:
Winkarst-cpu
2025-09-16 21:29:48 +03:00
committed by GitHub
parent 138ea68076
commit 972adcee21
7 changed files with 119 additions and 87 deletions

View File

@@ -12,7 +12,7 @@ public sealed partial class ResetNarcolepsy : EventEntityEffect<ResetNarcolepsy>
/// The # of seconds the effect resets the narcolepsy timer to
/// </summary>
[DataField("TimerReset")]
public int TimerReset = 600;
public TimeSpan TimerReset = TimeSpan.FromSeconds(600);
protected override string? ReagentEffectGuidebookText(IPrototypeManager prototype, IEntitySystemManager entSys)
=> Loc.GetString("reagent-effect-guidebook-reset-narcolepsy", ("chance", Probability));