2025-06-13 14:15:48 +03:00
|
|
|
|
|
|
|
|
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)]
|
2025-06-15 21:25:58 +03:00
|
|
|
public List<ProtoId<JobPrototype>> Jobs = new();
|
2025-06-13 14:15:48 +03:00
|
|
|
|
|
|
|
|
[DataField(required: true)]
|
|
|
|
|
public MinMax Count = new(1, 1);
|
|
|
|
|
|
|
|
|
|
[DataField]
|
|
|
|
|
public float Prob = 1f;
|
|
|
|
|
}
|