48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
{'',itemname,''};
};
}
};
};
})
end
if not gem.foreign_amulet then
local img = sorcery.lib.image
local img_stone = img('sorcery_amulet.png'):multiply(sorcery.lib.color(gem.tone))
local img_sparkle = img('sorcery_amulet_sparkle.png')
local useamulet = function(stack,user,target)
local sp = sorcery.amulet.getspell(stack)
if not sp or not sp.cast then return nil end
|
|
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
{'',itemname,''};
};
}
};
};
})
end
gem.durability = gem.durability or (gem.hardness or 1) * 100
if not gem.foreign_amulet then
local img = sorcery.lib.image
local img_stone = img('sorcery_amulet.png'):multiply(sorcery.lib.color(gem.tone))
local img_sparkle = img('sorcery_amulet_sparkle.png')
local useamulet = function(stack,user,target)
local sp = sorcery.amulet.getspell(stack)
if not sp or not sp.cast then return nil end
|