Skip to content

Commit

Permalink
reversed finishing reagent optimization order
Browse files Browse the repository at this point in the history
  • Loading branch information
derfloh205 committed Oct 16, 2024
1 parent 9845d81 commit deaf50b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
13 changes: 12 additions & 1 deletion Classes/RecipeData.lua
Original file line number Diff line number Diff line change
Expand Up @@ -980,8 +980,19 @@ function CraftSim.RecipeData:OptimizeFinishingReagents(options)

local percentStep = totalPossibleItems / 100

-- workaround to first process the skill increase reagents
local slotsReversed = {}
if #reagentData.finishingReagentSlots == 2 then
slotsReversed = {
reagentData.finishingReagentSlots[2],
reagentData.finishingReagentSlots[1],
}
else
slotsReversed = reagentData.finishingReagentSlots
end

GUTIL.FrameDistributor {
iterationTable = reagentData.finishingReagentSlots,
iterationTable = slotsReversed,
iterationsPerFrame = 1,
finally = function()
options.finally()
Expand Down
2 changes: 1 addition & 1 deletion CraftSim.toc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
## Title: CraftSim
## Notes: Calculates the average profit based on your profession stats and other tools for the war within gold making
## Author: genju
## Version: 19.0.0
## Version: 19.0.0.1
## X-Curse-Project-ID: 705015
## X-Wago-ID: 0mNwaPKo
## X-WoWI-ID: 26519
Expand Down

0 comments on commit deaf50b

Please sign in to comment.