Release 1.9.7.0 - Summer Update 2025

This commit is contained in:
Regalis11
2025-06-17 16:38:11 +03:00
parent 22227f13e5
commit ea5a2bc693
297 changed files with 7344 additions and 2421 deletions
@@ -220,6 +220,22 @@ namespace Barotrauma
return false;
}
/// <summary>
/// Can the item be put in the inventory in a slot of the specified type (i.e. is there a suitable free slot or a stack the item can be put in).
/// </summary>
public bool CanBePut(Item item, InvSlotType slotType)
{
for (int i = 0; i < capacity; i++)
{
if (slotType.HasFlag(SlotTypes[i]))
{
if (CanBePutInSlot(item, i)) { return true; }
}
}
return false;
}
public override bool CanBePutInSlot(Item item, int i, bool ignoreCondition = false)
{
return