forked from flynnsanefellow/flynnsanity
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmurderguy.lua
More file actions
71 lines (67 loc) · 2.05 KB
/
Copy pathmurderguy.lua
File metadata and controls
71 lines (67 loc) · 2.05 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
65
66
67
68
69
70
71
SMODS.Joker{ --Murderguy
key = "murderguy",
config = {
extra = {
}
},
loc_txt = {
['name'] = 'Murderguy',
['text'] = {
[1] = 'When this is the leftmost joker, {C:red}destroy{} all discarded cards',
[2] = 'Earn {C:money}+3${} when a card is destroyed this way.}'
},
['unlock'] = {
[1] = 'Unlocked by default.'
}
},
pos = {
x = 0,
y = 3
},
soul_pos = {
x = 1,
y = 3
},
display_size = {
w = 71 * 1,
h = 95 * 1
},
cost = 20,
rarity = 4,
blueprint_compat = true,
eternal_compat = true,
perishable_compat = true,
unlocked = true,
discovered = true,
atlas = 'legendaries',
in_pool = function(self, args)
return (
not args
or args.source ~= 'sho'
or args.source == 'buf' or args.source == 'jud' or args.source == 'rif' or args.source == 'rta' or args.source == 'sou' or args.source == 'uta' or args.source == 'wra'
)
and true
end,
calculate = function(self, card, context)
if context.discard then
if (function()
return G.jokers.cards[1] == card
end)() then
return {
remove = true,
extra = {
func = function()
local current_dollars = G.GAME.dollars
local target_dollars = G.GAME.dollars + 3
local dollar_value = target_dollars - current_dollars
ease_dollars(dollar_value)
card_eval_status_text(context.blueprint_card or card, 'extra', nil, nil, nil, {message = "+"..tostring(3), colour = G.C.MONEY})
return true
end,
colour = G.C.MONEY
}
}
end
end
end
}