From f4b839ca01ca6dae808e8741118916e2b0e9cfbb Mon Sep 17 00:00:00 2001 From: Vanic Date: Sun, 5 Oct 2025 20:21:23 +0300 Subject: [PATCH] Item.Settings: update annotations --- mods/CORE/Item/src/Item/Settings.lua | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/mods/CORE/Item/src/Item/Settings.lua b/mods/CORE/Item/src/Item/Settings.lua index ef2b263..97c67cc 100644 --- a/mods/CORE/Item/src/Item/Settings.lua +++ b/mods/CORE/Item/src/Item/Settings.lua @@ -26,7 +26,7 @@ Settings.visual = "" ---`key` = name, `value` = rating; `rating` = number. --- ---If rating not applicable, use 1. ----@type table? +---@type table? Settings.groups = nil @@ -52,7 +52,7 @@ Settings.wield_image = nil Settings.wield_overlay = nil ---Scale for the item when held in hand. ----@type table? +---@type Position? Settings.wield_scale = nil @@ -67,7 +67,7 @@ Settings.palette = nil ---Color the item is colorized with. The palette overrides this. ---It is a colorspec. ----@type string? +---@type string|ColorSpec|nil Settings.color = nil ---Maximum amount of items that can be in a single stack. @@ -154,8 +154,7 @@ Settings.node_dig_prediction = nil ---* * The behavior of "user" may change in the future. ---The default value is "user". --- ----TODO: сделать или подтянуть из какого-нибудь helpers тип этой таблицы ----@type table? +---@type table? Settings.touch_interaction = nil @@ -163,8 +162,7 @@ Settings.touch_interaction = nil ---Definition of item sounds to be played at various events. ---All fields in this table are optional. --- ----TODO: сделать или подтянуть из какого-нибудь helpers тип этой таблицы ----@type table? +---@type table? Settings.sound = nil