diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-22 19:24:02 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-22 19:24:02 +0000 |
commit | 2f5785ca4f55ddfd7365d2888475ba9c28032c96 (patch) | |
tree | 9875f61a2be15bab56b0edba20153900ca15c85a /crawl-ref/source/itemname.cc | |
parent | 93410abd4eabdd55afb70c42f565f26686b9a7f1 (diff) | |
download | crawl-ref-2f5785ca4f55ddfd7365d2888475ba9c28032c96.tar.gz crawl-ref-2f5785ca4f55ddfd7365d2888475ba9c28032c96.zip |
Go all the way and also store a randart's name and description in
the props table. No more re-rolling every time we need the name, yay! :D
Should be save file compatible, and I also modified my previous change
to be save file compatible, after all. Not entirely sure this works,
though, as I didn't have any old saved games to test this with.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4479 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/itemname.cc')
-rw-r--r-- | crawl-ref/source/itemname.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/itemname.cc b/crawl-ref/source/itemname.cc index f25bd8f34f..224eb31dca 100644 --- a/crawl-ref/source/itemname.cc +++ b/crawl-ref/source/itemname.cc @@ -1053,7 +1053,7 @@ std::string item_def::name_aux( description_level_type desc, if (is_random_artefact( *this ) && !dbname) { - buff << randart_name(*this); + buff << get_randart_name(*this); break; } @@ -1166,7 +1166,7 @@ std::string item_def::name_aux( description_level_type desc, // When asking for the base item name, randartism is ignored. if (is_random_artefact( *this ) && !basename && !dbname) { - buff << randart_name(*this); + buff << get_randart_name(*this); break; } @@ -1409,7 +1409,7 @@ std::string item_def::name_aux( description_level_type desc, if (is_randart && !dbname) { - buff << randart_name(*this); + buff << get_randart_name(*this); break; } |