1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-12-25 02:00:37 +01:00

Begin the Pumpkin King balance

This commit is contained in:
Ombridride 2015-10-07 19:05:14 +02:00
parent c3b1c2f6d9
commit b1471827e1

View File

@ -1,5 +1,4 @@
-- Pumpking by Blert2112 -- Pumpking by Blert2112
mobs:register_mob("mobs:pumpking", { mobs:register_mob("mobs:pumpking", {
type = "monster", type = "monster",
visual = "mesh", visual = "mesh",
@ -20,14 +19,14 @@ mobs:register_mob("mobs:pumpking", {
sounds = { sounds = {
random = "mobs_king" random = "mobs_king"
}, },
hp_min = 85, hp_min = 150,
hp_max = 90, hp_max = 200,
armor = 30, armor = 60,
knock_back = 1, knock_back = 0.1,
light_damage = 10, light_damage = 0,
water_damage = 5, water_damage = 0,
lava_damage = 5, lava_damage = 0,
fall_damage = 20, fall_damage = 0,
damage = 8, damage = 8,
attack_type = "dogfight", attack_type = "dogfight",
view_range = 25, view_range = 25,
@ -35,7 +34,7 @@ mobs:register_mob("mobs:pumpking", {
drops = { drops = {
{name = "farming:jackolantern", chance = 1, min = 1, max = 1} {name = "farming:jackolantern", chance = 1, min = 1, max = 1}
}, },
lifetimer = 180, -- 3 minutes lifetimer = 300, -- 10 minutes
shoot_interval = 135, -- (lifetimer - (lifetimer / 4)), borrowed for do_custom timer shoot_interval = 135, -- (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
@ -71,13 +70,13 @@ mobs:register_mob("mobs:pumpboom", {
sounds = { sounds = {
random = "mobs_pump" random = "mobs_pump"
}, },
hp_min = 2, hp_min = 5,
hp_max = 5, hp_max = 10,
armor = 200, armor = 100,
light_damage = 2, light_damage = 0,
water_damage = 2, water_damage = 0,
lava_damage = 2, lava_damage = 0,
fall_damage = 3, fall_damage = 0,
damage = 4, damage = 4,
attack_type = "explode", attack_type = "explode",
group_attack = true, group_attack = true,
@ -107,7 +106,7 @@ minetest.register_node("mobs:pumpking_spawner", {
}) })
minetest.register_abm({ minetest.register_abm({
nodenames = {"mobs:pumpking_spawner"}, nodenames = {"mobs:pumpking_spawner"},
interval = 180.0, interval = 300.0,
chance = 1, chance = 1,
action = function(pos, node, active_object_count, active_object_count_wider) action = function(pos, node, active_object_count, active_object_count_wider)
minetest.add_entity(pos, "mobs:pumpking") minetest.add_entity(pos, "mobs:pumpking")