Refine rogue progression and card pools

This commit is contained in:
2026-06-29 23:34:19 +09:00
parent b4a4560678
commit 95d6155086
13 changed files with 276 additions and 380 deletions

View File

@@ -5,7 +5,10 @@ import { UI_FILE, COMMON_FILE, UI_ROOT, GENERATED_UI_SECTIONS, UI_APPEND_ORDER,
export const rewardMethods = [
method('CardPool', `local pool = {}
for id, c in pairs(self.Cards) do
if c.token ~= true and (c.class == self.SelectedClass or (self.PlayerJob ~= "" and c.class == self.PlayerJob)) then
local pools = self.ClassPools or {}
local basePool = pools[self.SelectedClass] or pools.rogue or {}
local jobPool = pools[self.PlayerJob] or {}
if c.token ~= true and ((basePool[c.class] == true) or (self.PlayerJob ~= "" and jobPool[c.class] == true)) then
table.insert(pool, id)
end
end