changing warthog to pumba

This commit is contained in:
Juraj Vajda 2016-01-24 01:18:24 +01:00
parent dfdbedadc7
commit 53b4a80c70
2 changed files with 5 additions and 5 deletions

View File

@ -53,12 +53,12 @@ MOBS_PROPS = {
sound_custom="" sound_custom=""
}, },
{ {
name="warthog", name="pumba",
egg_name_custom="", egg_name_custom="",
dummy_size={x=0.62,y=0.62}, dummy_size={x=0.62,y=0.62},
dummy_offset=-0.3, dummy_offset=-0.3,
dummy_mesh="mobs_warthog.x", dummy_mesh="mobs_pumba.x",
dummy_texture={"mobs_warthog.png"}, dummy_texture={"mobs_pumba.png"},
night_only=false, night_only=false,
sound_custom="mobs_pig" sound_custom="mobs_pig"
}, },

View File

@ -140,8 +140,8 @@ function spawners.create(mob_name, mod_prefix, size, offset, mesh, texture, nigh
minetest.register_abm({ minetest.register_abm({
nodenames = {"spawners:"..mod_prefix.."_"..mob_name.."_spawner", "spawners:"..mod_prefix.."_"..mob_name.."_spawner_active", "spawners:"..mod_prefix.."_"..mob_name.."_spawner_overheat", "spawners:"..mod_prefix.."_"..mob_name.."_spawner_waiting"}, nodenames = {"spawners:"..mod_prefix.."_"..mob_name.."_spawner", "spawners:"..mod_prefix.."_"..mob_name.."_spawner_active", "spawners:"..mod_prefix.."_"..mob_name.."_spawner_overheat", "spawners:"..mod_prefix.."_"..mob_name.."_spawner_waiting"},
neighbors = {"air"}, neighbors = {"air"},
interval = 5.0, interval = 10,
chance = 7, chance = 2,
action = function(pos, node, active_object_count, active_object_count_wider) action = function(pos, node, active_object_count, active_object_count_wider)
local random_pos, waiting = spawners.check_node_status(pos, mob_name, night_only) local random_pos, waiting = spawners.check_node_status(pos, mob_name, night_only)