Всякие приколы с телекристаллами (#564)

* Crossbow telecrystal

* Other stuff

* Less power
This commit is contained in:
Aviu00
2023-12-11 18:11:48 +09:00
committed by Aviu00
parent d84f0896d5
commit 44efb7f6d9
10 changed files with 73 additions and 7 deletions

View File

@@ -1,5 +1,10 @@
using Content.Server.Body.Systems;
using System.Linq;
using Content.Server.Body.Systems;
using Content.Server.GameTicking.Rules.Components;
using Content.Server.Ghost.Components;
using Content.Server.Kitchen.Components;
using Content.Server.Mind.Components;
using Content.Server.Roles;
using Content.Shared.Body.Components;
using Content.Shared.Interaction;
using Content.Shared.Nutrition.Components;
@@ -59,6 +64,16 @@ public sealed class SharpSystem : EntitySystem
return;
}
// WD START
if (butcher.SyndieRoleRequired && !HasComp<NukeOperativeComponent>(user) && !HasComp<GhostComponent>(user) &&
TryComp(user, out MindContainerComponent? mc) && mc.Mind != null &&
!mc.Mind.Roles.OfType<TraitorRole>().Any())
{
_popupSystem.PopupEntity("Вы не можете разделать столь милое существо.", user, user);
return;
}
// WD END
if (TryComp<MobStateComponent>(target, out var mobState) && !_mobStateSystem.IsDead(target, mobState))
return;