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:
Errant
2026-05-31 11:46:14 +02:00
committed by GitHub
parent 933fcbae9d
commit a19e63fd25
@@ -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)