summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/notes.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-08-06 14:23:46 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-08-06 14:23:46 +0000
commit1395f15a3e6ee7e9b934da41b694c9beef71abda (patch)
tree688495e0100e9df57d5148faa37b0bb388e4bebd /crawl-ref/source/notes.cc
parent3afdb100186370fc412f68727fbfad5c2eff95c6 (diff)
downloadcrawl-ref-1395f15a3e6ee7e9b934da41b694c9beef71abda.tar.gz
crawl-ref-1395f15a3e6ee7e9b934da41b694c9beef71abda.zip
* Note items bought in shops along with their price
* Note donations made to Zin * Add option autoinscribe_randarts that, if true, autoinscribes artefacts of its own whenever some new properties become known, be it by using it or identifying. Also applies to shops. This is still unfinished and buggy. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6785 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/notes.cc')
-rw-r--r--crawl-ref/source/notes.cc14
1 files changed, 12 insertions, 2 deletions
diff --git a/crawl-ref/source/notes.cc b/crawl-ref/source/notes.cc
index 9edff6b4cd..dbdb0bcdca 100644
--- a/crawl-ref/source/notes.cc
+++ b/crawl-ref/source/notes.cc
@@ -114,6 +114,8 @@ static bool _is_noteworthy( const Note& note )
|| note.type == NOTE_LOSE_MUTATION
|| note.type == NOTE_GET_ITEM
|| note.type == NOTE_ID_ITEM
+ || note.type == NOTE_BUY_ITEM
+ || note.type == NOTE_DONATE_MONEY
|| note.type == NOTE_SEEN_MONSTER
|| note.type == NOTE_KILL_MONSTER
|| note.type == NOTE_POLY_MONSTER
@@ -304,12 +306,20 @@ std::string Note::describe( bool when, bool where, bool what ) const
break;
case NOTE_ID_ITEM:
result << "Identified " << name;
- if ( !desc.empty() )
+ if (!desc.empty())
result << " (" << desc << ")";
break;
case NOTE_GET_ITEM:
result << "Got " << name;
break;
+ case NOTE_BUY_ITEM:
+ result << "Bought " << name << " for " << first << " gold piece"
+ << (first == 1 ? "" : "s");
+ break;
+ case NOTE_DONATE_MONEY:
+ result << "Donated " << first << " gold piece"
+ << (first == 1 ? "" : "s") << " to Zin";
+ break;
case NOTE_GAIN_SKILL:
result << "Reached skill " << second
<< " in " << skill_name(first);
@@ -318,7 +328,7 @@ std::string Note::describe( bool when, bool where, bool what ) const
result << "Noticed " << name;
break;
case NOTE_KILL_MONSTER:
- if ( second )
+ if (second)
result << name << " (ally) was defeated";
else
result << "Defeated " << name;