Item & PlayerInventoryUI: Bags now have the ability to filter items by groups

This commit is contained in:
Van
2026-04-28 19:30:32 +03:00
parent 0b372111cf
commit b314f7adf8
3 changed files with 104 additions and 4 deletions

View File

@@ -67,11 +67,13 @@ Item:new({
name = 'bag',
inventory_image = EquipTileSheet:t(4, 1),
groups = {
bag = 1,
equip_back = 1,
},
_itemstack_inventory_size = 24,
stack_max = 1,
_itemstack_inventory_background = 'equipment_bag_background_24_slots.png'
_itemstack_inventory_background = 'equipment_bag_background_24_slots.png',
_itemstack_inventory_disallowed_groups = {'bag'}
}
})
@@ -80,12 +82,14 @@ Item:new({
name = 'bag_thigh',
inventory_image = EquipTileSheet:t(5, 1),
groups = {
bag = 1,
equip_left_thigh = 1,
equip_right_thigh = 1
},
_itemstack_inventory_size = 16,
stack_max = 1,
_itemstack_inventory_background = 'equipment_bag_background_16_slots.png'
_itemstack_inventory_background = 'equipment_bag_background_16_slots.png',
_itemstack_inventory_disallowed_groups = {'bag'}
}
})