From 6cc4f8d9eb3fd48843c7ced704e2cef095877cfb Mon Sep 17 00:00:00 2001 From: Juraj Vajda Date: Sat, 29 Jul 2017 16:41:47 +0200 Subject: [PATCH] adjust monster egg drops and follow --- spawners_mobs/api.lua | 14 +++++++++++++- spawners_mobs/mob_balrog.lua | 8 ++++---- spawners_mobs/mob_bunny_evil.lua | 2 +- spawners_mobs/mob_mummy.lua | 2 +- spawners_mobs/mob_uruk_hai.lua | 9 +++++---- 5 files changed, 24 insertions(+), 11 deletions(-) diff --git a/spawners_mobs/api.lua b/spawners_mobs/api.lua index 77631e1..f0e8c7f 100644 --- a/spawners_mobs/api.lua +++ b/spawners_mobs/api.lua @@ -13,7 +13,19 @@ for k, mob_mod in ipairs(ENABLED_MODS) do -- disabled extra check for mobs redo due to incompatibility with Lua 5.1, this method is available from Lua 5.2 -- if mob_mod == "mobs" and not (mobs.mod == "redo") then goto continue end - table.insert(spawners_mobs.mob_tables, {name=mob.name, mod_prefix=mob_mod, egg_name_custom=mob.egg_name_custom, dummy_size=mob.dummy_size, dummy_offset=mob.dummy_offset, dummy_mesh=mob.dummy_mesh, dummy_texture=mob.dummy_texture, night_only=mob.night_only, sound_custom=mob.sound_custom}) + table.insert(spawners_mobs.mob_tables, + { + name=mob.name, + mod_prefix=mob_mod, + egg_name_custom=mob.egg_name_custom, + dummy_size=mob.dummy_size, + dummy_offset=mob.dummy_offset, + dummy_mesh=mob.dummy_mesh, + dummy_texture=mob.dummy_texture, + night_only=mob.night_only, + sound_custom=mob.sound_custom + } + ) -- use custom egg or create a default egg if mob.egg_name_custom ~= "" then mob_egg = mob.egg_name_custom diff --git a/spawners_mobs/mob_balrog.lua b/spawners_mobs/mob_balrog.lua index 442a6c9..054b8af 100644 --- a/spawners_mobs/mob_balrog.lua +++ b/spawners_mobs/mob_balrog.lua @@ -37,13 +37,13 @@ local balrog_def = { jump = true, floats = 1, drops = { + {name = "default:diamondblock", chance = 2, min = 1, max = 8}, + {name = "default:diamondblock", chance = 2, min = 1, max = 8}, {name = "default:diamondblock", chance = 2, min = 1, max = 4}, {name = "default:diamondblock", chance = 2, min = 1, max = 4}, {name = "default:diamondblock", chance = 2, min = 1, max = 4}, - {name = "default:diamondblock", chance = 2, min = 1, max = 4}, - {name = "default:diamondblock", chance = 2, min = 1, max = 4}, - {name = "default:diamond", chance = 2, min = 1, max = 4}, - {name = "default:diamond", chance = 2, min = 1, max = 4}, + {name = "default:diamond", chance = 2, min = 1, max = 8}, + {name = "default:diamond", chance = 2, min = 1, max = 8}, {name = "default:diamond", chance = 2, min = 1, max = 4}, {name = "default:diamond", chance = 2, min = 1, max = 4}, {name = "default:diamond", chance = 2, min = 1, max = 4}, diff --git a/spawners_mobs/mob_bunny_evil.lua b/spawners_mobs/mob_bunny_evil.lua index 25b5ebc..23e879e 100644 --- a/spawners_mobs/mob_bunny_evil.lua +++ b/spawners_mobs/mob_bunny_evil.lua @@ -43,7 +43,7 @@ local bunny_evil_def = { punch_start = 16, punch_end = 24, }, - follow = {"mobs:lava_orb"}, + -- follow = {"mobs:lava_orb"}, on_rightclick = function(self, clicker) if mobs:feed_tame(self, clicker, 3, true, true) then diff --git a/spawners_mobs/mob_mummy.lua b/spawners_mobs/mob_mummy.lua index 6a348c2..f2bd388 100644 --- a/spawners_mobs/mob_mummy.lua +++ b/spawners_mobs/mob_mummy.lua @@ -56,7 +56,7 @@ local mummy_def = { punch_start = 74, punch_end = 105, }, - follow = {"spawners_mobs:deco_stone_eye","spawners_mobs:deco_stone_men","spawners_mobs:deco_stone_sun"}, + -- follow = {"spawners_mobs:deco_stone_eye","spawners_mobs:deco_stone_men","spawners_mobs:deco_stone_sun"}, on_die = function(self, pos) minetest.sound_play("spawners_mobs_mummy_death", { object = self.object, diff --git a/spawners_mobs/mob_uruk_hai.lua b/spawners_mobs/mob_uruk_hai.lua index dbbd85a..c7c9bbd 100644 --- a/spawners_mobs/mob_uruk_hai.lua +++ b/spawners_mobs/mob_uruk_hai.lua @@ -34,10 +34,11 @@ local uruk_hai_def = { jump = true, floats = 1, drops = { - {name = "default:apple", chance = 5, min = 1, max = 2}, - {name = "default:wood", chance = 15, min = 1, max = 2}, - {name = "default:stick", chance = 5, min = 1, max = 2}, - {name = "default:torch", chance = 10, min = 1, max = 2}, + {name = "default:apple", chance = 3, min = 1, max = 2}, + {name = "default:wood", chance = 4, min = 1, max = 2}, + {name = "default:stick", chance = 2, min = 1, max = 2}, + {name = "default:torch", chance = 3, min = 1, max = 2}, + {name = "spawners_mobs:uruk_hai", chance = 20, min = 1, max = 1}, }, water_damage = 0, lava_damage = 0,