Skip to content

Commit e0f02a7

Browse files
author
jolly[bot]
committed
jolly-bot: auto-format Lua files using Stylua
1 parent 67352dc commit e0f02a7

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

lib/misc.lua

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1467,7 +1467,6 @@ function Card_Character:say_stuff(n, not_first, quip_key)
14671467
end
14681468
end
14691469

1470-
14711470
function Cryptid.is_number(x)
14721471
return type(x) == "number" or (type(x) == "table" and is_number(x)) or (is_big and is_big(x))
14731472
end

lib/misprintize.lua

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,9 @@ function Cryptid.misprintize_val(val, override, big, grow_type, pow_level)
229229
return val
230230
end
231231
function Cryptid.sanity_check(val, is_big)
232-
if not Talisman then return val end
232+
if not Talisman then
233+
return val
234+
end
233235
if is_big then
234236
if not val or type(val) == "number" and (val ~= val or val > 1e300 or val < -1e300) then
235237
val = 1e300
@@ -397,7 +399,9 @@ function Card:get_nominal(mod)
397399
end
398400

399401
function Cryptid.manipulate(card, args)
400-
if not card or not card.config or not card.config.center then return end
402+
if not card or not card.config or not card.config.center then
403+
return
404+
end
401405
if not Card.no(card, "immutable", true) or (args and args.bypass_checks) then
402406
if not args then
403407
return Cryptid.manipulate(card, {
@@ -489,10 +493,7 @@ function Cryptid.manipulate_table(card, ref_table, ref_value, args, tblkey)
489493
return
490494
end
491495
for i, v in pairs(ref_table[ref_value]) do
492-
if
493-
Cryptid.is_number(v)
494-
and Cryptid.misprintize_value_blacklist[i] ~= false
495-
then
496+
if Cryptid.is_number(v) and Cryptid.misprintize_value_blacklist[i] ~= false then
496497
local num = v
497498
if args.dont_stack then
498499
if

0 commit comments

Comments
 (0)