Remove IBody, IBodyPart, IMechanism and IMechanismBehavior (#4187)
* Remove IBody, IBodyPart, IMechanism and IMechanismBehavior interfaces * Summary cleanup
This commit is contained in:
@@ -144,7 +144,7 @@ namespace Content.Server.Toilet
|
||||
SuicideKind ISuicideAct.Suicide(IEntity victim, IChatManager chat)
|
||||
{
|
||||
// check that victim even have head
|
||||
if (victim.TryGetComponent<IBody>(out var body) &&
|
||||
if (victim.TryGetComponent<SharedBodyComponent>(out var body) &&
|
||||
body.HasPartOfType(BodyPartType.Head))
|
||||
{
|
||||
var othersMessage = Loc.GetString("{0:theName} sticks their head into {1:theName} and flushes it!", victim, Owner);
|
||||
|
||||
Reference in New Issue
Block a user