CatStation/Content.Shared/Maps/GameMapPrototype.JobWeights.cs
metalgearsloth 4310a9e6d8
Job weight rework (#45056)
* Job weight rework

Instead of global job priorities we do:
- Fill up minimum job slots first by priority. Has same-department / anyone / never fallbacks.
- Players get their jobs by pref, filling up up to roundstart values on gamemapprototype (AKA maximums)

Default weights are used if the map doesn't specify.

* a

* I square to god
2026-08-08 01:44:53 +00:00

13 lines
353 B
C#

using Content.Shared.Roles;
using Robust.Shared.Prototypes;
namespace Content.Shared.Maps;
public sealed partial class GameMapPrototype
{
/// <summary>
/// Optional map-specific job weighting profile. Jobs omitted from it use the global default profile.
/// </summary>
[DataField]
public ProtoId<JobWeightPrototype>? JobWeights;
}