31 lines
932 B
C#
31 lines
932 B
C#
namespace Content.Server._EE.Power.Components;
|
|
|
|
[RegisterComponent]
|
|
public sealed partial class BatteryDrinkerComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// Is this drinker allowed to drink batteries not tagged as <see cref="BatteryDrinkSource"/>?
|
|
/// </summary>
|
|
[DataField]
|
|
public bool DrinkAll;
|
|
|
|
/// <summary>
|
|
/// How long it takes to drink from a battery, in seconds.
|
|
/// Is multiplied by the source.
|
|
/// </summary>
|
|
[DataField]
|
|
public float DrinkSpeed = 1.5f;
|
|
|
|
/// <summary>
|
|
/// The multiplier for the amount of power to attempt to drink.
|
|
/// Default amount is 1000
|
|
/// </summary>
|
|
[DataField]
|
|
public float DrinkMultiplier = 5f;
|
|
|
|
/// <summary>
|
|
/// The multiplier for how long it takes to drink a non-source battery, if <see cref="DrinkAll"/> is true.
|
|
/// </summary>
|
|
[DataField]
|
|
public float DrinkAllMultiplier = 2.5f;
|
|
} |