Cleans up NPC and Human YAML and adds tags for Teleportable and FootstepSound (#3371)

* GlassBeaker and FirelockElectronics

* Teleportable + Fixed parented Mobs

* Moved the small tag stuff outta this PR, this is a MOB PR nowgit add .

* FootstepSound

* FootstepSound fixed

* Teleportable

* Added Tags
This commit is contained in:
Swept
2021-02-23 07:20:35 +00:00
committed by GitHub
parent c12e590c33
commit 898996abe9
27 changed files with 40 additions and 211 deletions

View File

@@ -1,7 +1,8 @@
#nullable enable
#nullable enable
using System;
using System.Collections.Generic;
using Content.Shared.GameObjects.Components.Portal;
using Content.Shared.GameObjects.Components.Tag;
using Robust.Server.GameObjects;
using Robust.Shared.GameObjects;
using Robust.Shared.Serialization;
@@ -110,7 +111,7 @@ namespace Content.Server.GameObjects.Components.Portal
{
// TODO: Check if it's slotted etc. Otherwise the slot item itself gets ported.
return !ImmuneEntities.Contains(entity) &&
entity.HasComponent<TeleportableComponent>();
entity.HasTag("Teleportable");
}
public void StartCooldown()