@@ -241,14 +241,23 @@ local hammerspace = {
241241 name = " cry-Hammerspace" ,
242242 key = " hammerspace" ,
243243 pos = { x = 4 , y = 3 },
244- config = {},
244+ config = { extra = 2 },
245245 cost = 4 ,
246246 order = 453 ,
247247 atlas = " atlasnotjokers" ,
248+ loc_vars = function (self , _ , card )
249+ return {
250+ vars = {
251+ number_format (card .ability .extra ),
252+ number_format (G .GAME .hammerspace_mod_price )
253+ }
254+ }
255+ end
248256 can_use = function (self , card )
249257 return # G .hand .cards > 0
250258 end ,
251259 use = function (self , card , area , copier )
260+ G .GAME .hammerspace_mod_price = (G .GAME .hammerspace_mod_price or 0 ) + card .ability .extra
252261 local used_consumable = copier or card
253262 check_for_unlock ({ cry_used_consumable = " c_cry_hammerspace" })
254263 G .E_MANAGER :add_event (Event ({
@@ -458,17 +467,25 @@ local replica = {
458467 name = " cry-Replica" ,
459468 key = " replica" ,
460469 pos = { x = 1 , y = 1 },
461- config = {},
470+ config = { extra = 1 },
462471 cost = 4 ,
463472 order = 455 ,
464473 atlas = " atlasnotjokers" ,
474+ loc_vars = function (self , _ , card )
475+ return {
476+ vars = {
477+ number_format (card .ability .extra )
478+ }
479+ }
480+ end ,
465481 can_use = function (self , card )
466482 return # G .hand .cards > 0
467483 end ,
468484 use = function (self , card , area , copier )
469485 local used_consumable = copier or card
470486 check_for_unlock ({ cry_used_consumable = " c_cry_replica" })
471487 local chosen_card = pseudorandom_element (G .hand .cards , pseudoseed (" cry_replica_choice" ))
488+ G .hand .config .card_limit = G .hand .config .card_limit - card .ability .extra
472489 G .E_MANAGER :add_event (Event ({
473490 trigger = " after" ,
474491 delay = 0.4 ,
0 commit comments