diff --git a/Content.Server/Station/Systems/StationSpawningSystem.cs b/Content.Server/Station/Systems/StationSpawningSystem.cs index dbbe04fa16..3583223a90 100644 --- a/Content.Server/Station/Systems/StationSpawningSystem.cs +++ b/Content.Server/Station/Systems/StationSpawningSystem.cs @@ -68,6 +68,8 @@ public sealed class StationSpawningSystem : SharedStationSpawningSystem _spawnerCallbacks = new Dictionary>() { { SpawnPriorityPreference.Arrivals, _CP14expedition.HandlePlayerSpawning }, //CP14 expedition system replaced + { SpawnPriorityPreference.Cryosleep, _CP14expedition.HandlePlayerSpawning }, //CP14 expedition system replaced + /* { SpawnPriorityPreference.Cryosleep, ev => { @@ -76,7 +78,7 @@ public sealed class StationSpawningSystem : SharedStationSpawningSystem else _containerSpawnPointSystem.HandlePlayerSpawning(ev); } - } + }*/ }; } diff --git a/Content.Server/_CP14/Shuttles/CP14ExpeditionSystem.cs b/Content.Server/_CP14/Shuttles/CP14ExpeditionSystem.cs index 306d072b40..3ed4f482fa 100644 --- a/Content.Server/_CP14/Shuttles/CP14ExpeditionSystem.cs +++ b/Content.Server/_CP14/Shuttles/CP14ExpeditionSystem.cs @@ -35,7 +35,7 @@ public sealed class CP14ExpeditionSystem : EntitySystem SubscribeLocalEvent(OnPostInitSetupExpeditionShip); - SubscribeLocalEvent(OnArrivalsDocked); + SubscribeLocalEvent(OnExpeditionShipLanded); ArrivalTime = _cfgManager.GetCVar(CCVars.CP14ExpeditionArrivalTime); _cfgManager.OnValueChanged(CCVars.CP14ExpeditionArrivalTime, time => ArrivalTime = time, true); @@ -76,7 +76,7 @@ public sealed class CP14ExpeditionSystem : EntitySystem } } - private void OnArrivalsDocked(Entity ent, ref FTLCompletedEvent args) + private void OnExpeditionShipLanded(Entity ent, ref FTLCompletedEvent args) { //Some announsement logic? } @@ -114,8 +114,10 @@ public sealed class CP14ExpeditionSystem : EntitySystem var possiblePositions = new List(); while (points.MoveNext(out var uid, out var spawnPoint, out var xform)) { + if (ev.Job != null && spawnPoint.Job != ev.Job.Prototype) + continue; - if (spawnPoint.SpawnType != SpawnPointType.LateJoin || xform.GridUid != gridUid) + if (xform.GridUid != gridUid) continue; possiblePositions.Add(xform.Coordinates); diff --git a/Content.Shared/CCVar/CCVars.cs b/Content.Shared/CCVar/CCVars.cs index e9fb343a07..2d472219a6 100644 --- a/Content.Shared/CCVar/CCVars.cs +++ b/Content.Shared/CCVar/CCVars.cs @@ -13,7 +13,7 @@ namespace Content.Shared.CCVar #region CP14 public static readonly CVarDef CP14ExpeditionArrivalTime = - CVarDef.Create("cp14.arrival_time", 60f, CVar.SERVERONLY); + CVarDef.Create("cp14.arrival_time", 180f, CVar.SERVERONLY); #endregion