@@ -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
12961305local spookydeck = {
0 commit comments