From 25e46658ca7d0de82f574cba29ed352064001db7 Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Mon, 2 Nov 2009 15:07:10 -0600 Subject: Add minor cosmetic fixes. --- crawl-ref/source/it_use2.cc | 18 ++++++++++-------- crawl-ref/source/item_use.cc | 6 +----- 2 files changed, 11 insertions(+), 13 deletions(-) (limited to 'crawl-ref/source') diff --git a/crawl-ref/source/it_use2.cc b/crawl-ref/source/it_use2.cc index 967c9a0b7c..bd497e477a 100644 --- a/crawl-ref/source/it_use2.cc +++ b/crawl-ref/source/it_use2.cc @@ -726,24 +726,26 @@ void unuse_artefact(const item_def &item, bool *show_msgs) } // Modify ability scores; always output messages. - modify_stat( STAT_STRENGTH, -proprt[ARTP_STRENGTH], false, item, - true); - modify_stat( STAT_INTELLIGENCE, -proprt[ARTP_INTELLIGENCE], false, item, - true); - modify_stat( STAT_DEXTERITY, -proprt[ARTP_DEXTERITY], false, item, - true); + modify_stat(STAT_STRENGTH, -proprt[ARTP_STRENGTH], false, item, + true); + modify_stat(STAT_INTELLIGENCE, -proprt[ARTP_INTELLIGENCE], false, item, + true); + modify_stat(STAT_DEXTERITY, -proprt[ARTP_DEXTERITY], false, item, + true); if (proprt[ARTP_NOISES] != 0) - you.attribute[ATTR_NOISES] = 0; + you.attribute[ATTR_NOISES] = 0; if (proprt[ARTP_LEVITATE] != 0 && you.duration[DUR_LEVITATION] > 2 && !you.permanent_levitation()) + { you.duration[DUR_LEVITATION] = 1; + } if (proprt[ARTP_INVISIBLE] != 0 && you.duration[DUR_INVIS] > 1) you.duration[DUR_INVIS] = 1; - if (is_unrandom_artefact( item )) + if (is_unrandom_artefact(item)) { const unrandart_entry *entry = get_unrand_entry(item.special); diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc index a58057e26a..8f703652b7 100644 --- a/crawl-ref/source/item_use.cc +++ b/crawl-ref/source/item_use.cc @@ -3722,7 +3722,7 @@ void jewellery_remove_effects(item_def &item, bool mesg) Options.show_uncursed = false; if (mesg) - mprf("You remove %s.", item.name(DESC_NOCAP_YOUR).c_str() ); + mprf("You remove %s.", item.name(DESC_NOCAP_YOUR).c_str()); Options.show_uncursed = old_showuncursed; @@ -3768,16 +3768,12 @@ void jewellery_remove_effects(item_def &item, bool mesg) case RING_LEVITATION: if (you.duration[DUR_LEVITATION] && !you.permanent_levitation()) - { you.duration[DUR_LEVITATION] = 1; - } break; case RING_INVISIBILITY: if (you.duration[DUR_INVIS]) - { you.duration[DUR_INVIS] = 1; - } break; case RING_MAGICAL_POWER: -- cgit v1.2.3-54-g00ecf