summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tutorial.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-06-23 14:21:09 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-06-23 14:21:09 +0000
commitdf39d45725b62feba8dbc81496902161ddb9f3ef (patch)
treed1b50d84c8852c7e0af92cee6c2ac53bbbbbc6c6 /crawl-ref/source/tutorial.cc
parentf6859509007cd7fbc7b744dd74c319456acf2a48 (diff)
downloadcrawl-ref-df39d45725b62feba8dbc81496902161ddb9f3ef.tar.gz
crawl-ref-df39d45725b62feba8dbc81496902161ddb9f3ef.zip
Lots of things which used to be members (invis, conf, confusing_touch, etc.)
are now durations. Removed some unnecessary limitations. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1626 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/tutorial.cc')
-rw-r--r--crawl-ref/source/tutorial.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/tutorial.cc b/crawl-ref/source/tutorial.cc
index 522511002a..f221e2eec8 100644
--- a/crawl-ref/source/tutorial.cc
+++ b/crawl-ref/source/tutorial.cc
@@ -719,7 +719,7 @@ void tutorial_prayer_reminder()
// occasionally remind injured characters of resting
void tutorial_healing_reminder()
{
- if (you.poisoning && 2*you.hp < you.hp_max)
+ if (you.duration[DUR_POISONING] && 2*you.hp < you.hp_max)
{
if (Options.tutorial_events[TUT_NEED_POISON_HEALING])
learned_something_new(TUT_NEED_POISON_HEALING);
@@ -728,7 +728,7 @@ 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.poisoning)
+ else if (you.num_turns - Options.tut_last_healed >= 50 && !you.duration[DUR_POISONING])
{
if (Options.tut_just_triggered)
return;
@@ -1258,7 +1258,7 @@ void learned_something_new(tutorial_event_type seen_what, int x, int y)
if (you.species == SP_CENTAUR)
text << " As a four-legged centaur you are particularly quick - "
"running is an option! ";
- if (Options.tutorial_type == TUT_BERSERK_CHAR && !you.berserker
+ if (Options.tutorial_type == TUT_BERSERK_CHAR && !you.duration[DUR_BERSERKER]
&& !you.hunger)
{
text << "\nAlso, with "