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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user