Experimental Anomaly Vessel (#22233)

* experimental anomaly vessel

* sprote changes
This commit is contained in:
Nemanja
2023-12-08 13:50:41 -05:00
committed by GitHub
parent ea441ae876
commit e7e7974a24
20 changed files with 112 additions and 33 deletions

View File

@@ -1,8 +1,6 @@
using Content.Shared.Anomaly;
using Content.Shared.Construction.Prototypes;
using Robust.Shared.Audio;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
namespace Content.Server.Anomaly.Components;
@@ -25,22 +23,9 @@ public sealed partial class AnomalyVesselComponent : Component
/// <summary>
/// A multiplier applied to the amount of points generated.
/// </summary>
[ViewVariables(VVAccess.ReadWrite)]
[DataField, ViewVariables(VVAccess.ReadWrite)]
public float PointMultiplier = 1;
/// <summary>
/// The machine part that affects the point multiplier of the vessel
/// </summary>
[DataField("machinePartPointModifier", customTypeSerializer: typeof(PrototypeIdSerializer<MachinePartPrototype>))]
public string MachinePartPointModifier = "Capacitor";
/// <summary>
/// A value used to scale the point multiplier
/// with the corresponding part rating.
/// </summary>
[DataField("partRatingPointModifier")]
public float PartRatingPointModifier = 1.25f;
/// <summary>
/// The maximum time between each beep
/// </summary>