@@ -6687,62 +6687,63 @@ local kittyprinter = {
66876687}
66886688local kidnap = {
66896689 object_type = " Joker" ,
6690- dependencies = {
6691- items = {
6692- " set_cry_misc_joker" ,
6693- },
6694- },
66956690 name = " cry-kidnap" ,
66966691 key = " kidnap" ,
66976692 order = 23 ,
66986693 pos = { x = 1 , y = 2 },
66996694 config = {
6700- extra = { money = 1 , money_mod = 3 } ,
6695+ extra = 4 ,
67016696 },
67026697 rarity = 1 ,
67036698 cost = 4 ,
67046699 blueprint_compat = false ,
67056700 loc_vars = function (self , info_queue , center )
6706- return { vars = { center .ability .extra .money_mod , center .ability .extra .money } }
6701+ local value = 0
6702+ if G .GAME and G .GAME .jokers_sold then
6703+ for _ , v in ipairs (G .GAME .jokers_sold ) do
6704+ if
6705+ G .P_CENTERS [v ].effect == " Type Mult"
6706+ or G .P_CENTERS [v ].effect == " Cry Type Mult"
6707+ or G .P_CENTERS [v ].effect == " Cry Type Chips"
6708+ or G .P_CENTERS [v ].effect == " Boost Kidnapping"
6709+ or (
6710+ G .P_CENTERS [v ].name == " Sly Joker"
6711+ or G .P_CENTERS [v ].name == " Wily Joker"
6712+ or G .P_CENTERS [v ].name == " Clever Joker"
6713+ or G .P_CENTERS [v ].name == " Devious Joker"
6714+ or G .P_CENTERS [v ].name == " Crafty Joker"
6715+ )
6716+ then
6717+ value = value + 1
6718+ end
6719+ end
6720+ end
6721+ return { vars = { center .ability .extra , center .ability .extra * value } }
67076722 end ,
67086723 atlas = " atlasone" ,
6709- calculate = function (self , card , context )
6710- if
6711- context .selling_card
6712- and (
6713- (
6714- context .card .ability .name == " Sly Joker"
6715- or context .card .ability .name == " Wily Joker"
6716- or context .card .ability .name == " Clever Joker"
6717- or context .card .ability .name == " Devious Joker"
6718- or context .card .ability .name == " Crafty Joker"
6724+ calc_dollar_bonus = function (self , card )
6725+ local value = 0
6726+ for _ , v in ipairs (G .GAME .jokers_sold ) do
6727+ if
6728+ G .P_CENTERS [v ].effect == " Type Mult"
6729+ or G .P_CENTERS [v ].effect == " Cry Type Mult"
6730+ or G .P_CENTERS [v ].effect == " Cry Type Chips"
6731+ or G .P_CENTERS [v ].effect == " Boost Kidnapping"
6732+ or (
6733+ G .P_CENTERS [v ].name == " Sly Joker"
6734+ or G .P_CENTERS [v ].name == " Wily Joker"
6735+ or G .P_CENTERS [v ].name == " Clever Joker"
6736+ or G .P_CENTERS [v ].name == " Devious Joker"
6737+ or G .P_CENTERS [v ].name == " Crafty Joker"
67196738 )
6720- or context .card .ability .effect == " Type Mult"
6721- or context .card .ability .effect == " Cry Type Mult"
6722- or context .card .ability .effect == " Cry Type Chips"
6723- --[[
6724- Other developers can add effect == "Boost Kidnapping"
6725- to their joker config if they want it to boost kidnapping when sold
6726- ]]
6727- --
6728- or context .card .ability .effect == " Boost Kidnapping"
6729- or context .card :is_jolly ()
6730- )
6731- and not context .blueprint
6732- then
6733- card .ability .extra .money = card .ability .extra .money + card .ability .extra .money_mod
6734- return {
6735- card_eval_status_text (card , " extra" , nil , nil , nil , {
6736- message = localize (" k_upgrade_ex" ),
6737- colour = G .C .MONEY ,
6738- }),
6739- }
6739+ then
6740+ value = value + 1
6741+ end
67406742 end
6741- end ,
6742- calc_dollar_bonus = function (self , card )
6743- if card .ability .extra .money > 0 then
6744- return card .ability .extra .money
6743+ if value == 0 then
6744+ return
67456745 end
6746+ return card .ability .extra * value
67466747 end ,
67476748 cry_credits = {
67486749 idea = {
0 commit comments