Skip to content

Commit 2067de7

Browse files
authored
Feature/#356 concentration curve (#359)
* added libgraph * libgraph usable and statistics refactor * Updated ConcentrationCurve Data * draw current skill * fixed concentration cost update delay
1 parent 44a018c commit 2067de7

File tree

11 files changed

+12007
-31961
lines changed

11 files changed

+12007
-31961
lines changed

.pkgmeta

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ externals:
1212
Libs/AceSerializer-3.0: https://repos.curseforge.com/wow/ace3/trunk/AceSerializer-3.0
1313
Libs/LibCompress: https://repos.curseforge.com/wow/libcompress/trunk
1414
Libs/LibDBIcon-1.0: https://repos.curseforge.com/wow/libdbicon-1-0/trunk
15+
Libs/LibGraph-2.0: https://repos.curseforge.com/wow/libgraph-2-0/trunk
1516

1617
Libs/GUTIL:
1718
url: https://github.com/derfloh205/GUTIL.git
@@ -23,5 +24,6 @@ externals:
2324
ignore:
2425
- Libs/LibStub/tests
2526
- Libs/**/*.textile
27+
- Libs/**/*.txt
2628
- README.md
2729
- DevTools

Classes/RecipeData.lua

+4-4
Original file line numberDiff line numberDiff line change
@@ -531,10 +531,6 @@ function CraftSim.RecipeData:UpdateProfessionStats()
531531
local itemStats = self.professionGearSet.professionStats
532532
local buffStats = self.buffData.professionStats
533533

534-
if self.supportsQualities then
535-
self.concentrationCost = self:GetConcentrationCost()
536-
end
537-
538534
self.professionStats:Clear()
539535

540536
self.professionStats:add(self.baseProfessionStats)
@@ -559,6 +555,10 @@ function CraftSim.RecipeData:UpdateProfessionStats()
559555
-- since ooey gooey chocolate gives us math.huge on multicraft we need to limit it to 100%
560556
self.professionStats.multicraft.value = math.min(1 / self.professionStats.multicraft.percentMod,
561557
self.professionStats.multicraft.value)
558+
559+
if self.supportsQualities then
560+
self.concentrationCost = self:GetConcentrationCost()
561+
end
562562
end
563563

564564
--- Updates professionStats based on reagentData and professionGearSet -> Then updates resultData based on professionStats -> Then updates priceData based on resultData

CraftSim.toc

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ Locals/zhCN.lua
125125

126126
Data/EnchantData.lua
127127
Data/ReagentWeightData.lua
128-
Data/ConcentrationCurveDataBeta.lua
128+
Data/ConcentrationCurveData.lua
129129
Data/OptionalReagentData.lua
130130
Data/News.lua
131131

0 commit comments

Comments
 (0)