[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

@@ -21,7 +21,8 @@ using Content.Shared.Mobs; // WD
using Content.Shared.Mobs.Components; // WD
using Content.Shared.Mobs.Systems;
using Content.Shared.Popups; // WD
using Content.Shared.White.CPR.Events; // WD
using Content.Shared.White.CPR.Events;
using Content.Shared.White.Mood; // WD
using JetBrains.Annotations;
using Robust.Server.Audio; // WD
using Robust.Shared.Audio; // WD
@@ -188,6 +189,7 @@ namespace Content.Server.Body.Systems
if (respirator.SuffocationCycles >= respirator.SuffocationCycleThreshold)
{
_alertsSystem.ShowAlert(uid, AlertType.LowOxygen);
RaiseLocalEvent(uid, new MoodEffectEvent("Suffocating")); // WD edit
}
_damageableSys.TryChangeDamage(uid, respirator.Damage, false, false);
@@ -343,6 +345,8 @@ namespace Content.Server.Body.Systems
args.Repeat = true;
else
component.CPRPerformedBy = null;
RaiseLocalEvent(args.User, new MoodEffectEvent("SavedLife"));
}
//WD end
}