summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/it_use2.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-03-30 00:48:43 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-03-30 00:48:43 +0000
commita197f7ae045a5b682bd4c2039d16c6425c35ecd5 (patch)
tree83635b17b54c05330f4f6feb3b0fe0063d0479e1 /crawl-ref/source/it_use2.cc
parent91179c38e250640d7eb30ad27a800458d36a2389 (diff)
downloadcrawl-ref-a197f7ae045a5b682bd4c2039d16c6425c35ecd5.tar.gz
crawl-ref-a197f7ae045a5b682bd4c2039d16c6425c35ecd5.zip
Another, no, scratch that: THE tutorial improvement for tiles.
Using horrific amounts of #ifdef USE_TILE etc, the tutorial texts now give different information for tiles (mouse clicks) and non-tiles (key commands). Unfortunately, while I am confident this is a vast improvement the new messages for tiles tend to be rather wordy because "clicking on the item with your left mouse button" is much verbose than "pressing 'w'". That, and most of the time I want to print the tile information *in addition* to the general commands. So, it would be helpful if someone else could go over the texts at one point - there's no need to hurry, though. Also a bit of general improvement, which is always nice. I'd somehow forgotten to include a tutorial trigger for mutations, and of course the first potion I tried was mutation. :) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3941 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/it_use2.cc')
-rw-r--r--crawl-ref/source/it_use2.cc11
1 files changed, 8 insertions, 3 deletions
diff --git a/crawl-ref/source/it_use2.cc b/crawl-ref/source/it_use2.cc
index 26a9c2c091..a22363946f 100644
--- a/crawl-ref/source/it_use2.cc
+++ b/crawl-ref/source/it_use2.cc
@@ -40,6 +40,7 @@
#include "spl-cast.h"
#include "spl-util.h"
#include "stuff.h"
+#include "tutorial.h"
#include "view.h"
#include "xom.h"
@@ -163,15 +164,18 @@ bool potion_effect( potion_type pot_eff, int pow, bool was_known )
}
case POT_GAIN_STRENGTH:
- mutate(MUT_STRONG);
+ if (mutate(MUT_STRONG))
+ learned_something_new(TUT_YOU_MUTATED);
break;
case POT_GAIN_DEXTERITY:
- mutate(MUT_AGILE);
+ if (mutate(MUT_AGILE))
+ learned_something_new(TUT_YOU_MUTATED);
break;
case POT_GAIN_INTELLIGENCE:
- mutate(MUT_CLEVER);
+ if (mutate(MUT_CLEVER))
+ learned_something_new(TUT_YOU_MUTATED);
break;
case POT_LEVITATION:
@@ -349,6 +353,7 @@ bool potion_effect( potion_type pot_eff, int pow, bool was_known )
for (int i = 0; i < 3; i++)
mutate(RANDOM_MUTATION, false);
+ learned_something_new(TUT_YOU_MUTATED);
did_god_conduct(DID_DELIBERATE_MUTATING, 10, was_known);
did_god_conduct(DID_STIMULANTS, 4 + random2(4), was_known);
break;