diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-12-01 19:38:40 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-12-01 19:38:40 +0000 |
commit | c98e65d7c1e611743f82997954c259dedbe843b2 (patch) | |
tree | b1da44fc24119b294a01311e0a64891be2578679 /crawl-ref/source/view.cc | |
parent | 37ffd29a84d48b08c2ef799a271f3ab83202a03a (diff) | |
download | crawl-ref-c98e65d7c1e611743f82997954c259dedbe843b2.tar.gz crawl-ref-c98e65d7c1e611743f82997954c259dedbe843b2.zip |
Added a function, apply_to_all_dungeons(), which basically acts as
a Visitor for every dungeon level. The idea is to use this for
galaxy-spanning effects, e.g. if you want to shuffle all the decks
in existence or deconvert all the Beogh-converted orcs.
Not well tested; might be buggy.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2960 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/view.cc')
-rw-r--r-- | crawl-ref/source/view.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/view.cc b/crawl-ref/source/view.cc index fbdf5cab3b..889c46a503 100644 --- a/crawl-ref/source/view.cc +++ b/crawl-ref/source/view.cc @@ -1030,14 +1030,14 @@ void fire_monster_alerts() // Monster was not viewed this turn monster->flags &= ~MF_WAS_IN_VIEW; } - monster->seen_context = ""; + monster->seen_context.clear(); } // Xom thinks it's hilarious the way the player picks up an ever // growing entourage of monsters while running through the Abyss. // To approximate this, if the number of hostile monsters in view // is greater than it ever was for this particular trip to the - // Abyss, Xom is stimulated in proprotion to the number of + // Abyss, Xom is stimulated in proportion to the number of // hostile monsters. Thus if the entourage doesn't grow, then // Xom becomes bored. if (you.level_type == LEVEL_ABYSS |