robustness if mutations affect how the alternation goes.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5160 c06c8d41-db1a-0410-9941-cceddc491573
RLUTEWVTO3LPFWOQHZWW5AC6VK6APFPVYFZRMAQ22LGOQ77GDPKAC
need_chain = true;
// Keep vitalisation chaining on if divine stamina can
// be increased two vitalisation attempts from now, or
// 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_ROBUST) < (3 - estep));
need_chain = true;
// Keep vitalisation chaining on if divine robustness
// can be increased two vitalisation attempts from now,
// or if divine stamina can be increased one
// 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));