Skip to content

Commit

Permalink
API Bump
Browse files Browse the repository at this point in the history
Improved the error message shown when users attempt to queue up an item link that does not have a style
Some format fixes for the XML files
  • Loading branch information
Dolgubon committed Aug 19, 2024
1 parent e94e62f commit f0f0e09
Show file tree
Hide file tree
Showing 5 changed files with 341 additions and 338 deletions.
13 changes: 9 additions & 4 deletions Crafter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -183,18 +183,18 @@ local validityFunctions = --stuff that's not here will automatically recieve a v

-- uses the info in validityFunctions to recheck and see if attributes are an impediment to crafting.
local function applyValidityFunctions(requestTable)
for attribute, t in pairs(validityFunctions) do
for attribute, validationInfo in pairs(validityFunctions) do
if requestTable["Station"] == 7 and attribute == "Style" then
else
local params = {}

for i = 1, #t[2] do
for i = 1, #validationInfo[2] do

params[#params + 1] = requestTable["CraftRequestTable"][t[2][i]]
params[#params + 1] = requestTable["CraftRequestTable"][validationInfo[2][i]]

end
--d("one application for: "..attribute)
requestTable[attribute].isKnown = t[1](unpack(params) )
requestTable[attribute].isKnown = validationInfo[1](unpack(params) )
end
end
end
Expand Down Expand Up @@ -661,6 +661,11 @@ local function addByItemLinkToQueue(itemLink)

local styleIndex = GetItemLinkItemStyle(itemLink)
requestTable["Style"] = findMatchingSelected(DolgubonSetCrafter.styleNames, styleIndex)
if requestTable["Style"] == nil then
d("The item link is missing a style, and could not be added to the queue")
ZO_Alert(ERROR, SOUNDS.GENERAL_ALERT_ERROR ,"The item link is missing a style, and could not be added to the queue")
return
end

local traitIndex = GetItemLinkTraitInfo(itemLink)+1

Expand Down
6 changes: 3 additions & 3 deletions DolgubonsLazySetCrafter.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
; States and/or other countries. All rights reserved.
; You can read the full terms at https://account.elderscrollsonline.com/add-on-terms

## Title: Dolgubon's Lazy Set Crafter v3.0.4.1
## APIVersion: 101042
## Title: Dolgubon's Lazy Set Crafter v3.0.4.2
## APIVersion: 101043
## Author: Dolgubon
## Version: 3.0.4.1
## Version: 3.0.4.2
## SavedVariables: dolgubonslazysetcraftersavedvars
## DependsOn: LibLazyCrafting>=4005 LibAddonMenu-2.0 LibStub
## OptionalDependsOn: pChat LibFeedback LibCustomMenu LibPrice
Expand Down
2 changes: 1 addition & 1 deletion SetCrafter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ function DolgubonSetCrafter:Initialize()
"If you found a bug, have a request or a suggestion, or wish to donate, you can send me a mail here.")
window:SetHidden(true)

local currentAPIVersionOfAddon = 101042
local currentAPIVersionOfAddon = 101043

if GetAPIVersion() > currentAPIVersionOfAddon and GetWorldName()~="PTS" then
d("Update your addons!")
Expand Down
Loading

0 comments on commit f0f0e09

Please sign in to comment.