hardsuit clothing should be large and not fit in pockets (#5368)

Co-authored-by: xRiriq <xRiriq.git@gmail.com>
This commit is contained in:
xRiriq
2021-11-16 19:05:41 -05:00
committed by GitHub
parent 4b6b33e742
commit ad4db6ba00
3 changed files with 7 additions and 2 deletions

View File

@@ -231,9 +231,10 @@ namespace Content.Server.Inventory.Components
reason = controllerReason ?? reason;
}
if (!pass && reason == null)
if (!pass)
{
reason = Loc.GetString("inventory-component-can-equip-cannot");
reason = reason ?? Loc.GetString("inventory-component-can-equip-cannot");
return false;
}
var canEquip = pass && _slotContainers[slot].CanInsert(item.Owner);