From 31998f2e74c5d677c4880447131a45ef7d4abc73 Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Sat, 18 Aug 2007 18:51:47 +0000 Subject: While levitating you can't quaff from fountains. Non-saprovore characters are now prompted when trying to eat rotten chunks. I'd really prefer completely refusing to eat that stuff but David did point out that someone might like to gamble with the mutations - even though it's only bad ones? Really don't know about that one. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2015 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/item_use.cc | 6 ++++++ 1 file changed, 6 insertions(+) (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 c41b24465a..9b3515fa0f 100644 --- a/crawl-ref/source/item_use.cc +++ b/crawl-ref/source/item_use.cc @@ -3019,6 +3019,12 @@ bool drink_fountain() if ( feat != DNGN_BLUE_FOUNTAIN && feat != DNGN_SPARKLING_FOUNTAIN ) return false; + if (you.duration[DUR_LEVITATION] && !you.flies()) + { + mpr("You're floating high above the fountain."); + return false; + } + potion_type fountain_effect = POT_WATER; if ( feat == DNGN_BLUE_FOUNTAIN ) { -- cgit v1.2.3-54-g00ecf