Skip to content

Commit b27b5be

Browse files
author
jolly[bot]
committed
jolly-bot: auto-format Lua files using Stylua
1 parent e6941da commit b27b5be

File tree

2 files changed

+35
-14
lines changed

2 files changed

+35
-14
lines changed

items/code.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2860,7 +2860,7 @@ local declare = {
28602860
})[(G.GAME.DECLARE_USED or 0) + 1],
28612861
"poker_hands"
28622862
),
2863-
number_format(3-(G.GAME.DECLARE_USED or 0)),
2863+
number_format(3 - (G.GAME.DECLARE_USED or 0)),
28642864
},
28652865
}
28662866
end,

items/planet.lua

Lines changed: 34 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1382,7 +1382,7 @@ local voxel = {
13821382
items = {
13831383
"set_cry_planet",
13841384
"set_cry_code",
1385-
"c_cry_declare"
1385+
"c_cry_declare",
13861386
},
13871387
},
13881388
object_type = "Consumable",
@@ -1408,24 +1408,45 @@ local voxel = {
14081408

14091409
return {
14101410
vars = {
1411-
G.GAME.hands["cry_Declare0"] and G.GAME.hands["cry_Declare0"].declare_cards and localize("cry_Declare0", "poker_hands") or localize("cry_code_empty"),
1412-
G.GAME.hands["cry_Declare1"] and G.GAME.hands["cry_Declare1"].declare_cards and localize("cry_Declare1", "poker_hands") or localize("cry_code_empty"),
1413-
G.GAME.hands["cry_Declare2"] and G.GAME.hands["cry_Declare2"].declare_cards and localize("cry_Declare2", "poker_hands") or localize("cry_code_empty"),
1411+
G.GAME.hands["cry_Declare0"] and G.GAME.hands["cry_Declare0"].declare_cards and localize(
1412+
"cry_Declare0",
1413+
"poker_hands"
1414+
) or localize("cry_code_empty"),
1415+
G.GAME.hands["cry_Declare1"] and G.GAME.hands["cry_Declare1"].declare_cards and localize(
1416+
"cry_Declare1",
1417+
"poker_hands"
1418+
) or localize("cry_code_empty"),
1419+
G.GAME.hands["cry_Declare2"] and G.GAME.hands["cry_Declare2"].declare_cards and localize(
1420+
"cry_Declare2",
1421+
"poker_hands"
1422+
) or localize("cry_code_empty"),
14141423
G.GAME.hands["cry_Declare0"] and G.GAME.hands["cry_Declare0"].level or 1,
14151424
G.GAME.hands["cry_Declare1"] and G.GAME.hands["cry_Declare1"].level or 1,
14161425
G.GAME.hands["cry_Declare2"] and G.GAME.hands["cry_Declare2"].level or 1,
14171426
colours = {
14181427
(
1419-
to_big(G.GAME.hands["cry_Declare0"] and G.GAME.hands["cry_Declare0"].level or 1) == to_big(1) and G.C.UI.TEXT_DARK
1420-
or G.C.HAND_LEVELS[to_number(math.min(7, G.GAME.hands["cry_Declare0"] and G.GAME.hands["cry_Declare0"].level or 1))]
1428+
to_big(G.GAME.hands["cry_Declare0"] and G.GAME.hands["cry_Declare0"].level or 1)
1429+
== to_big(1)
1430+
and G.C.UI.TEXT_DARK
1431+
or G.C.HAND_LEVELS[to_number(
1432+
math.min(7, G.GAME.hands["cry_Declare0"] and G.GAME.hands["cry_Declare0"].level or 1)
1433+
)]
14211434
),
14221435
(
1423-
to_big(G.GAME.hands["cry_Declare1"] and G.GAME.hands["cry_Declare1"].level or 1) == to_big(1) and G.C.UI.TEXT_DARK
1424-
or G.C.HAND_LEVELS[to_number(math.min(7, G.GAME.hands["cry_Declare1"] and G.GAME.hands["cry_Declare1"].level or 1))]
1436+
to_big(G.GAME.hands["cry_Declare1"] and G.GAME.hands["cry_Declare1"].level or 1)
1437+
== to_big(1)
1438+
and G.C.UI.TEXT_DARK
1439+
or G.C.HAND_LEVELS[to_number(
1440+
math.min(7, G.GAME.hands["cry_Declare1"] and G.GAME.hands["cry_Declare1"].level or 1)
1441+
)]
14251442
),
14261443
(
1427-
to_big(G.GAME.hands["cry_Declare2"] and G.GAME.hands["cry_Declare2"].level or 1) == to_big(1) and G.C.UI.TEXT_DARK
1428-
or G.C.HAND_LEVELS[to_number(math.min(7, G.GAME.hands["cry_Declare2"] and G.GAME.hands["cry_Declare2"].level or 1))]
1444+
to_big(G.GAME.hands["cry_Declare2"] and G.GAME.hands["cry_Declare2"].level or 1)
1445+
== to_big(1)
1446+
and G.C.UI.TEXT_DARK
1447+
or G.C.HAND_LEVELS[to_number(
1448+
math.min(7, G.GAME.hands["cry_Declare2"] and G.GAME.hands["cry_Declare2"].level or 1)
1449+
)]
14291450
),
14301451
},
14311452
},
@@ -1435,15 +1456,15 @@ local voxel = {
14351456
local hand_types = {
14361457
G.GAME.hands.cry_Declare0 and G.GAME.hands.cry_Declare0.declare_cards and "cry_Declare0",
14371458
G.GAME.hands.cry_Declare1 and G.GAME.hands.cry_Declare1.declare_cards and "cry_Declare1",
1438-
G.GAME.hands.cry_Declare2 and G.GAME.hands.cry_Declare2.declare_cards and "cry_Declare2"
1459+
G.GAME.hands.cry_Declare2 and G.GAME.hands.cry_Declare2.declare_cards and "cry_Declare2",
14391460
}
14401461
Cryptid.suit_level_up(card, copier, 1, hand_types)
14411462
end,
14421463
bulk_use = function(self, card, area, copier, number)
14431464
local hand_types = {
14441465
G.GAME.hands.cry_Declare0 and G.GAME.hands.cry_Declare0.declare_cards and "cry_Declare0",
14451466
G.GAME.hands.cry_Declare1 and G.GAME.hands.cry_Declare1.declare_cards and "cry_Declare1",
1446-
G.GAME.hands.cry_Declare2 and G.GAME.hands.cry_Declare2.declare_cards and "cry_Declare2"
1467+
G.GAME.hands.cry_Declare2 and G.GAME.hands.cry_Declare2.declare_cards and "cry_Declare2",
14471468
}
14481469
Cryptid.suit_level_up(card, copier, number, hand_types)
14491470
end,
@@ -1523,7 +1544,7 @@ local planet_cards = {
15231544
pata,
15241545
kaikki,
15251546
-- reserved for tefd/none/sol suit planet
1526-
voxel
1547+
voxel,
15271548
}
15281549
return {
15291550
name = "Planets",

0 commit comments

Comments
 (0)