Add Spaceshrooms (#17092)

Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
This commit is contained in:
forthbridge
2023-08-01 22:10:48 +08:00
committed by GitHub
parent 474b29cc16
commit 5fc7f21853
18 changed files with 369 additions and 54 deletions

View File

@@ -1,5 +1,4 @@
using Content.Server.Chemistry.EntitySystems;
using Content.Shared.FixedPoint;
using Content.Shared.Random;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
@@ -18,14 +17,8 @@ public sealed class RandomFillSolutionComponent : Component
public string Solution { get; set; } = "default";
/// <summary>
/// Weighted random prototype Id. Used to pick reagent.
/// Weighted random fill prototype Id. Used to pick reagent and quantity.
/// </summary>
[DataField("weightedRandomId", required: true, customTypeSerializer: typeof(PrototypeIdSerializer<WeightedRandomPrototype>))]
[DataField("weightedRandomId", required: true, customTypeSerializer: typeof(PrototypeIdSerializer<WeightedRandomFillSolutionPrototype>))]
public string WeightedRandomId { get; set; } = "default";
/// <summary>
/// Amount of reagent to add.
/// </summary>
[DataField("quantity")]
public FixedPoint2 Quantity { get; set; } = 0;
}