Refactor body component to use slots instead of an army of dictionaries (#3749)
* Refactor body component to use slots instead of an army of dictionaries * Update vox * Replace static method call with extension * Add setpart method, replace dispose with shutdown * Fix tests, fix not listening to slot events when setting a part
This commit is contained in:
@@ -80,8 +80,8 @@ namespace Content.Server.GameObjects.Components.Movement
|
||||
return false;
|
||||
}
|
||||
|
||||
if (body.GetPartsOfType(BodyPartType.Leg).Count == 0 ||
|
||||
body.GetPartsOfType(BodyPartType.Foot).Count == 0)
|
||||
if (!body.HasPartOfType(BodyPartType.Leg) ||
|
||||
!body.HasPartOfType(BodyPartType.Foot))
|
||||
{
|
||||
reason = Loc.GetString("comp-climbable-cant-climb");
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user