Skip to content

Commit

Permalink
Merge branch 'master' into Angle
Browse files Browse the repository at this point in the history
  • Loading branch information
DangerRevolution committed Jan 31, 2024
2 parents 30e4c14 + 0d31575 commit b2ff4a7
Show file tree
Hide file tree
Showing 9 changed files with 45,085 additions and 44,168 deletions.
14 changes: 12 additions & 2 deletions Content.Server/Spawners/EntitySystems/ContainerSpawnPointSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ private void OnSpawnPlayer(PlayerSpawningEvent args)
if (args.SpawnResult != null)
return;

// DeltaV - Prevent spawnpoint overrides from being ignored
if (args.DesiredSpawnPointType != null && args.DesiredSpawnPointType != SpawnPointType.Unset)
// DeltaV - Ignore these two desired spawn types
if (args.DesiredSpawnPointType is SpawnPointType.Observer or SpawnPointType.LateJoin)
return;

var query = EntityQueryEnumerator<ContainerSpawnPointComponent, ContainerManagerComponent, TransformComponent>();
Expand All @@ -38,6 +38,16 @@ private void OnSpawnPlayer(PlayerSpawningEvent args)
if (args.Station != null && _station.GetOwningStation(uid, xform) != args.Station)
continue;

// DeltaV - Custom override for override spawnpoints, only used for prisoners currently. This shouldn't run for any other jobs
if (args.DesiredSpawnPointType == SpawnPointType.Job)
{
if (spawnPoint.SpawnType != SpawnPointType.Job || spawnPoint.Job != args.Job?.Prototype)
continue;

possibleContainers.Add((uid, spawnPoint, container, xform));
continue;
}

// If it's unset, then we allow it to be used for both roundstart and midround joins
if (spawnPoint.SpawnType == SpawnPointType.Unset)
{
Expand Down
14 changes: 14 additions & 0 deletions Resources/Changelog/DeltaVChangelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1447,3 +1447,17 @@ Entries:
message: Made HCV cocktail less immediately lethal (damnation!!!)
id: 217
time: '2024-01-31T10:34:16.0000000+00:00'
- author: Adrian16199
changes:
- type: Tweak
message: Shoukou has received the cryopods.
id: 218
time: '2024-01-31T15:34:32.0000000+00:00'
- author: DebugOk
changes:
- type: Tweak
message: >-
Prisoners can now spawn from a special cryopod that can be put in
security, instead of magically appearing in a cell.
id: 219
time: '2024-01-31T22:02:05.0000000+00:00'
9 changes: 4 additions & 5 deletions Resources/ConfigPresets/DeltaV/deltav.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
[game]
desc = "Featuring loads of unique content and psionics."
lobbyenabled = true
lobbyduration = 240
round_end_pacifist = true
cryo_sleep_rejoining = true
desc = "Featuring loads of unique content and psionics."
lobbyenabled = true
lobbyduration = 240
round_end_pacifist = true

[infolinks]
discord = "https://go.delta-v.org/sxzqj"
Expand Down
Loading

0 comments on commit b2ff4a7

Please sign in to comment.