Clothing/item ECS & cleanup (#9706)

This commit is contained in:
Kara
2022-07-27 03:53:47 -07:00
committed by GitHub
parent 0f0420eca9
commit 258ec0cac1
164 changed files with 938 additions and 918 deletions

View File

@@ -1,4 +1,5 @@
using Content.Shared.Item;
using Content.Shared.Clothing.Components;
using Content.Shared.Item;
using Robust.Shared.Prototypes;
namespace Content.Shared.Inventory;
@@ -32,10 +33,6 @@ public partial class InventorySystem
return false;
}
// If this doesn't have an item component, then we can't do anything with it.
if (!HasComp<SharedItemComponent>(item))
return DeleteItem();
// We finally try to equip the item, otherwise we delete it.
return TryEquip(uid, item, slot, silent, force) || DeleteItem();
}