landsandboat/scripts/items/beaming_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
661 B
Lua

-----------------------------------
-- ID: 6174
-- Item: Beaming Score
-- A musical score composed by Lewenhart.
-- Its notes symbolize the gently glowing beams of light that filter through the leaves of a deciduous tree in the late afternoon.
-- Adventurers note that reading it increases one's wind instrument skill.
-----------------------------------
---@type TItem
local itemObject = {}
itemObject.onItemCheck = function(target, item, param, caster)
return xi.itemUtils.skillBookCheck(target, xi.skill.WIND_INSTRUMENT)
end
itemObject.onItemUse = function(target)
xi.itemUtils.skillBookUse(target, xi.skill.WIND_INSTRUMENT)
end
return itemObject