diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-27 19:05:19 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-27 19:05:19 +0000 |
commit | bcf3f0ccf9f4ea5f2d1557273d2b8c2c45855c1e (patch) | |
tree | 89475f89651a7245c4591069f55f788be7eb5253 /crawl-ref/source/player.cc | |
parent | efeb9b1cfa8a569bac92dee4a65706ede9c7c28c (diff) | |
download | crawl-ref-bcf3f0ccf9f4ea5f2d1557273d2b8c2c45855c1e.tar.gz crawl-ref-bcf3f0ccf9f4ea5f2d1557273d2b8c2c45855c1e.zip |
AutoID amulet of resist slowing when quaffing !slowing ("You feel
lethargic.")
Allow selection of "good random" choices for secondary choices, as well.
Some of the main combinations might still have to be modified (Kenku
Gladiator? really?) Apart from that, we're all set...
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6174 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r-- | crawl-ref/source/player.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index 32f1763554..90466a5011 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -5055,6 +5055,12 @@ bool slow_player( int amount ) if (wearing_amulet( AMU_RESIST_SLOW )) { mpr("You feel momentarily lethargic."); + + // Identify amulet. + item_def amu = you.inv[you.equip[EQ_AMULET]]; + if (!item_type_known(amu)) + set_ident_type( amu, ID_KNOWN_TYPE ); + return (false); } else if (you.duration[DUR_SLOW] >= 100) |