|
1 | 1 | local the_mycologists = { |
2 | | - object_type = "Joker", |
3 | | - order = 47, |
4 | | - |
5 | | - key = "the_mycologists", |
6 | | - config = { |
7 | | - poker_hand = "Pair", |
8 | | - added = false |
9 | | - }, |
10 | | - rarity = 3, |
11 | | - pos = { x = 18, y = 1 }, |
12 | | - atlas = 'joker_atlas', |
13 | | - cost = 8, |
14 | | - unlocked = true, |
15 | | - discovered = false, |
16 | | - blueprint_compat = true, |
17 | | - eternal_compat = true, |
18 | | - |
19 | | - loc_vars = function(self, info_queue, card) |
20 | | - return { vars = {localize(card.ability.poker_hand, 'poker_hands')}} |
21 | | - end, |
22 | | - |
23 | | - calculate = function(self, card, context) |
24 | | - if context.final_scoring_step then |
25 | | - if context.scoring_name == card.ability.poker_hand and #context.full_hand == 2 then |
26 | | - local cards = G.play.cards |
27 | | - if card.ability.added == false then |
28 | | - card.ability.added = true |
29 | | - G.E_MANAGER:add_event(Event({ |
30 | | - trigger = 'after', |
31 | | - delay = 0.1, |
32 | | - func = function() |
33 | | - cards[1].ability.perma_bonus = cards[1].ability.perma_bonus + (cards[2].base.nominal + cards[2].ability.perma_bonus) |
34 | | - cards[1]:set_ability(cards[2].config.center) |
35 | | - if cards[2].edition ~= nil then |
36 | | - cards[1]:set_edition(cards[2].edition) |
37 | | - end |
38 | | - cards[2]:start_dissolve() |
39 | | - return true end })) |
40 | | - end |
| 2 | + object_type = "Joker", |
| 3 | + order = 47, |
| 4 | + |
| 5 | + key = "the_mycologists", |
| 6 | + config = { |
| 7 | + poker_hand = "Pair", |
| 8 | + -- added = false |
| 9 | + }, |
| 10 | + rarity = 3, |
| 11 | + pos = { x = 18, y = 1 }, |
| 12 | + atlas = 'joker_atlas', |
| 13 | + cost = 8, |
| 14 | + unlocked = true, |
| 15 | + discovered = false, |
| 16 | + blueprint_compat = false, |
| 17 | + eternal_compat = true, |
| 18 | + |
| 19 | + loc_vars = function(self, info_queue, card) |
| 20 | + return { vars = { localize(card.ability.poker_hand, 'poker_hands') } } |
| 21 | + end, |
| 22 | + |
| 23 | + calculate = function(self, card, context) |
| 24 | + if context.all_in_jest and context.all_in_jest.before_after and not context.blueprint then |
| 25 | + if context.scoring_name == card.ability.poker_hand and #context.full_hand == 2 then |
| 26 | + local cards = G.play.cards |
| 27 | + -- if card.ability.added == false then |
| 28 | + -- card.ability.added = true |
| 29 | + G.E_MANAGER:add_event(Event({ |
| 30 | + trigger = 'after', |
| 31 | + delay = 0.1, |
| 32 | + func = function() |
| 33 | + cards[1].ability.perma_bonus = cards[1].ability.perma_bonus + (cards[2].base.nominal + cards[2].ability.perma_bonus) |
| 34 | + if cards[2].config.center ~= G.P_CENTERS.c_base then |
| 35 | + cards[1]:set_ability(cards[2].config.center) |
| 36 | + end |
| 37 | + if cards[2].edition ~= nil then |
| 38 | + cards[1]:set_edition(cards[2].edition, true, true) |
| 39 | + end |
| 40 | + SMODS.destroy_cards(cards[2], nil, true) |
| 41 | + return true |
41 | 42 | end |
42 | | - end |
43 | | - if not context.blueprint and context.destroying_card and #context.full_hand == 2 then |
44 | | - local cards = G.play.cards |
45 | | - if context.destroying_card == cards[2] and card.ability.added == true then |
46 | | - return {remove = true} |
47 | | - end |
48 | | - end |
49 | | - if context.hand_drawn then |
50 | | - card.ability.added = false |
51 | | - end |
| 43 | + })) |
| 44 | + return { |
| 45 | + message = localize("k_aij_two_into_one_ex"), |
| 46 | + sound = 'slice1' |
| 47 | + } |
| 48 | + -- end |
| 49 | + end |
52 | 50 | end |
| 51 | + -- if not context.blueprint and context.destroying_card and #context.full_hand == 2 then |
| 52 | + -- local cards = G.play.cards |
| 53 | + -- if context.destroying_card == cards[2] and card.ability.added == true then |
| 54 | + -- return { remove = true } |
| 55 | + -- end |
| 56 | + -- end |
| 57 | + -- if context.hand_drawn then |
| 58 | + -- card.ability.added = false |
| 59 | + -- end |
| 60 | + end |
53 | 61 | } |
54 | | -return { name = {"Jokers"}, items = {the_mycologists} } |
| 62 | +return { name = { "Jokers" }, items = { the_mycologists } } |
0 commit comments