summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--crawl-ref/source/items.cc13
1 files changed, 10 insertions, 3 deletions
diff --git a/crawl-ref/source/items.cc b/crawl-ref/source/items.cc
index 4d2b08a548..bb744be701 100644
--- a/crawl-ref/source/items.cc
+++ b/crawl-ref/source/items.cc
@@ -1824,9 +1824,11 @@ bool drop_item( int item_dropped, int quant_drop ) {
canned_msg( MSG_EMPTY_HANDED );
}
- if (!copy_item_to_grid( you.inv[item_dropped],
- you.x_pos, you.y_pos, quant_drop, true ))
- {
+ const unsigned char my_grid = grd[you.x_pos][you.y_pos];
+
+ if ( my_grid != DNGN_DEEP_WATER && my_grid != DNGN_LAVA &&
+ !copy_item_to_grid( you.inv[item_dropped],
+ you.x_pos, you.y_pos, quant_drop, true )) {
mpr( "Too many items on this level, not dropping the item." );
return (false);
}
@@ -1835,6 +1837,11 @@ bool drop_item( int item_dropped, int quant_drop ) {
quant_name( you.inv[item_dropped], quant_drop, DESC_NOCAP_A, str_pass );
snprintf( info, INFO_SIZE, "You drop %s.", str_pass );
mpr(info);
+
+ if ( my_grid == DNGN_DEEP_WATER )
+ mpr("It sinks quickly.");
+ else if ( my_grid == DNGN_DEEP_WATER )
+ mpr("It burns up!");
dec_inv_item_quantity( item_dropped, quant_drop );
you.turn_is_over = 1;