Skip to content
Snippets Groups Projects
Commit 7ef59c26 authored by DarkGod's avatar DarkGod
Browse files

fix mold path vault

parent 68d1842f
No related branches found
No related tags found
No related merge requests found
......@@ -18,6 +18,7 @@
-- darkgod@te4.org
local grass_editer = { method="borders_def", def="grass"}
local grasswm_editer = { method="borders_def", def="grass_wm"}
newEntity{
define_as = "GRASS",
......@@ -30,6 +31,17 @@ newEntity{
}
for i = 1, 14 do newEntity{ base = "GRASS", define_as = "GRASS_PATCH"..i, image = ("terrain/grass/grass_main_%02d.png"):format(i) } end
newEntity{
define_as = "GRASS_SHORT",
type = "floor", subtype = "grass",
name = "grass", image = "terrain/grass.png",
display = '.', color=colors.LIGHT_GREEN, back_color={r=44,g=95,b=43},
grow = "TREE",
-- nice_tiler = { method="replace", base={"GRASS_PATCH", 100, 1, 14}},
nice_editer = grasswm_editer,
}
newEntity{
define_as = "TREE",
type = "wall", subtype = "grass",
......
......@@ -21,16 +21,16 @@ setStatusAll{no_teleport=true}
rotates = {"default", "90", "180", "270", "flipx", "flipy"}
defineTile('.', "GRASS")
defineTile('.', "GRASS_SHORT")
defineTile('#', "TREE")
defineTile('X', "HARDTREE")
defineTile('~', "POISON_DEEP_WATER")
defineTile('!', "ROCK_VAULT")
defineTile('m', "GRASS", nil, {random_filter={subtype="molds", add_levels=2}})
defineTile('j', "GRASS", nil, {random_filter={subtype="oozes", add_levels=2}})
defineTile('m', "GRASS_SHORT", nil, {random_filter={subtype="molds", add_levels=2}})
defineTile('j', "GRASS_SHORT", nil, {random_filter={subtype="oozes", add_levels=2}})
defineTile('$', "GRASS", {random_filter={add_levels=5, tome_mod="vault"}})
defineTile('$', "GRASS_SHORT", {random_filter={add_levels=5, tome_mod="vault"}})
startx = 19
starty = 7
......
......@@ -32,9 +32,27 @@ newEntity{
}
newEntity{
define_as = "SHERTUL_FORTRESS",
define_as = "SHERTUL_FORTRESS_DRY",
name = "entrance to the Sher'Tul ruins",
display = '>', color=colors.PURPLE, image = "terrain/stair_down.png",
display = '>', color=colors.PURPLE, image = "terrain/marble_floor.png", add_mos = {{image = "terrain/stair_down.png"}},
notice = true,
always_remember = true,
change_level = 1, change_zone = "shertul-fortress",
change_level_check = function(self, who)
if who.player and game.party:knownLore("old-forest-note-5") then
game.logPlayer(who, "#ANTIQUE_WHITE#You notice a hole that could fit the gem key you found earlier, inserting it reveals the passage to the next level.")
who:setQuestStatus("shertul-fortress", engine.Quest.COMPLETED, "entered")
else
game.logPlayer(who, "#ANTIQUE_WHITE#The way seems closed, maybe you need a key.")
return true
end
end,
}
newEntity{
define_as = "SHERTUL_FORTRESS_FLOOD",
name = "entrance to the Sher'Tul ruins",
display = '>', color=colors.PURPLE, image = "terrain/underwater/subsea_floor_02.png", add_mos = {{image = "terrain/stair_down.png"}},
notice = true,
always_remember = true,
change_level = 1, change_zone = "shertul-fortress",
......
......@@ -95,7 +95,7 @@ return {
underwater = is_flooded,
generator = is_flooded and {
map = {
down = "SHERTUL_FORTRESS",
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,
},
......@@ -109,7 +109,7 @@ return {
['#'] = "WALL",
up = "UP",
door = "DOOR",
down = "SHERTUL_FORTRESS",
down = "SHERTUL_FORTRESS_DRY",
force_last_stair = true,
},
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment