2021-10-29 13:40:15 +01:00
|
|
|
using Content.Server.Chemistry.EntitySystems;
|
2021-06-09 22:19:39 +02:00
|
|
|
using Content.Shared.Chemistry.Components;
|
2021-11-03 16:48:03 -07:00
|
|
|
using Content.Shared.FixedPoint;
|
2021-03-21 09:12:03 -07:00
|
|
|
using Robust.Shared.Audio;
|
2021-01-24 14:18:12 +01:00
|
|
|
|
2021-06-09 22:19:39 +02:00
|
|
|
namespace Content.Server.Chemistry.Components
|
2021-01-24 14:18:12 +01:00
|
|
|
{
|
|
|
|
|
[RegisterComponent]
|
2023-08-22 18:14:33 -07:00
|
|
|
public sealed partial class HyposprayComponent : SharedHyposprayComponent
|
2021-01-24 14:18:12 +01:00
|
|
|
{
|
2023-07-13 20:20:46 +10:00
|
|
|
// TODO: This should be on clumsycomponent.
|
2021-11-22 23:51:51 -07:00
|
|
|
[DataField("clumsyFailChance")]
|
2021-03-05 01:08:38 +01:00
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
2023-07-13 20:20:46 +10:00
|
|
|
public float ClumsyFailChance = 0.5f;
|
2021-01-24 14:18:12 +01:00
|
|
|
|
2021-11-22 23:51:51 -07:00
|
|
|
[DataField("transferAmount")]
|
2021-03-05 01:08:38 +01:00
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
2023-07-13 20:20:46 +10:00
|
|
|
public FixedPoint2 TransferAmount = FixedPoint2.New(5);
|
2021-01-24 14:18:12 +01:00
|
|
|
|
2021-11-22 23:51:51 -07:00
|
|
|
[DataField("injectSound")]
|
2022-11-19 17:07:50 +01:00
|
|
|
public SoundSpecifier InjectSound = new SoundPathSpecifier("/Audio/Items/hypospray.ogg");
|
2023-09-07 18:49:02 +02:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Whether or not the hypo is able to inject only into mobs. On false you can inject into beakers/jugs
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField("onlyMobs")]
|
|
|
|
|
public bool OnlyMobs = true;
|
2021-01-24 14:18:12 +01:00
|
|
|
}
|
|
|
|
|
}
|