Refactor CalculateAuctionDeposit to use alias for runTime parameter

This commit is contained in:
2025-05-18 00:43:51 +02:00
parent d7a79283fb
commit 5f352cbfbe

View File

@@ -1,10 +1,12 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
---@param runTime 2880
---@param 720
---@param 1440
---@param 2880
---@alias auctionRunTime
---| 720
---| 1440
---| 2880
---@param runTime auctionRunTime
---@return number deposit
---Returns the deposit amount for the item currently being set up for auction. Only returns useful information once an item has been placed in the Create Auction UI's "auction item" slot (see ClickAuctionSellItemButton()). Deposit amount for an auction varies based on the item being auction, the auction's proposed run time, and the auction house being used (i.e. faction or neutral).
function CalculateAuctionDeposit(runTime, 720, 1440, 2880) end
function CalculateAuctionDeposit(runTime) end