restoration; the amount to be restored can now be specified. Use this where necessary.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4417 c06c8d41-db1a-0410-9941-cceddc491573
H6ZPCZ7HN5UZTOS6QFAE4WUJR6BCDU4OB7ONQ7ELXIK65ASPJOTAC XG5QUFMF3GLUAAVS4RJXQTOG3HWTISPKBXFPBUKO63F7SI4SE6XAC EO4FXWNFJRHPOSDHWH2Y6QNUP7KB5ANLX43GA3TJLXR3QOOJZ7VQC K2CS6TCX2NDVL2ASEHGP4J4K4IJ6FP3ANNKTSIWVG43HPYSBX6ZQC XRZPPYWPWUOM4SFNI6BHKH2UKJQNLKOV6Y7XIEPEZXE5QYRT26PAC KBTDCQ7GYBRPB346ZEOJ4OM2XHOHN6FJMVMTOJ42EDK5KJX7VLIAC P2ZCF3BBG523ZEOD6XQA4X5YEHBTWH3IM33YVHXP2SQ5POXZIH4QC NXIVXEHVXS22UDSQL4KZQ4VHK3XTW7DAGA5LLL3EXY5MHPIUXL7AC HIRKGUMNJPWKSVTR6TVBPD3MWNA63CEHCLCIPWEMGDFHVB3NPLDQC bool restore_stat(unsigned char which_stat, bool suppress_msg)
// Restore the stat in which_stat by the amount in stat_gain, displaying// a message if suppress_msg is false. If stat_gain is 0, restore the// stat completely.bool restore_stat(unsigned char which_stat, unsigned char stat_gain,bool suppress_msg)
{mpr("You feel your strength returning.");you.strength++;you.redraw_strength = true;burden_change();}
restore_stat(STAT_STRENGTH, 1, false);
{mpr("You feel your dexterity returning.", MSGCH_RECOVERY);you.dex++;you.redraw_dexterity = 1;}if (you.intel < you.max_intel && one_chance_in(100)){mpr("You feel your intelligence returning.", MSGCH_RECOVERY);you.intel++;you.redraw_intelligence = 1;}
restore_stat(STAT_DEXTERITY, 0, false);