Skip to content
Snippets Groups Projects
Commit d2959b4e authored by dg's avatar dg
Browse files

hum

git-svn-id: http://svn.net-core.org/repos/t-engine4@4694 51575b47-30f0-44d4-a5cc-537603b46e54
parent d56c1fea
No related branches found
No related tags found
No related merge requests found
......@@ -1192,7 +1192,7 @@ function _M:setupCommands()
end end
end end,
[{"_g","ctrl"}] = function() if config.settings.cheat then
self.level.map:particleEmitter(game.player.x, game.player.y, 1, "fog", {})
self.player:setEffect(self.player.EFF_FROZEN, 10, {hp=1})
end end,
[{"_f","ctrl"}] = function() if config.settings.cheat then
self.player.quests["love-melinda"] = nil
......
......@@ -81,9 +81,13 @@ setDefaultProjector(function(src, x, y, type, dam, tmp, no_martyr)
if eff.hp < 0 and not eff.begone then
game.logSeen(src, "%s forces the iceblock to shatter.", src.name:capitalize())
game:onTickEnd(function() src:removeEffect(src.EFF_FROZEN) end)
eff.begone = true
eff.begone = game.turn
else
game:delayedLogDamage(src, {name="Iceblock", x=src.x, y=src.y}, dam, ("%s%d %s#LAST#"):format(DamageType:get(type).text_color or "#aaaaaa#", math.ceil(dam), DamageType:get(type).name))
if eff.begone and eff.begone < game.turn and eff.hp < 0 then
game.logSeen(src, "%s forces2 the iceblock to shatter.", src.name:capitalize())
src:removeEffect(src.EFF_FROZEN)
end
end
return 0
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment