Skip to content

Commit 9af5c57

Browse files
authored
Added more object interactions with buttons
The best trilogy
1 parent e874f6b commit 9af5c57

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

button.lua

+8-2
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,15 @@ function button:init(x, y, t, r)
1515

1616
self.dir = "down"
1717
self.t = t or 1
18-
self.checktable = {"player", "box", "goomba", "koopa", "bomb", "splunkin", "sidestepper", "mole", "bigmole", "drybones", "core", "powblock", "enemy"}
1918
if self.t == 2 or self.t == 3 then
2019
self.checktable = {"box"}
20+
else
21+
self.checktable = {"player", "box", "core", "powblock", "smallspring", "pbutton", "enemy"}
22+
for i, v in pairs(enemies) do
23+
if v ~= "icicle" and v ~= "chainchomp" then
24+
table.insert(self.checktable, v)
25+
end
26+
end
2127
end
2228

2329
self.r = {unpack(r)}
@@ -159,4 +165,4 @@ end
159165

160166
function button:addoutput(a, t)
161167
table.insert(self.outtable, {a, t})
162-
end
168+
end

0 commit comments

Comments
 (0)