fix spelling/punctuation (#5147)

This commit is contained in:
Nightblade
2022-12-04 12:32:33 +11:00
committed by GitHub
parent 4b7a6c1ca8
commit 1792bebff1
5 changed files with 8 additions and 8 deletions

View File

@@ -89,7 +89,7 @@ To do so [comment out Line 54 to line 58](./src/Launch.lua#L54-L58) of the [Laun
--end
```
and create a valid mainfest.xml file in the ./src directory. Then run the `./runtime/Path{space}of{space}Building.exe` as usual. You should get the typical update popup in the bottom left corner.
and create a valid manifest.xml file in the ./src directory. Then run the `./runtime/Path{space}of{space}Building.exe` as usual. You should get the typical update popup in the bottom left corner.
The manifest.xml file deserves its own in depth document, but usually copying from release and editing accordingly works well enough.

View File

@@ -72,7 +72,7 @@ function ItemClass:ParseRaw(raw)
self.rawLines = { }
for line in string.gmatch(self.raw .. "\r\n", "([^\r\n]*)\r?\n") do
line = line:gsub("^%s+",""):gsub("%s+$","")
-- remove "Superior" from qualitied items so base-type matches
-- remove "Superior" from items with quality so base-type matches
if line:match("^Superior ") then
line = line:gsub("Superior ", "")
end
@@ -366,7 +366,7 @@ function ItemClass:ParseRaw(raw)
elseif specName == "Critical Strike Range" or specName == "Attacks per Second" or specName == "Weapon Range" or
specName == "Critical Strike Chance" or specName == "Physical Damage" or specName == "Elemental Damage" or
specName == "Chaos Damage" or specName == "Chance to Block" or specName == "Armour" or
specname == "Energy Shield" or specName == "Evasion" then
specName == "Energy Shield" or specName == "Evasion" then
self.hidden_specs = true
-- Anything else is an explicit with a colon in it (Fortress Covenant, Pure Talent, etc) unless it's part of the custom name
elseif not (self.name:match(specName) and self.name:match(specVal)) then

View File

@@ -408,7 +408,7 @@ function TradeQueryClass:SetFetchResultReturn(slotIndex, index)
end
end
-- Method to sort the fetched resutls
-- Method to sort the fetched results
function TradeQueryClass:SortFetchResults(slotTbl, trade_index)
local newTbl = {}
if self.pbSortSelectionIndex == 1 then

View File

@@ -63,7 +63,7 @@ end
function TradeQueryRateLimiterClass:ParseHeader(headerString)
local headers = {}
for k, v in headerString:gmatch("([%a%d%-]+): ([%g ]+)") do
if k == nil then error("Unparseable Header") end
if k == nil then error("Unparsable Header") end
headers[k] = v
end
return headers
@@ -150,7 +150,7 @@ function TradeQueryRateLimiterClass:NextRequestTime(policy, time)
-- practically blocking indefinitely until rate limits are initialized
return 1956528000
else
-- first request, dont block to acquire rate limits from first response
-- first request, don't block to acquire rate limits from first response
return now
end
end
@@ -177,7 +177,7 @@ function TradeQueryRateLimiterClass:NextRequestTime(policy, time)
end
end
if oldestRequestIdx == 0 then
-- state reached limit but we dont have any recent timestamps (external factors)
-- state reached limit but we don't have any recent timestamps (external factors)
nextTime = math.max(nextTime, self.lastUpdate[policy] + rule.limits[window].timeout + 1)
else
-- the expiration time of oldest timestamp in the window

View File

@@ -72,7 +72,7 @@ function TradeQueryRequestsClass:SearchWithQuery(league, query, callback, params
end
---Perform search and run callback function on returned item hashes.
---Item info has to be fetched seperately
---Item info has to be fetched separately
---@param league string
---@param query string
---@param callback fun(response:table, errMsg:string)