summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells1.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-20 22:19:40 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-20 22:19:40 +0000
commit22b4656a72f9b9d330d68244bd18eb201827bca1 (patch)
treee85e8d702095bef469da34ce60b94e4a8de2c87a /crawl-ref/source/spells1.cc
parent45c42254b104ae5bf1cff744e4a2d672d82cdb41 (diff)
downloadcrawl-ref-22b4656a72f9b9d330d68244bd18eb201827bca1.tar.gz
crawl-ref-22b4656a72f9b9d330d68244bd18eb201827bca1.zip
Properly scale the stat-boosting mutation level checks so that divine
stamina is disabled if you have all 14 levels of at least one. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5161 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 630ca22fbe..467ac77c1b 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) < (3 - estep)
- && (player_mutation_level(MUT_CLEVER) / 5) < (3 - estep)
- && (player_mutation_level(MUT_AGILE) / 5) < (3 - 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))
{
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) < (2 - estep)
- && (player_mutation_level(MUT_CLEVER) / 5) < (2 - estep)
- && (player_mutation_level(MUT_AGILE) / 5) < (2 - estep))
+ ((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_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) < (3 - estep)
- && (player_mutation_level(MUT_CLEVER) / 5) < (3 - estep)
- && (player_mutation_level(MUT_AGILE) / 5) < (3 - 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));
break;
}