Skip to content

Commit 3410941

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

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

items/misc_joker.lua

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,7 @@ local potofjokes = {
221221
},
222222
name = "cry-Pot of Jokes",
223223
key = "pot_of_jokes",
224-
config = { extra = { h_size = -2, h_mod = 1,},
225-
immutable = { h_added = 0, h_mod_max = 1000,}},
224+
config = { extra = { h_size = -2, h_mod = 1 }, immutable = { h_added = 0, h_mod_max = 1000 } },
226225
pos = { x = 5, y = 0 },
227226
rarity = 3,
228227
order = 104,
@@ -241,7 +240,10 @@ local potofjokes = {
241240
end,
242241
calculate = function(self, card, context)
243242
if context.end_of_round and not context.individual and not context.repetition and not context.blueprint then
244-
if to_big(card.ability.extra.h_size) + to_big(card.ability.extra.h_mod) >= to_big(card.ability.immutable.h_mod_max) then
243+
if
244+
to_big(card.ability.extra.h_size) + to_big(card.ability.extra.h_mod)
245+
>= to_big(card.ability.immutable.h_mod_max)
246+
then
245247
card.ability.extra.h_size = card.ability.immutable.h_mod_max
246248
card.ability.extra.h_mod = 0
247249

@@ -255,7 +257,10 @@ local potofjokes = {
255257
end
256258
end
257259

258-
local delta = math.min(math.max(0, card.ability.immutable.h_mod_max - card.ability.extra.h_size), card.ability.extra.h_mod)
260+
local delta = math.min(
261+
math.max(0, card.ability.immutable.h_mod_max - card.ability.extra.h_size),
262+
card.ability.extra.h_mod
263+
)
259264

260265
G.hand:change_size(delta)
261266

localization/en-us.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2177,7 +2177,7 @@ return {
21772177
"{C:attention}#1#{} hand size,",
21782178
"increases by",
21792179
"{C:blue}#2#{} every round",
2180-
"{C:inactive}(Maximum {}{C:attention}#3#{}{C:inactive} hand size){}"
2180+
"{C:inactive}(Maximum {}{C:attention}#3#{}{C:inactive} hand size){}",
21812181
},
21822182
unlock = {
21832183
"Increase your {C:attention}handsize",

0 commit comments

Comments
 (0)