-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SMES and substation require power cells as machine parts (#20344)
* Initial commit * Balancing and tweaks
- Loading branch information
1 parent
3323b61
commit 535b013
Showing
10 changed files
with
117 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
Content.Server/Power/Components/UpgradePowerSupplyRampingComponent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
using Content.Server.Construction.Components; | ||
using Content.Shared.Construction.Prototypes; | ||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype; | ||
|
||
namespace Content.Server.Power.Components | ||
{ | ||
|
||
[RegisterComponent] | ||
public sealed partial class UpgradePowerSupplyRampingComponent : Component | ||
{ | ||
[ViewVariables(VVAccess.ReadWrite)] | ||
public float BaseRampRate; | ||
|
||
/// <summary> | ||
/// The machine part that affects the power supply ramping | ||
/// </summary> | ||
[DataField("machinePartPowerCapacity", customTypeSerializer: typeof(PrototypeIdSerializer<MachinePartPrototype>))] | ||
public string MachinePartRampRate = "Capacitor"; | ||
|
||
/// <summary> | ||
/// The multiplier used for scaling the power supply ramping | ||
/// </summary> | ||
[DataField("supplyRampingMultiplier")] | ||
public float SupplyRampingMultiplier = 1f; | ||
|
||
/// <summary> | ||
/// What type of scaling is being used? | ||
/// </summary> | ||
[DataField("scaling", required: true), ViewVariables(VVAccess.ReadWrite)] | ||
public MachineUpgradeScalingType Scaling; | ||
|
||
/// <summary> | ||
/// The current value that the power supply is being scaled by | ||
/// </summary> | ||
[DataField("actualScalar"), ViewVariables(VVAccess.ReadWrite)] | ||
public float ActualScalar = 1f; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters