* 10 -> 20 sharpening stone durability * auto destroy demiplans try 2 (better) * start demiplan protection time * buying demiplan key * increase island size
30 lines
857 B
C#
30 lines
857 B
C#
using Robust.Shared.Audio;
|
|
|
|
namespace Content.Shared._CP14.DemiplaneTraveling;
|
|
|
|
/// <summary>
|
|
/// teleports a certain number of entities between demiplanes with a delay
|
|
/// </summary>
|
|
[RegisterComponent, AutoGenerateComponentPause]
|
|
public sealed partial class CP14DemiplaneRadiusTimedPasswayComponent : Component
|
|
{
|
|
[DataField]
|
|
public int MaxEntities = 3;
|
|
|
|
[DataField]
|
|
public TimeSpan Delay = TimeSpan.FromSeconds(10f);
|
|
|
|
[DataField]
|
|
public float Radius = 3f;
|
|
|
|
[DataField]
|
|
[AutoPausedField]
|
|
public TimeSpan NextTimeTeleport = TimeSpan.Zero;
|
|
|
|
[DataField("arrivalSound")]
|
|
public SoundSpecifier ArrivalSound = new SoundPathSpecifier("/Audio/Effects/teleport_arrival.ogg");
|
|
|
|
[DataField("departureSound")]
|
|
public SoundSpecifier DepartureSound = new SoundPathSpecifier("/Audio/Effects/teleport_departure.ogg");
|
|
}
|