summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/monstuff.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-23 21:30:08 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-23 21:30:08 +0000
commit8bc8c04fbe230fb0f962f43da1acb3c51c4f88f0 (patch)
tree70f4c3d5336e09492f3c46b73c58c47014825e45 /crawl-ref/source/monstuff.cc
parent7ace26d7f10f5eaefbe12f454183c88dbcb09b73 (diff)
downloadcrawl-ref-8bc8c04fbe230fb0f962f43da1acb3c51c4f88f0.tar.gz
crawl-ref-8bc8c04fbe230fb0f962f43da1acb3c51c4f88f0.zip
Fix monster emergency spells not checking for ENCH_TP, thus allowing
monsters to cancel their teleportation without meaning to. (BR 2000428) Fix the quiver not being cleared when wielding the only quiverable (and thus previously quivered) item. (Un)wielding such an item now switches nicely between "Nothing wielded" and "Nothing quivered", as it should be. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6089 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/monstuff.cc')
-rw-r--r--crawl-ref/source/monstuff.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/monstuff.cc b/crawl-ref/source/monstuff.cc
index 81c63c5c7b..55aea1c128 100644
--- a/crawl-ref/source/monstuff.cc
+++ b/crawl-ref/source/monstuff.cc
@@ -239,13 +239,13 @@ bool curse_an_item( bool decay_potions, bool quiet )
return (false);
// Curse item.
- if (decay_potions && !quiet) // just for mummies
+ if (decay_potions && !quiet) // Just for mummies.
mpr("You feel nervous for a moment...", MSGCH_MONSTER_SPELL);
if (you.inv[item].base_type == OBJ_POTIONS)
{
int amount;
- // decay at least two of the stack
+ // Decay at least two of the stack.
if (you.inv[item].quantity <= 2)
amount = you.inv[item].quantity;
else