Files
crystall-punk-14/Content.Server/_CP14/RandomJobs/CP14StationRandomJobsComponent.cs
Red b24ec5bc80 Bugfixes (#1432)
* fix #1428

* CodTenAlt review

* fix map tests

* real this time

* fix #1429

* add wheat and cotton into victorian gardens trade faction

* Update PostMapInitTest.cs
2025-06-15 21:25:58 +03:00

27 lines
644 B
C#

using Content.Shared.Destructible.Thresholds;
using Content.Shared.Roles;
using Robust.Shared.Prototypes;
namespace Content.Server._CP14.RandomJobs;
[RegisterComponent, Access(typeof(CP14StationRandomJobsSystem))]
public sealed partial class CP14StationRandomJobsComponent : Component
{
[DataField]
public List<CP14RandomJobEntry> Entries = new();
}
[Serializable, DataDefinition]
public sealed partial class CP14RandomJobEntry
{
[DataField(required: true)]
public List<ProtoId<JobPrototype>> Jobs = new();
[DataField(required: true)]
public MinMax Count = new(1, 1);
[DataField]
public float Prob = 1f;
}