Фикс спавна в дебаг сборке.
This commit is contained in:
parent
0d1a964d03
commit
bdcb5a0982
4 changed files with 10839 additions and 5 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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]
|
||||
|
|
|
|||
10821
Resources/Maps/_Sunrise/Station/dev_map.yml
Normal file
10821
Resources/Maps/_Sunrise/Station/dev_map.yml
Normal file
File diff suppressed because it is too large
Load diff
14
Resources/Prototypes/_Sunrise/Maps/debug.yml
Normal file
14
Resources/Prototypes/_Sunrise/Maps/debug.yml
Normal 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 ]
|
||||
Loading…
Add table
Reference in a new issue