equipment: create equipment mod, add test equip

This commit is contained in:
Van
2026-04-17 17:24:10 +03:00
parent 7e46c858cc
commit 97084c9060
3 changed files with 25 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
local Item, TileSheet = Smc.requireItem(), Smc.requireTileSheet()
local EquipTileSheet = TileSheet:new('equipment_sheet.png', 16, 16)
Item:new({
settings = {
name = 'test_helmet',
inventory_image = EquipTileSheet:t(0, 0),
groups = {
equip_head = 2
}
}
})
Item:new({
settings = {
name = 'test_armor',
inventory_image = EquipTileSheet:t(1, 0),
groups = {
equip_torso = 2
}
}
})

View File

@@ -0,0 +1,2 @@
name = smc__game__items__equipment
depends = smc__core__item

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB