added timer to spider web placing
This commit is contained in:
parent
921648258e
commit
aea4ed1fd8
@ -50,7 +50,11 @@ mobs:register_mob("nssm:black_widow", {
|
|||||||
punch_end = 160
|
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
|
if nssm.spiders_litter_web then
|
||||||
nssm:webber_ability(self, "nssm:web", 2)
|
nssm:webber_ability(self, "nssm:web", 2)
|
||||||
|
@ -52,7 +52,11 @@ mobs:register_mob("nssm:uloboros", {
|
|||||||
punch_end = 110
|
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
|
if nssm.spiders_litter_web then
|
||||||
nssm:webber_ability(self, "nssm:web", 2)
|
nssm:webber_ability(self, "nssm:web", 2)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user