Better delay
This commit is contained in:
parent
234b71064c
commit
58ed1a5e1c
14 changed files with 29 additions and 42 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue