summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/it_use3.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2007-09-02 13:33:06 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2007-09-02 13:33:06 +0000
commit914e4acb0353c4d24e5beeebb7074217505db5d1 (patch)
treea37b55d6329acd57c5bd75a0f9692460123ed046 /crawl-ref/source/it_use3.cc
parent9d37693a7e90747aa4a5c6be99bc05b57e24ce50 (diff)
downloadcrawl-ref-914e4acb0353c4d24e5beeebb7074217505db5d1.tar.gz
crawl-ref-914e4acb0353c4d24e5beeebb7074217505db5d1.zip
Implementing patch 1783079 (improved inscriptions) by
zelgadis. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2044 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/it_use3.cc')
-rw-r--r--crawl-ref/source/it_use3.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/crawl-ref/source/it_use3.cc b/crawl-ref/source/it_use3.cc
index 5b363a44ba..38b54860be 100644
--- a/crawl-ref/source/it_use3.cc
+++ b/crawl-ref/source/it_use3.cc
@@ -28,6 +28,7 @@
#include "effects.h"
#include "fight.h"
#include "food.h"
+#include "invent.h"
#include "items.h"
#include "it_use2.h"
#include "itemname.h"
@@ -325,6 +326,10 @@ bool evoke_wielded( void )
item_def& wpn = you.inv[wield];
bool unevokable = false;
+ // Check inscriptions.
+ if ( !check_warning_inscriptions(wpn, OPER_EVOKE) )
+ return false;
+
switch (wpn.base_type)
{
case OBJ_WEAPONS: