mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 10:21:18 +03: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:
parent
933fcbae9d
commit
a19e63fd25
1 changed files with 6 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue