Skip to content

Commit 2252980

Browse files
author
jolly[bot]
committed
jolly-bot: auto-format Lua files using Stylua
1 parent 4e4f696 commit 2252980

File tree

2 files changed

+12
-15
lines changed

2 files changed

+12
-15
lines changed

items/exotic.lua

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1354,14 +1354,14 @@ local verisimile = {
13541354
-- "well i am" - invalid, writing this comment
13551355
demicoloncompat = true,
13561356
blueprint_compat = true,
1357-
1357+
13581358
atlas = "placeholders",
13591359
loc_vars = function(self, info_queue, center)
13601360
return { vars = { number_format(center.ability.extra.xmult) } }
13611361
end,
13621362
calculate = function(self, card, context)
13631363
if context.pseudorandom_result and context.result then
1364-
-- implementation that doesn't use SMODS.scale_card; use if scale_card causes weird or unexpected behavior
1364+
-- implementation that doesn't use SMODS.scale_card; use if scale_card causes weird or unexpected behavior
13651365
--[[
13661366
card.ability.extra.xmult = lenient_bignum(card.ability.extra.xmult + context.denominator)
13671367
return {
@@ -1376,7 +1376,7 @@ local verisimile = {
13761376
SMODS.scale_card(card, {
13771377
-- this should not affect the probability in the context table
13781378
block_overrides = {
1379-
scalar = true
1379+
scalar = true,
13801380
},
13811381

13821382
ref_table = card.ability.extra,
@@ -1392,12 +1392,12 @@ local verisimile = {
13921392
},
13931393
})
13941394

1395-
-- forcetriggers won't scale non verisimile, because how much would you scale it by
1396-
elseif context.joker_main or context.forcetrigger then
1395+
-- forcetriggers won't scale non verisimile, because how much would you scale it by
1396+
elseif context.joker_main or context.forcetrigger then
13971397
return {
13981398
xmult = lenient_bignum(card.ability.extra.xmult),
13991399
}
1400-
end
1400+
end
14011401
end,
14021402
cry_credits = {
14031403
idea = { "Enemui" },

items/misc_joker.lua

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10421,7 +10421,9 @@ local yarnball = { -- +1 to all listed probabilities for the highest cat tag lev
1042110421
order = 140,
1042210422
demicoloncompat = false,
1042310423
in_pool = function(self)
10424-
if not G.GAME.tags or #G.GAME.tags == 0 then return false end
10424+
if not G.GAME.tags or #G.GAME.tags == 0 then
10425+
return false
10426+
end
1042510427
for _, tag in pairs(G.GAME.tags) do
1042610428
if tag.key == "tag_cry_cat" then
1042710429
return true
@@ -10430,27 +10432,22 @@ local yarnball = { -- +1 to all listed probabilities for the highest cat tag lev
1043010432
return false
1043110433
end,
1043210434
calculate = function(self, card, context)
10433-
1043410435
if context.mod_probability and not context.blueprint then
10435-
1043610436
local highest_cat_lvl = 0
10437-
for _,tag in pairs(G.GAME.tags) do
10437+
for _, tag in pairs(G.GAME.tags) do
1043810438
local lvl = tag.ability.level
1043910439
if highest_cat_lvl < 1 and tag.key == "tag_cry_cat" then
1044010440
highest_cat_lvl = 1
1044110441
end
10442-
if (lvl and lvl > highest_cat_lvl) then
10442+
if lvl and lvl > highest_cat_lvl then
1044310443
highest_cat_lvl = lvl
1044410444
end
10445-
10446-
1044710445
end
1044810446

1044910447
return {
10450-
numerator = context.numerator + highest_cat_lvl
10448+
numerator = context.numerator + highest_cat_lvl,
1045110449
}
1045210450
end
10453-
1045410451
end,
1045510452
}
1045610453

0 commit comments

Comments
 (0)