git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4423 c06c8d41-db1a-0410-9941-cceddc491573
I5ECB3F77YUAWY4MVFU3PTBJUYYR4J76VWA6JY5PE5NR44QHXTWQC
IDVXDTVLNXRKZ32SEMIDKW5OM2C2SI2XNQWHLRZN33GOOSGYQ5WQC
AUFEDZ4RUY32ZAXOPTZ5OX6X6GUUYJHNDEFZD4GHUBBAFOQCVPWQC
K2CS6TCX2NDVL2ASEHGP4J4K4IJ6FP3ANNKTSIWVG43HPYSBX6ZQC
CGYTZT5QWIEGYKUOLOK7MFXSLJKLYRZONER5ZCDZO5XYWSLG475QC
void cast_revitalisation(int pow);
bool cast_revitalisation(int pow);
void cast_revitalisation(int pow)
bool cast_revitalisation(int pow)
{
else { // Currently, this uses the same formula as minor healing. int amount = pow + roll_dice(2, pow) - 2;
else
// Currently, this uses the same formula as minor healing.
int amount = pow + roll_dice(2, pow) - 2;
return false; }
return false;
}
// Increase MP by half of amount. inc_mp(amount / 2, false);
// Increase MP by half of amount.
inc_mp(amount / 2, false);
// Use the formula for minor healing for HP, and the formula divided // by two for MP. int hp_amount = pow + roll_dice(2, pow) - 2; int mp_amount = (pow + roll_dice(2, pow) - 2) / 2;
// Use the formula for minor healing for HP, and the formula divided
// by two for MP.
int hp_amount = pow + roll_dice(2, pow) - 2;
int mp_amount = (pow + roll_dice(2, pow) - 2) / 2;
// Increase HP by amount. inc_hp(amount, false); }
// Increase HP by amount.
inc_hp(amount, false);
inc_hp(hp_amount, false); inc_mp(mp_amount, false); return true;
inc_hp(hp_amount, false);
inc_mp(mp_amount, false);
return true;