Portal sprite & behavior tweaks (#19179)

* Portal repalette

* Portal traversal verb + anchoring

* map restriction

* optional max distance checks if we decide to have them later

* lower pointlight energy slightly hopefully makes it less garish
This commit is contained in:
Kara
2023-08-15 13:56:14 -07:00
committed by GitHub
parent 452f2112e8
commit 2e86f4c556
11 changed files with 106 additions and 18 deletions

View File

@@ -1,4 +1,5 @@
using Content.Server.Mind.Components;
using Content.Server.Ghost.Components;
using Content.Server.Mind.Components;
using Content.Shared.Administration.Logs;
using Content.Shared.Database;
using Content.Shared.Teleportation.Systems;
@@ -14,7 +15,7 @@ public sealed class PortalSystem : SharedPortalSystem
protected override void LogTeleport(EntityUid portal, EntityUid subject, EntityCoordinates source,
EntityCoordinates target)
{
if (HasComp<MindContainerComponent>(subject))
if (HasComp<MindContainerComponent>(subject) && !HasComp<GhostComponent>(subject))
_adminLogger.Add(LogType.Teleport, LogImpact.Low, $"{ToPrettyString(subject):player} teleported via {ToPrettyString(portal)} from {source} to {target}");
}
}