29 lines
962 B
C#
29 lines
962 B
C#
using Content.Shared.Construction.Prototypes;
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
|
|
|
namespace Content.Server.Power.Components
|
|
{
|
|
|
|
[RegisterComponent]
|
|
public sealed class UpgradeBatteryComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// The machine part that affects the power capacity.
|
|
/// </summary>
|
|
[DataField("machinePartPowerCapacity", customTypeSerializer: typeof(PrototypeIdSerializer<MachinePartPrototype>))]
|
|
public string MachinePartPowerCapacity = "Capacitor";
|
|
|
|
/// <summary>
|
|
/// The machine part rating is raised to this power when calculating power gain
|
|
/// </summary>
|
|
[DataField("maxChargeMultiplier")]
|
|
public float MaxChargeMultiplier = 2f;
|
|
|
|
/// <summary>
|
|
/// Power gain scaling
|
|
/// </summary>
|
|
[DataField("baseMaxCharge")]
|
|
public float BaseMaxCharge = 8000000;
|
|
}
|
|
}
|