From 3da16ef55175ccae0b1645e9b0e22709a14c1203 Mon Sep 17 00:00:00 2001 From: zelgadis Date: Thu, 29 May 2008 02:35:14 +0000 Subject: Twelve new tutorial events, plus examining a square with a cloud or a monster submerged in shallow water will give extra info during turorial mode. Might be giving too many spoilers, especially the tips on surviving in the Abyss and saying exactly what each god likes and dislikes when covnerting. There's a bug in non-tiles build where the tutorial note on branch entrances shows the '>' symbol as light-grey instead of yellow; don't know what's causing that. Also, made player::backlit() used _get_contamination_level() to stay in sync with the rest of the code. Breaks savefile compatibilty. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5320 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/spl-cast.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'crawl-ref/source/spl-cast.cc') diff --git a/crawl-ref/source/spl-cast.cc b/crawl-ref/source/spl-cast.cc index 68cc286348..f3e68650fb 100644 --- a/crawl-ref/source/spl-cast.cc +++ b/crawl-ref/source/spl-cast.cc @@ -57,6 +57,7 @@ #include "state.h" #include "stuff.h" #include "transfor.h" +#include "tutorial.h" #include "view.h" #include "xom.h" @@ -692,7 +693,10 @@ bool cast_a_spell() { const int spellh = calc_hunger( spell_hunger(spell) ); if (spellh > 0) + { make_hungry(spellh, true); + learned_something_new(TUT_SPELL_HUNGER); + } } you.turn_is_over = true; @@ -1039,6 +1043,7 @@ spret_type your_spells( spell_type spell, int powc, bool allow_fail ) mpr( "You miscast the spell." ); flush_input_buffer( FLUSH_ON_FAILURE ); + learned_something_new( TUT_SPELL_MISCAST ); if (you.religion == GOD_SIF_MUNA && !player_under_penance() -- cgit v1.2.3-54-g00ecf