mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 10:21:18 +03:00
Strapable Supplybot (#43786)
* supplybot * fix for being able to buckle to itself
This commit is contained in:
parent
cfd925d9e7
commit
b383ea8504
2 changed files with 5 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -440,6 +440,9 @@
|
|||
- Supply
|
||||
- type: Puller
|
||||
needsHands: false
|
||||
- type: Strap
|
||||
position: Down
|
||||
rotation: -90
|
||||
|
||||
- type: entity
|
||||
parent: [ MobSiliconBase, MobCombat ]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue