Skip to content

Commit 9917f45

Browse files
author
jolly[bot]
committed
jolly-bot: auto-format Lua files using Stylua
1 parent c435095 commit 9917f45

File tree

3 files changed

+29
-29
lines changed

3 files changed

+29
-29
lines changed

items/epic.lua

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2477,7 +2477,7 @@ local starfruit = {
24772477
calculate = function(self, card, context)
24782478
if context.joker_main then
24792479
return {
2480-
Emult = card.ability.emult
2480+
Emult = card.ability.emult,
24812481
}
24822482
end
24832483
if context.reroll_shop then
@@ -2509,9 +2509,9 @@ local starfruit = {
25092509
message = localize("k_eaten_ex"),
25102510
colour = G.C.RARITY.cry_epic,
25112511
}
2512-
else
2512+
else
25132513
return {
2514-
message = "-^"..number_format(card.ability.emult_mod).." Mult",
2514+
message = "-^" .. number_format(card.ability.emult_mod) .. " Mult",
25152515
colour = G.C.RARITY.cry_epic,
25162516
}
25172517
end
@@ -2521,14 +2521,14 @@ local starfruit = {
25212521
return {
25222522
vars = {
25232523
number_format(card.ability.emult),
2524-
number_format(card.ability.emult_mod)
2525-
}
2524+
number_format(card.ability.emult_mod),
2525+
},
25262526
}
25272527
end,
25282528
cry_credits = {
2529-
art = {"lord.ruby"},
2530-
code = {"lord.ruby"},
2531-
idea = {"NinjaBanana"}
2529+
art = { "lord.ruby" },
2530+
code = { "lord.ruby" },
2531+
idea = { "NinjaBanana" },
25322532
},
25332533
check_for_unlock = function(self, args)
25342534
if args.type == "foods_destroyed" and to_big(args.destroyed) >= 2 then
@@ -2546,17 +2546,17 @@ local starfruit = {
25462546
function Card:remove(...)
25472547
if self:is_food() and self.area == G.jokers and not G.SETTINGS.paused then
25482548
G.cry_foods_eaten = (G.cry_foods_eaten or 0) + 1
2549-
check_for_unlock({type="foods_destroyed", destroyed = G.cry_foods_eaten})
2549+
check_for_unlock({ type = "foods_destroyed", destroyed = G.cry_foods_eaten })
25502550
G.E_MANAGER:add_event(Event({
25512551
func = function()
25522552
G.cry_foods_eaten = nil
25532553
return true
2554-
end
2554+
end,
25552555
}))
25562556
end
25572557
return card_remove_ref(self, ...)
25582558
end
2559-
end
2559+
end,
25602560
}
25612561

25622562
return {
@@ -2588,6 +2588,6 @@ return {
25882588
jtron,
25892589
clockwork,
25902590
demicolon,
2591-
starfruit
2591+
starfruit,
25922592
},
25932593
}

lib/misc.lua

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -918,21 +918,21 @@ function Cryptid.reset_to_none()
918918
})
919919
end
920920

921-
922-
923921
function Card:is_food()
924922
--you cant really check if vanilla jokers are in a pool because its hardcoded
925923
--so i have to hardcode it here too for the starfruit unlock
926-
local food = {
927-
j_gros_michel=true,
928-
j_egg=true,
929-
j_ice_cream=true,
930-
j_cavendish=true,
931-
j_turtle_bean=true,
932-
j_diet_cola=true,
933-
j_popcorn=true,
934-
j_ramen=true,
935-
j_selzer=true,
936-
}
937-
if food[self.config.center.key] or Cryptid.safe_get(self.config.center, "pools", "Food") then return true end
938-
end
924+
local food = {
925+
j_gros_michel = true,
926+
j_egg = true,
927+
j_ice_cream = true,
928+
j_cavendish = true,
929+
j_turtle_bean = true,
930+
j_diet_cola = true,
931+
j_popcorn = true,
932+
j_ramen = true,
933+
j_selzer = true,
934+
}
935+
if food[self.config.center.key] or Cryptid.safe_get(self.config.center, "pools", "Food") then
936+
return true
937+
end
938+
end

localization/en-us.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1519,8 +1519,8 @@ return {
15191519
text = {
15201520
"{X:dark_edition,C:white}^#1#{} Mult",
15211521
"{X:dark_edition,C:white}-^#2#{} Mult per",
1522-
"{C:attention}reroll{} in the shop"
1523-
}
1522+
"{C:attention}reroll{} in the shop",
1523+
},
15241524
},
15251525
j_cry_digitalhallucinations = {
15261526
name = "Digital Hallucinations",

0 commit comments

Comments
 (0)