-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.lua
More file actions
40 lines (37 loc) · 1.04 KB
/
main.lua
File metadata and controls
40 lines (37 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
SMODS.Atlas {
key = "modicon",
path = "ATFzIcon.png",
px = 34,
py = 34
}
SMODS.Atlas {
key = "ATFz",
path = "ATFz.png",
px = 71,
py = 95
}
SMODS.Joker {
key = 'atfz',
config = { extra = { added_xmult = 0.25, current_xmult = 1 } },
rarity = 3,
atlas = 'ATFz',
pos = { x = 0, y = 0 },
cost = 7,
loc_vars = function(self, info_queue, card)
return { vars = { card.ability.extra.added_xmult, card.ability.extra.current_xmult } }
end,
blueprint_compat = true,
eternal_compat = true,
perishable_compat = false,
calculate = function(self, card, context)
if context.buying_card and context.card.config.center.set == "Joker" and context.card.config.center.rarity == 2 then
card.ability.extra.current_xmult = card.ability.extra.current_xmult + card.ability.extra.added_xmult
return { message = localize("k_upgrade_ex"), colour = G.C.FILTER }
end
if context.joker_main and card.ability.extra.current_xmult > 1 then
return {
xmult = card.ability.extra.current_xmult
}
end
end
}