2022-10-04 02:59:39 +02:00
|
|
|
using Content.Shared.Construction.Prototypes;
|
|
|
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
|
|
|
|
|
|
|
|
|
namespace Content.Server.Power.Components
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
[RegisterComponent]
|
2023-08-22 18:14:33 -07:00
|
|
|
public sealed partial class UpgradeBatteryComponent : Component
|
2022-10-04 02:59:39 +02:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The machine part that affects the power capacity.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField("machinePartPowerCapacity", customTypeSerializer: typeof(PrototypeIdSerializer<MachinePartPrototype>))]
|
2023-10-12 11:06:03 -05:00
|
|
|
public string MachinePartPowerCapacity = "PowerCell";
|
2022-10-04 02:59:39 +02:00
|
|
|
|
|
|
|
|
/// <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;
|
|
|
|
|
}
|
|
|
|
|
}
|