added timer to spider web placing

This commit is contained in:
tenplus1 2024-01-14 08:04:24 +00:00
parent 921648258e
commit aea4ed1fd8
2 changed files with 10 additions and 2 deletions

View File

@ -50,7 +50,11 @@ mobs:register_mob("nssm:black_widow", {
punch_end = 160
},
do_custom = function(self)
do_custom = function(self, dtime)
self.web_timer = (self.web_timer or 0) + dtime
if self.web_timer < 10 then return end
self.web_timer = 0
if nssm.spiders_litter_web then
nssm:webber_ability(self, "nssm:web", 2)

View File

@ -52,7 +52,11 @@ mobs:register_mob("nssm:uloboros", {
punch_end = 110
},
do_custom = function(self)
do_custom = function(self, dtime)
self.web_timer = (self.web_timer or 0) + dtime
if self.web_timer < 10 then return end
self.web_timer = 0
if nssm.spiders_litter_web then
nssm:webber_ability(self, "nssm:web", 2)