* system naming conventions * remove obsolete warnings * use EntityQueries * tube comp clean up * damage on turns * remove OnRelayMovement because it didn't work * reduce volume * reduce damage to 1.0
39 lines
1015 B
C#
39 lines
1015 B
C#
using Content.Server.Disposal.Unit.EntitySystems;
|
|
using Content.Shared.Damage;
|
|
using Robust.Shared.Audio;
|
|
using Robust.Shared.Containers;
|
|
|
|
namespace Content.Server.Disposal.Tube.Components;
|
|
|
|
[RegisterComponent]
|
|
[Access(typeof(DisposalTubeSystem), typeof(DisposableSystem))]
|
|
public sealed partial class DisposalTubeComponent : Component
|
|
{
|
|
[DataField]
|
|
public string ContainerId = "DisposalTube";
|
|
|
|
[ViewVariables]
|
|
public bool Connected;
|
|
|
|
[DataField]
|
|
public SoundSpecifier ClangSound = new SoundPathSpecifier("/Audio/Effects/clang.ogg");
|
|
|
|
/// <summary>
|
|
/// Container of entities that are currently inside this tube
|
|
/// </summary>
|
|
[ViewVariables]
|
|
public Container Contents = default!;
|
|
|
|
/// <summary>
|
|
/// Damage dealt to containing entities on every turn
|
|
/// </summary>
|
|
[DataField, ViewVariables(VVAccess.ReadWrite)]
|
|
public DamageSpecifier DamageOnTurn = new()
|
|
{
|
|
DamageDict = new()
|
|
{
|
|
{ "Blunt", 1.0 },
|
|
}
|
|
};
|
|
}
|