summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/randart.h
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-19 15:22:25 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-19 15:22:25 +0000
commitf867bed2e7c45126ec6b5013178ca2d631cc3318 (patch)
tree3e12bc01d865fa91d96e130fa4a1e5e8e6038653 /crawl-ref/source/randart.h
parent047dbc83010295b9937e88293d627f52792d182f (diff)
downloadcrawl-ref-f867bed2e7c45126ec6b5013178ca2d631cc3318.tar.gz
crawl-ref-f867bed2e7c45126ec6b5013178ca2d631cc3318.zip
Restrict randart names to a maximum length of 30. (I'd really like to
restrict it to about 25, but "The Shining One's" needs 20 letters, so that's out.) Don't automatically regard unID'd jewellery randarts as {tried}, instead use a (very) rough estimate: if you know at least one property, the item will be marked as tried, otherwise (e.g. if the only property is +Dam, or prevents spellcasting) it won't be marked at all. I'm not actually sure this is better than never outputting {tried} for randarts, but we'll see... git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4374 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/randart.h')
-rw-r--r--crawl-ref/source/randart.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/crawl-ref/source/randart.h b/crawl-ref/source/randart.h
index ce77411b9d..8a81b88758 100644
--- a/crawl-ref/source/randart.h
+++ b/crawl-ref/source/randart.h
@@ -57,16 +57,16 @@ typedef FixedVector< bool, RA_PROPERTIES > randart_known_props_t;
/* ***********************************************************************
* called from: describe - fight - it_use2 - item_use - player
* *********************************************************************** */
-void randart_desc_properties( const item_def &item,
+void randart_desc_properties( const item_def &item,
randart_properties_t &proprt,
randart_known_props_t &known,
bool force_fake_props = false);
-void randart_wpn_properties( const item_def &item,
+void randart_wpn_properties( const item_def &item,
randart_properties_t &proprt,
randart_known_props_t &known );
-void randart_wpn_properties( const item_def &item,
+void randart_wpn_properties( const item_def &item,
randart_properties_t &proprt );
int randart_wpn_property( const item_def &item, randart_prop_type prop,
@@ -80,7 +80,7 @@ int randart_wpn_num_props( const item_def &item );
int randart_wpn_num_props( const randart_properties_t &proprt );
void randart_wpn_learn_prop( item_def &item, randart_prop_type prop );
-bool randart_wpn_known_prop( item_def &item, randart_prop_type prop );
+bool randart_wpn_known_prop( const item_def &item, randart_prop_type prop );
/* ***********************************************************************
* called from: dungeon