Simplifying Machine Upgrading (#15802)

This commit is contained in:
Nemanja
2023-04-28 23:23:49 -04:00
committed by GitHub
parent cedec8d415
commit 823c8204c9
49 changed files with 199 additions and 499 deletions

View File

@@ -39,26 +39,6 @@ public sealed class EmitterComponent : Component
[DataField("powerUseActive")]
public int PowerUseActive = 600;
/// <summary>
/// The base amount of power that is consumed.
/// Used in machine part rating calculations.
/// </summary>
[DataField("basePowerUseActive"), ViewVariables(VVAccess.ReadWrite)]
public int BasePowerUseActive = 600;
/// <summary>
/// Multiplier that is applied to the basePowerUseActive
/// to get the actual power use.
/// </summary>
[DataField("powerUseMultiplier")]
public float PowerUseMultiplier = 0.75f;
/// <summary>
/// The machine part used to reduce the power use of the machine.
/// </summary>
[DataField("machinePartPowerUse", customTypeSerializer: typeof(PrototypeIdSerializer<MachinePartPrototype>))]
public string MachinePartPowerUse = "Capacitor";
/// <summary>
/// The amount of shots that are fired in a single "burst"
/// </summary>
@@ -114,7 +94,7 @@ public sealed class EmitterComponent : Component
/// The machine part that affects burst delay.
/// </summary>
[DataField("machinePartFireRate", customTypeSerializer: typeof(PrototypeIdSerializer<MachinePartPrototype>))]
public string MachinePartFireRate = "Laser";
public string MachinePartFireRate = "Capacitor";
/// <summary>
/// The visual state that is set when the emitter is turned on