From bc7a7060f8bd757927e3e43cdb6da958d44556ee Mon Sep 17 00:00:00 2001
From: Bunny <glisa825@gmail.com>
Date: Sat, 28 Dec 2019 05:41:18 -0500
Subject: [PATCH] Helminthauge flooded prison Shows in nur

---
 .../tome/data/maps/vaults/flooded-prison.lua  | 53 +++++++++++++++++++
 .../modules/tome/data/zones/lake-nur/zone.lua |  5 ++
 2 files changed, 58 insertions(+)
 create mode 100644 game/modules/tome/data/maps/vaults/flooded-prison.lua

diff --git a/game/modules/tome/data/maps/vaults/flooded-prison.lua b/game/modules/tome/data/maps/vaults/flooded-prison.lua
new file mode 100644
index 0000000000..5d89a2e687
--- /dev/null
+++ b/game/modules/tome/data/maps/vaults/flooded-prison.lua
@@ -0,0 +1,53 @@
+-- ToME - Tales of Maj'Eyal
+-- Copyright (C) 2009 - 2019 Nicolas Casalini
+--
+-- This program is free software: you can redistribute it and/or modify
+-- it under the terms of the GNU General Public License as published by
+-- the Free Software Foundation, either version 3 of the License, or
+-- (at your option) any later version.
+--
+-- This program is distributed in the hope that it will be useful,
+-- but WITHOUT ANY WARRANTY; without even the implied warranty of
+-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+-- GNU General Public License for more details.
+--
+-- You should have received a copy of the GNU General Public License
+-- along with this program.  If not, see <http://www.gnu.org/licenses/>.
+--
+-- Nicolas Casalini "DarkGod"
+-- darkgod@te4.org
+
+startx = 1
+starty = 2
+
+setStatusAll{no_teleport=true, vault_only_door_open=true}
+rotates = {"default", "90", "180", "270", "flipx", "flipy"}
+
+specialList("actor", {
+   "/data/general/npcs/aquatic_demon.lua",
+   "/data/general/npcs/horror_aquatic.lua",
+   "/data/general/npcs/naga.lua",
+})
+
+specialList("terrain", {
+        "/data/general/grids/water.lua",
+        "/data/general/grids/basic.lua",
+})
+
+defineTile('#', "HARDWALL")
+defineTile('~', "WATER_FLOOR")
+defineTile('X', "DOOR_VAULT")
+defineTile('%', "DOOR")
+defineTile('8', "WATER_FLOOR", {random_filter={add_levels=18, tome_mod="gvault"}}, {random_filter={add_levels=20}})
+
+return {
+   [[~~~~~~~~~~~~~]],
+   [[~###########~]],
+   [[~X8%8%8%8%8#~]],
+   [[~#########%#~]],
+   [[~#8%8%8%8%8#~]],
+   [[~#%#########~]],
+   [[~#8%8%8%8%8X~]],
+   [[~###########~]],
+   [[~~~~~~~~~~~~~]],
+}
diff --git a/game/modules/tome/data/zones/lake-nur/zone.lua b/game/modules/tome/data/zones/lake-nur/zone.lua
index 54d5f85467..87177ed493 100644
--- a/game/modules/tome/data/zones/lake-nur/zone.lua
+++ b/game/modules/tome/data/zones/lake-nur/zone.lua
@@ -42,6 +42,7 @@ return {
 			class = "engine.generator.map.Roomer",
 			nb_rooms = 10,
 			rooms = {"random_room"},
+			lesser_vaults_list = {"flooded-prison"},
 			lite_room_chance = 0,
 			['.'] = {"WATER_FLOOR","WATER_FLOOR","WATER_FLOOR","WATER_FLOOR","WATER_FLOOR","WATER_FLOOR","WATER_FLOOR","WATER_FLOOR","WATER_FLOOR","WATER_FLOOR","WATER_FLOOR_BUBBLE"},
 			['#'] = "WATER_WALL",
@@ -87,6 +88,9 @@ return {
 			underwater = true,
 			effects = {"EFF_ZONE_AURA_UNDERWATER"},
 			generator = {
+				map =  {
+					rooms = {"random_room",{"lesser_vault",7}},
+				},
 				actor = {
 					filters = {{special_rarity="water_rarity"}},
 				},
@@ -96,6 +100,7 @@ return {
 			underwater = is_flooded,
 			generator = is_flooded and {
 				map = {
+					rooms = {"random_room",{"lesser_vault",5}},
 					down = "SHERTUL_FORTRESS_FLOOD",
 					['.'] = {"WATER_FLOOR","WATER_FLOOR","WATER_FLOOR","WATER_FLOOR","WATER_FLOOR","WATER_FLOOR","WATER_FLOOR","WATER_FLOOR_BUBBLE"},
 					force_last_stair = true,
-- 
GitLab