[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

@@ -3,6 +3,7 @@ using Content.Shared.Mindshield.Components;
using Content.Shared.Popups;
using Content.Shared.Revolutionary.Components;
using Content.Shared.Stunnable;
using Content.Shared.White.Mood;
namespace Content.Shared.Revolutionary;
@@ -15,8 +16,22 @@ public sealed class SharedRevolutionarySystem : EntitySystem
{
base.Initialize();
SubscribeLocalEvent<MindShieldComponent, MapInitEvent>(MindShieldImplanted);
SubscribeLocalEvent<RevolutionaryComponent, ComponentInit>(OnInit); // WD EDIT
SubscribeLocalEvent<RevolutionaryComponent, ComponentShutdown>(OnShutdown); // WD EDIT
}
// WD START
private void OnShutdown(Entity<RevolutionaryComponent> ent, ref ComponentShutdown args)
{
RaiseLocalEvent(ent, new MoodRemoveEffectEvent("RevolutionFocused"));
}
private void OnInit(Entity<RevolutionaryComponent> ent, ref ComponentInit args)
{
RaiseLocalEvent(ent, new MoodEffectEvent("RevolutionFocused"));
}
// WD END
/// <summary>
/// When the mindshield is implanted in the rev it will popup saying they were deconverted. In Head Revs it will remove the mindshield component.
/// </summary>