From bf2a59fd761571998062b21409ee678e2852254b Mon Sep 17 00:00:00 2001 From: dolorous Date: Sat, 3 Jan 2009 21:57:12 +0000 Subject: Add missing tension check for one of Xom's friendly summoning routines. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8183 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/religion.cc | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'crawl-ref/source/religion.cc') diff --git a/crawl-ref/source/religion.cc b/crawl-ref/source/religion.cc index 77bbf17a63..edc80afd2e 100644 --- a/crawl-ref/source/religion.cc +++ b/crawl-ref/source/religion.cc @@ -6886,7 +6886,7 @@ int get_tension(god_type god) continue; if (see_grid(mons->pos())) - ; // Monster is nearby + ; // Monster is nearby. else { // Is the monster trying to get somewhere nearby? @@ -6929,11 +6929,12 @@ int get_tension(god_type god) } else if (att == ATT_FRIENDLY) { - // Friendly monsters being around to help you reduce tension. + // Friendly monsters being around to help you reduce + // tension. exper = -exper; - // If it's a god gift it reduces tension even more, since the - // god is already helping you out. + // If it's a god gift, it reduces tension even more, since + // the god is already helping you out. if (gift) exper *= 2; } @@ -6970,8 +6971,8 @@ int get_tension(god_type god) int tension = total; - // Tension goes up inversly proportional to the % of max hp you - // have. + // Tension goes up inversely proportional to the percentage of max + // hp you have. tension *= (scale + 1) * you.hp_max; tension /= you.hp_max + scale * you.hp; -- cgit v1.2.3-54-g00ecf