summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/player-equip.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2013-12-11 15:16:26 +0100
committerAdam Borowski <kilobyte@angband.pl>2013-12-11 15:17:23 +0100
commit62711b3f9553f57460b8cdf1b5fdc0d36ab1f46c (patch)
tree468f586828f72fe8b5bd9753def509b29e87da35 /crawl-ref/source/player-equip.cc
parentd9400cdbbff4c83cf19aed918411a0f704113321 (diff)
downloadcrawl-ref-62711b3f9553f57460b8cdf1b5fdc0d36ab1f46c.tar.gz
crawl-ref-62711b3f9553f57460b8cdf1b5fdc0d36ab1f46c.zip
Auto-enable boots of flying when you wear them.
You can still disable them later when that titan waltz by, saving you that precious 10 aut over just removing the boots.
Diffstat (limited to 'crawl-ref/source/player-equip.cc')
-rw-r--r--crawl-ref/source/player-equip.cc11
1 files changed, 10 insertions, 1 deletions
diff --git a/crawl-ref/source/player-equip.cc b/crawl-ref/source/player-equip.cc
index 1cf95b50ad..07a157e734 100644
--- a/crawl-ref/source/player-equip.cc
+++ b/crawl-ref/source/player-equip.cc
@@ -934,7 +934,16 @@ static void _equip_armour_effect(item_def& arm, bool unmeld)
break;
case SPARM_FLYING:
- mpr("You feel rather light.");
+ if (you.airborne())
+ {
+ you.attribute[ATTR_PERM_FLIGHT] = 1;
+ mpr("You feel rather light.");
+ }
+ else
+ {
+ you.attribute[ATTR_PERM_FLIGHT] = 1;
+ float_player();
+ }
break;
case SPARM_JUMPING: