Buff orrery balancing (untested)
This commit is contained in:
parent
23da15542a
commit
bc2a4cdccc
2 changed files with 8 additions and 1 deletions
|
|
@ -67,7 +67,7 @@ SMODS.Back {
|
|||
},
|
||||
apply = 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
|
||||
v.mult = G.GAME.orrery.mult
|
||||
|
|
|
|||
|
|
@ -252,11 +252,17 @@ function Game:update(dt)
|
|||
|
||||
local count = 0
|
||||
local hands = {}
|
||||
local inequalities = 0
|
||||
local pools = {chips = 0, level = 0, mult = 0}
|
||||
|
||||
for k, v in pairs(G.GAME.hands) do
|
||||
if k ~= "cry_WholeDeck" then
|
||||
if orrery.hands[k] and orrery.hands[k] ~= v then
|
||||
inequalities = inequalities + 1
|
||||
end
|
||||
|
||||
count = count + 1
|
||||
orrery.hands[k] = v
|
||||
hands[#hands + 1] = v
|
||||
pools.mult = v.mult + pools.mult
|
||||
pools.chips = v.chips + pools.chips
|
||||
|
|
@ -268,6 +274,7 @@ function Game:update(dt)
|
|||
return
|
||||
end
|
||||
|
||||
pools.chips = inequalities * 150
|
||||
table.sort(hands, function (x, y) return x.order > y.order end)
|
||||
|
||||
for i, v in ipairs(hands) do
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue