diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-04-27 11:59:31 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-04-27 11:59:31 +0000 |
commit | b49f34292556d8d6d239cc57aba8068bb22cf751 (patch) | |
tree | 9a5cd858677c9b7975a097f96c5853e591a8111c /crawl-ref/source/misc.cc | |
parent | f3ece5fe657885c0488a536404ba9164db4aeedf (diff) | |
download | crawl-ref-b49f34292556d8d6d239cc57aba8068bb22cf751.tar.gz crawl-ref-b49f34292556d8d6d239cc57aba8068bb22cf751.zip |
Rewrite of item_def::name() (the old itemname()). Much, much cleaner now.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1376 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/misc.cc')
-rw-r--r-- | crawl-ref/source/misc.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/misc.cc b/crawl-ref/source/misc.cc index dbc1d633cb..eff23623b0 100644 --- a/crawl-ref/source/misc.cc +++ b/crawl-ref/source/misc.cc @@ -46,7 +46,7 @@ #include "hiscores.h" #include "it_use2.h" #include "items.h" -#include "itemname.h" +#include "itemprop.h" #include "lev-pand.h" #include "macro.h" #include "makeitem.h" @@ -91,7 +91,7 @@ void turn_corpse_into_chunks( item_def &item ) // seems to me that this should come about only // after the corpse has been butchered ... {dlb} - if (monster_descriptor( mons_class, MDSC_LEAVES_HIDE ) && !one_chance_in(3)) + if (monster_descriptor(mons_class, MDSC_LEAVES_HIDE) && !one_chance_in(3)) { int o = get_item_slot( 100 + random2(200) ); if (o == NON_ITEM) |