summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/player.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-23 05:03:50 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-23 05:03:50 +0000
commit5b2076baa5e4c5095cd325a7afbbee9e8512ec2e (patch)
tree67f0cdfb687f411fb40803f0097e9e1be511b372 /crawl-ref/source/player.cc
parenta29bd1e1cbc7d30337e661f96299bb1e4a79ba59 (diff)
downloadcrawl-ref-5b2076baa5e4c5095cd325a7afbbee9e8512ec2e.tar.gz
crawl-ref-5b2076baa5e4c5095cd325a7afbbee9e8512ec2e.zip
Comment fixes.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4509 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r--crawl-ref/source/player.cc14
1 files changed, 8 insertions, 6 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc
index a98a2ed5b5..bacc885041 100644
--- a/crawl-ref/source/player.cc
+++ b/crawl-ref/source/player.cc
@@ -1696,13 +1696,15 @@ int player_energy()
return pe;
}
-// If temp is set to false, temporary sources of resistance won't be counted.
+// If temp is set to false, temporary sources of resistance won't be
+// counted.
int player_prot_life(bool calc_unid, bool temp)
{
int pl = 0;
- // Hunger is temporary, true, but that's something you can control.
- // (Especially as life protection only increases the hungrier you get.)
+ // Hunger is temporary, true, but that's something you can control,
+ // especially as life protection only increases the hungrier you
+ // get.
if (you.species == SP_VAMPIRE)
{
switch (you.hunger_state)
@@ -1723,8 +1725,8 @@ int player_prot_life(bool calc_unid, bool temp)
}
}
- // same here: Your piety status is something you can more or less control.
- // TSO's protection
+ // Same here. Your piety status, and, hence, TSO's protection, is
+ // something you can more or less control.
if (you.religion == GOD_SHINING_ONE && you.piety > pl * 50)
pl = you.piety / 50;
@@ -1753,7 +1755,7 @@ int player_prot_life(bool calc_unid, bool temp)
// rings
pl += player_equip( EQ_RINGS, RING_LIFE_PROTECTION, calc_unid );
- // armour: (checks body armour only)
+ // armour (checks body armour only)
pl += player_equip_ego_type( EQ_ALL_ARMOUR, SPARM_POSITIVE_ENERGY );
// randart wpns