From 1537ae276e7dfd5c55ceacaac6bd7f26e6e1a9c8 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sat, 9 Dec 2017 14:08:36 +0100 Subject: [PATCH] Tweak stone brick chances of end portal rooms --- mods/MAPGEN/mcl_structures/init.lua | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/mods/MAPGEN/mcl_structures/init.lua b/mods/MAPGEN/mcl_structures/init.lua index 4a48e93a98..0b81caa7ba 100644 --- a/mods/MAPGEN/mcl_structures/init.lua +++ b/mods/MAPGEN/mcl_structures/init.lua @@ -149,20 +149,21 @@ mcl_structures.generate_end_portal_room = function(pos) local r_bricktype = pr:next(1, 100) local r_infested = pr:next(1, 100) local bricktype - if r_infested <= 8 then - if r_bricktype <= 10 then + if r_infested <= 5 then + if r_bricktype <= 30 then -- 30% bricktype = "mcl_monster_eggs:monster_egg_stonebrickmossy" - elseif r_bricktype <= 20 then + elseif r_bricktype <= 50 then -- 20% bricktype = "mcl_monster_eggs:monster_egg_stonebrickcracked" - else + else -- 50% bricktype = "mcl_monster_eggs:monster_egg_stonebrick" end else - if r_bricktype <= 10 then + if r_bricktype <= 30 then -- 30% bricktype = "mcl_core:stonebrickmossy" - elseif r_bricktype <= 20 then + elseif r_bricktype <= 50 then -- 20% bricktype = "mcl_core:stonebrickcracked" end + -- 50% stonebrick (no change necessary) end if bricktype ~= nil then minetest.set_node(bricks[b], { name = bricktype })