Skip to content

Commit 9266181

Browse files
committed
2 parents 9586666 + 8d87464 commit 9266181

File tree

2 files changed

+18
-9
lines changed

2 files changed

+18
-9
lines changed

items/spooky.lua

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1235,19 +1235,26 @@ local rotten_egg = {
12351235
end
12361236
end,
12371237
calculate = function(self, card, context)
1238-
if context.end_of_round
1238+
if
1239+
context.end_of_round
12391240
and not context.blueprint
12401241
and not context.individual
12411242
and not context.repetition
1242-
and not context.retrigger_joker then
1243+
and not context.retrigger_joker
1244+
then
12431245
for i, v in pairs(G.jokers.cards) do
12441246
v.sell_cost = v.sell_cost - 1
12451247
end
12461248
return {
1247-
message = localize("k_downgraded_ex")
1249+
message = localize("k_downgraded_ex"),
12481250
}
12491251
end
1250-
if context.selling_card and context.card.ability.set == "Joker" and context.card and context.card.sell_cost ~= 0 then
1252+
if
1253+
context.selling_card
1254+
and context.card.ability.set == "Joker"
1255+
and context.card
1256+
and context.card.sell_cost ~= 0
1257+
then
12511258
card.ability.extra.left_money = card.ability.extra.left_money - context.card.sell_cost
12521259
if to_big(card.ability.extra.left_money) <= to_big(0) then
12531260
G.E_MANAGER:add_event(Event({
@@ -1256,9 +1263,11 @@ local rotten_egg = {
12561263
return true
12571264
end,
12581265
}))
1259-
else
1266+
else
12601267
return {
1261-
message = number_format(card.ability.extra.needed_money-card.ability.extra.left_money).."/"..number_format(card.ability.extra.needed_money)
1268+
message = number_format(card.ability.extra.needed_money - card.ability.extra.left_money)
1269+
.. "/"
1270+
.. number_format(card.ability.extra.needed_money),
12621271
}
12631272
end
12641273
end
@@ -1287,10 +1296,10 @@ local rotten_egg = {
12871296
local c = set_costref(self, ...)
12881297
if G.GAME.cry_rotten_amount then
12891298
self.sell_cost = G.GAME.cry_rotten_amount
1290-
self.sell_cost_label = self.facing == 'back' and '?' or number_format(self.sell_cost)
1299+
self.sell_cost_label = self.facing == "back" and "?" or number_format(self.sell_cost)
12911300
end
12921301
end
1293-
end
1302+
end,
12941303
}
12951304

12961305
local spookydeck = {

localization/en-us.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1126,7 +1126,7 @@ return {
11261126
"all current and future Jokers to {C:attention}$#1#{}",
11271127
"Reduce sell value of all {C:attention}Jokers{} by {C:attention}$#2#{}",
11281128
"at end of round, After Gaining {C:attention}$#3#{} {C:inactive}[#4#]{}",
1129-
"from selling {C:attention}Jokers{}, {C:red}Self-destruct{}"
1129+
"from selling {C:attention}Jokers{}, {C:red}Self-destruct{}",
11301130
},
11311131
},
11321132
j_cry_blender = {

0 commit comments

Comments
 (0)