From c1c60d1f8ba4fa5101a9fd96d7e7e6011101e334 Mon Sep 17 00:00:00 2001 From: Duane Date: Thu, 4 Aug 2016 23:43:07 -0500 Subject: [PATCH] Adjust goblin stats. --- abms.lua | 2 +- goblin.lua | 14 +++++++++----- mobs.lua | 1 + 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/abms.lua b/abms.lua index 8c98d52..6fbf97e 100644 --- a/abms.lua +++ b/abms.lua @@ -686,7 +686,7 @@ for _, mushroom in pairs(mushrooms) do end minetest.register_abm({ nodenames = {"default:dirt"}, - neighbors = {'fun_caves:stone_with_lichen', 'fun_caves:stone_with_algae'}, + neighbors = {'fun_caves:stone_with_lichen', 'fun_caves:stone_with_algae', 'fun_caves:giant_mushroom_stem'}, interval = time_factor, chance = 300, catch_up = false, diff --git a/goblin.lua b/goblin.lua index b1fcf5a..a3682b5 100644 --- a/goblin.lua +++ b/goblin.lua @@ -291,6 +291,9 @@ mobs:register_egg("fun_caves:goblin_cobbler", "Goblin Egg (cobbler)", "default_m local m = table.copy(minetest.registered_entities["fun_caves:goblin_digger"]) m.name = 'fun_caves:goblin_coal' +m.hp_min = 7 +m.hp_max = 15 +m.armor = 90 m.textures = { {"goblins_goblin_coal1.png"}, {"goblins_goblin_coal2.png"}, } m.base_texture = m.textures[1] m.drops = drops['coal'] @@ -303,9 +306,10 @@ mobs:register_egg("fun_caves:goblin_coal", "Goblin Egg (coal)", "default_mossyco local m = table.copy(minetest.registered_entities["fun_caves:goblin_digger"]) m.name = 'fun_caves:goblin_copper' +m.damage = 2 m.hp_min = 7 m.hp_max = 15 -m.armor = 75 +m.armor = 70 m.textures = { {"goblins_goblin_copper1.png"}, {"goblins_goblin_copper2.png"}, } m.base_texture = m.textures[1] m.drops = drops['copper'] @@ -337,7 +341,7 @@ m.name = 'fun_caves:goblin_gold' m.damage = 3 m.hp_min = 7 m.hp_max = 15 -m.armor = 75 +m.armor = 60 m.textures = { {"goblins_goblin_gold1.png"}, {"goblins_goblin_gold2.png"}, } m.base_texture = m.textures[1] m.drops = drops['gold'] @@ -362,10 +366,10 @@ mobs:register_egg("fun_caves:goblin_ice", "Goblin Egg (ice)", "default_mossycobb local m = table.copy(minetest.registered_entities["fun_caves:goblin_digger"]) m.name = 'fun_caves:goblin_iron' -m.damage = 3 +m.damage = 2 m.hp_min = 7 m.hp_max = 15 -m.armor = 75 +m.armor = 80 m.textures = { {"goblins_goblin_iron1.png"}, {"goblins_goblin_iron2.png"}, } m.base_texture = m.textures[1] m.drops = drops['iron'] @@ -381,7 +385,7 @@ m.name = 'fun_caves:goblin_king' m.damage = 3 m.hp_min = 10 m.hp_max = 20 -m.armor = 50 +m.armor = 40 m.textures = { {"goblins_goblin_king.png"}, } m.base_texture = m.textures[1] m.drops = drops['king'] diff --git a/mobs.lua b/mobs.lua index 62a0e39..2b52c01 100644 --- a/mobs.lua +++ b/mobs.lua @@ -860,6 +860,7 @@ for _, mob in pairs(t_mobs) do name = mob, level = level, } + --print(mob, level) end end end