diff options
Diffstat (limited to 'crawl-ref/source/item_use.h')
-rw-r--r-- | crawl-ref/source/item_use.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/crawl-ref/source/item_use.h b/crawl-ref/source/item_use.h index b3c5063cfe..cc514d17d1 100644 --- a/crawl-ref/source/item_use.h +++ b/crawl-ref/source/item_use.h @@ -20,6 +20,12 @@ #include "externs.h" #include "enum.h" +enum enchant_stat_type +{ + ENCHANT_TO_HIT, + ENCHANT_TO_DAM +}; + enum fire_type { FIRE_NONE = 0x0000, @@ -62,6 +68,8 @@ void drink(void); bool elemental_missile_beam(int launcher_brand, int ammo_brand); +bool safe_to_remove_or_wear(const item_def &item, bool remove); + // last updated 12may2000 {dlb} /* *********************************************************************** * called from: acr @@ -153,11 +161,11 @@ void wield_effects(int item_wield_2, bool showMsgs); * called from: delay.cc item_use.cc it_use2.cc * *********************************************************************** */ void use_randart( unsigned char item_wield_2 ); -void use_randart(const item_def &item); +void use_randart(item_def &item); bool puton_item(int slot, bool prompt_finger = true); -bool enchant_weapon( int which_stat, bool quiet = false ); +bool enchant_weapon( enchant_stat_type which_stat, bool quiet = false ); bool throw_it(bolt &pbolt, int throw_2, bool teleport=false, int acc_bonus=0, dist *target = NULL); |