Refactoring body system to use containers and general body cleanup (#20202)
Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
This commit is contained in:
@@ -27,16 +27,9 @@ namespace Content.Server.Administration.Commands
|
||||
return;
|
||||
}
|
||||
|
||||
var bodySystem = _entManager.System<BodySystem>();
|
||||
|
||||
if (bodySystem.DropOrgan(entityUid))
|
||||
{
|
||||
shell.WriteLine($"Removed organ {_entManager.ToPrettyString(entityUid.Value)}");
|
||||
}
|
||||
else
|
||||
{
|
||||
shell.WriteError("Was not a mechanism, or did not have a parent.");
|
||||
}
|
||||
var xformSystem = _entManager.System<SharedTransformSystem>();
|
||||
xformSystem.AttachToGridOrMap(entityUid.Value);
|
||||
shell.WriteLine($"Removed organ {_entManager.ToPrettyString(entityUid.Value)}");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user