Skip to content

Commit

Permalink
Don't do this kids
Browse files Browse the repository at this point in the history
  • Loading branch information
sleepyyapril committed Jan 14, 2025
1 parent 897ef63 commit 33667be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Content.Server/Traits/Assorted/HeirloomSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ public sealed class HeirloomSystem : EntitySystem
{
[Dependency] private readonly IGameTiming _gameTiming = default!;

private const long HeirloomRepeatDuration = 60;
private TimeSpan _nextUpdate;


Expand All @@ -34,15 +35,14 @@ public override void Update(float frameTime)
var moodlet = comp.Moodlet;

if (children.Any(c => c != comp.Heirloom))
moodlet = "HeirloomLost";
continue;

var ev = new MoodEffectEvent(moodlet);
RaiseLocalEvent(uid, ev);
}

query.Dispose();

_nextUpdate = _gameTiming.CurTime + TimeSpan.FromSeconds(30);
_nextUpdate = _gameTiming.CurTime + TimeSpan.FromSeconds(HeirloomRepeatDuration);
}

private IEnumerable<EntityUid> RecursiveGetAllChildren(EntityUid uid)
Expand Down

0 comments on commit 33667be

Please sign in to comment.