Attached Files |
clarity_id_gc22c6b513.patch [^] (1,186 bytes) 2013-12-13 01:02 [Show Content] [Hide Content]From 0370f8f33e269e13d3aa00f0a655ebd6482b6638 Mon Sep 17 00:00:00 2001
From: gammafunk <gammafunk@gmail.com>
Date: Thu, 12 Dec 2013 17:55:10 -0600
Subject: [PATCH] Always identify an amulet of clarity when wearing it and
resisting confuse.
---
crawl-ref/source/player.cc | 11 ++++-------
1 file changed, 4 insertions(+), 7 deletions(-)
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc
index 9abd698..2234314 100644
--- a/crawl-ref/source/player.cc
+++ b/crawl-ref/source/player.cc
@@ -5019,14 +5019,11 @@ bool confuse_player(int amount, bool quiet)
{
if (!quiet)
mpr("You feel momentarily confused.");
- else
+ // Identify the amulet if necessary.
+ if (you.wearing(EQ_AMULET, AMU_CLARITY, true))
{
- // Identify the amulet if necessary.
- if (you.wearing(EQ_AMULET, AMU_CLARITY, true))
- {
- item_def* const amu = you.slot_item(EQ_AMULET, false);
- wear_id_type(*amu);
- }
+ item_def* const amu = you.slot_item(EQ_AMULET, false);
+ wear_id_type(*amu);
}
return false;
}
--
1.7.11.5
|