Skip to content

Commit 8a3447e

Browse files
Blind fixes
- Chromatic no longer appears if you only have 1 hand per round - Fixed tax appearing if hands per round was between 2 and 3 (would result in an impossible blind in most situations) - Fixed turquoise tornado guarantee not working with hand values that aren't whole numbers
1 parent fca805d commit 8a3447e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

items/blind.lua

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ local tax = {
303303
SMODS.set_scoring_calculation("multiply")
304304
end,
305305
in_pool = function()
306-
return G.GAME.round_resets.hands >= 3
306+
return math.floor(G.GAME.round_resets.hands) >= 3
307307
end,
308308
}
309309
local box = {
@@ -952,6 +952,9 @@ local chromatic = {
952952
G.GAME.blind.prepped = true
953953
end
954954
end,
955+
in_pool = function()
956+
return math.floor(G.GAME.round_resets.hands) > 1
957+
end,
955958
drawn_to_hand = function(self)
956959
if G.GAME.blind.prepped and not G.GAME.blind.disabled then
957960
G.GAME.chromatic_mod = G.GAME.chromatic_mod + 1
@@ -1094,7 +1097,7 @@ local tornado = {
10941097
--check for guarantee
10951098
if
10961099
G.GAME.probabilities.normal <= 1
1097-
and G.GAME.current_round.hands_left + 1 == G.GAME.blind.tornado_guarantee
1100+
and math.floor(G.GAME.current_round.hands_left) + 1 == G.GAME.blind.tornado_guarantee
10981101
then
10991102
return false
11001103
end

0 commit comments

Comments
 (0)