summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/ng-wanderer.cc
diff options
context:
space:
mode:
authorelliptic <hyperelliptical@gmail.com>2014-03-09 01:28:10 -0500
committerelliptic <hyperelliptical@gmail.com>2014-03-09 01:34:49 -0500
commit5cc96d46d8b2793ede89ef1af030fa8fb7c14fdb (patch)
treeaac7ae6b64fbd872a28986171f556439b55e40ba /crawl-ref/source/ng-wanderer.cc
parent30f8622fbcbd3f7e6e483561c65ea9994eb99068 (diff)
downloadcrawl-ref-5cc96d46d8b2793ede89ef1af030fa8fb7c14fdb.tar.gz
crawl-ref-5cc96d46d8b2793ede89ef1af030fa8fb7c14fdb.zip
Remove pre-identification of unpossessed scrolls/potions by Ar/Wn.
This behavior is confusing and of very little importance, and these were the only two offenders. Ar doesn't get anything in compensation for not having ?recharging IDed. There was some talk in IRC of actually giving it one at start (and removing charges from the wands as compensation), which I guess would work if the wands are sufficiently fully charged still that startscumming for the turn 1 recharge would be bad. For Wn, preIDing was replaced by receiving an extra scroll/potion in one case, and replaced by nothing in the other case.
Diffstat (limited to 'crawl-ref/source/ng-wanderer.cc')
-rw-r--r--crawl-ref/source/ng-wanderer.cc29
1 files changed, 2 insertions, 27 deletions
diff --git a/crawl-ref/source/ng-wanderer.cc b/crawl-ref/source/ng-wanderer.cc
index af4bfa84aa..ed255b1d2c 100644
--- a/crawl-ref/source/ng-wanderer.cc
+++ b/crawl-ref/source/ng-wanderer.cc
@@ -421,29 +421,6 @@ static void _good_potion_or_scroll(int & slot)
slot++;
}
-// Make n random attempts at identifying curing or teleportation.
-static void _curing_or_teleport(int n)
-{
- int temp_rand = 2;
-
- // No potions for mummies.
- if (you.is_undead == US_UNDEAD)
- temp_rand--;
-
- for (int i = 0; i < n; ++i)
- {
- switch (random2(temp_rand))
- {
- case 0:
- set_ident_type(OBJ_SCROLLS, SCR_TELEPORTATION, ID_KNOWN_TYPE);
- break;
- case 1:
- set_ident_type(OBJ_POTIONS, POT_CURING, ID_KNOWN_TYPE);
- break;
- }
- }
-}
-
// Create a random wand in the inventory.
static void _wanderer_random_evokable(int & slot)
{
@@ -556,9 +533,8 @@ static void _wanderer_good_equipment(skill_type & skill, int & slot)
case SK_UNARMED_COMBAT:
case SK_INVOCATIONS:
{
- // Random consumables: 2x attempts to ID curing/teleportation
- // 1 good potion/scroll.
- _curing_or_teleport(2);
+ // 2 random good potions/scrolls
+ _good_potion_or_scroll(slot);
_good_potion_or_scroll(slot);
break;
}
@@ -738,7 +714,6 @@ static void _wanderer_decent_equipment(skill_type & skill,
case SK_INVOCATIONS:
case SK_EVOCATIONS:
case SK_NONE:
- _curing_or_teleport(1);
break;
}
}