summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/itemprop.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/itemprop.cc')
-rw-r--r--crawl-ref/source/itemprop.cc18
1 files changed, 18 insertions, 0 deletions
diff --git a/crawl-ref/source/itemprop.cc b/crawl-ref/source/itemprop.cc
index c2fa3e1f9a..4526448db4 100644
--- a/crawl-ref/source/itemprop.cc
+++ b/crawl-ref/source/itemprop.cc
@@ -452,6 +452,24 @@ void do_uncurse_item( item_def &item )
}
//
+// Is item stationary (cannot be picked up?)
+//
+void set_item_stationary( item_def &item )
+{
+ item.flags |= ISFLAG_STATIONARY;
+}
+
+void remove_item_stationary( item_def &item )
+{
+ item.flags &= (~ISFLAG_STATIONARY);
+}
+
+bool item_is_stationary( const item_def &item )
+{
+ return (item.flags & ISFLAG_STATIONARY);
+}
+
+//
// Item identification status:
//
bool item_ident( const item_def &item, unsigned long flags )