diff options
author | Adam Borowski <kilobyte@angband.pl> | 2012-08-20 20:44:13 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2012-08-20 20:49:10 +0200 |
commit | d34118a48d77f2a9bb4910353feb4662b87d51c0 (patch) | |
tree | 7fb0136b9da0f8b0f5c7dcc484ff02a625e091f9 /crawl-ref/source/ng-init.cc | |
parent | fae69ba091fc9860cdbef718fd7467ee49de6d30 (diff) | |
download | crawl-ref-d34118a48d77f2a9bb4910353feb4662b87d51c0.tar.gz crawl-ref-d34118a48d77f2a9bb4910353feb4662b87d51c0.zip |
Remove potions of water.
Without Evaporate, they lost their last use.
Diffstat (limited to 'crawl-ref/source/ng-init.cc')
-rw-r--r-- | crawl-ref/source/ng-init.cc | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/crawl-ref/source/ng-init.cc b/crawl-ref/source/ng-init.cc index 3acef2e8ba..2da3a4d205 100644 --- a/crawl-ref/source/ng-init.cc +++ b/crawl-ref/source/ng-init.cc @@ -28,19 +28,20 @@ static uint8_t _random_potion_description() { int desc, colour; - do - { - desc = random2(PDQ_NQUALS * PDC_NCOLOURS); + desc = random2(PDQ_NQUALS * PDC_NCOLOURS); - if (coinflip()) - desc %= PDC_NCOLOURS; + if (coinflip()) + desc %= PDC_NCOLOURS; - colour = PCOLOUR(desc); + colour = PCOLOUR(desc); - // nature and colour correspond to primary and secondary in - // itemname.cc. - } - while (colour == PDC_CLEAR); // only water can be clear + // nature and colour correspond to primary and secondary in + // itemname.cc. + +#if TAG_MAJOR_VERSION == 34 + if (colour == PDC_CLEAR) // only water can be clear, re-roll + return _random_potion_description(); +#endif return desc; } @@ -265,8 +266,6 @@ void initialise_item_descriptions() // Must remember to check for already existing colours/combinations. you.item_description.init(255); - you.item_description[IDESC_POTIONS][POT_WATER] = PDESCS(PDC_CLEAR); - set_ident_type(OBJ_POTIONS, POT_WATER, ID_KNOWN_TYPE); you.item_description[IDESC_POTIONS][POT_PORRIDGE] = _get_random_porridge_desc(); you.item_description[IDESC_POTIONS][POT_BLOOD] |