Better delay

This commit is contained in:
Duane Robertson 2016-05-26 01:49:08 -05:00
parent 234b71064c
commit 58ed1a5e1c
14 changed files with 29 additions and 42 deletions

View file

@ -108,10 +108,7 @@ mobs:register_mob("fun_caves:goblin_copper", {
end,
do_custom = function(self)
if not self.custom_time or self.custom_time % fun_caves.custom_delay == 0 then
self.custom_time = fun_caves.custom_delay - 1
else
self.custom_time = self.custom_time - 1
if not fun_caves.custom_ready(self) then
return
end