Machine Battery Scaling (SMES/Substation) (#11662)
Co-authored-by: CommieFlowers <rasmus.cedergren@hotmail.com>
This commit is contained in:
28
Content.Server/Power/Components/UpgradeBatteryComponent.cs
Normal file
28
Content.Server/Power/Components/UpgradeBatteryComponent.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user