scram implant (#23122)

* implement

* fix charges

* add listing

* fixes

* fix locale, probably all done

* fix

* fix of fix

* move query init

* cleanup

* unbrokey rt
This commit is contained in:
Ilya246
2024-01-04 16:38:02 +04:00
committed by GitHub
parent abbb724849
commit ca529178e2
8 changed files with 146 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
using Content.Server.Implants;
using Robust.Shared.Audio;
namespace Content.Server.Implants.Components;
/// <summary>
/// Randomly teleports entity when triggered.
/// </summary>
[RegisterComponent]
public sealed partial class ScramImplantComponent : Component
{
/// <summary>
/// Up to how far to teleport the user
/// </summary>
[DataField, ViewVariables(VVAccess.ReadWrite)]
public float TeleportRadius = 100f;
/// <summary>
/// How many times to check for a valid tile to teleport to
/// </summary>
[DataField, ViewVariables(VVAccess.ReadOnly)]
public int TeleportAttempts = 20;
[DataField, ViewVariables(VVAccess.ReadWrite)]
public SoundSpecifier TeleportSound = new SoundPathSpecifier("/Audio/Effects/teleport_arrival.ogg");
}