From becb2bbeb395e564fbf7af89a28f98a3c107b9e1 Mon Sep 17 00:00:00 2001
From: Bunny <glisa825@gmail.com>
Date: Sat, 28 Dec 2019 03:38:56 -0500
Subject: [PATCH] Nsrr troll hideout update Same spawn locations as before,
 added variety

---
 .../tome/data/maps/vaults/troll-hideout.lua   | 81 +++++++++++++++----
 1 file changed, 66 insertions(+), 15 deletions(-)

diff --git a/game/modules/tome/data/maps/vaults/troll-hideout.lua b/game/modules/tome/data/maps/vaults/troll-hideout.lua
index f699ea0aa0..c20db7f6f0 100644
--- a/game/modules/tome/data/maps/vaults/troll-hideout.lua
+++ b/game/modules/tome/data/maps/vaults/troll-hideout.lua
@@ -19,11 +19,11 @@
 
 setStatusAll{no_teleport=true, vault_only_door_open=true, room_map = {can_open=true}}
 specialList("actor", {
-	"/data/general/npcs/troll.lua",
+   "/data/general/npcs/troll.lua",
 })
 specialList("terrain", {
-	"/data/general/grids/water.lua",
-	"/data/general/grids/forest.lua",
+   "/data/general/grids/water.lua",
+   "/data/general/grids/forest.lua",
 }, true)
 border = 0
 rotates = {"default", "90", "180", "270", "flipx", "flipy"}
@@ -35,29 +35,80 @@ defineTile('#', "HARDWALL")
 defineTile('X', "TREE")
 defineTile('+', "DOOR")
 
-defineTile('T', "FLOOR", {random_filter={type="scroll", ego_chance=25}}, {random_filter={name="forest troll"}})
+defineTile('T', "FLOOR", {random_filter={type="scroll", ego_chance=25}}, {random_filter={name="forest troll", add_levels=10}})
 defineTile('t', "FLOOR", nil, {random_filter={name="forest troll"}})
-defineTile('$', "FLOOR", {random_filter={type="scroll", ego_chance=25}}, nil)
---startx, starty = 0, 9
-return {
+defineTile('$', "FLOOR", {random_filter={type="scroll", ego_chance=25}})
+defineTile('*', "FLOOR", {random_filter={mod="vault", add_levels=5}})
+startx, starty = 0, 9
+
+local version = rng.range(1, 3)
+if version == 1 then
+return { -- original
 [[,,,,,,,,,,,,,,,,,,,,,,]],
 [[,,,XX,,X,,,,,,,,,,X,,,]],
 [[,,X~~~~~~~,,~~~~~XXX,,]],
 [[,XX~#####~,,~#####~,,,]],
-[[,XX~#...#~~~~#...#~,X,]],
-[[,XX~#.t.######.t.#~,,,]],
+[[,XX~#...#~~~~#..*#~,X,]],
+[[,XX~#.t.######.T.#~,,,]],
 [[,,X~#...#.t..+...#~,X,]],
 [[,XX~###+#..t.#####~,,,]],
 [[,XX~~~#....#####~~~,,,]],
-[[,,,..t+....#$$$#~,,,X,]],
-[[,,,..t+....+$$T#~,,,X,]],
+[[,,,..t+....#$.$#~,,,X,]],
+[[,,,..t+....+.$T#~,,,X,]],
 [[,XX~~~#....#####~~~,X,]],
-[[,,X~###+#....#####~,X,]],
-[[,,X~#...#....+...#~,X,]],
-[[,,X~#.t.######.t.#~,,,]],
-[[,XX~#...#~~~~#...#~,,,]],
+[[,,X~###+#..t.#####~,X,]],
+[[,,X~#...#.t..+...#~,X,]],
+[[,,X~#.T.######.t.#~,,,]],
+[[,XX~#*..#~~~~#...#~,,,]],
 [[,,X~#####~,,~#####~,,,]],
 [[,,X~~~~~~~,,~~~~~~~,,,]],
 [[,,XXX,X,,XXX,X,,XXX,,,]],
 [[,,,,,,,,,,,,,,,,,,,,,,]],
 }
+elseif version == 2 then
+return { -- ruined
+[[,,,,,,,,,,,,,,,,,,,,,,]],
+[[,,XXXXXXXXXXXXXXXXXX,,]],
+[[,,X~~~~~~~,,~~~~~~~XX,]],
+[[,XX~#####~,,~#####~,X,]],
+[[,XX~#$.t#~~~~#.*.#~XX,]],
+[[,XX~#,t.#.#~.#.T.#~X,,]],
+[[,,X~#t..#....+.,,#~XX,]],
+[[,XX~###+#..#.#####~,X,]],
+[[,XX~~#...#....X.~~~,X,]],
+[[,,,.~~.,,..X.t..~~,,X,]],
+[[,,,.~t.#..T.,#.~~~~,X,]],
+[[,XX~~~..,.,...~~~~~,X,]],
+[[,,X~###+#..X.#####~,X,]],
+[[,,X~#*.t#....+,,$#~XX,]],
+[[,,X~#.T.#..#.#.t.#~X,,]],
+[[,XX~#t.,#~~#~#$..#~X,,]],
+[[,,X~#####~~~~#####~X,,]],
+[[,,X~~~~~~~,,~~~~~~~X,,]],
+[[,,XXXXXXXXXXXXXXXXXX,,]],
+[[,,,,,,,,,,,,,,,,,,,,,,]],
+}
+else
+return { -- fortified
+[[,,,,,,,,,,,,,,,,,,,,,,]],
+[[,,,XX,,X,,,,,,,,,,X,,,]],
+[[,,X~~~~~~~,,~~~~~XXX,,]],
+[[,XX~#####~~~~#####~,,,]],
+[[,XX~#...######.$.#~,X,]],
+[[,XX~#.T....#..t..#~,,,]],
+[[,,X~#....#.#.#.t.#~,X,]],
+[[,XX~###..#.#.#.###~,,,]],
+[[,XX~~~#..#.#.#.#~~~,,,]],
+[[,,,...+t.#.#.#.#~,,,X,]],
+[[,,,...+t.#.#T#.#~,,,X,]],
+[[,XX~~~#.##.#.#.#~~~,X,]],
+[[,,X~#####....#.###~,X,]],
+[[,,X~#$.#######t..#~,X,]],
+[[,,X~#T.+..tt..t..#~,,,]],
+[[,XX~#**#######..$#~,,,]],
+[[,,X~#####~~~~#####~,,,]],
+[[,,X~~~~~~~,,~~~~~~~,,,]],
+[[,,XXX,X,,XXX,X,,XXX,,,]],
+[[,,,,,,,,,,,,,,,,,,,,,,]],
+}
+end
\ No newline at end of file
-- 
GitLab