From 956a37c36ee0b3dc977d7d0da489301bd8c8b2b3 Mon Sep 17 00:00:00 2001 From: Linus Probert Date: Sun, 9 Sep 2018 12:50:35 +0200 Subject: [PATCH] Introduce windy rooms earlier --- data/maproombuilder.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/data/maproombuilder.lua b/data/maproombuilder.lua index 6889487..6fab5b4 100644 --- a/data/maproombuilder.lua +++ b/data/maproombuilder.lua @@ -432,13 +432,13 @@ local function build_normal_room(room) add_level_exit(room) end - if CURRENT_LEVEL > 3 and random(8) == 1 then + if CURRENT_LEVEL > 5 and random(8) == 1 then + room.modifier.type = "FIRE" + room.modifier.arg = "" + elseif CURRENT_LEVEL > 2 and random(8) == 1 then directions = { "LEFT", "RIGHT", "UP", "DOWN" } room.modifier.type = "WINDY" room.modifier.arg = directions[random(#directions)] - elseif CURRENT_LEVEL > 5 and random(8) == 1 then - room.modifier.type = "FIRE" - room.modifier.arg = "" end return room