Misc mind tweaks and fixes (#20614)

This commit is contained in:
Leon Friedrich
2023-10-07 12:00:48 +11:00
committed by GitHub
parent ec452aa4a3
commit 427cae2d25
6 changed files with 98 additions and 12 deletions

View File

@@ -27,8 +27,8 @@ namespace Content.Server.Ghost
var minds = _entities.System<SharedMindSystem>();
if (!minds.TryGetMind(player, out var mindId, out var mind))
{
shell.WriteLine("You have no Mind, you can't ghost.");
return;
mindId = minds.CreateMind(player.UserId);
mind = _entities.GetComponent<MindComponent>(mindId);
}
if (!EntitySystem.Get<GameTicker>().OnGhostAttempt(mindId, true, true, mind))