Skip to content

Commit 1d3d0f2

Browse files
author
jolly[bot]
committed
jolly-bot: auto-format Lua files using Stylua
1 parent 1776f6d commit 1d3d0f2

File tree

1 file changed

+24
-20
lines changed

1 file changed

+24
-20
lines changed

lib/calculate.lua

Lines changed: 24 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -941,35 +941,39 @@ function __individual_play(t)
941941
end
942942

943943
function __poker_hand(t)
944-
return { poker_hands = { [t] = {"m"} } }
944+
return { poker_hands = { [t] = { "m" } } }
945945
end
946946

947-
__any_suit = { other_card = { is_suit = function(self) return true end } }
947+
__any_suit = { other_card = {
948+
is_suit = function(self)
949+
return true
950+
end,
951+
} }
948952

949953
-- How these work: {constructor function, extra args}
950954
Cryptid.force_contexts = {
951955
-- Vanilla Jokers (collection order)
952956
-- Page 1
953-
j_joker = {__joker_main},
954-
j_greedy_joker = {__individual_play, __any_suit},
955-
j_lusty_joker = {__individual_play, __any_suit},
956-
j_wrathful_joker = {__individual_play, __any_suit},
957-
j_gluttenous_joker = {__individual_play, __any_suit},
958-
j_jolly = {__joker_main, __poker_hand("Pair")},
959-
j_zany = {__joker_main, __poker_hand("Three of a Kind")},
960-
j_mad = {__joker_main, __poker_hand("Two Pair")},
961-
j_crazy = {__joker_main, __poker_hand("Straight")},
962-
j_droll = {__joker_main, __poker_hand("Flush")},
963-
j_sly = {__joker_main, __poker_hand("Pair")},
964-
j_wily = {__joker_main, __poker_hand("Three of a Kind")},
965-
j_clever = {__joker_main, __poker_hand("Two Pair")},
966-
j_devious = {__joker_main, __poker_hand("Straight")},
967-
j_crafty = {__joker_main, __poker_hand("Flush")},
957+
j_joker = { __joker_main },
958+
j_greedy_joker = { __individual_play, __any_suit },
959+
j_lusty_joker = { __individual_play, __any_suit },
960+
j_wrathful_joker = { __individual_play, __any_suit },
961+
j_gluttenous_joker = { __individual_play, __any_suit },
962+
j_jolly = { __joker_main, __poker_hand("Pair") },
963+
j_zany = { __joker_main, __poker_hand("Three of a Kind") },
964+
j_mad = { __joker_main, __poker_hand("Two Pair") },
965+
j_crazy = { __joker_main, __poker_hand("Straight") },
966+
j_droll = { __joker_main, __poker_hand("Flush") },
967+
j_sly = { __joker_main, __poker_hand("Pair") },
968+
j_wily = { __joker_main, __poker_hand("Three of a Kind") },
969+
j_clever = { __joker_main, __poker_hand("Two Pair") },
970+
j_devious = { __joker_main, __poker_hand("Straight") },
971+
j_crafty = { __joker_main, __poker_hand("Flush") },
968972
-- Cryptid Jokers (alphabetical order probably?)
969-
j_cry_demicolon = {__joker_main},
970-
j_cry_m = {{ selling_card = true, card = {
973+
j_cry_demicolon = { __joker_main },
974+
j_cry_m = { { selling_card = true, card = {
971975
is_jolly = function(self)
972976
return true
973977
end,
974-
} }},
978+
} } },
975979
}

0 commit comments

Comments
 (0)