Фикс спавна в дебаг сборке.

This commit is contained in:
Vigers Ray 2024-12-11 04:56:18 +03:00
parent 0d1a964d03
commit bdcb5a0982
4 changed files with 10839 additions and 5 deletions

View file

@ -375,10 +375,8 @@ public sealed partial class StationJobsSystem : EntitySystem
{
if (!Resolve(station, ref stationJobs))
throw new ArgumentException("Tried to use a non-station entity as a station!", nameof(station));
//return stationJobs.OverflowJobs;
// Sunrise-Edit: Так как у нас неограничены не только пассажиры а и другие роли это не работает корректно, отправляя игроков играть за охранников КТ.
return new HashSet<ProtoId<JobPrototype>>();
return stationJobs.OverflowJobs;
}
/// <summary>
@ -423,6 +421,7 @@ public sealed partial class StationJobsSystem : EntitySystem
/// <returns>The selected job, if any.</returns>
public ProtoId<JobPrototype>? PickBestAvailableJobWithPriority(EntityUid station, IReadOnlyDictionary<ProtoId<JobPrototype>, JobPriority> jobPriorities, bool pickOverflows, IReadOnlySet<ProtoId<JobPrototype>>? disallowedJobs = null)
{
Logger.Info("PickBestAvailableJobWithPriority");
if (station == EntityUid.Invalid)
return null;

View file

@ -2,7 +2,7 @@
# Straight in-game baby
lobbyenabled = false
# Dev map for faster loading & convenience
map = "Dev"
map = "SunriseDev" # Sunrise-Edit
role_timers = false
[ghost]

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,14 @@
- type: gameMap
id: SunriseDev
mapName: Dev
mapPath: /Maps/_Sunrise/Station/dev_map.yml
minPlayers: 0
stations:
Dev:
stationProto: StandardNanotrasenStation
components:
- type: StationNameSetup
mapNameTemplate: "Dev"
- type: StationJobs
availableJobs:
Captain: [ -1, -1 ]