From 24be3228d463d6b2501cbca9368e14e91ab42182 Mon Sep 17 00:00:00 2001 From: dshaligram Date: Tue, 6 Feb 2007 16:03:52 +0000 Subject: 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 --- crawl-ref/source/monstuff.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'crawl-ref/source/monstuff.cc') 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) -- cgit v1.2.3-54-g00ecf