summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/item_use.h
diff options
context:
space:
mode:
authorzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2009-06-27 09:58:49 +0000
committerzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2009-06-27 09:58:49 +0000
commit7aa3305f41d2f073710d9a732bd29572b704bc49 (patch)
tree374aa17118ecb68bc4c237176506dbaf9aafb0b7 /crawl-ref/source/item_use.h
parent3cc681e30ac236f7b88adece29f194cb30138ec8 (diff)
downloadcrawl-ref-7aa3305f41d2f073710d9a732bd29572b704bc49.tar.gz
crawl-ref-7aa3305f41d2f073710d9a732bd29572b704bc49.zip
* Moved most hard-coded non-standard unrandart behaviour to art-func.h,
specifically code for equipping, unequpping, an equipped unrandart doing something every time world_reacts() is called (special wield effects), melee hit effects, and evoking. Left hardcoded outside of art-func.h: * Sword of Cerebov temproarily downgrading the defender's fire resistance. * Staff of Olgreb boosting poison spells, as if it were a staff of poison. * Vampire's Tooth always getting maximal vampiric drain. * Mace of Variablity's initial pluses being chosen at creation time. * Since what used to be special wield effects is now handled very differently, noisy weapons and the lantern of shadows effects are handled with player attributes rather than SPWLD_NOISES and SPWLD_SHADOW. * Unrandarts can now have an elemental colour for their colour (currently only used for the Mace of Variability). * Unrandarts' value modification, being special, and being evil are now handled in art-data.txt rather than being hardcoded. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10055 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/item_use.h')
-rw-r--r--crawl-ref/source/item_use.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/crawl-ref/source/item_use.h b/crawl-ref/source/item_use.h
index 973286ed52..59fbbc944c 100644
--- a/crawl-ref/source/item_use.h
+++ b/crawl-ref/source/item_use.h
@@ -156,8 +156,8 @@ void wield_effects(int item_wield_2, bool showMsgs);
/* ***********************************************************************
* called from: delay.cc item_use.cc it_use2.cc
* *********************************************************************** */
-void use_artefact( unsigned char item_wield_2 );
-void use_artefact(item_def &item, bool unmeld = false);
+void use_artefact( unsigned char item_wield_2, bool *show_msgs = NULL);
+void use_artefact(item_def &item, bool *show_msgs = NULL, bool unmeld = false);
bool puton_item(int slot);
@@ -181,8 +181,6 @@ int launcher_final_speed(const item_def &launcher,
void warn_shield_penalties();
-int item_special_wield_effect(const item_def &item);
-
bool wearing_slot(int inv_slot);
#ifdef USE_TILE