From deaf50b6f2e25439eaee774d6517a51639f0130e Mon Sep 17 00:00:00 2001 From: Genju Date: Wed, 16 Oct 2024 15:45:39 +0200 Subject: [PATCH] reversed finishing reagent optimization order --- Classes/RecipeData.lua | 13 ++++++++++++- CraftSim.toc | 2 +- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/Classes/RecipeData.lua b/Classes/RecipeData.lua index f3e7145d..9c279640 100644 --- a/Classes/RecipeData.lua +++ b/Classes/RecipeData.lua @@ -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() diff --git a/CraftSim.toc b/CraftSim.toc index 950e8345..b653922b 100644 --- a/CraftSim.toc +++ b/CraftSim.toc @@ -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