HandsSystem Refactor (#38438)
* checkpoint * pt 2 * pt... i forgot * pt 4 * patch * More test fixes * optimization!!! * the REAL hand system * fix RetractableItemActionSystem.cs oversight * the review * test * remove test usage of body prototype * Update Content.IntegrationTests/Tests/Interaction/InteractionTest.cs Co-authored-by: Tayrtahn <tayrtahn@gmail.com> * hellcode * hellcode 2 * Minor cleanup * test * Chasing the last of the bugs * changes --------- Co-authored-by: Tayrtahn <tayrtahn@gmail.com>
This commit is contained in:
@@ -217,8 +217,8 @@ public sealed partial class BorgSystem
|
||||
|
||||
var handId = $"{uid}-item{component.HandCounter}";
|
||||
component.HandCounter++;
|
||||
_hands.AddHand(chassis, handId, HandLocation.Middle, hands);
|
||||
_hands.DoPickup(chassis, hands.Hands[handId], item, hands);
|
||||
_hands.AddHand((chassis, hands), handId, HandLocation.Middle);
|
||||
_hands.DoPickup(chassis, handId, item, hands);
|
||||
EnsureComp<UnremoveableComponent>(item);
|
||||
component.ProvidedItems.Add(handId, item);
|
||||
}
|
||||
@@ -239,7 +239,7 @@ public sealed partial class BorgSystem
|
||||
foreach (var (hand, item) in component.ProvidedItems)
|
||||
{
|
||||
QueueDel(item);
|
||||
_hands.RemoveHand(chassis, hand, hands);
|
||||
_hands.RemoveHand(chassis, hand);
|
||||
}
|
||||
component.ProvidedItems.Clear();
|
||||
return;
|
||||
@@ -252,7 +252,7 @@ public sealed partial class BorgSystem
|
||||
RemComp<UnremoveableComponent>(item);
|
||||
_container.Insert(item, component.ProvidedContainer);
|
||||
}
|
||||
_hands.RemoveHand(chassis, handId, hands);
|
||||
_hands.RemoveHand(chassis, handId);
|
||||
}
|
||||
component.ProvidedItems.Clear();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user