fix: v1.2 cus feature schema for python

This commit is contained in:
John Yeo
2025-11-20 16:58:07 +00:00
parent ec9c473c33
commit 631b12d5f9
14 changed files with 314 additions and 61 deletions

View File

@@ -282,11 +282,13 @@ local function mergeFeatureBalances(targetBalance, sourceBalance)
-- Merge rollover balances
if sourceBalance.rollovers and #sourceBalance.rollovers > 0 then
-- Both have rollovers, merge them
for i, targetRollover in ipairs(targetBalance.rollovers) do
local sourceRollover = sourceBalance.rollovers[i]
if sourceRollover then
targetRollover.balance = toNum(targetRollover.balance) + toNum(sourceRollover.balance)
-- Both have rollovers, merge them
if targetBalance.rollovers and #targetBalance.rollovers > 0 then
for i, targetRollover in ipairs(targetBalance.rollovers) do
local sourceRollover = sourceBalance.rollovers[i]
if sourceRollover then
targetRollover.balance = toNum(targetRollover.balance) + toNum(sourceRollover.balance)
end
end
end
end