forked from threeofaband/bountiful
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdecks.lua
More file actions
134 lines (130 loc) · 3.85 KB
/
decks.lua
File metadata and controls
134 lines (130 loc) · 3.85 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
local atlas = SMODS.Atlas {
key = 'decks',
path = 'decks.png',
px = 71,
py = 95,
}
SMODS.Back{
key = 'burgundy',
atlas = 'decks',
pos = {x = 0, y = 0},
loc_txt = {
name = 'Burgundy Deck',
text = {
'{C:hearts}Hearts{} and {C:diamonds}Diamonds{}',
'are {C:dark_edition}Holographic{}',
'No {C:money}Boss Blind{} reward'
},
},
apply = function(self)
G.E_MANAGER:add_event(Event({
func = function()
for i = #G.playing_cards, 1, -1 do
local card = G.playing_cards[i]
if card.base.suit == 'Hearts' or card.base.suit == 'Diamonds' then
card:set_edition('e_holo', nil, true)
end
end
G.GAME.modifiers.no_blind_reward = G.GAME.modifiers.no_blind_reward or {}
G.GAME.modifiers.no_blind_reward.Boss = true
return true
end
}))
end
}
SMODS.Back{
key = 'beige',
atlas = 'decks',
pos = {x = 1, y = 0},
loc_txt = {
name = 'Beige Deck',
text = {
'{C:hearts}Hearts{} and {C:spades}Spades{}',
'are {C:attention}Lucky Cards{}',
'No {C:money}Interest{}'
},
},
apply = function(self)
G.E_MANAGER:add_event(Event({
func = function()
for i = #G.playing_cards, 1, -1 do
local card = G.playing_cards[i]
if card.base.suit == 'Hearts' or card.base.suit == 'Spades' then
card:set_ability(G.P_CENTERS["m_lucky"])
end
end
G.GAME.modifiers.no_interest = true
return true
end
}))
end
}
SMODS.Back{
key = 'bleak',
atlas = 'decks',
pos = {x = 2, y = 0},
loc_txt = {
name = 'Bleak Deck',
text = {
'Cards have {C:green}1 in 2{}',
'chance to be {C:dark_edition}Negative{}',
'{C:red}No money at end of round{}',
'{C:red}-2{} discards'
},
},
apply = function(self)
G.E_MANAGER:add_event(Event({
func = function()
for i = #G.playing_cards, 1, -1 do
if pseudorandom('bleak') < 0.5 then
G.playing_cards[i]:set_edition('e_negative', nil, true)
end
end
G.GAME.modifiers.no_blind_reward = G.GAME.modifiers.no_blind_reward or {}
G.GAME.modifiers.no_blind_reward.Small = true
G.GAME.modifiers.no_blind_reward.Big = true
G.GAME.modifiers.no_blind_reward.Boss = true
G.GAME.modifiers.no_interest = true
G.GAME.modifiers.money_per_hand = 0
return true
end
}))
end,
config = {discards = -2},
loc_vars = function(self)
return { vars = { self.config.discards }}
end,
}
SMODS.Back{
key = 'blanch',
atlas = 'decks',
pos = {x = 3, y = 0},
loc_txt = {
name = 'Blanched Deck',
text = {
'{C:attention}4s{} only',
'{C:attention}4{} discards',
'{C:attention}4{} dollars',
'{C:attention}4{} hand size',
'{C:attention}4{} joker slots',
'{C:attention}4{} consumable slots',
},
},
apply = function(self)
G.E_MANAGER:add_event(Event({
func = function()
for i = #G.playing_cards, 1, -1 do
local card = G.playing_cards[i]
if card:get_id() ~= 4 then
card:remove()
end
end
return true
end
}))
end,
config = {hand_size = -4, discards = 1, consumable_slot = 2, joker_slot = -1},
loc_vars = function(self)
return { vars = { self.config.hand_size, self.config.discards, self.config.joker_slot, self.config.consumable_slot}}
end,
}