@@ -3442,7 +3442,9 @@ local log = {
34423442 use = function (self , card , area , copier )
34433443 G .GAME .USING_LOG = true
34443444 local chosen_effect = pseudorandom_element ({
3445- " ANTE" , " QUEUE" , G .GAME .blind .in_blind and " DRAW"
3445+ " ANTE" ,
3446+ " QUEUE" ,
3447+ G .GAME .blind .in_blind and " DRAW" ,
34463448 }, pseudoseed (" crylog_effect" ))
34473449 if chosen_effect == " ANTE" then
34483450 local pseudorandom = copy_table (G .GAME .pseudorandom )
@@ -3458,7 +3460,7 @@ local log = {
34583460 G .CHOOSE_CARD = UIBox ({
34593461 definition = create_UIBox_log ({
34603462 bl and G .localization .descriptions .Blind [bl ].name or " None" ,
3461- voucher and G .localization .descriptions .Voucher [voucher [1 ]].name or " None"
3463+ voucher and G .localization .descriptions .Voucher [voucher [1 ]].name or " None" ,
34623464 }, localize (" cry_code_antevoucher" )),
34633465 config = {
34643466 align = " cm" ,
@@ -3471,12 +3473,11 @@ local log = {
34713473 G .CHOOSE_CARD .alignment .offset .y = 0
34723474 G .ROOM .jiggle = G .ROOM .jiggle + 1
34733475 G .CHOOSE_CARD :align_to_major ()
3474- elseif chosen_effect == " QUEUE" then
3476+ elseif chosen_effect == " QUEUE" then
34753477 local pseudorandom = copy_table (G .GAME .pseudorandom )
3476- local j = {
3477- }
3478+ local j = {}
34783479 for i = 1 , 5 do
3479- j [# j + 1 ] = G .localization .descriptions [" Joker" ][Cryptid .predict_joker (" sho" )].name
3480+ j [# j + 1 ] = G .localization .descriptions [" Joker" ][Cryptid .predict_joker (" sho" )].name
34803481 end
34813482 G .GAME .pseudorandom = copy_table (pseudorandom )
34823483 G .GAME .USING_CODE = true
@@ -3494,11 +3495,10 @@ local log = {
34943495 G .ROOM .jiggle = G .ROOM .jiggle + 1
34953496 G .CHOOSE_CARD :align_to_major ()
34963497 elseif chosen_effect == " DRAW" then
3497- local j = {
3498- }
3498+ local j = {}
34993499 for i = 1 , 10 do
3500- local card = G .deck .cards [# G .deck .cards + 1 - i ]
3501- j [# j + 1 ] = localize (card .base .value , " ranks" ).. " of " .. localize (card .base .suit , " suits_plural" )
3500+ local card = G .deck .cards [# G .deck .cards + 1 - i ]
3501+ j [# j + 1 ] = localize (card .base .value , " ranks" ) .. " of " .. localize (card .base .suit , " suits_plural" )
35023502 end
35033503 G .GAME .USING_CODE = true
35043504 G .CHOOSE_CARD = UIBox ({
@@ -3533,7 +3533,7 @@ local log = {
35333533 local get_bossref = get_new_boss
35343534 function get_new_boss (...)
35353535 if G .GAME .LOG_BOSS then
3536- local v = " " .. G .GAME .LOG_BOSS
3536+ local v = " " .. G .GAME .LOG_BOSS
35373537 if not G .GAME .USING_LOG then
35383538 G .GAME .LOG_BOSS = nil
35393539 end
@@ -3545,11 +3545,11 @@ local log = {
35453545 local _pool , _pool_key = get_current_pool (" Joker" , nil , nil , seed )
35463546 center = pseudorandom_element (_pool , pseudoseed (_pool_key ))
35473547 local it = 1
3548- while center == ' UNAVAILABLE' do
3548+ while center == " UNAVAILABLE" do
35493549 it = it + 1
3550- center = pseudorandom_element (_pool , pseudoseed (_pool_key .. ( ' _resample' .. it ) ))
3550+ center = pseudorandom_element (_pool , pseudoseed (_pool_key .. ( " _resample" .. it )))
35513551 end
3552-
3552+
35533553 return center
35543554 end
35553555 function create_UIBox_log (options , mtype )
@@ -3561,19 +3561,41 @@ local log = {
35613561 end ,
35623562 }))
35633563 local contents = {}
3564- contents [# contents + 1 ] = {
3564+ contents [# contents + 1 ] = {
35653565 n = G .UIT .R ,
35663566 config = { align = " cm" },
3567- nodes = {{n = G .UIT .T , config = {text = mtype , lang = G .LANGUAGES [' en-us' ], scale = 0.45 , colour = G .C .WHITE , shadow = true }}}
3567+ nodes = {
3568+ {
3569+ n = G .UIT .T ,
3570+ config = {
3571+ text = mtype ,
3572+ lang = G .LANGUAGES [" en-us" ],
3573+ scale = 0.45 ,
3574+ colour = G .C .WHITE ,
3575+ shadow = true ,
3576+ },
3577+ },
3578+ },
35683579 }
35693580 for i , v in pairs (options ) do
3570- contents [# contents + 1 ] = {
3581+ contents [# contents + 1 ] = {
35713582 n = G .UIT .R ,
35723583 config = { align = " cm" },
3573- nodes = {{n = G .UIT .T , config = {text = v , lang = G .LANGUAGES [' en-us' ], scale = 0.45 , colour = G .C .WHITE , shadow = true }}}
3584+ nodes = {
3585+ {
3586+ n = G .UIT .T ,
3587+ config = {
3588+ text = v ,
3589+ lang = G .LANGUAGES [" en-us" ],
3590+ scale = 0.45 ,
3591+ colour = G .C .WHITE ,
3592+ shadow = true ,
3593+ },
3594+ },
3595+ },
35743596 }
35753597 end
3576- contents [# contents + 1 ] = {
3598+ contents [# contents + 1 ] = {
35773599 n = G .UIT .R ,
35783600 config = { align = " cm" },
35793601 nodes = {
@@ -3590,7 +3612,7 @@ local log = {
35903612 no_back = true ,
35913613 colour = HEX (" 04200c" ),
35923614 outline_colour = G .C .SECONDARY_SET .Code ,
3593- contents = contents
3615+ contents = contents ,
35943616 })
35953617 return t
35963618 end
@@ -3600,7 +3622,7 @@ local log = {
36003622 end
36013623 G .GAME .USING_CODE = false
36023624 end
3603- end
3625+ end ,
36043626 -- bulk_use = function(self, card, area, copier, number)
36053627
36063628 -- end,
0 commit comments