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:
@@ -300,8 +300,8 @@ public sealed class ClimbSystem : SharedClimbSystem
|
||||
|
||||
if (!HasComp<ClimbingComponent>(user)
|
||||
|| !TryComp(user, out BodyComponent? body)
|
||||
|| !_bodySystem.BodyHasChildOfType(user, BodyPartType.Leg, body)
|
||||
|| !_bodySystem.BodyHasChildOfType(user, BodyPartType.Foot, body))
|
||||
|| !_bodySystem.BodyHasPartType(user, BodyPartType.Leg, body)
|
||||
|| !_bodySystem.BodyHasPartType(user, BodyPartType.Foot, body))
|
||||
{
|
||||
reason = Loc.GetString("comp-climbable-cant-climb");
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user