Buff orrery balancing (untested)

This commit is contained in:
Emik 2025-03-26 13:13:19 +01:00
parent 23da15542a
commit bc2a4cdccc
Signed by untrusted user who does not match committer: emik
GPG key ID: 09CDFF9E5703688D
2 changed files with 8 additions and 1 deletions

View file

@ -67,7 +67,7 @@ SMODS.Back {
}, },
apply = function(_) apply = function(_)
Jane.q(function() Jane.q(function()
G.GAME.orrery = {chips = 150, level = 1, mult = 1} G.GAME.orrery = {chips = 150, hands = {}, level = 1, mult = 1}
for _, v in pairs(G.GAME.hands) do for _, v in pairs(G.GAME.hands) do
v.mult = G.GAME.orrery.mult v.mult = G.GAME.orrery.mult

View file

@ -252,11 +252,17 @@ function Game:update(dt)
local count = 0 local count = 0
local hands = {} local hands = {}
local inequalities = 0
local pools = {chips = 0, level = 0, mult = 0} local pools = {chips = 0, level = 0, mult = 0}
for k, v in pairs(G.GAME.hands) do for k, v in pairs(G.GAME.hands) do
if k ~= "cry_WholeDeck" then if k ~= "cry_WholeDeck" then
if orrery.hands[k] and orrery.hands[k] ~= v then
inequalities = inequalities + 1
end
count = count + 1 count = count + 1
orrery.hands[k] = v
hands[#hands + 1] = v hands[#hands + 1] = v
pools.mult = v.mult + pools.mult pools.mult = v.mult + pools.mult
pools.chips = v.chips + pools.chips pools.chips = v.chips + pools.chips
@ -268,6 +274,7 @@ function Game:update(dt)
return return
end end
pools.chips = inequalities * 150
table.sort(hands, function (x, y) return x.order > y.order end) table.sort(hands, function (x, y) return x.order > y.order end)
for i, v in ipairs(hands) do for i, v in ipairs(hands) do