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:
brainfood1183
2023-08-13 08:18:09 +01:00
committed by GitHub
parent 642d9b021f
commit ae5dcbabee
16 changed files with 204 additions and 4 deletions

View File

@@ -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);
}