mobkit compatible
parent
0a8e996e36
commit
fe085dfd1a
|
@ -1,7 +1,7 @@
|
|||
petz.ownthing = function(self)
|
||||
self.status = mobkit.remember(self, "status", nil)
|
||||
if self.can_fly then
|
||||
mobkit.hq_wanderfly(self, 0)
|
||||
petz.hq_wanderfly(self, 0)
|
||||
elseif self.can_swin and self.isinliquid then
|
||||
mobkit.hq_aqua_roam(self, 0, self.max_speed)
|
||||
else
|
||||
|
@ -51,10 +51,10 @@ petz.follow = function(self, player)
|
|||
self.status = mobkit.remember(self, "status", "follow")
|
||||
if self.can_fly then
|
||||
mobkit.animate(self, "fly")
|
||||
mobkit.hq_followliquidair(self, 100, player)
|
||||
petz.hq_followliquidair(self, 100, player)
|
||||
elseif self.can_swin and self.isinliquid then
|
||||
mobkit.animate(self, "def")
|
||||
mobkit.hq_followliquidair(self, 100, player)
|
||||
petz.hq_followliquidair(self, 100, player)
|
||||
else
|
||||
mobkit.hq_follow(self, 100, player)
|
||||
end
|
||||
|
@ -66,5 +66,5 @@ petz.alight = function(self)
|
|||
if not(mobkit.node_name_in(self, "below") == "air") then
|
||||
mobkit.animate(self, "fly")
|
||||
end
|
||||
mobkit.hq_alight(self, 0)
|
||||
petz.hq_alight(self, 0)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue