From 15849cecaa90e3dba47f0e397db040f162fae3c2 Mon Sep 17 00:00:00 2001 From: Adam Borowski Date: Wed, 6 Jan 2010 01:45:16 +0100 Subject: Auto-id rings of regeneration (Vandal). --- crawl-ref/source/item_use.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/item_use.cc') 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 -- cgit v1.2.3-54-g00ecf