From 1572e9c9223b1b45eada6fec2e1a82eb6950ebfd Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Fri, 13 Jun 2008 14:19:42 +0000 Subject: Added several new tutorial triggers including information on being caught in a net, specific skills, magic resistance, and which stat to choose. In a given game you'll only ever see a small fraction of all tutorial events (we're at 71 now, and some of them are exclusive). In fact, a lot of the information is so generally useful (esp. on gods, skills and items) that I'm seriously considering opening up the general information (How do I use item x? What does Spellcasting do?) to a wider selection of characters. I don't think we'll want to explain the intricacies of Mummies, Ghouls, or Vampires, but a lot of this stuff even applies to them... (If we overhaul the tutorial, it's certainly not a 0.4 target, though.) Resetting the tutorial version to 8 as we somehow switched from digital version to binary and back to digital. It will take some time until we actually reach 110, and by then, I am sure the base files won't be save compatible anymore. :) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5777 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/item_use.cc | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'crawl-ref/source/item_use.cc') diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc index 0ce876643e..b524f4a78a 100644 --- a/crawl-ref/source/item_use.cc +++ b/crawl-ref/source/item_use.cc @@ -2814,7 +2814,7 @@ void jewellery_wear_effects(item_def &item) xom_is_stimulated(128); } - // cursed or not, we know that since we've put the ring on + // Cursed or not, we know that since we've put the ring on. set_ident_flags( item, ISFLAG_KNOW_CURSE ); mpr( item.name(DESC_INVENTORY_EQUIP).c_str() ); @@ -4373,6 +4373,7 @@ void read_scroll( int slot ) { // Also sets wield_change. do_curse_item( you.inv[nthing], false ); + learned_something_new(TUT_YOU_CURSED); } break; @@ -4459,10 +4460,10 @@ void read_scroll( int slot ) break; case SCR_ENCHANT_ARMOUR: - if ( !item_type_known(scroll) ) - id_the_scroll = scroll_modify_item(which_scroll); + if (!item_type_known(scroll)) + id_the_scroll = scroll_modify_item(which_scroll); else - _handle_enchant_armour(-1); + _handle_enchant_armour(-1); break; case SCR_CURSE_ARMOUR: @@ -4485,11 +4486,10 @@ void read_scroll( int slot ) id_the_scroll = false; break; } - else - { - // Make the name before we curse it. - do_curse_item( you.inv[you.equip[affected]], false ); - } + + // Make the name before we curse it. + do_curse_item( you.inv[you.equip[affected]], false ); + learned_something_new(TUT_YOU_CURSED); break; case SCR_HOLY_WORD: -- cgit v1.2.3-54-g00ecf