@@ -208,41 +208,27 @@ local googol_play = {
208208 cost = 15 ,
209209 copies = 1 ,
210210 rounds = 3 ,
211- rounds_left = 3 ,
211+ rounds_left = 3
212212 },
213213 mainline = { copies = 2 , rounds = 3 , rounds_left = 3 },
214214 },
215215 loc_vars = function (self , info_queue , center )
216- return {
217- key = Cryptid .gameset_loc (self , { modest = " balanced" }),
218- vars = { center .ability .copies , center .ability .rounds , center .ability .rounds_left },
219- }
216+ return { key = Cryptid .gameset_loc (self , { modest = " balanced" }), vars = { center .ability .copies , center .ability .rounds , center .ability .rounds_left } }
220217 end ,
221218 calculate = function (self , card , context )
222219 local gameset = Card .get_gameset (card )
223220 if context .after and not context .retrigger_joker and not context .blueprint then
224221 card .ability .rounds_left = card .ability .rounds_left - 1
225222 if to_big (card .ability .rounds_left ) <= to_big (0 ) then
226- local eval = function (card )
227- return not card .REMOVED
228- end
223+ local eval = function (card ) return not card .REMOVED end
229224 juice_card_until (self , eval , true )
230225 end
231226 return {
232- message = to_big (card .ability .rounds_left ) > to_big (0 )
233- and ((card .ability .rounds - card .ability .rounds_left ) .. " /" .. card .ability .rounds )
234- or localize (" k_active_ex" ),
235- colour = G .C .FILTER ,
227+ message = to_big (card .ability .rounds_left ) > to_big (0 ) and ((card .ability .rounds - card .ability .rounds_left ).. ' /' .. card .ability .rounds ) or localize (' k_active_ex' ),
228+ colour = G .C .FILTER
236229 }
237230 end
238- if
239- (
240- context .selling_self
241- and not context .retrigger_joker
242- and not context .blueprint
243- and to_big (card .ability .rounds_left ) <= to_big (0 )
244- ) or context .forcetrigger
245- then
231+ if (context .selling_self and not context .retrigger_joker and not context .blueprint and to_big (card .ability .rounds_left ) <= to_big (0 )) or context .forcetrigger then
246232 local jokers = {}
247233 for i = 1 , # G .jokers .cards do
248234 if G .jokers .cards [i ] ~= card then
@@ -433,16 +419,12 @@ local canvas = {
433419 blueprint_compat = true ,
434420 atlas = " atlasepic" ,
435421 calculate = function (self , card , context )
436- if
437- context .retrigger_joker_check
438- and not context .retrigger_joker
439- and context .other_card == G .jokers .cards [1 ]
440- then
422+ if context .retrigger_joker_check and not context .retrigger_joker and context .other_card == G .jokers .cards [1 ] then
441423 local num_retriggers = 0
442424 local rarities = {}
443425 for i = 1 , # G .jokers .cards do
444426 local joker = G .jokers .cards [i ]
445- if not rarities [joker .config .center .rarity ] then
427+ if not rarities [joker .config .center .rarity ] then
446428 rarities [joker .config .center .rarity ] = true
447429 num_retriggers = num_retriggers + 1
448430 end
@@ -928,7 +910,7 @@ local boredom = {
928910 local cards = {}
929911 for i , v in pairs (G .jokers .cards ) do
930912 if v .config .center .key ~= " j_cry_boredom" then
931- cards [# cards + 1 ] = v
913+ cards [# cards + 1 ] = v
932914 end
933915 end
934916 local joker = pseudorandom_element (cards , pseudoseed (" cry_boredom_joker" ))
@@ -1017,11 +999,16 @@ local number_blocks = {
1017999 }
10181000 end ,
10191001 calculate = function (self , card , context )
1020- if context .after and not context .blueprint and not context .before and not context .after then
1002+ if
1003+ context .after
1004+ and not context .blueprint
1005+ and not context .before
1006+ and not context .after
1007+ then
10211008 for i , v in pairs (G .hand .cards ) do
10221009 if v :get_id () == G .GAME .current_round .cry_nb_card .id and not v .debuff then
10231010 card .ability .extra .money =
1024- lenient_bignum (to_big (card .ability .extra .money ) + card .ability .extra .money_mod )
1011+ lenient_bignum (to_big (card .ability .extra .money ) + card .ability .extra .money_mod )
10251012 card_eval_status_text (card , " extra" , nil , nil , nil , { message = localize (" k_upgrade_ex" ) })
10261013 return nil , true
10271014 end
@@ -1783,6 +1770,92 @@ local goldjoker = {
17831770-- Sell this card to create 2 copies of the leftmost Joker
17841771-- Still needs updated description
17851772
1773+ local altgoogol = {
1774+ object_type = " Joker" ,
1775+ name = " cry-altgoogol" ,
1776+ key = " altgoogol" ,
1777+ config = {
1778+ extra = {
1779+ Xmult = 12 ,
1780+ odds = 8 ,
1781+ },
1782+ },
1783+ dependencies = {
1784+ items = {
1785+ " set_cry_epic" ,
1786+ },
1787+ },
1788+ gameset_config = {
1789+ modest = { extra = { Xmult = 9 , odds = 8 } },
1790+ },
1791+ pos = { x = 4 , y = 3 },
1792+ rarity = " cry_epic" ,
1793+ cost = 10 ,
1794+ order = 14 ,
1795+ blueprint_compat = true ,
1796+ demicoloncompat = true ,
1797+ atlas = " atlasepic" ,
1798+ soul_pos = { x = 10 , y = 0 , extra = { x = 5 , y = 3 } },
1799+ loc_vars = function (self , info_queue , card )
1800+ return {
1801+ vars = {
1802+ cry_prob (card .ability .cry_prob , card .ability .extra .odds , card .ability .cry_rigged ),
1803+ card .ability .extra .odds ,
1804+ number_format (card .ability .extra .Xmult ),
1805+ },
1806+ }
1807+ end ,
1808+ calculate = function (self , card , context )
1809+ if
1810+ context .joker_main
1811+ and pseudorandom (" cry_googol_play" )
1812+ < cry_prob (card .ability .cry_prob , card .ability .extra .odds , card .ability .cry_rigged ) / card .ability .extra .odds
1813+ then
1814+ return {
1815+ message = localize ({
1816+ type = " variable" ,
1817+ key = " a_xmult" ,
1818+ vars = { number_format (card .ability .extra .Xmult ) },
1819+ }),
1820+ Xmult_mod = lenient_bignum (card .ability .extra .Xmult ),
1821+ }
1822+ end
1823+ if context .forcetrigger then
1824+ return {
1825+ message = localize ({
1826+ type = " variable" ,
1827+ key = " a_xmult" ,
1828+ vars = { number_format (card .ability .extra .Xmult ) },
1829+ }),
1830+ Xmult_mod = lenient_bignum (card .ability .extra .Xmult ),
1831+ }
1832+ end
1833+ end ,
1834+ cry_credits = {
1835+ idea = {
1836+ " .asdom" ,
1837+ },
1838+ art = {
1839+ " Linus Goof Balls" ,
1840+ },
1841+ code = {
1842+ " Math" ,
1843+ },
1844+ },
1845+ unlocked = false ,
1846+ check_for_unlock = function (self , args )
1847+ if args .type == " chip_score" and to_big (args .chips ) >= to_big (1e100 ) then
1848+ unlock_card (self )
1849+ end
1850+ if args .type == " cry_lock_all" then
1851+ lock_card (self )
1852+ end
1853+ if args .type == " cry_unlock_all" then
1854+ unlock_card (self )
1855+ end
1856+ end ,
1857+ }
1858+
17861859-- One For All
17871860-- +1 Joker slot, Booster Pack slot, hand size, consumable slot, shop slot
17881861local soccer = {
@@ -1807,7 +1880,6 @@ local soccer = {
18071880 add_to_deck = function (self , card , from_debuff )
18081881 card .ability .extra .holygrail = math.floor (card .ability .extra .holygrail )
18091882 local mod = card .ability .extra .holygrail
1810- G .jokers .config .card_limit = G .jokers .config .card_limit + ((Card .get_gameset (card ) == " modest" ) and 0 or mod )
18111883 G .consumeables .config .card_limit = G .consumeables .config .card_limit + mod
18121884 G .hand :change_size (mod )
18131885 SMODS .change_booster_limit (mod )
@@ -1816,7 +1888,6 @@ local soccer = {
18161888 remove_from_deck = function (self , card , from_debuff )
18171889 card .ability .extra .holygrail = math.floor (card .ability .extra .holygrail )
18181890 local mod = card .ability .extra .holygrail
1819- G .jokers .config .card_limit = G .jokers .config .card_limit + ((Card .get_gameset (card ) == " modest" ) and 0 or - mod )
18201891 G .consumeables .config .card_limit = G .consumeables .config .card_limit - mod
18211892 G .hand :change_size (- mod )
18221893 SMODS .change_booster_limit (- mod )
0 commit comments