Attached Files |
0001-Turn-autopickup-back-on-when-gaining-antennae-3.patch [^] (1,416 bytes) 2013-07-05 18:27 [Show Content] [Hide Content]From 1f2a91c72276f96ceff2b2795e5d53fc57d8f357 Mon Sep 17 00:00:00 2001
From: pubby <pubby8@gmail.com>
Date: Fri, 5 Jul 2013 10:59:39 -0500
Subject: [PATCH] Turn autopickup back on when gaining antennae 3.
Autopickup was turned on for acute vision, so it seemed natural to also
do this for antennae 3.
---
crawl-ref/source/mutation.cc | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/crawl-ref/source/mutation.cc b/crawl-ref/source/mutation.cc
index 1dd9f8e..af27fc4 100644
--- a/crawl-ref/source/mutation.cc
+++ b/crawl-ref/source/mutation.cc
@@ -1691,11 +1691,6 @@ bool mutate(mutation_type which_mutation, const string &reason, bool failMsg,
}
break;
- case MUT_ACUTE_VISION:
- // We might have to turn autopickup back on again.
- autotoggle_autopickup(false);
- break;
-
case MUT_NIGHTSTALKER:
update_vision_range();
break;
@@ -1712,6 +1707,13 @@ bool mutate(mutation_type which_mutation, const string &reason, bool failMsg,
break;
}
+ // We might have to turn autopickup back on again.
+ if (mutat == MUT_ACUTE_VISION
+ || (mutat == MUT_ANTENNAE && you.mutation[mutat] >= 3))
+ {
+ autotoggle_autopickup(false);
+ }
+
// Amusement value will be 12 * (11-rarity) * Xom's-sense-of-humor.
xom_is_stimulated(_calc_mutation_amusement_value(mutat));
--
1.8.2.3
|