From 1114f94ef7940ffa79ec361721d07f2fe5b5e593 Mon Sep 17 00:00:00 2001 From: Bunny <glisa825@gmail.com> Date: Sat, 28 Dec 2019 03:40:18 -0500 Subject: [PATCH] Nsrr thief hideout update Same spawn locations as before, added variety --- .../maps/vaults/auto/lesser/thief-hideout.lua | 90 ++++++++++++++----- 1 file changed, 70 insertions(+), 20 deletions(-) diff --git a/game/modules/tome/data/maps/vaults/auto/lesser/thief-hideout.lua b/game/modules/tome/data/maps/vaults/auto/lesser/thief-hideout.lua index 34b419495a..4f51a272cb 100644 --- a/game/modules/tome/data/maps/vaults/auto/lesser/thief-hideout.lua +++ b/game/modules/tome/data/maps/vaults/auto/lesser/thief-hideout.lua @@ -19,42 +19,92 @@ setStatusAll{no_teleport=true, vault_only_door_open=true, room_map = {can_open=true}} specialList("actor", { - "/data/general/npcs/thieve.lua", + "/data/general/npcs/thieve.lua", }) specialList("terrain", { - "/data/general/grids/forest.lua", + "/data/general/grids/forest.lua", }, true) border = 0 rotates = {"default", "90", "180", "270", "flipx", "flipy"} defineTile('.', "FLOOR") defineTile(',', data.floor or data['.'] or "GRASS") -defineTile('#', "WALL") -defineTile('X', "HARDWALL") +defineTile('#', "HARDWALL") defineTile('+', "DOOR") defineTile('!', "DOOR_VAULT") +local mobs = { + "bandit", + "rogue", + "cutpurse", +} +local bosses = { + "rogue sapper", + "assassin", + "shadowblade" +} -defineTile('p', "FLOOR", nil, {random_filter={name="rogue", add_levels=3}}) -defineTile('P', "FLOOR", nil, {random_filter={name="bandit", add_levels=5}}) +local boss = rng.tableRemove(bosses) -defineTile('&', "FLOOR", {random_filter={type="scroll"}}) -defineTile('$', "FLOOR", "MONEY_SMALL") -defineTile('*', "FLOOR", {random_filter={type="gem"}}) +defineTile('1', "FLOOR", nil, {random_filter={name=mobs[rng.range(0, #mobs)], add_levels=4}}) +defineTile('2', "FLOOR", nil, {random_filter={name=mobs[rng.range(0, #mobs)], add_levels=5}}) +defineTile('3', "FLOOR", nil, {random_filter={name=mobs[rng.range(0, #mobs)], add_levels=6}}) +defineTile('B', "FLOOR", nil, {random_filter={name=boss, add_levels=boss=="shadowblade" and 0 or 12}}) +defineTile('T', "FLOOR", nil, {random_filter={name="thief", add_levels=10}}) +defineTile('&', "FLOOR", {random_filter={type="scroll", ego_chance=25}}) +defineTile('$', "FLOOR", {random_filter={add_levels=15, type="money"}}) +defineTile('*', "FLOOR", {random_filter={type="gem"}}) +defineTile('%', "FLOOR", {random_filter={mod="gvault", type="armor", add_levels=8}}) +defineTile('^', "FLOOR", {random_filter={mod="vault", type="weapon", add_levels=8}}) --startx, starty = 10, 0 +local version = rng.range(1, 3) +if version == 1 then +return { +[[,,,,,,,,,,,,,,]], +[[,#######,,,,,,]], +[[,#%#$$$#,,,,,,]], +[[,#^#$*$#,,,,,,]], +[[,#*#$$$#,,,,,,]], +[[,#+##+###!###,]], +[[,#B^#2#1...2#,]], +[[,#&3+1#.312.#,]], +[[,####.#..3..#,]], +[[,#13#.#.....#,]], +[[,#*2+.+..T..#,]], +[[,############,]], +[[,,,,,,,,,,,,,,]], +} +elseif version == 2 then +return { +[[,,,,,,,,,,,,,,]], +[[,,,,,,,,,,,,,,]], +[[,,,,,,,,,,,,,,]], +[[,###########,,]], +[[,.!..213$$.#,,]], +[[,##+######+#,,]], +[[,#..#*B*#12#,,]], +[[,#..#132#3$#,,]], +[[,#..#+#+####,,]], +[[,#12..#$$&^#,,]], +[[,#3T$*#$$%^#,,]], +[[,###########,,]], +[[,,,,,,,,,,,,,,]], +} +else return { [[,,,,,,,,,,,,,,]], -[[,XXXXXXX,,,,,,]], -[[,X*#$$$X,,,,,,]], -[[,X*#$$$X,,,,,,]], -[[,X*#$$$X,,,,,,]], -[[,XXXX+XX#!###,]], -[[,#..#.#.....#,]], -[[,#.p+.#.p.p.#,]], -[[,####.#..P..#,]], -[[,#P.#.#.p.p.#,]], -[[,#&.+.+.....#,]], +[[,#!#####,,,,,,]], +[[,#.#$*$#,,,,,,]], +[[,#.#2$3#,,,,,,]], +[[,#1#.1.#,,,,,,]], +[[,#+#+#+######,]], +[[,#...#.23...#,]], +[[,#.23##1..B2#,]], +[[,#.1T*#...3*#,]], +[[,####+###+###,]], +[[,#$$$$#%*^^&#,]], [[,############,]], [[,,,,,,,,,,,,,,]], -} \ No newline at end of file +} +end \ No newline at end of file -- GitLab