CatStation/Content.Server/Chemistry/Components/RandomFillSolutionComponent.cs
deltanedas cf7fde3d62
Big prototype and datafield cleanup (#45202)
* giant protoid cleanup

* yml changes

* !

---------

Co-authored-by: deltanedas <@deltanedas:goida.zip>
2026-08-12 02:07:22 +00:00

24 lines
770 B
C#

using Content.Server.Chemistry.EntitySystems;
using Content.Shared.Random;
using Robust.Shared.Prototypes;
namespace Content.Server.Chemistry.Components;
/// <summary>
/// Fills a solution container randomly using a weighted random prototype
/// </summary>
[RegisterComponent, Access(typeof(SolutionRandomFillSystem))]
public sealed partial class RandomFillSolutionComponent : Component
{
/// <summary>
/// Solution name which to add reagents to.
/// </summary>
[DataField]
public string Solution = "solution";
/// <summary>
/// Weighted random fill prototype Id. Used to pick reagent and quantity.
/// </summary>
[DataField(required: true)]
public ProtoId<WeightedRandomFillSolutionPrototype>? WeightedRandomId;
}