Skip to content

Commit

Permalink
Add metadata and config files
Browse files Browse the repository at this point in the history
  • Loading branch information
Stanzilla committed Jul 11, 2023
1 parent 2ef876f commit 9ecfcd7
Show file tree
Hide file tree
Showing 6 changed files with 82 additions and 5 deletions.
20 changes: 20 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false

[.luacheckrc]
indent_style = tab
indent_size = 4

[*.pkgmeta,]
indent_style = space
indent_size = 2
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
* text=auto
*.sh eol=lf
24 changes: 24 additions & 0 deletions .luarc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"diagnostics.disable": [
"lowercase-global",
"deprecated",
"redundant-parameter",
"need-check-nil",
"undefined-field",
"cast-type-mismatch",
"param-type-mismatch",
"assign-type-mismatch",
"return-type-mismatch"
],
"diagnostics.globals": [
"WOW_PROJECT_WRATH_CLASSIC",
"BOOKTYPE_SPELL",
"FriendColor",
"HarmColor",
"GetPlayerMapPosition"
],
"runtime.version": "Lua 5.1",
"workspace.ignoreDir": [
".vscode"
]
}
10 changes: 5 additions & 5 deletions LibRangeCheck-3.0/LibRangeCheck-3.0.lua
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ tinsert(ResSpells.PALADIN, 7328) -- Redemption (40 yards)

-- Priests
if isRetail then
tinsert(FriendSpells.PRIEST, 21562) -- Power Word: Fortitude (40 yards, level 6) [use first to fix kyrian boon/fae soulshape]
tinsert(FriendSpells.PRIEST, 21562) -- Power Word: Fortitude (40 yards, level 6) [use first to fix Kyrian boon/fae soulshape]
tinsert(FriendSpells.PRIEST, 17) -- Power Word: Shield (40 yards, level 4)
else -- PWS is group only in classic, use lesser heal as main spell check
tinsert(FriendSpells.PRIEST, 2050) -- Lesser Heal (40 yards, level 1, rank 1)
Expand All @@ -237,7 +237,7 @@ tinsert(ResSpells.PRIEST, 2006) -- Resurrection (40 yards, level 10)
-- Rogues
if isRetail then
tinsert(FriendSpells.ROGUE, 36554) -- Shadowstep (Assassination, Subtlety) (25 yards, level 18) -- works on friendly in retail
tinsert(FriendSpells.ROGUE, 921) -- Pick Pocket (10 yards, level 24) -- this works for range, keep it in friendly aswell for retail but on classic this is melee range and will return min 0 range 0
tinsert(FriendSpells.ROGUE, 921) -- Pick Pocket (10 yards, level 24) -- this works for range, keep it in friendly as well for retail but on classic this is melee range and will return min 0 range 0
end

tinsert(HarmSpells.ROGUE, 2764) -- Throw (30 yards)
Expand Down Expand Up @@ -279,7 +279,7 @@ end

-- Warlocks
tinsert(FriendSpells.WARLOCK, 5697) -- Unending Breath (30 yards)
tinsert(FriendSpells.WARLOCK, 20707) -- Soulstone (40 yards) ~ this can be precasted so leave it in friendly aswell as res
tinsert(FriendSpells.WARLOCK, 20707) -- Soulstone (40 yards) ~ this can be precasted so leave it in friendly as well as res

if isRetail then
tinsert(FriendSpells.WARLOCK, 132) -- Detect Invisibility (30 yards, level 26)
Expand Down Expand Up @@ -755,7 +755,7 @@ local function getCachedRange(unit, noItems, maxCacheAge)
return cacheItem.minRange, cacheItem.maxRange
end

-- otherwise create a new or update the exisitng cache item
-- otherwise create a new or update the existing cache item
local result = cacheItem or {}
result.minRange, result.maxRange = getRange(unit, noItems)
result.updateTime = currentTime
Expand Down Expand Up @@ -934,7 +934,7 @@ function lib:init(forced)
if not minRangeCheck then -- fall back to interact distance checks
if playerClass == "HUNTER" or playerRace == "Tauren" then
-- for Hunters: use interact4 as it's safer
-- for Taurens: interact4 is actually closer than 25yd and interact3 is closer than 8yd, so we can't use that
-- for Tauren: interact4 is actually closer than 25yd and interact3 is closer than 8yd, so we can't use that
minRangeCheck = checkers_Interact[4]
else
minRangeCheck = checkers_Interact[3]
Expand Down
26 changes: 26 additions & 0 deletions cspell.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"version": "0.2",
"language": "en-US",
"ignoreRegExpList": [
"\\((.+?)\\)"
],
"ignorePaths": [
".luacheckrc"
],
"words": [
"cffed",
"cffeda",
"curr",
"Egan",
"Hyldnir",
"Kiryn",
"Kyrian",
"Maldivia",
"Naaru",
"Tauren",
"tremove",
"Worgsaw",
"Zezzak",
"Zorbin"
]
}
5 changes: 5 additions & 0 deletions stylua.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
indent_type = "Spaces"
indent_width = 2
column_width = 180
line_endings = "Unix"
quote_style = "ForceDouble"

0 comments on commit 9ecfcd7

Please sign in to comment.