Mind Role Entities (#31318)
* Mind Role Entities wip * headrev count fix * silicon stuff, cleanup * exclusive antag config, cleanup * jobroleadd overwerite * logging stuff * MindHasRole cleanup, admin log stuff * last second cleanup * ocd * minor cleanup * remove createdTime datafield * now actually using the event replacement I made for role time tracking * weh
This commit is contained in:
@@ -12,10 +12,10 @@ namespace Content.Server.Spawners.EntitySystems;
|
||||
|
||||
public sealed class ContainerSpawnPointSystem : EntitySystem
|
||||
{
|
||||
[Dependency] private readonly GameTicker _gameTicker = default!;
|
||||
[Dependency] private readonly IRobustRandom _random = default!;
|
||||
[Dependency] private readonly IPrototypeManager _proto = default!;
|
||||
[Dependency] private readonly ContainerSystem _container = default!;
|
||||
[Dependency] private readonly GameTicker _gameTicker = default!;
|
||||
[Dependency] private readonly IPrototypeManager _proto = default!;
|
||||
[Dependency] private readonly IRobustRandom _random = default!;
|
||||
[Dependency] private readonly StationSystem _station = default!;
|
||||
[Dependency] private readonly StationSpawningSystem _stationSpawning = default!;
|
||||
|
||||
@@ -32,7 +32,7 @@ public sealed class ContainerSpawnPointSystem : EntitySystem
|
||||
|
||||
// If it's just a spawn pref check if it's for cryo (silly).
|
||||
if (args.HumanoidCharacterProfile?.SpawnPriority != SpawnPriorityPreference.Cryosleep &&
|
||||
(!_proto.TryIndex(args.Job?.Prototype, out var jobProto) || jobProto.JobEntity == null))
|
||||
(!_proto.TryIndex(args.Job, out var jobProto) || jobProto.JobEntity == null))
|
||||
{
|
||||
return;
|
||||
}
|
||||
@@ -49,7 +49,7 @@ public sealed class ContainerSpawnPointSystem : EntitySystem
|
||||
if (spawnPoint.SpawnType == SpawnPointType.Unset)
|
||||
{
|
||||
// make sure we also check the job here for various reasons.
|
||||
if (spawnPoint.Job == null || spawnPoint.Job == args.Job?.Prototype)
|
||||
if (spawnPoint.Job == null || spawnPoint.Job == args.Job)
|
||||
possibleContainers.Add((uid, spawnPoint, container, xform));
|
||||
continue;
|
||||
}
|
||||
@@ -61,7 +61,7 @@ public sealed class ContainerSpawnPointSystem : EntitySystem
|
||||
|
||||
if (_gameTicker.RunLevel != GameRunLevel.InRound &&
|
||||
spawnPoint.SpawnType == SpawnPointType.Job &&
|
||||
(args.Job == null || spawnPoint.Job == args.Job.Prototype))
|
||||
(args.Job == null || spawnPoint.Job == args.Job))
|
||||
{
|
||||
possibleContainers.Add((uid, spawnPoint, container, xform));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user