mirror of
https://github.com/space-wizards/space-station-14.git
synced 2026-02-14 19:29:53 +01:00
* Spray bottles with visible reagent contents * Fixed cargo catalog to correctly reference the new spray bottle rsi * Fixed indentation on rsi meta files * Updated copyright in spray_bottle.rsi meta * Update Resources/Prototypes/Entities/Objects/Specific/Janitorial/spray.yml Co-authored-by: āda <ss.adasts@gmail.com> * Updated to follow yml convention, modified to inherit from DrinkBase and renamed fill textures * Fixed solution names * Updated solution name in BorgMegaSprayBottle * de-hardcode solution name * less breaking --------- Co-authored-by: āda <ss.adasts@gmail.com> Co-authored-by: iaada <iaada@users.noreply.github.com>
46 lines
1.1 KiB
C#
46 lines
1.1 KiB
C#
using Content.Shared.FixedPoint;
|
|
using Content.Shared.Fluids.EntitySystems;
|
|
using Robust.Shared.Audio;
|
|
using Robust.Shared.Prototypes;
|
|
|
|
namespace Content.Shared.Fluids.Components;
|
|
|
|
[RegisterComponent]
|
|
[Access(typeof(SharedSpraySystem))]
|
|
public sealed partial class SprayComponent : Component
|
|
{
|
|
[DataField]
|
|
public string Solution = "spray";
|
|
|
|
[DataField]
|
|
public FixedPoint2 TransferAmount = 10;
|
|
|
|
[DataField]
|
|
public float SprayDistance = 3.5f;
|
|
|
|
[DataField]
|
|
public float SprayVelocity = 3.5f;
|
|
|
|
[DataField]
|
|
public EntProtoId SprayedPrototype = "Vapor";
|
|
|
|
[DataField]
|
|
public int VaporAmount = 1;
|
|
|
|
[DataField]
|
|
public float VaporSpread = 90f;
|
|
|
|
/// <summary>
|
|
/// How much the player is pushed back for each spray.
|
|
/// </summary>
|
|
[DataField]
|
|
public float PushbackAmount = 5f;
|
|
|
|
[DataField(required: true)]
|
|
[Access(typeof(SharedSpraySystem), Other = AccessPermissions.ReadExecute)] // FIXME Friends
|
|
public SoundSpecifier SpraySound { get; private set; } = default!;
|
|
|
|
[DataField]
|
|
public LocId SprayEmptyPopupMessage = "spray-component-is-empty-message";
|
|
}
|