Aghost tweaks (#12373)

This commit is contained in:
Leon Friedrich
2022-11-04 12:40:01 +13:00
committed by GitHub
parent c0abea8047
commit af1b255524
6 changed files with 21 additions and 13 deletions

View File

@@ -240,8 +240,8 @@ public abstract partial class InventorySystem
return true;
// Is the actor currently stripping the target? Here we could check if the actor has the stripping UI open, but
// that requires server/client specific code. so lets just check if they **could** open the stripping UI.
// Note that this doesn't check that the item is equipped by the target, as this is done elsewhere.
// that requires server/client specific code.
// Uhhh TODO, fix this. This doesn't even fucking check if the target item is IN the targets inventory.
return actor != target &&
HasComp<SharedStrippableComponent>(target) &&
HasComp<SharedStrippingComponent>(actor) &&