Decheese The Nimble
This commit is contained in:
parent
13b9289bbf
commit
29888941f0
3 changed files with 7 additions and 6 deletions
|
|
@ -6,7 +6,7 @@
|
||||||
"author": [
|
"author": [
|
||||||
"Emik"
|
"Emik"
|
||||||
],
|
],
|
||||||
"version": "1.5.0",
|
"version": "1.5.1",
|
||||||
"badge_colour": "8BE9FD",
|
"badge_colour": "8BE9FD",
|
||||||
"main_file": "src/main.lua",
|
"main_file": "src/main.lua",
|
||||||
"badge_text_colour": "44475A",
|
"badge_text_colour": "44475A",
|
||||||
|
|
|
||||||
|
|
@ -86,6 +86,10 @@ SMODS.Blind {
|
||||||
end,
|
end,
|
||||||
drawn_to_hand = function(self)
|
drawn_to_hand = function(self)
|
||||||
local function force_hand()
|
local function force_hand()
|
||||||
|
if G.STATE ~= G.STATES.SELECTING_HAND or G.CONTROLLER.locked or (G.GAME.STOP_USE and G.GAME.STOP_USE > 0) then
|
||||||
|
return false
|
||||||
|
end
|
||||||
|
|
||||||
for i, v in ipairs(G.hand.cards) do
|
for i, v in ipairs(G.hand.cards) do
|
||||||
if i > 5 then
|
if i > 5 then
|
||||||
break
|
break
|
||||||
|
|
@ -100,11 +104,7 @@ SMODS.Blind {
|
||||||
|
|
||||||
if not self.disabled then
|
if not self.disabled then
|
||||||
self.disabled = true
|
self.disabled = true
|
||||||
G.E_MANAGER:add_event(Event({
|
G.E_MANAGER:add_event(Event({func = force_hand, blocking = false}))
|
||||||
delay = 1,
|
|
||||||
trigger = "after",
|
|
||||||
func = force_hand,
|
|
||||||
}))
|
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
set_blind = function(self)
|
set_blind = function(self)
|
||||||
|
|
|
||||||
|
|
@ -53,6 +53,7 @@ Balatest.TestPlay {
|
||||||
end)
|
end)
|
||||||
|
|
||||||
Balatest.wait_for_input()
|
Balatest.wait_for_input()
|
||||||
|
Balatest.wait()
|
||||||
end,
|
end,
|
||||||
assert = function()
|
assert = function()
|
||||||
Balatest.assert_chips(2720)
|
Balatest.assert_chips(2720)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue