diff options
author | Jesse Luehrs <doy@tozt.net> | 2009-11-21 01:56:26 -0600 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2009-11-21 01:56:46 -0600 |
commit | f2552fc0902e2ea33520135edac64829e587483d (patch) | |
tree | 5a6806172828abf2de12b28244794af480b57568 /crawl-ref/source/itemname.cc | |
parent | e24ea09997d4513ef470afb8f8c341ec0eb5ca5d (diff) | |
download | crawl-ref-f2552fc0902e2ea33520135edac64829e587483d.tar.gz crawl-ref-f2552fc0902e2ea33520135edac64829e587483d.zip |
autoid steel and silver on sight
Diffstat (limited to 'crawl-ref/source/itemname.cc')
-rw-r--r-- | crawl-ref/source/itemname.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/crawl-ref/source/itemname.cc b/crawl-ref/source/itemname.cc index 9ac7083160..cd27a52dc5 100644 --- a/crawl-ref/source/itemname.cc +++ b/crawl-ref/source/itemname.cc @@ -1776,11 +1776,15 @@ bool item_type_known( const item_def& item ) if (is_artefact(item)) return (false); - // Poisoned missiles are always identified. + // Poisoned missiles are always identified. Also things made of obvious + // materials (steel, silver) if (item.base_type == OBJ_MISSILES) { int ammo_brand = get_ammo_brand(item); - if (ammo_brand == SPMSL_POISONED || ammo_brand == SPMSL_CURARE) + if (ammo_brand == SPMSL_POISONED || + ammo_brand == SPMSL_CURARE || + ammo_brand == SPMSL_STEEL || + ammo_brand == SPMSL_SILVER) return (true); } |