summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/monstuff.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-02-06 16:03:52 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-02-06 16:03:52 +0000
commit24be3228d463d6b2501cbca9368e14e91ab42182 (patch)
tree5fd30f60a43e1e69188bce4e30646c3e89e288b2 /crawl-ref/source/monstuff.cc
parentf878a03c781fd57fea8447caaecee847ab576d8b (diff)
downloadcrawl-ref-24be3228d463d6b2501cbca9368e14e91ab42182.tar.gz
crawl-ref-24be3228d463d6b2501cbca9368e14e91ab42182.zip
Tutorial (JPEG) and some formatting cleanup.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@924 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/monstuff.cc')
-rw-r--r--crawl-ref/source/monstuff.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/crawl-ref/source/monstuff.cc b/crawl-ref/source/monstuff.cc
index e6f9f17a24..dc56a2b137 100644
--- a/crawl-ref/source/monstuff.cc
+++ b/crawl-ref/source/monstuff.cc
@@ -53,6 +53,7 @@
#include "spells2.h"
#include "spells4.h"
#include "stuff.h"
+#include "tutorial.h"
#include "view.h"
#include "stash.h"
@@ -323,6 +324,8 @@ static void place_monster_corpse(const monsters *monster)
// Don't care if 'o' is changed, and it shouldn't be (corpses don't stack)
move_item_to_grid( &o, monster->x, monster->y );
+ if (you.hunger_state < HS_SATIATED)
+ learned_something_new(TUT_MAKE_CHUNKS);
} // end place_monster_corpse()
void monster_die(struct monsters *monster, char killer, int i)
@@ -446,6 +449,13 @@ void monster_die(struct monsters *monster, char killer, int i)
mpr("That felt strangely unrewarding.");
}
+ // killing triggers tutorial lesson
+ if (Options.tutorial_events[TUT_KILLED_MONSTER])
+ learned_something_new(TUT_KILLED_MONSTER);
+ else if (Options.tutorial_left && (you.religion == GOD_TROG || you.religion == GOD_OKAWARU || you.religion == GOD_MAKHLEB)
+ && !you.duration[DUR_PRAYER])
+ tutorial_prayer_reminder();
+
// Xom doesn't care who you killed:
if (you.religion == GOD_XOM
&& random2(70) <= 10 + monster->hit_dice)