1
0
mirror of https://codeberg.org/tenplus1/mobs_redo.git synced 2024-12-25 10:10:21 +01:00

add lifetimer bypass (over 20000 and mob wont despawn)

This commit is contained in:
TenPlus1 2016-05-29 21:00:56 +01:00
parent c6d4b95768
commit bed18e114f

View File

@ -1,5 +1,5 @@
-- Mobs Api (23rd May 2016) -- Mobs Api (29th May 2016)
mobs = {} mobs = {}
mobs.mod = "redo" mobs.mod = "redo"
@ -2049,7 +2049,8 @@ local mob_step = function(self, dtime)
if self.type ~= "npc" if self.type ~= "npc"
and not self.tamed and not self.tamed
and self.state ~= "attack" and self.state ~= "attack"
and remove_far ~= true then and remove_far ~= true
and self.lifetimer < 20000 then
self.lifetimer = self.lifetimer - dtime self.lifetimer = self.lifetimer - dtime