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