[Fix] Mood system fix (#439)

* mood back

* fix ready
This commit is contained in:
HitPanda
2023-09-25 01:44:44 +03:00
committed by Aviu00
parent c58225fc98
commit 2cd1656188
47 changed files with 1221 additions and 7 deletions

View File

@@ -30,6 +30,7 @@ using Content.Shared.Verbs;
using Content.Shared.Weapons.Melee.Events;
using Robust.Shared.Audio.Systems;
using Content.Shared.White.EndOfRoundStats.CuffedTime;
using Content.Shared.White.Mood;
using Robust.Shared.Containers;
using Robust.Shared.Network;
using Robust.Shared.Player;
@@ -172,9 +173,15 @@ namespace Content.Shared.Cuffs
_actionBlocker.UpdateCanMove(uid);
if (component.CanStillInteract)
{
_alerts.ClearAlert(uid, AlertType.Handcuffed);
RaiseLocalEvent(uid, new MoodRemoveEffectEvent("Handcuffed")); //WD edit
}
else
{
_alerts.ShowAlert(uid, AlertType.Handcuffed);
RaiseLocalEvent(uid, new MoodEffectEvent("Handcuffed")); // WD edit
}
var ev = new CuffedStateChangeEvent();
RaiseLocalEvent(uid, ref ev);