Holoclown (clown only) syndicate uplink item. (#18966)
* Holoclown (clown only) syndicate uplink item. * added clumsy to holoclown * holoclown now uses clown names, holoclown kits box now counts as boxhugs for crafting. * gibs holoparasite on death if has hands (this will cause the items in hands and pockets to drop.
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
using Content.Server.Inventory;
|
||||
using Content.Server.Popups;
|
||||
using Content.Server.Body.Systems;
|
||||
using Content.Shared.Actions;
|
||||
using Content.Shared.Audio;
|
||||
using Content.Shared.Damage;
|
||||
@@ -14,6 +16,7 @@ using Robust.Server.GameObjects;
|
||||
using Robust.Shared.Containers;
|
||||
using Robust.Shared.Player;
|
||||
using Robust.Shared.Utility;
|
||||
using Content.Shared.Hands.Components;
|
||||
|
||||
namespace Content.Server.Guardian
|
||||
{
|
||||
@@ -28,6 +31,7 @@ namespace Content.Server.Guardian
|
||||
[Dependency] private readonly SharedActionsSystem _actionSystem = default!;
|
||||
[Dependency] private readonly SharedHandsSystem _handsSystem = default!;
|
||||
[Dependency] private readonly SharedAudioSystem _audio = default!;
|
||||
[Dependency] private readonly BodySystem _bodySystem = default!;
|
||||
|
||||
public override void Initialize()
|
||||
{
|
||||
@@ -94,6 +98,9 @@ namespace Content.Server.Guardian
|
||||
if (component.HostedGuardian == null)
|
||||
return;
|
||||
|
||||
if (HasComp<HandsComponent>(component.HostedGuardian.Value))
|
||||
_bodySystem.GibBody(component.HostedGuardian.Value);
|
||||
|
||||
EntityManager.QueueDeleteEntity(component.HostedGuardian.Value);
|
||||
_actionSystem.RemoveAction(uid, component.Action);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user