Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

basicgroundtileeffects fix #1

Merged
merged 9 commits into from
Jun 30, 2016
7 changes: 6 additions & 1 deletion scripts/basictilegroundeffects.lua
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,13 @@ function update(dt)
end

function applyTileEffects(groundMat)
-- sb.logInfo("groundMat: %s", groundMat)
for i, effect in ipairs(groundMat[1]) do -- so multiple Ephemeral Effects possible from a tile
status.addEphemeralEffects{{effect = self.matCheck[groundMat][1][i]}}
-- sb.logInfo("looking at %s / %s", i, effect)
-- sb.logInfo("self.matCheck[groundMat[1]] = %s", self.matCheck[groundMat[1]])
-- effect = self.matCheck[groundMat[1][i]]
-- sb.logInfo("effect now %s", effect)
-- status.addEphemeralEffects({effect})
end
mcontroller.controlModifiers({
groundMovementModifier = groundMat[2],
Expand Down