27 lines
692 B
C#
27 lines
692 B
C#
using Robust.Shared.Audio;
|
|
|
|
namespace Content.Server.Silicon.Charge;
|
|
|
|
[RegisterComponent]
|
|
public sealed partial class BatteryDrinkerSourceComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// The max amount of power this source can provide in one sip.
|
|
/// No limit if null.
|
|
/// </summary>
|
|
[DataField]
|
|
public int? MaxAmount = null;
|
|
|
|
/// <summary>
|
|
/// The multiplier for the drink speed.
|
|
/// </summary>
|
|
[DataField]
|
|
public float DrinkSpeedMulti = 1f;
|
|
|
|
/// <summary>
|
|
/// The sound to play when the battery gets drunk from.
|
|
/// </summary>
|
|
[DataField]
|
|
public SoundSpecifier? DrinkSound = new SoundCollectionSpecifier("sparks");
|
|
}
|