Files
tbd-station-14/Content.Server/Research/TechnologyDisk/Components/TechnologyDiskComponent.cs
Nemanja e62c11dd85 Tech disk 4891 (#16752)
* Tech disk gacha

* customtypeserializer
2023-05-25 16:07:39 -06:00

21 lines
724 B
C#

using Content.Shared.Random;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
namespace Content.Server.Research.TechnologyDisk.Components;
[RegisterComponent]
public sealed class TechnologyDiskComponent : Component
{
/// <summary>
/// The recipe that will be added. If null, one will be randomly generated
/// </summary>
[DataField("recipes")]
public List<string>? Recipes;
/// <summary>
/// A weighted random prototype for how rare each tier should be.
/// </summary>
[DataField("tierWeightPrototype", customTypeSerializer: typeof(PrototypeIdSerializer<WeightedRandomPrototype>))]
public string TierWeightPrototype = "TechDiskTierWeights";
}