-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathmain.lua
More file actions
65 lines (62 loc) · 2.13 KB
/
main.lua
File metadata and controls
65 lines (62 loc) · 2.13 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
SMODS.Atlas {
key = "modicon",
path = "icon.png",
px = 34,
py = 34,
}:register()
SMODS.Joker:take_ownership("j_perkeo", {
demicoloncompat = true,
name = "Perkeo (Overflow)",
calculate = function(self, orig_card, context)
return PerkeoOverride(self, orig_card, context)
end
})
SMODS.Voucher:take_ownership('observatory', {
calculate = function(self, card, context)
if
context.other_consumeable and
context.other_consumeable.ability.set == 'Planet' and
context.other_consumeable.ability.consumeable.hand_type == context.scoring_name
then
return {
x_mult = to_big(card.ability.extra) ^ (context.other_consumeable.qty or 1),
message_card = context.other_consumeable,
}
end
end,
})
SMODS.Joker:take_ownership("j_constellation", {
demicoloncompat = true,
name = "Constellation (Overflow)",
calculate = function(self, card, context)
if (context.using_consumeable and context.consumeable.ability.set == 'Planet' and not context.blueprint) or context.forcetrigger then
for _=1,(context.consumeable and context.consumeable.qty_used or 1)-1 do
SMODS.scale_card(card, {
ref_table = card.ability,
ref_value = "x_mult",
scalar_value = "extra",
scaling_message = {}
})
end
SMODS.scale_card(card, {
ref_table = card.ability,
ref_value = "x_mult",
scalar_value = "extra",
message_key = 'a_xmult'
})
return nil, true
end
end,
loc_vars = function(self,q,card)
return {
vars = {
card.ability.extra,
card.ability.x_mult
}
}
end
})
SMODS.current_mod.config_tab = Overflow.overflowConfigTab
to_big = to_big or function(num) return num or -1e300 end
is_number = is_number or function(num) return type(num) == "number" end
to_number = to_number or function(num) return num or -1e300 end