33 lines
927 B
C#
33 lines
927 B
C#
using Content.Shared._DV.Storage.EntitySystems;
|
|
using Content.Shared.FixedPoint;
|
|
using Robust.Shared.Containers;
|
|
using Robust.Shared.GameStates;
|
|
using Robust.Shared.Prototypes;
|
|
namespace Content.Shared._DV.Storage.Components;
|
|
|
|
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
|
|
[Access(typeof(SharedMouthStorageSystem))]
|
|
public sealed partial class MouthStorageComponent : Component
|
|
{
|
|
public const string MouthContainerId = "mouth";
|
|
|
|
[DataField, AutoNetworkedField]
|
|
public EntProtoId? OpenStorageAction;
|
|
|
|
[DataField, AutoNetworkedField]
|
|
public EntityUid? Action;
|
|
|
|
[DataField]
|
|
public EntProtoId MouthProto = "ActionOpenMouthStorage";
|
|
|
|
[ViewVariables]
|
|
public Container Mouth = default!;
|
|
|
|
[DataField]
|
|
public EntityUid? MouthId;
|
|
|
|
// Mimimum inflicted damage on hit to spit out items
|
|
[DataField]
|
|
public FixedPoint2 SpitDamageThreshold = FixedPoint2.New(2);
|
|
}
|