summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/ng-init.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2013-11-20 21:11:30 +0100
committerAdam Borowski <kilobyte@angband.pl>2013-11-20 21:11:30 +0100
commit1111ebd27a4060aa07678e1af2f67a414fff2594 (patch)
treeadaebd3ee827ba0ccff66fe6e89e7db7218b5d5c /crawl-ref/source/ng-init.cc
parentcc527f1a846365530cfc3e72d449264d39694cd9 (diff)
downloadcrawl-ref-1111ebd27a4060aa07678e1af2f67a414fff2594.tar.gz
crawl-ref-1111ebd27a4060aa07678e1af2f67a414fff2594.zip
Make potions of blood and porridge always identified.
Them having obvious descriptions was a spoily thing.
Diffstat (limited to 'crawl-ref/source/ng-init.cc')
-rw-r--r--crawl-ref/source/ng-init.cc50
1 files changed, 0 insertions, 50 deletions
diff --git a/crawl-ref/source/ng-init.cc b/crawl-ref/source/ng-init.cc
index 3adc7f6a69..53eaa4ed2c 100644
--- a/crawl-ref/source/ng-init.cc
+++ b/crawl-ref/source/ng-init.cc
@@ -339,61 +339,11 @@ multi_overflow:
}
}
-static int _get_random_porridge_desc()
-{
- return PDESCQ(PDQ_GLUGGY, one_chance_in(3) ? PDC_BROWN
- : PDC_WHITE);
-}
-
-static int _get_random_coagulated_blood_desc()
-{
- potion_description_qualifier_type qualifier = PDQ_NONE;
- while (true)
- {
- switch (random2(4))
- {
- case 0:
- qualifier = PDQ_GLUGGY;
- break;
- case 1:
- qualifier = PDQ_LUMPY;
- break;
- case 2:
- qualifier = PDQ_SEDIMENTED;
- break;
- case 3:
- qualifier = PDQ_VISCOUS;
- break;
- }
- potion_description_colour_type colour = (coinflip() ? PDC_RED
- : PDC_BROWN);
-
- int desc = PDESCQ(qualifier, colour);
-
- if (you.item_description[IDESC_POTIONS][POT_BLOOD] != desc)
- return desc;
- }
-}
-
-static int _get_random_blood_desc()
-{
- return PDESCQ(coinflip() ? PDQ_NONE :
- coinflip() ? PDQ_VISCOUS
- : PDQ_SEDIMENTED, PDC_RED);
-}
-
void initialise_item_descriptions()
{
// Must remember to check for already existing colours/combinations.
you.item_description.init(255);
- you.item_description[IDESC_POTIONS][POT_PORRIDGE]
- = _get_random_porridge_desc();
- you.item_description[IDESC_POTIONS][POT_BLOOD]
- = _get_random_blood_desc();
- you.item_description[IDESC_POTIONS][POT_BLOOD_COAGULATED]
- = _get_random_coagulated_blood_desc();
-
// The order here must match that of IDESC in describe.h
const int max_item_number[6] = { NUM_WANDS,
NUM_POTIONS,