diff --git a/datatype/_pet.lua b/datatype/_pet.lua index 5aad88e..3357af9 100644 --- a/datatype/_pet.lua +++ b/datatype/_pet.lua @@ -2,16 +2,16 @@ ---@diagnostic disable: duplicate-set-field ---@class pet ----@field Combat boolean Combat state ----@field Ghold boolean GHold state ----@field Hold boolean Hold state ----@field ReGroup boolean ReGroup state ----@field Stance string Returns the pet's current stance (e.g. FOLLOW, GUARD) ----@field Stop boolean Stop state +---@field Combat fun(): boolean Combat state +---@field Ghold fun(): boolean GHold state +---@field Hold fun(): boolean Hold state +---@field ReGroup fun(): boolean ReGroup state +---@field Stance fun(): string Returns the pet's current stance (e.g. FOLLOW, GUARD) +---@field Stop fun(): boolean Stop state ---@field Target spawn Returns the pet's current target ----@field Taunt boolean Taunt state ----@field Focus boolean Focus state ----@field ID int returns pet ID +---@field Taunt fun(): boolean Taunt state +---@field Focus fun(): boolean Focus state +---@field ID fun(): integer returns pet ID local pet = {} ---Returns the slot number for the buff name diff --git a/datatype/_plugin.lua b/datatype/_plugin.lua index 54b8374..cf970dc 100644 --- a/datatype/_plugin.lua +++ b/datatype/_plugin.lua @@ -1,4 +1,4 @@ --- @class plugin ---- @field public Name string Name of the plugin +--- @field public Name fun(): string Name of the plugin --- @field public Version float Version number of the plugin ---- @field public ToString string Same as Name \ No newline at end of file +--- @field public ToString fun(): string Same as Name \ No newline at end of file diff --git a/datatype/_race.lua b/datatype/_race.lua index e19f719..8cfba4f 100644 --- a/datatype/_race.lua +++ b/datatype/_race.lua @@ -1,4 +1,4 @@ --- @class race ---- @field public ID number The ID of the race ---- @field public Name string The name of the race ---- @field public ToString string The name of the race \ No newline at end of file +--- @field public ID fun(): integer The ID of the race +--- @field public Name fun(): string The name of the race +--- @field public ToString fun(): string The name of the race \ No newline at end of file diff --git a/datatype/_range.lua b/datatype/_range.lua index b157017..af43a5b 100644 --- a/datatype/_range.lua +++ b/datatype/_range.lua @@ -1,3 +1,16 @@ --- @class range ---- @field public Between boolean is n Between the range of #1 and #2 both numbers included ---- @field public Inside boolean is n Inside the range of #1 and #2 both number excluded \ No newline at end of file +range = nil + +----True if N is between the range of #1 and #2, inclusive. +----Is 50 between 33 and 66? ${Range.Between[33,66:50]} returns TRUE +---@param n integer +---@param range string +---@return boolean is n Between the range of #1 and #2 both numbers included +function range.Between(n, range) end + +----True if N is within the range of #1 and #2, exclusive. +----Is 50 Inside 33 and 66? ${Range.Inside[33,66:50]} returns TRUE +---@param n integer +---@param range string +---@return boolean is n Inside the range of #1 and #2 both number excluded +function range.Inside(n, range) end diff --git a/datatype/_skill.lua b/datatype/_skill.lua index 143900c..85f509d 100644 --- a/datatype/_skill.lua +++ b/datatype/_skill.lua @@ -1,10 +1,10 @@ --- @class skill ---- @field public Activated boolean Returns TRUE if the skill has been activated ---- @field public AltTimer boolean Returns TRUE if the skill uses the kick/bash/slam/backstab/frenzy timer +--- @field public Activated fun(): boolean Returns TRUE if the skill has been activated +--- @field public AltTimer fun(): boolean Returns TRUE if the skill uses the kick/bash/slam/backstab/frenzy timer --- @field public ID number Skill number ---- @field public MinLevel number Minimum level for your class ---- @field public Name string Name of the skill ---- @field public ReuseTime number Reuse timer (what number format? ticks, seconds, deciseconds?) ---- @field public SkillCap number Skill cap based on your current level and class. ---- @field public StartingSkill number Base skill level for your class ---- @field public ToString string Same as Name \ No newline at end of file +--- @field public MinLevel fun(): integer Minimum level for your class +--- @field public Name fun(): string Name of the skill +--- @field public ReuseTime fun(): number Reuse timer (what number format? ticks, seconds, deciseconds?) +--- @field public SkillCap fun(): integer Skill cap based on your current level and class. +--- @field public StartingSkill fun(): integer Base skill level for your class +--- @field public ToString fun(): string Same as Name \ No newline at end of file