landsandboat/scripts/items/cavernous_score.lua
claywar 6e4fa2af25
[type] Add type annotations to Item scripts
rename to reflect type definition

Annotate xi.itemUtils.foodOnItemCheck

Make TItemFood functions optional, since the definition does not include types
2024-08-24 18:25:26 -04:00

19 lines
627 B
Lua

-----------------------------------
-- ID: 6173
-- Item: Cavernous Score
-- A musical score composed by Lewenhart.
-- Its notes symbolize the damp and musty air that stagnates within an underground cave.
-- Adventurers note that reading it increases one's string instrument skill.
-----------------------------------
---@type TItem
local itemObject = {}
itemObject.onItemCheck = function(target, item, param, caster)
return xi.itemUtils.skillBookCheck(target, xi.skill.STRING_INSTRUMENT)
end
itemObject.onItemUse = function(target)
xi.itemUtils.skillBookUse(target, xi.skill.STRING_INSTRUMENT)
end
return itemObject