Skip to content

Commit 88508da

Browse files
committed
Rework TradeQueryGenerator to use exported stat names and values
1 parent c0b3cf1 commit 88508da

48 files changed

Lines changed: 95586 additions & 25760 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

spec/System/TestStatDescriber_spec.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ describe("StatDescriber getScope scenarios", function()
2222
for _, case in ipairs(cases) do
2323
it(case.name, function()
2424
ConPrintf("[StatDescriber getScope] %s", case.name)
25-
local describe = require("Modules/StatDescriber")
25+
local describe = require("Modules/StatDescriber").describeStats
2626

2727
if case.shouldSucceed then
2828
local out, lineMap = describe(case.stats, case.scope)

spec/System/TestTradeQueryGenerator_spec.lua

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,6 @@ describe("TradeQueryGenerator", function()
22
local mock_queryGen = new("TradeQueryGenerator", { itemsTab = {} })
33

44
describe("ProcessMod", function()
5-
-- Pass: Mod line maps correctly to trade stat entry without error
6-
-- Fail: Mapping fails (e.g., no match found), indicating incomplete stat parsing for curse mods, potentially missing curse-enabling items in queries
7-
it("handles special curse case", function()
8-
local mod = { tradeHashes = {[30642521] = {"You can apply an additional Curse"}}, type = "Prefix", weightKey = {}, weightVal = {} }
9-
mock_queryGen.modData = { Explicit = {} }
10-
mock_queryGen:ProcessMod(mod)
11-
-- Simplified assertion; in full impl, check modData
12-
assert.is_true(true)
13-
end)
145
end)
156

167
describe("WeightedRatioOutputs", function()

0 commit comments

Comments
 (0)