From 531111850a22397947178c1413454eb3bfa920b3 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Tue, 19 Feb 2019 16:15:54 +0100 Subject: [PATCH] Don't spawn 5th corridor if not in Chaos Mode --- init.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index 322224f..57520f6 100644 --- a/init.lua +++ b/init.lua @@ -1050,7 +1050,7 @@ local function create_corridor_system(main_cave_coords) post = tsm_railcorridors.nodes.corridor_woods[woodtype].post end - -- Start 2-5 corridors in each direction + -- Start 2-4 corridors in each direction local dirs = { {axis="x", axis2="z", sign=false}, {axis="x", axis2="z", sign=true}, @@ -1064,7 +1064,8 @@ local function create_corridor_system(main_cave_coords) corridors = corridors + 1 end end - if size > 4 then + -- Chance for 5th corridor in Chaos Mode + if chaos_mode and size > 4 then if pr:next(0,100) < 50 then corridors = corridors + 1 end