summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tutorial.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2007-09-24 14:11:22 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2007-09-24 14:11:22 +0000
commit22f5db88e448378b78770430edc5fd8e1bcb9a48 (patch)
treef01f63abba6ce1f19422c6687ae9dc1324cab285 /crawl-ref/source/tutorial.cc
parente11dba64d54f66fca604f0484ada549fb19db709 (diff)
downloadcrawl-ref-22f5db88e448378b78770430edc5fd8e1bcb9a48.tar.gz
crawl-ref-22f5db88e448378b78770430edc5fd8e1bcb9a48.zip
A few simple fixes.
* Add zero level invocations to Trog and Ely's religion screens * Demonspawn get 0-2 additional damage for demonic weapons (similar to MD + dwarven weapons) * Darts and Throwing don't crosstrain anymore * Don't offer "inscribe items" text during tutorial. * Cleanup and minor fixes of tutorial git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2187 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/tutorial.cc')
-rw-r--r--crawl-ref/source/tutorial.cc21
1 files changed, 13 insertions, 8 deletions
diff --git a/crawl-ref/source/tutorial.cc b/crawl-ref/source/tutorial.cc
index 38cb5fe1c6..d35efb4ba4 100644
--- a/crawl-ref/source/tutorial.cc
+++ b/crawl-ref/source/tutorial.cc
@@ -753,6 +753,9 @@ void tutorial_dissection_reminder()
// occasionally remind injured characters of resting
void tutorial_healing_reminder()
{
+ if (!Options.tutorial_left)
+ return;
+
if (you.duration[DUR_POISONING] && 2*you.hp < you.hp_max)
{
if (Options.tutorial_events[TUT_NEED_POISON_HEALING])
@@ -762,7 +765,8 @@ void tutorial_healing_reminder()
{
if (Options.tutorial_events[TUT_NEED_HEALING])
learned_something_new(TUT_NEED_HEALING);
- else if (you.num_turns - Options.tut_last_healed >= 50 && !you.duration[DUR_POISONING])
+ else if (you.num_turns - Options.tut_last_healed >= 50
+ && !you.duration[DUR_POISONING])
{
if (Options.tut_just_triggered)
return;
@@ -780,6 +784,7 @@ void tutorial_healing_reminder()
"<w>a<magenta>.";
}
print_formatted_paragraph(text, get_tutorial_cols(), MSGCH_TUTORIAL);
+ Options.tut_just_triggered = 1;
}
Options.tut_last_healed = you.num_turns;
}
@@ -1316,7 +1321,7 @@ void learned_something_new(tutorial_event_type seen_what, int x, int y)
case TUT_SHIFT_RUN:
text << "Walking around takes less keystrokes if you press "
- "<w>Shift-direction<magenta> or <w>/ direction<magenta>. "
+ "<w>Shift-direction<magenta> or <w>/ <w>direction<magenta>. "
"That will let you run until a monster comes into sight or "
"your character sees something interesting.";
break;
@@ -1973,7 +1978,7 @@ void tutorial_describe_feature(dungeon_feature_type feat)
"causes the trap to go off, so it can be quite a "
"dangerous task.";
}
- Options.tutorial_events[TUT_SEEN_TRAP];
+ Options.tutorial_events[TUT_SEEN_TRAP] = 0;
break;
case DNGN_STONE_STAIRS_DOWN_I:
case DNGN_STONE_STAIRS_DOWN_II:
@@ -1981,7 +1986,7 @@ void tutorial_describe_feature(dungeon_feature_type feat)
ostr << "You can enter the next (deeper) level by following them "
"down (<w>><magenta>). To get back to this level again, "
"press <w><<<magenta> while standing on the upstairs.";
- Options.tutorial_events[TUT_SEEN_STAIRS];
+ Options.tutorial_events[TUT_SEEN_STAIRS] = 0;
break;
case DNGN_STONE_STAIRS_UP_I:
case DNGN_STONE_STAIRS_UP_II:
@@ -1995,11 +2000,11 @@ void tutorial_describe_feature(dungeon_feature_type feat)
else
{
ostr << "You can enter the previous (lower) level by following "
- "these down (<w><<<magenta>). To get back to this level "
+ "these up (<w><<<magenta>). To get back to this level "
"again, press <w>><magenta> while standing on the "
"downstairs.";
}
- Options.tutorial_events[TUT_SEEN_STAIRS];
+ Options.tutorial_events[TUT_SEEN_STAIRS] = 0;
break;
case DNGN_ROCK_STAIRS_DOWN:
@@ -2007,7 +2012,7 @@ void tutorial_describe_feature(dungeon_feature_type feat)
ostr << "Escape hatches can be used to quickly leave a level with "
"<w><<<magenta> and <w>><magenta>, respectively. Note that "
"you will usually be unable to return right away.";
- Options.tutorial_events[TUT_SEEN_ESCAPE_HATCH];
+ Options.tutorial_events[TUT_SEEN_ESCAPE_HATCH] = 0;
break;
case DNGN_ALTAR_ZIN:
@@ -2067,7 +2072,7 @@ void tutorial_describe_feature(dungeon_feature_type feat)
<< " press <w>^<magenta>.";
}
}
- Options.tutorial_events[TUT_SEEN_ALTAR];
+ Options.tutorial_events[TUT_SEEN_ALTAR] = 0;
break;
}
case DNGN_ENTER_ORCISH_MINES: