* fix #1428 * CodTenAlt review * fix map tests * real this time * fix #1429 * add wheat and cotton into victorian gardens trade faction * Update PostMapInitTest.cs
27 lines
644 B
C#
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;
|
|
}
|