diff options
author | Adam Borowski <kilobyte@angband.pl> | 2010-01-06 01:45:16 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2010-01-06 01:45:16 +0100 |
commit | 15849cecaa90e3dba47f0e397db040f162fae3c2 (patch) | |
tree | bef8fc7821e586b530f282e1643b8eee8403a856 /crawl-ref/source/item_use.cc | |
parent | 666caed8492c832aeb4619140cac60c28e777088 (diff) | |
download | crawl-ref-15849cecaa90e3dba47f0e397db040f162fae3c2.tar.gz crawl-ref-15849cecaa90e3dba47f0e397db040f162fae3c2.zip |
Auto-id rings of regeneration (Vandal).
Diffstat (limited to 'crawl-ref/source/item_use.cc')
-rw-r--r-- | crawl-ref/source/item_use.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc index faf6f9c0d2..c2e874ec8f 100644 --- a/crawl-ref/source/item_use.cc +++ b/crawl-ref/source/item_use.cc @@ -3324,7 +3324,6 @@ void jewellery_wear_effects(item_def &item) case RING_SUSTENANCE: case RING_SLAYING: case RING_WIZARDRY: - case RING_REGENERATION: case RING_TELEPORT_CONTROL: break; @@ -3483,6 +3482,13 @@ void jewellery_wear_effects(item_def &item) } break; + case RING_REGENERATION: + // To be exact, bloodless vampires should get the id only after they + // drink anything. Not worth complicating the code, IMHO. [1KB] + if (player_mutation_level(MUT_SLOW_HEALING) < 3) + ident = ID_KNOWN_TYPE; + break; + } // Artefacts have completely different appearance than base types |