summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/l_dgnevt.cc
diff options
context:
space:
mode:
authorJude Brown <bookofjude@users.sourceforge.net>2010-01-18 20:20:42 +1000
committerJude Brown <bookofjude@users.sourceforge.net>2010-01-18 20:25:49 +1000
commitcf61d02e8b5edc47f44847ca225287dbb6a0c555 (patch)
tree01246a83eaffa055447e6462582f363029f2e273 /crawl-ref/source/l_dgnevt.cc
parent6501bd6f99cd185dcfc3976bfafee75ea4254356 (diff)
downloadcrawl-ref-cf61d02e8b5edc47f44847ca225287dbb6a0c555.tar.gz
crawl-ref-cf61d02e8b5edc47f44847ca225287dbb6a0c555.zip
New events: door opened, closed. Lua marker for door restriction.
The events are triggered whenever a door is opened or closed by the player, or opened by a monster (monsters can never close doors). These events can be used by Triggerables. The RestrictDoor Lua marker restricts monsters from opening doors unless the player has already opened them. In combination with teleport restriction, this allows wandering monsters to not interfere with loot chambers. Obviously, the uses of this should be limited.
Diffstat (limited to 'crawl-ref/source/l_dgnevt.cc')
-rw-r--r--crawl-ref/source/l_dgnevt.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/l_dgnevt.cc b/crawl-ref/source/l_dgnevt.cc
index f6d1b56aeb..b1bafa101d 100644
--- a/crawl-ref/source/l_dgnevt.cc
+++ b/crawl-ref/source/l_dgnevt.cc
@@ -74,7 +74,7 @@ static const char *dgn_event_type_names[] =
"none", "turn", "mons_move", "player_move", "leave_level",
"entering_level", "entered_level", "player_los", "player_climb",
"monster_dies", "item_pickup", "item_moved", "feat_change",
-"wall_hit"
+"wall_hit", "door_opened", "door_closed"
};
static dgn_event_type dgn_event_type_by_name(const std::string &name)