From e9ed3b05935e8670aa1bf5752fec11a7f2d0aeba Mon Sep 17 00:00:00 2001 From: dolorous Date: Tue, 20 May 2008 22:29:24 +0000 Subject: Fix backward logic. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5163 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/spells1.cc | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'crawl-ref/source/spells1.cc') 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; } -- cgit v1.2.3-54-g00ecf