Skip to content

Commit

Permalink
Some more definition fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
projecteon committed Sep 12, 2022
1 parent 2cf2684 commit 30fde07
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 24 deletions.
18 changes: 9 additions & 9 deletions datatype/_pet.lua
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions 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
--- @field public ToString fun(): string Same as Name
6 changes: 3 additions & 3 deletions 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
--- @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
17 changes: 15 additions & 2 deletions 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
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
16 changes: 8 additions & 8 deletions 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
--- @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

0 comments on commit 30fde07

Please sign in to comment.