-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathblinds.lua
More file actions
142 lines (133 loc) · 4.04 KB
/
Copy pathblinds.lua
File metadata and controls
142 lines (133 loc) · 4.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
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
135
136
137
138
139
140
141
142
SMODS.Atlas {
key = "wafflemod_blindAtlas",
path = "blind_chips.png",
px = 34,
py = 34,
atlas_table = "ANIMATION_ATLAS",
frames = 21
}
-- The Axe
SMODS.Blind {
key = "axe",
atlas = "wafflemod_blindAtlas",
dollars = 5,
mult = 2,
pos = { x = 0, y = 1 },
boss = { min = 3 },
boss_colour = HEX('645B3D'),
calculate = function(self, blind, context)
if not blind.disabled then
if context.pre_discard then
G.E_MANAGER:add_event(Event {
trigger = 'after',
delay = 0.2,
func = function()
ease_dollars(-3)
WaffleMod.juiceBlindWithSound()
return true
end
})
-- blind.triggered = true
--- return true
end
end
end
}
-- The Gate
SMODS.Blind {
boss_colour = HEX("8F7EA0"),
key = "gate",
boss = { min = 2 },
atlas = "wafflemod_blindAtlas",
dollars = 5,
mult = 2,
pos = { x = 0, y = 2 },
calculate = function(self, blind, context)
if not blind.disabled then
if context.before then
for i = 1, #G.play.cards do
local thisCard = G.play.cards[i]
local isEnhanced = false
local enhancements = SMODS.get_enhancements(thisCard)
for _, has in pairs(enhancements) do
if has then
--print("enhanced")
isEnhanced = true
end
end
if isEnhanced then
blind.triggered = true
G.E_MANAGER:add_event(Event({
func = function()
thisCard:juice_up()
return true
end,
blocking = false
}))
thisCard:set_ability('c_base', nil, true)
--delay(0.02)
end
end
if blind.triggered then
WaffleMod.juiceBlindWithSound()
delay(1)
end
end
end
end
}
-- The Tail (currently disabled due to bugs)
if false then
SMODS.Blind {
key = "tail",
boss_colour = HEX("89AF7D"),
boss = { min = 1 },
atlas = "wafflemod_blindAtlas",
dollars = 5,
mult = 2,
pos = { x = 0, y = 3 },
calculate = function(self, blind, context)
if not blind.disabled then
if context.before then
for _, v in pairs(context.full_hand) do
if not SMODS.has_no_rank(v) then
SMODS.modify_rank(v, -1, true)
G.E_MANAGER:add_event(Event({
func = function ()
v:juice_up()
return true
end
}))
blind.triggered = true
end
end
delay(0.2)
if blind.triggered then
WaffleMod.juiceBlindWithSound()
end
delay(0.4)
end
end
end
}
end
-- The Union (Currently disabled, not really that interesting)
if false then
SMODS.Blind {
key = "union",
boss = { min = 1 },
boss_colour = HEX('95509B'),
atlas = "wafflemod_blindAtlas",
dollars = 5,
mult = 2,
pos = { x = 0, y = 4 },
calculate = function(self, blind, context)
if context.debuff_hand and context.scoring_hand and #context.scoring_hand < 2 then
blind.triggered = true
return {
debuff = true
}
end
end
}
end