summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/items.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-07-21 12:17:29 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-07-21 12:17:29 +0000
commit9843737e73a47ef6f1da0554b7ca73018d52d345 (patch)
tree9381ef8b914bc801386f62ce2713c59c17b6a9e8 /crawl-ref/source/items.cc
parentb27a757b68bf8a1dcbcb9b3a5cfea5c1278c9bb4 (diff)
downloadcrawl-ref-9843737e73a47ef6f1da0554b7ca73018d52d345.tar.gz
crawl-ref-9843737e73a47ef6f1da0554b7ca73018d52d345.zip
Updated level-design.txt.
Moved map markers to mapmark.cc. Added support for timer markers that remove a feature after a certain timeout. Need to hook up messaging to Lua. Added bazaars (need more bazaar layouts). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1899 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/items.cc')
-rw-r--r--crawl-ref/source/items.cc10
1 files changed, 7 insertions, 3 deletions
diff --git a/crawl-ref/source/items.cc b/crawl-ref/source/items.cc
index 5357ea43a6..73b85bb880 100644
--- a/crawl-ref/source/items.cc
+++ b/crawl-ref/source/items.cc
@@ -38,6 +38,7 @@
#include "debug.h"
#include "delay.h"
#include "direct.h"
+#include "dgnevent.h"
#include "effects.h"
#include "hiscores.h"
#include "invent.h"
@@ -1407,11 +1408,11 @@ int move_item_to_player( int obj, int quant_got, bool quiet )
}
if (item.base_type == OBJ_ORBS
- && you.char_direction == DIR_DESCENDING)
+ && you.char_direction == GDT_DESCENDING)
{
if (!quiet)
mpr("Now all you have to do is get back out of the dungeon!");
- you.char_direction = DIR_ASCENDING;
+ you.char_direction = GDT_ASCENDING;
}
you.turn_is_over = true;
@@ -1651,7 +1652,7 @@ bool drop_item( int item_dropped, int quant_drop, bool try_offer )
mprf("You drop %s.",
quant_name(you.inv[item_dropped], quant_drop, DESC_NOCAP_A).c_str());
- if ( grid_destroys_items(my_grid) )
+ if ( grid_destroys_items(my_grid) && !silenced(you.pos()) )
mprf(MSGCH_SOUND, grid_item_destruction_message(my_grid));
dec_inv_item_quantity( item_dropped, quant_drop );
@@ -1949,6 +1950,9 @@ void update_level( double elapsedTime )
update_corpses( elapsedTime );
+ dungeon_events.fire_event(
+ dgn_event(DET_TURN_ELAPSED, coord_def(0, 0), turns * 10));
+
for (m = 0; m < MAX_MONSTERS; m++)
{
struct monsters *mon = &menv[m];