forked from BurndiL/BalatroAP
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathante.lua
More file actions
63 lines (62 loc) · 1.69 KB
/
ante.lua
File metadata and controls
63 lines (62 loc) · 1.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
-- Add this on deck select.
-- G.GAME.win_ante = 16
local scaling_factor = 2
local get_blind_amountRef = get_blind_amount
function get_blind_amount(ante)
if G.GAME.selected_back and G.GAME.selected_back.name == "Archipelago Deck" then
local amounts = {
-- Ante 1 - 4
20,
50,
100,
300,
-- Ante 5 - 8
1000,
5000,
11000,
20000,
-- Ante 9 - 12
35000,
50000,
80000,
130000,
-- Ante 13 - 16
250000,
1000000,
50000000,
100000000,
}
if ante < 1 then
return 100
end
if ante <= 8 then
return amounts[ante]
end
local amount = math.floor(amounts[G.GAME.win_ante] * scaling_factor ^ (ante - G.GAME.win_ante))
amount = amount - amount % (10 ^ math.floor(math.log10(amount) - 1))
return amount
-- elseif G.GAME.modifiers.scaling == 2 then
-- local amounts = {
-- 300, 900, 2600, 8000, 20000, 36000, 60000, 100000
-- --300, 900, 2400, 7000, 18000, 32000, 56000, 90000
-- }
-- if ante < 1 then return 100 end
-- if ante <= 8 then return amounts[ante] end
-- local amount = math.floor(amounts[8]*scaling_factor^(ante-8))
-- amount = amount - amount%(10^math.floor(math.log10(amount)-1))
-- return amount
-- elseif G.GAME.modifiers.scaling == 3 then
-- local amounts = {
-- 300, 1000, 3200, 9000, 25000, 60000, 110000, 200000
-- --300, 1000, 3000, 8000, 22000, 50000, 90000, 180000
-- }
-- if ante < 1 then return 100 end
-- if ante <= 8 then return amounts[ante] end
-- local amount = math.floor(amounts[8]*scaling_factor^(ante-8))
-- amount = amount - amount%(10^math.floor(math.log10(amount)-1))
-- return amount
-- end
else
return get_blind_amountRef(ante)
end
end