mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-12-25 18:20:36 +01:00
Tweak the PumpKing
This commit is contained in:
parent
ca47db2324
commit
0608d697bb
@ -19,23 +19,24 @@ mobs:register_mob("mobs:pumpking", {
|
|||||||
sounds = {
|
sounds = {
|
||||||
random = "mobs_king"
|
random = "mobs_king"
|
||||||
},
|
},
|
||||||
hp_min = 150,
|
hp_min = 190,
|
||||||
hp_max = 200,
|
hp_max = 200,
|
||||||
armor = 60,
|
armor = 70,
|
||||||
knock_back = 0.1,
|
knock_back = 0.1,
|
||||||
light_damage = 0,
|
light_damage = 0,
|
||||||
water_damage = 0,
|
water_damage = 0,
|
||||||
lava_damage = 0,
|
lava_damage = 0,
|
||||||
fall_damage = 0,
|
fall_damage = 0,
|
||||||
damage = 8,
|
damage = 8,
|
||||||
|
reach = 4,
|
||||||
attack_type = "dogfight",
|
attack_type = "dogfight",
|
||||||
view_range = 25,
|
view_range = 25,
|
||||||
stepheight = 1.1,
|
stepheight = 1.1,
|
||||||
drops = {
|
drops = {
|
||||||
{name = "farming:jackolantern", chance = 1, min = 1, max = 1}
|
{name = "farming:jackolantern", chance = 1, min = 1, max = 1}
|
||||||
},
|
},
|
||||||
lifetimer = 300, -- 10 minutes
|
lifetimer = 300, -- 5 minutes
|
||||||
shoot_interval = 135, -- (lifetimer - (lifetimer / 4)), borrowed for do_custom timer
|
shoot_interval = 1000, -- (lifetimer - (lifetimer / 4)), borrowed for do_custom timer
|
||||||
do_custom = function(self)
|
do_custom = function(self)
|
||||||
if self.lifetimer <= self.shoot_interval then
|
if self.lifetimer <= self.shoot_interval then
|
||||||
p = self.object:getpos()
|
p = self.object:getpos()
|
||||||
@ -45,9 +46,6 @@ mobs:register_mob("mobs:pumpking", {
|
|||||||
p, "mobs:pumpboom")
|
p, "mobs:pumpboom")
|
||||||
self.shoot_interval = self.shoot_interval - 45
|
self.shoot_interval = self.shoot_interval - 45
|
||||||
end
|
end
|
||||||
end,
|
|
||||||
on_die = function(self)
|
|
||||||
minetest.chat_send_all("A group of players killed a Pumpking!")
|
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user