mirror of
https://github.com/space-wizards/space-station-14.git
synced 2026-06-09 10:06:43 +02:00
Fix spawning as ghost on devmap (#44100)
* Fix spawning as ghost on devmap * Add passenger slots to Dev * Un-add passenger slots to Dev
This commit is contained in:
@@ -209,7 +209,12 @@ namespace Content.Server.GameTicking
|
||||
speciesId = weights.Pick(_robustRandom);
|
||||
}
|
||||
|
||||
character = HumanoidCharacterProfile.RandomWithSpecies(speciesId);
|
||||
// The random profile must retain the job priorities set by the player
|
||||
var jobs = character.JobPriorities;
|
||||
character = HumanoidCharacterProfile.RandomWithSpecies(speciesId).WithJobPriorities(jobs);
|
||||
|
||||
// This does not utilize overflow job slots, so if the character profile
|
||||
// had no available job priorities (ie Captain on Dev) set, then the player will spawn as a ghost
|
||||
}
|
||||
|
||||
// We raise this event to allow other systems to handle spawning this player themselves. (e.g. late-join wizard, etc)
|
||||
|
||||
Reference in New Issue
Block a user