git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4961 c06c8d41-db1a-0410-9941-cceddc491573
ITXXROSRTWGBQQFTW7MCG7DEATIU7E5GH7UE4BKM4FYBPFHZVCDAC
IHDUCQLZCL74OXNV5ICHQCPQ6TDAHZBVGUTMLXHP432WJH5VOZWQC
OZ5D37MVA3M2COBXAFMD3IZAW55RVPQRQBNTH5HARFWU7SW4PARAC
XTUKLNRQ6OB4SAJFCF7XT5A643QXGNMEW4YHZTOSSAKZAGHJALZAC
K2CS6TCX2NDVL2ASEHGP4J4K4IJ6FP3ANNKTSIWVG43HPYSBX6ZQC
AROBKQGZEY7IBWUQ6XNGEJQJMI3XB7BXLMX5PHU3L6DWIATCH7EAC
BFPWM2MSF5HSN5UZXNEB5FR22P536UR24E3WXY5IIHC2SDIPOWSAC
C56DCU3P3IMGE6GC4X55ZCUCFY45KQWKPWPCD5UBKH3QMELDOTLAC
ZCSYP2AFLY5QD4NAZSLAO33QYTVITJVRAJMFOE33CZZRVCWYXHNQC
TQ5WG3P6KIXC37BIGCO4R3ELWVBRHZ3K7QOQ2HU67P4CTVDXZEEAC
// Restore all stats by 1 point.
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);
need_chain = (you.strength < you.max_strength
|| you.intel < you.max_intel || you.dex < you.max_dex);
break;
}
step = 1;
// Deliberate fall through.
if (step == step_max)
break;
// Restore all stats by 2 points.
if (you.strength < you.max_strength || you.intel < you.max_intel
|| you.dex < you.max_dex)
{
success = true;
restore_stat(STAT_STRENGTH, 2, true);
restore_stat(STAT_INTELLIGENCE, 2, true);
restore_stat(STAT_DEXTERITY, 2, true);
need_chain = (you.strength < you.max_strength
|| you.intel < you.max_intel || you.dex < you.max_dex);
break;
}
step = 2;
// Deliberate fall through.
if (step == step_max)
break;