summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2009-11-02 15:07:10 -0600
committerDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2009-11-02 15:07:10 -0600
commit25e46658ca7d0de82f574cba29ed352064001db7 (patch)
tree85777eab039b50cc0668121c61b10dce6fc27a1a
parente899ce42db18f54a06e082c482dc528daa3be1d1 (diff)
downloadcrawl-ref-25e46658ca7d0de82f574cba29ed352064001db7.tar.gz
crawl-ref-25e46658ca7d0de82f574cba29ed352064001db7.zip
Add minor cosmetic fixes.
-rw-r--r--crawl-ref/source/it_use2.cc18
-rw-r--r--crawl-ref/source/item_use.cc6
2 files changed, 11 insertions, 13 deletions
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: