Revenant stuff (#110)

* - add: Chaplain cult shield immune.

* - add: Revenant stuff.
This commit is contained in:
Aviu00
2024-02-24 01:06:24 +09:00
committed by GitHub
parent 6d26bf8e5d
commit a411d14461
10 changed files with 225 additions and 29 deletions

View File

@@ -1,4 +1,5 @@
using Content.Server.Popups;
using Content.Server.Revenant.Components;
using Content.Server.Sound.Components;
using Content.Shared.Actions;
using Content.Shared.Audio;
@@ -93,12 +94,14 @@ namespace Content.Server.Bed.Sleep
private void OnSleepAction(EntityUid uid, MobStateComponent component, SleepActionEvent args)
{
TrySleeping(uid);
if (TrySleeping(uid) && TryComp(uid, out BlightComponent? blight)) // WD EDIT
blight.BedSleep = true;
}
private void OnBedSleepAction(EntityUid uid, ActionsContainerComponent component, SleepActionEvent args)
{
TrySleeping(args.Performer);
if (TrySleeping(args.Performer) && TryComp(args.Performer, out BlightComponent? blight)) // WD EDIT
blight.BedSleep = true;
}
private void OnWakeAction(EntityUid uid, MobStateComponent component, WakeActionEvent args)