Tweak stone brick chances of end portal rooms
This commit is contained in:
parent
c4dbbda9fd
commit
1537ae276e
|
@ -149,20 +149,21 @@ mcl_structures.generate_end_portal_room = function(pos)
|
||||||
local r_bricktype = pr:next(1, 100)
|
local r_bricktype = pr:next(1, 100)
|
||||||
local r_infested = pr:next(1, 100)
|
local r_infested = pr:next(1, 100)
|
||||||
local bricktype
|
local bricktype
|
||||||
if r_infested <= 8 then
|
if r_infested <= 5 then
|
||||||
if r_bricktype <= 10 then
|
if r_bricktype <= 30 then -- 30%
|
||||||
bricktype = "mcl_monster_eggs:monster_egg_stonebrickmossy"
|
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"
|
bricktype = "mcl_monster_eggs:monster_egg_stonebrickcracked"
|
||||||
else
|
else -- 50%
|
||||||
bricktype = "mcl_monster_eggs:monster_egg_stonebrick"
|
bricktype = "mcl_monster_eggs:monster_egg_stonebrick"
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
if r_bricktype <= 10 then
|
if r_bricktype <= 30 then -- 30%
|
||||||
bricktype = "mcl_core:stonebrickmossy"
|
bricktype = "mcl_core:stonebrickmossy"
|
||||||
elseif r_bricktype <= 20 then
|
elseif r_bricktype <= 50 then -- 20%
|
||||||
bricktype = "mcl_core:stonebrickcracked"
|
bricktype = "mcl_core:stonebrickcracked"
|
||||||
end
|
end
|
||||||
|
-- 50% stonebrick (no change necessary)
|
||||||
end
|
end
|
||||||
if bricktype ~= nil then
|
if bricktype ~= nil then
|
||||||
minetest.set_node(bricks[b], { name = bricktype })
|
minetest.set_node(bricks[b], { name = bricktype })
|
||||||
|
|
Loading…
Reference in New Issue