Strapable Supplybot (#43786)

* supplybot

* fix for being able to buckle to itself
This commit is contained in:
InsoPL 2026-10-04 15:29:52 +00:00 • committed by GitHub
parent cfd925d9e7
commit b383ea8504
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 2 deletions

View file

@ -260,7 +260,7 @@ public abstract partial class SharedBuckleSystem
if (!_container.IsInSameOrNoContainer((buckleUid, null, null), (strapUid, null, null)))
return false;
if (user != null && !HasComp<HandsComponent>(user))
if (user != null && !HasComp<HandsComponent>(user) && strapUid != user)
{
if (popup)
_popup.PopupEntity(Loc.GetString("buckle-component-no-hands-message"), user.Value, user);
@ -526,7 +526,7 @@ public abstract partial class SharedBuckleSystem
if (!_interaction.InRangeUnobstructed(user.Value, strap.Owner, buckle.Comp.Range, popup: popup))
return false;
if (user.Value != buckle.Owner && !ActionBlocker.CanComplexInteract(user.Value))
if (user.Value != buckle.Owner && !ActionBlocker.CanComplexInteract(user.Value) && user.Value != strap.Owner)
return false;
}

View file

@ -440,6 +440,9 @@
- Supply
- type: Puller
needsHands: false
- type: Strap
position: Down
rotation: -90
- type: entity
parent: [ MobSiliconBase, MobCombat ]