Skip to content
Snippets Groups Projects
Commit 9e152bb4 authored by dg's avatar dg
Browse files

It is impossible to teleport to Celia's room until she opens all the coffins

git-svn-id: http://svn.net-core.org/repos/t-engine4@6016 51575b47-30f0-44d4-a5cc-537603b46e54
parent b6adcfbe
No related branches found
No related tags found
No related merge requests found
...@@ -27,9 +27,10 @@ defineTile("#", "HARDWALL") ...@@ -27,9 +27,10 @@ defineTile("#", "HARDWALL")
defineTile("*", "COFFIN", nil, nil, nil, nil, {type="coffin", subtype="chamber"}) defineTile("*", "COFFIN", nil, nil, nil, nil, {type="coffin", subtype="chamber"})
defineTile("+", "DOOR", nil, nil, nil, nil, {type="door", subtype="chamber"}) defineTile("+", "DOOR", nil, nil, nil, nil, {type="door", subtype="chamber"})
defineTile("<", "UP", nil, nil, nil, nil, {type="stairs", subtype="stairs"}) defineTile("<", "UP", nil, nil, nil, nil, {type="stairs", subtype="stairs"})
defineTile("_", "ALTAR") defineTile("_", "ALTAR", nil, nil, nil, {no_teleport=true})
defineTile(";", "FLOOR", nil, nil, nil, {no_teleport=true})
defineTile(".", "FLOOR") defineTile(".", "FLOOR")
defineTile("@", "FLOOR", nil, "CELIA") defineTile("@", "FLOOR", nil, "CELIA", nil, {no_teleport=true})
defineTile("L", "FLOOR", "CELIA_NOTE") defineTile("L", "FLOOR", "CELIA_NOTE")
-- addSpot section -- addSpot section
...@@ -47,13 +48,13 @@ return [[ ...@@ -47,13 +48,13 @@ return [[
##.*.#.*.#.*.#.*.#.*.#.*.######################### ##.*.#.*.#.*.#.*.#.*.#.*.#########################
##...#...#...#...#...#...######################### ##...#...#...#...#...#...#########################
##...#...#...#...#...#...######################### ##...#...#...#...#...#...#########################
##...#...#...#...#...#...###...........########### ##...#...#...#...#...#...###;;;;;;;;;;;###########
###.###.###.###.###.###.###..#...._..#..########## ###.###.###.###.###.###.###;;#;;;;_;;#;;##########
###+###+###+###+###+###+###....._........######### ###+###+###+###+###+###+###;;;;;_;;;;;;;;#########
<.L.......................+........@_.....######## <.L.......................+;;;;;;;;@_;;;;;########
###+###+###+###+###+###+###....._........######### ###+###+###+###+###+###+###;;;;;_;;;;;;;;#########
###.###.###.###.###.###.###..#...._..#..########## ###.###.###.###.###.###.###;;#;;;;_;;#;;##########
##...#...#...#...#...#...###...........########### ##...#...#...#...#...#...###;;;;;;;;;;;###########
##...#...#...#...#...#...######################### ##...#...#...#...#...#...#########################
##...#...#...#...#...#...######################### ##...#...#...#...#...#...#########################
##.*.#.*.#.*.#.*.#.*.#.*.######################### ##.*.#.*.#.*.#.*.#.*.#.*.#########################
...@@ -62,4 +63,4 @@ return [[ ...@@ -62,4 +63,4 @@ return [[
################################################## ##################################################
################################################## ##################################################
################################################## ##################################################
##################################################]] ##################################################]]
\ No newline at end of file
...@@ -142,6 +142,10 @@ return { ...@@ -142,6 +142,10 @@ return {
end, end,
open_all_coffins = function(who, celia) open_all_coffins = function(who, celia)
for i = 0, game.level.map.w - 1 do for j = 0, game.level.map.h - 1 do
game.level.map.attrs(i, j, "no_teleport", false)
end end
local floor = game.zone:makeEntityByName(game.level, "terrain", "FLOOR") local floor = game.zone:makeEntityByName(game.level, "terrain", "FLOOR")
local coffin_open = game.zone:makeEntityByName(game.level, "terrain", "COFFIN_OPEN") local coffin_open = game.zone:makeEntityByName(game.level, "terrain", "COFFIN_OPEN")
local spot = game.level:pickSpotRemove{type="door", subtype="chamber"} local spot = game.level:pickSpotRemove{type="door", subtype="chamber"}
......
...@@ -22,6 +22,11 @@ ...@@ -22,6 +22,11 @@
<property name="display" value="#"/> <property name="display" value="#"/>
</properties> </properties>
</tile> </tile>
<tile id="38">
<properties>
<property name="display" value=";"/>
</properties>
</tile>
<tile id="73"> <tile id="73">
<properties> <properties>
<property name="display" value="&gt;"/> <property name="display" value="&gt;"/>
...@@ -40,7 +45,7 @@ ...@@ -40,7 +45,7 @@
</tileset> </tileset>
<layer name="Terrain" width="50" height="25"> <layer name="Terrain" width="50" height="25">
<data encoding="base64" compression="zlib"> <data encoding="base64" compression="zlib">
eJztlkEKwCAMBJO7IP6r/v87tuClYMBoIzbuYZBVD06CYiKiBAAAP4Jvch0t8koPpvc5vszw2NODFcy4WOeW50MQ1kc8onFu1TwI89q+XMpejxI790lep/TD2/3w8l6t8rDGk4eH/xUAAOxOAWBHRis= eJwTZGBgEBzFo3gUj+IhhBmB2BdK04JPT38wMqC6g5r8UX8MTn+ok4Ap8Qst+cjuQ3czDw55cvzBT2M+tjDnwSFOarz4MKCmAVphfiLci89fIyU+hlv+GC7l1Wj9Mfj8MRzaV6N4FI/iUTzYMQCv4lJX
</data> </data>
</layer> </layer>
<objectgroup name="Actor" width="50" height="25"> <objectgroup name="Actor" width="50" height="25">
......
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