From 9206d5f989a000bf928bbfc8d7bf0e64e7ce6ae3 Mon Sep 17 00:00:00 2001 From: dolorous Date: Tue, 10 Mar 2009 16:11:24 +0000 Subject: Add minor cosmetic fixes. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9407 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/player.cc | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'crawl-ref/source/player.cc') diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index 3ea824aae0..972af81dd5 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -2744,20 +2744,21 @@ int player_sust_abil(bool calc_unid) { int sa = 0; - sa += player_equip( EQ_RINGS, RING_SUSTAIN_ABILITIES, calc_unid ); + sa += player_equip(EQ_RINGS, RING_SUSTAIN_ABILITIES, calc_unid); - return sa; -} // end player_sust_abil() + return (sa); +} -int carrying_capacity( burden_state_type bs ) +int carrying_capacity(burden_state_type bs) { int cap = 3500 + (you.strength * 100) + (player_is_airborne() ? 1000 : 0); - if ( bs == BS_UNENCUMBERED ) - return (cap * 5) / 6; - else if ( bs == BS_ENCUMBERED ) - return (cap * 11) / 12; + + if (bs == BS_UNENCUMBERED) + return ((cap * 5) / 6); + else if (bs == BS_ENCUMBERED) + return ((cap * 11) / 12); else - return cap; + return (cap); } int burden_change(void) @@ -6911,9 +6912,9 @@ int player::hurt(const actor *agent, int amount, beam_type flavour, bool cleanup_dead) { // We ignore cleanup_dead here. - const monsters *mon = dynamic_cast(agent); if (agent->atype() == ACT_MONSTER) { + const monsters *mon = dynamic_cast(agent); ouch(amount, mon->mindex(), KILLED_BY_MONSTER, "", player_monster_visible(mon)); } -- cgit v1.2.3-54-g00ecf