forked from MineClone5/MineClone5
Slow down creeper type mobs explosion buildup
This commit is contained in:
parent
bf367fffd0
commit
fabd4d64e6
|
@ -36,7 +36,7 @@ mobs.explode_attack_walk = function(self,dtime)
|
|||
|
||||
mobs.handle_explosion_animation(self)
|
||||
|
||||
self.explosion_animation = self.explosion_animation + (dtime/2)
|
||||
self.explosion_animation = self.explosion_animation + (dtime/2.5)
|
||||
end
|
||||
|
||||
--make explosive mobs jump
|
||||
|
@ -59,7 +59,6 @@ end
|
|||
--this is a small helper function to make working with explosion animations easier
|
||||
mobs.reverse_explosion_animation = function(self,dtime)
|
||||
|
||||
|
||||
--if explosion animation was greater than 0 then reverse it
|
||||
if self.explosion_animation ~= nil and self.explosion_animation > 0 then
|
||||
self.explosion_animation = self.explosion_animation - dtime
|
||||
|
|
Loading…
Reference in New Issue