Skip to content
Snippets Groups Projects
Commit 03863574 authored by DarkGod's avatar DarkGod
Browse files

Merge branch 'Misc' into 'master'

Misc

Who broke the Nightmare?
parents 0a21c4de 7a33b2d4
No related branches found
No related tags found
No related merge requests found
......@@ -1218,7 +1218,9 @@ newEffect{
on_timeout = function(self, eff) -- Chance for nightmare fades over time
if eff.nightmareChance then eff.nightmareChance = math.max(0, eff.nightmareChance-1) end
end,
-- called by _M:onTakeHit function in in mod.class.Actor.lua
callbackOnHit = function(self, eff, cb)
game:onTickEnd(function() eff.doNightmare(self, eff) end)
end,
doNightmare = function(self, eff)
if math.min(eff.unlockLevel, eff.level) >= 4 then
-- build chance for a nightmare
......
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