diff --git a/api/ConfirmLootRoll.lua b/api/ConfirmLootRoll.lua index 28fa1be..76ae132 100644 --- a/api/ConfirmLootRoll.lua +++ b/api/ConfirmLootRoll.lua @@ -1,10 +1,7 @@ ---@diagnostic disable: missing-return, lowercase-global ---@meta ----@param id number ----@param rollType 2 ----@param 0 ----@param 1 ----@param 2 +---@param id number +---@param rollType rollType ---Confirms the player's intent regarding an item up for loot rolling. Usable after the CONFIRM_LOOT_ROLL event fires, warning that an item binds on pickup. -function ConfirmLootRoll(id, rollType, 0, 1, 2) end \ No newline at end of file +function ConfirmLootRoll(id, rollType) end diff --git a/api/DeclineName.lua b/api/DeclineName.lua index 2994315..249bfa4 100644 --- a/api/DeclineName.lua +++ b/api/DeclineName.lua @@ -1,16 +1,13 @@ ---@diagnostic disable: missing-return, lowercase-global ---@meta ----@param name string ----@param gender 3 ----@param 1or nil ----@param 2 ----@param 3 ----@param declensionSet number ----@return string genitive ----@return string dative ----@return string accusative ----@return string instrumental ----@return string prepositional +---@param name string +---@param gender gender +---@param declensionSet number +---@return string genitive +---@return string dative +---@return string accusative +---@return string instrumental +---@return string prepositional ---Returns suggested declensions for a name. In the Russian language, nouns (including proper names) take different form based on their usage in a sentence. When the player enters the base name for a character or pet, the game suggests one or more sets of variations for the five additional cases; the player is asked to choose from among the suggestions and/or enter their own. (The set of declensions ultimately chosen/entered by the player are only used internally and not available to addons.) Has no effect in non-Russian-localized clients. -function DeclineName(name, gender, 1or nil, 2, 3, declensionSet) end \ No newline at end of file +function DeclineName(name, gender, declensionSet) end diff --git a/api/DestroyTotem.lua b/api/DestroyTotem.lua index 756a8a8..af007ac 100644 --- a/api/DestroyTotem.lua +++ b/api/DestroyTotem.lua @@ -1,10 +1,6 @@ ---@diagnostic disable: missing-return, lowercase-global ---@meta ----@param slot 4 ----@param 1 ----@param 2 ----@param 3 ----@param 4 +---@param slot totemSlot ---Destroys a specific totem (or ghoul). Totem functions are also used for ghouls summoned by a Death Knight's Raise Dead ability (if the ghoul is not made a controllable pet by the Master of Ghouls talent). -function DestroyTotem(slot, 1, 2, 3, 4) end \ No newline at end of file +function DestroyTotem(slot) end diff --git a/api/DoTradeSkill.lua b/api/DoTradeSkill.lua index ba9a942..9502301 100644 --- a/api/DoTradeSkill.lua +++ b/api/DoTradeSkill.lua @@ -1,7 +1,7 @@ ---@diagnostic disable: missing-return, lowercase-global ---@meta ----@param index number ----@param repeat number +---@param index number +---@param repeatn number ---Performs a trade skill recipe -function DoTradeSkill(index, repeat) end \ No newline at end of file +function DoTradeSkill(index, repeatn) end diff --git a/api/ExpandGuildTradeSkillHeader.lua b/api/ExpandGuildTradeSkillHeader.lua index e6c5226..08c072d 100644 --- a/api/ExpandGuildTradeSkillHeader.lua +++ b/api/ExpandGuildTradeSkillHeader.lua @@ -1,17 +1,6 @@ ---@diagnostic disable: missing-return, lowercase-global ---@meta ----@param professionID 773 ----@param 164 ----@param 165 ----@param 171 ----@param 182 ----@param 186 ----@param 197 ----@param 202 ----@param 333 ----@param 393 ----@param 755 ----@param 773 +---@param professionID professionID ---Expands the corresponding profession in the guild window. This function is used to expand a single profession in the guild window (professions view) based on its ID. Can also be done while window is not visible. See CollapseGuildTradeSkillHeader() for closing the view again. -function ExpandGuildTradeSkillHeader(professionID, 164, 165, 171, 182, 186, 197, 202, 333, 393, 755, 773) end \ No newline at end of file +function ExpandGuildTradeSkillHeader(professionID) end diff --git a/api/GetAttackPowerForStat.lua b/api/GetAttackPowerForStat.lua index cb1e67b..d9f7cbe 100644 --- a/api/GetAttackPowerForStat.lua +++ b/api/GetAttackPowerForStat.lua @@ -1,13 +1,8 @@ ---@diagnostic disable: missing-return, lowercase-global ---@meta ----@param statIndex 5 ----@param 1 ----@param 2 ----@param 3 ----@param 4 ----@param 5 ----@param effectiveStat number ----@return number attackPower +---@param statIndex statIndex +---@param effectiveStat number +---@return number attackPower ---Returns the attack power bonus provided by one of the player's basic statistics -function GetAttackPowerForStat(statIndex, 1, 2, 3, 4, 5, effectiveStat) end \ No newline at end of file +function GetAttackPowerForStat(statIndex, effectiveStat) end diff --git a/api/GetAuctionInvTypes.lua b/api/GetAuctionInvTypes.lua index 1e77b30..22abc3d 100644 --- a/api/GetAuctionInvTypes.lua +++ b/api/GetAuctionInvTypes.lua @@ -1,15 +1,15 @@ ---@diagnostic disable: missing-return, lowercase-global ---@meta ----@param classIndex number ----@param subClassIndex 5 ----@param 1 ----@param 2 ----@param 3 ----@param 4 ----@param 5 ----@return string token ----@return 1nil display ----@return list ... +---@alias subClassIndex +---| 1 - Miscellaneous +---| 2 - Cloth +---| 3 - Leather +---| 4 - Mail +---| 5 - Plate + +---@param classIndex number +---@param subClassIndex subClassIndex +---@return (string|boolean)[] #Pairs of token-display, try use {} to cram into table ---Returns a list of the inventory subtypes for a given auction house item subclass. Inventory types are the second level of hierarchy seen when browsing item classes (categories) and subclasses at the Auction House: Head, Neck, Shirt, et al for Miscellaneous; Head, Shoulder, Chest, Wrist, et al for Cloth; etc. This function still returns valid information if the player is not interacting with an auctioneer. -function GetAuctionInvTypes(classIndex, subClassIndex, 1, 2, 3, 4, 5) end \ No newline at end of file +function GetAuctionInvTypes(classIndex, subClassIndex) end