From f2552fc0902e2ea33520135edac64829e587483d Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sat, 21 Nov 2009 01:56:26 -0600 Subject: autoid steel and silver on sight --- crawl-ref/source/itemname.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/itemname.cc') 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); } -- cgit v1.2.3-54-g00ecf