summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tutorial.cc
diff options
context:
space:
mode:
authorzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2009-05-24 08:22:40 +0000
committerzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2009-05-24 08:22:40 +0000
commit4fd5210858042ffa3eeb6de181868eebb38cd81f (patch)
tree5dc671b96cc5882718e616192919ea00f004afd2 /crawl-ref/source/tutorial.cc
parent2b81f6d336f3b8f9c4df969cb1d1a824b13bee9d (diff)
downloadcrawl-ref-4fd5210858042ffa3eeb6de181868eebb38cd81f.tar.gz
crawl-ref-4fd5210858042ffa3eeb6de181868eebb38cd81f.zip
Tutorial changes:
- If a friendly monster is enslaved/charmed, note that it is only *temporarily* friendly, and that it will become hostile when its friendliness wears out. - Make sure TUT_MONSTER_FRIENDLY is fired for summoned friendly monsters, not just for enslaved/charmed monsters. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9816 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/tutorial.cc')
-rw-r--r--crawl-ref/source/tutorial.cc12
1 files changed, 11 insertions, 1 deletions
diff --git a/crawl-ref/source/tutorial.cc b/crawl-ref/source/tutorial.cc
index 62520d7e79..c1981c2072 100644
--- a/crawl-ref/source/tutorial.cc
+++ b/crawl-ref/source/tutorial.cc
@@ -2778,6 +2778,11 @@ void learned_something_new(tutorial_event_type seen_what, coord_def gc)
"monsters killed by allies of what you'd get for killing them "
"yourself. You can command your allies by pressing <w>t</w> "
"to talk to them.";
+
+ if (!mons_att_wont_attack(monster_at(gc)->attitude))
+ text << "\n\nHowever, it is only <w>temporarily</w> friendly, "
+ "and will become dangerous again when this friendliness "
+ "wears off.";
break;
case TUT_SEEN_MONSTER:
@@ -4032,7 +4037,8 @@ void tutorial_describe_monster(const monsters *mons)
"better than to send you the same way.\n\n";
dangerous = true;
}
- else
+ // Don't call friendly horrible things dangerous.
+ else if (!mons_att_wont_attack(mons->attitude))
{
// 8 is the default value for the note-taking of OOD monsters.
// Since I'm too lazy to come up with any measurement of my own
@@ -4063,6 +4069,10 @@ void tutorial_describe_monster(const monsters *mons)
ostr << "Friendly monsters will follow you around and attempt to aid "
"you in battle. You can order your allies by <w>t</w>alking "
"to them.";
+ if (!mons_att_wont_attack(mons->attitude))
+ ostr << "\n\nHowever, it is only <w>temporarily</w> friendly, "
+ "and will become dangerous again when this friendliness "
+ "wears off.";
}
else if (dangerous)
{