summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/item_use.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/item_use.cc')
-rw-r--r--crawl-ref/source/item_use.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc
index 40e3ba032e..3d6c9c6f24 100644
--- a/crawl-ref/source/item_use.cc
+++ b/crawl-ref/source/item_use.cc
@@ -2821,6 +2821,14 @@ void jewellery_wear_effects(item_def &item)
case AMU_THE_GOURMAND:
you.duration[DUR_GOURMAND] = 0;
break;
+
+ case AMU_CONTROLLED_FLIGHT:
+ if (you.duration[DUR_LEVITATION]
+ && !extrinsic_amulet_effect(AMU_CONTROLLED_FLIGHT))
+ {
+ ident = ID_KNOWN_TYPE;
+ }
+ break;
}
// Artefacts have completely different appearance than base types