From b50eafe8de72cbcc4431813934695c22642cdd46 Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Mon, 2 Jun 2008 12:31:12 +0000 Subject: I'm not sure I actually coded anything worthwhile, though I experimented a fair bit and as usually ended up doing lots of clean-up. Oh wait, I modified eat_from_floor prompts to only force a more if there was actually a message before trying the inventory (whoops), and also modified the corpses in pack hint to take into account that a saccing player won't be interested in butchering rotten corpses. Also implemented a modified FR 1981119: when Detect Creatures only detects plants already seen before, print a different message ("You detect no further creatures."). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5435 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/notes.cc | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'crawl-ref/source/notes.cc') diff --git a/crawl-ref/source/notes.cc b/crawl-ref/source/notes.cc index 957b8cb52f..9191fbb7ae 100644 --- a/crawl-ref/source/notes.cc +++ b/crawl-ref/source/notes.cc @@ -87,7 +87,7 @@ static bool _is_noteworthy_dlevel( unsigned short place ) static_cast((place >> 8) & 0xFF); const int lev = (place & 0xFF); - /* Special levels (Abyss, etc.) are always interesting */ + // Special levels (Abyss, etc.) are always interesting. if (lev == 0xFF) return true; @@ -106,7 +106,7 @@ static bool _is_noteworthy_dlevel( unsigned short place ) // the note was taken, e.g. you.* is valid. static bool _is_noteworthy( const Note& note ) { - /* always noteworthy */ + // Always noteworthy. if (note.type == NOTE_XP_LEVEL_CHANGE || note.type == NOTE_GET_GOD || note.type == NOTE_GOD_GIFT @@ -127,7 +127,7 @@ static bool _is_noteworthy( const Note& note ) return true; } - /* never noteworthy, hooked up for fun or future use */ + // Never noteworthy, hooked up for fun or future use. if (note.type == NOTE_MP_CHANGE || note.type == NOTE_MAXHP_CHANGE || note.type == NOTE_MAXMP_CHANGE) @@ -135,22 +135,22 @@ static bool _is_noteworthy( const Note& note ) return false; } - /* god powers might be noteworthy if it's an actual power */ + // God powers might be noteworthy if it's an actual power. if (note.type == NOTE_GOD_POWER && _real_god_power(note.first, note.second) == -1) { return false; } - /* hp noteworthiness is handled in its own function */ + // HP noteworthiness is handled in its own function. if (note.type == NOTE_HP_CHANGE && !_is_noteworthy_hp(note.first, note.second)) { return false; } - /* skills are noteworthy if in the skill value list or if - it's a new maximal skill (depending on options) */ + // Skills are noteworthy if in the skill value list or if + // it's a new maximal skill (depending on options). if (note.type == NOTE_GAIN_SKILL) { if (Options.note_all_skill_levels @@ -167,7 +167,7 @@ static bool _is_noteworthy( const Note& note ) if (!_is_noteworthy_dlevel(note.packed_place)) return false; - // labyrinths are always interesting + // Labyrinths are always interesting. if ((note.packed_place & 0xFF) == 0xFF && (note.packed_place >> 8) == LEVEL_LABYRINTH) { @@ -175,7 +175,7 @@ static bool _is_noteworthy( const Note& note ) } } - /* Learning a spell is always noteworthy if note_all_spells is set */ + // Learning a spell is always noteworthy if note_all_spells is set. if (note.type == NOTE_LEARN_SPELL && Options.note_all_spells) return true; -- cgit v1.2.3-54-g00ecf