summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tutorial.cc
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-11-09 22:44:43 +0100
committerRobert Vollmert <rvollmert@gmx.net>2009-11-09 23:21:41 +0100
commitf8d69cbe96b1bcb39b90554800a60d99c0a596f7 (patch)
tree331391fc0aac88b357e8a6fae173cb08c380fa98 /crawl-ref/source/tutorial.cc
parent4faab1b80eaf21e1e12c41316d596fb5be45e79d (diff)
downloadcrawl-ref-f8d69cbe96b1bcb39b90554800a60d99c0a596f7.tar.gz
crawl-ref-f8d69cbe96b1bcb39b90554800a60d99c0a596f7.zip
Remove option draw_it from viewwindow.
The only use was just removed. Also move the draw check closer to where it's used.
Diffstat (limited to 'crawl-ref/source/tutorial.cc')
-rw-r--r--crawl-ref/source/tutorial.cc48
1 files changed, 24 insertions, 24 deletions
diff --git a/crawl-ref/source/tutorial.cc b/crawl-ref/source/tutorial.cc
index a9c72e35f5..d7ef041d35 100644
--- a/crawl-ref/source/tutorial.cc
+++ b/crawl-ref/source/tutorial.cc
@@ -1339,7 +1339,7 @@ void tutorial_first_monster(const monsters &mon)
"death by misclicking.";
#endif
- viewwindow(true, false);
+ viewwindow(false);
formatted_message_history(text, MSGCH_TUTORIAL, 0, _get_tutorial_cols());
if (Options.tutorial_type == TUT_RANGER_CHAR)
@@ -1435,7 +1435,7 @@ void tutorial_first_item(const item_def &item)
tiles.add_text_tag(TAG_TUTORIAL, item.name(DESC_CAP_A), gc);
#endif
- viewwindow(true, false);
+ viewwindow(false);
text += "is an item. If you move there and press <w>g</w> or "
"<w>,</w> you will pick it up. "
#ifndef USE_TILE
@@ -2032,7 +2032,7 @@ void learned_something_new(tutorial_event_type seen_what, coord_def gc)
tiles.place_cursor(CURSOR_TUTORIAL, gc);
tiles.add_text_tag(TAG_TUTORIAL, "Stairs", gc);
#endif
- viewwindow(true, false);
+ viewwindow(false);
text << "are some downstairs. You can enter the next (deeper) "
"level by following them down (<w>></w>). To get back to "
"this level again, press <w><<</w> while standing on the "
@@ -2064,7 +2064,7 @@ void learned_something_new(tutorial_event_type seen_what, coord_def gc)
tiles.place_cursor(CURSOR_TUTORIAL, gc);
tiles.add_text_tag(TAG_TUTORIAL, "Escape hatch", gc);
#endif
- viewwindow(true, false);
+ viewwindow(false);
text << "are some kind of escape hatch. You can use them to "
"quickly leave a level with <w><<</w> and <w>></w>, "
"respectively "
@@ -2092,7 +2092,7 @@ void learned_something_new(tutorial_event_type seen_what, coord_def gc)
tiles.place_cursor(CURSOR_TUTORIAL, gc);
tiles.add_text_tag(TAG_TUTORIAL, "Branch stairs", gc);
#endif
- viewwindow(true, false);
+ viewwindow(false);
text << "is the entrance to a different branch of the dungeon, "
"which might have different terrain, level layout and "
"monsters from the current main branch you're in. Branches "
@@ -2130,7 +2130,7 @@ void learned_something_new(tutorial_event_type seen_what, coord_def gc)
tiles.place_cursor(CURSOR_TUTORIAL, gc);
tiles.add_text_tag(TAG_TUTORIAL, "Portal", gc);
#endif
- viewwindow(true, false);
+ viewwindow(false);
text << _describe_portal(gc);
break;
@@ -2139,7 +2139,7 @@ void learned_something_new(tutorial_event_type seen_what, coord_def gc)
if (actor_at(gc))
DELAY_EVENT;
- viewwindow(true, false);
+ viewwindow(false);
#ifdef USE_TILE
text << "A small question mark on a stair tile signifies that there "
"are items in that position that you may want to check out.";
@@ -2156,7 +2156,7 @@ void learned_something_new(tutorial_event_type seen_what, coord_def gc)
if (actor_at(gc))
DELAY_EVENT;
- viewwindow(true, false);
+ viewwindow(false);
#ifdef USE_TILE
text << "A small question mark on an item tile signifies that there "
"is at least one other item in the same heap that you may want "
@@ -2178,7 +2178,7 @@ void learned_something_new(tutorial_event_type seen_what, coord_def gc)
if (actor_at(gc))
DELAY_EVENT;
- viewwindow(true, false);
+ viewwindow(false);
text << "If any items are covering a trap, then that will be "
"indicated by highlighting the <w>^</w> symbol, instead of "
"hiding the trap symbol with an item glyph.";
@@ -2223,7 +2223,7 @@ void learned_something_new(tutorial_event_type seen_what, coord_def gc)
tiles.add_text_tag(TAG_TUTORIAL, altar, gc);
}
#endif
- viewwindow(true, false);
+ viewwindow(false);
text << "is an altar. You can get information about it by pressing "
"<w>p</w> while standing on the square. Before taking up "
"the corresponding faith you'll be asked for confirmation.";
@@ -2242,7 +2242,7 @@ void learned_something_new(tutorial_event_type seen_what, coord_def gc)
tiles.place_cursor(CURSOR_TUTORIAL, gc);
tiles.add_text_tag(TAG_TUTORIAL, shop_name(gc), gc);
#endif
- viewwindow(true, false);
+ viewwindow(false);
text << "That "
#ifndef USE_TILE
<< _colourize_glyph(YELLOW, get_screen_glyph(gc)) << " "
@@ -2263,7 +2263,7 @@ void learned_something_new(tutorial_event_type seen_what, coord_def gc)
tiles.place_cursor(CURSOR_TUTORIAL, gc);
tiles.add_text_tag(TAG_TUTORIAL, "Closed door", gc);
#endif
- viewwindow(true, false);
+ viewwindow(false);
text << "That "
#ifndef USE_TILE
@@ -2413,7 +2413,7 @@ void learned_something_new(tutorial_event_type seen_what, coord_def gc)
break;
case TUT_YOU_ENCHANTED:
- viewwindow(true, false);
+ viewwindow(false);
text << "Enchantments of all types can befall you temporarily. "
"Brief descriptions of these appear at the lower end of the "
"stats area. Press <w>@</w> for more details. A list of all "
@@ -2479,7 +2479,7 @@ void learned_something_new(tutorial_event_type seen_what, coord_def gc)
break;
case TUT_YOU_CURSED:
- viewwindow(true, false);
+ viewwindow(false);
text << "Curses are comparatively harmless, but they do mean that "
"you cannot remove cursed equipment and will have to suffer "
"the (possibly) bad effects until you find and read a scroll "
@@ -2557,7 +2557,7 @@ void learned_something_new(tutorial_event_type seen_what, coord_def gc)
break;
case TUT_HEAVY_LOAD:
- viewwindow(true, false);
+ viewwindow(false);
if (you.burden_state != BS_UNENCUMBERED)
{
text << "It is not usually a good idea to run around encumbered; "
@@ -2746,7 +2746,7 @@ void learned_something_new(tutorial_event_type seen_what, coord_def gc)
case TUT_AUTO_EXCLUSION:
// In the highly unlikely case the player encounters a
// hostile statue or oklob plant during the tutorial...
- viewwindow(true, false);
+ viewwindow(false);
if (Options.tut_explored)
{
// Hack: Reset tut_just_triggered, to force recursive calling of
@@ -2823,7 +2823,7 @@ void learned_something_new(tutorial_event_type seen_what, coord_def gc)
break;
case TUT_POSTBERSERK:
- viewwindow(true, false);
+ viewwindow(false);
text << "Berserking is extremely exhausting! It burns a lot of "
"nutrition, and afterwards you are slowed down and "
"occasionally even pass out. Press <w>@</w> to see your "
@@ -3079,7 +3079,7 @@ void learned_something_new(tutorial_event_type seen_what, coord_def gc)
if (Options.tutorial_type != TUT_BERSERK_CHAR)
return;
- viewwindow(true, false);
+ viewwindow(false);
text << "Now that monster is scared of you! Note that you do not "
"absolutely have to follow it. Rather, you can let it run "
"away. Sometimes, though, it can be useful to attack a "
@@ -3095,7 +3095,7 @@ void learned_something_new(tutorial_event_type seen_what, coord_def gc)
if (const monsters *m = monster_at(gc))
tiles.add_text_tag(TAG_TUTORIAL, m->name(DESC_CAP_A), gc);
#endif
- viewwindow(true, false);
+ viewwindow(false);
text << "That monster looks a bit unusual. You might wish to examine "
"it a bit more closely by "
#ifdef USE_TILE
@@ -3147,7 +3147,7 @@ void learned_something_new(tutorial_event_type seen_what, coord_def gc)
tiles.add_text_tag(TAG_TUTORIAL, m->name(DESC_CAP_A), gc);
}
#endif
- viewwindow(true, false);
+ viewwindow(false);
if (!vis)
{
text << "Uh-oh, some monster noticed you, either one that's "
@@ -3181,7 +3181,7 @@ void learned_something_new(tutorial_event_type seen_what, coord_def gc)
if (!m || !you.can_see(m))
DELAY_EVENT;
- viewwindow(true, false);
+ viewwindow(false);
text << m->name(DESC_CAP_THE, true) << " didn't vanish, but merely "
"moved onto a square which you can't currently see. It's still "
"nearby, unless something happens to it in the short amount of "
@@ -3254,7 +3254,7 @@ void learned_something_new(tutorial_event_type seen_what, coord_def gc)
break;
case TUT_GLOWING:
- viewwindow(true, false);
+ viewwindow(false);
text << "You've accumulated so much magical contamination that you're "
"glowing! You usually acquire magical contamination from using "
"some powerful magics, like invisibility, haste or potions of "
@@ -3299,7 +3299,7 @@ void learned_something_new(tutorial_event_type seen_what, coord_def gc)
break;
case TUT_CAUGHT_IN_NET:
- viewwindow(true, false);
+ viewwindow(false);
text << "While you are held in a net, you cannot move around or engage "
"monsters in combat. Instead, any movement you take is counted "
"as an attempt to struggle free from the net. With a wielded "
@@ -3325,7 +3325,7 @@ void learned_something_new(tutorial_event_type seen_what, coord_def gc)
case TUT_LOAD_SAVED_GAME:
{
- viewwindow(true, false);
+ viewwindow(false);
text << "Welcome back! If it's been a while since you last played this "
"character, you should take some time to refresh your memory "
"of your character's progress. It is recommended to at least "