summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells1.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-20 22:29:24 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-20 22:29:24 +0000
commite9ed3b05935e8670aa1bf5752fec11a7f2d0aeba (patch)
tree64f14958ae624118b9f5ba2b54a5c84c6988023a /crawl-ref/source/spells1.cc
parent0818e3d47c6f95e4b58d2eeee958652e59c3a919 (diff)
downloadcrawl-ref-e9ed3b05935e8670aa1bf5752fec11a7f2d0aeba.tar.gz
crawl-ref-e9ed3b05935e8670aa1bf5752fec11a7f2d0aeba.zip
Fix backward logic.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5163 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spells1.cc')
-rw-r--r--crawl-ref/source/spells1.cc18
1 files changed, 9 insertions, 9 deletions
diff --git a/crawl-ref/source/spells1.cc b/crawl-ref/source/spells1.cc
index b9a148f8bc..57bcd040ee 100644
--- a/crawl-ref/source/spells1.cc
+++ b/crawl-ref/source/spells1.cc
@@ -979,9 +979,9 @@ stamina_robustness:
case 4:
if ((estep == 0 || you.duration[DUR_VITALISATION_CHAIN] > 0)
&& ((you.attribute[ATTR_DIVINE_STAMINA] + 1) / 2) == estep
- && (player_mutation_level(MUT_STRONG) / 5 + 1) < (3 - estep)
- && (player_mutation_level(MUT_CLEVER) / 5 + 1) < (3 - estep)
- && (player_mutation_level(MUT_AGILE) / 5 + 1) < (3 - estep))
+ && ((player_mutation_level(MUT_STRONG) + 1) / 5) < (3 - estep)
+ && ((player_mutation_level(MUT_CLEVER) + 1) / 5) < (3 - estep)
+ && ((player_mutation_level(MUT_AGILE) + 1) / 5) < (3 - estep))
{
success = true;
mprf(MSGCH_DURATION, "Zin %s divine stamina.",
@@ -1005,9 +1005,9 @@ stamina_robustness:
// if divine robustness can be increased one
// vitalisation attempt from now.
need_chain =
- ((player_mutation_level(MUT_STRONG) / 5 + 1) < (2 - estep)
- && (player_mutation_level(MUT_CLEVER) / 5 + 1) < (2 - estep)
- && (player_mutation_level(MUT_AGILE) / 5 + 1) < (2 - estep))
+ (((player_mutation_level(MUT_STRONG) + 1) / 5) < (2 - estep)
+ && ((player_mutation_level(MUT_CLEVER) + 1) / 5) < (2 - estep)
+ && ((player_mutation_level(MUT_AGILE) + 1) / 5) < (2 - estep))
|| (player_mutation_level(MUT_ROBUST) < (3 - estep));
break;
}
@@ -1046,9 +1046,9 @@ stamina_robustness:
// vitalisation attempt from now.
need_chain =
(player_mutation_level(MUT_ROBUST) < (2 - estep))
- || ((player_mutation_level(MUT_STRONG) / 5 + 1) < (3 - estep)
- && (player_mutation_level(MUT_CLEVER) / 5 + 1) < (3 - estep)
- && (player_mutation_level(MUT_AGILE) / 5 + 1) < (3 - estep));
+ || (((player_mutation_level(MUT_STRONG) + 1) / 5) < (3 - estep)
+ && ((player_mutation_level(MUT_CLEVER) + 1) / 5) < (3 - estep)
+ && ((player_mutation_level(MUT_AGILE) + 1) / 5) < (3 - estep));
break;
}