for Zin's Revitalisation.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4885 c06c8d41-db1a-0410-9941-cceddc491573
OZ5D37MVA3M2COBXAFMD3IZAW55RVPQRQBNTH5HARFWU7SW4PARAC
// Deliberate fall through, resetting the step counter.
case 3:
// Restore and/or temporarily boost stats.
switch (step)
{
case 0:
if (you.strength < you.max_strength || you.intel < you.max_intel
|| you.dex < you.max_dex)
{
success = true;
restore_stat(STAT_STRENGTH, 1, true);
restore_stat(STAT_INTELLIGENCE, 1, true);
restore_stat(STAT_DEXTERITY, 1, true);
break;
}
step = 1;
// Deliberate fall through.
case 1:
if (you.strength < you.max_strength || you.intel < you.max_intel
|| you.dex < you.max_dex)
{
success = true;
restore_stat(STAT_STRENGTH, 0, true);
restore_stat(STAT_INTELLIGENCE, 0, true);
restore_stat(STAT_DEXTERITY, 0, true);
break;
}
step = 2;
// Deliberate fall through.
// XXX: Temporary stat boosting is not implemented yet.
default:
break;
}
if (success)
break;
step = 0;
type = 4;