low one.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7911 c06c8d41-db1a-0410-9941-cceddc491573
PT3AUV4BTLWWOVQ5CGSA57NEMQEGRT4RSKNEY55N22LNCMIOIPCQC
XBSRV4LDUNTV7IYWAUCE7SW3ILWWJUB5ZQCHACLLWBZK5M2WUPDAC
K2CS6TCX2NDVL2ASEHGP4J4K4IJ6FP3ANNKTSIWVG43HPYSBX6ZQC
{ // Each lose_level() subtracts 4 HP, so do this to avoid death // and/or negative HP when going from a high level to a low level. you.hp = std::max(5, you.hp); you.hp_max = std::max(5, you.hp_max);
{
// Each lose_level() subtracts 4 HP, so do this to avoid death
// and/or negative HP when going from a high level to a low level.
you.hp = std::max(5, you.hp);
you.hp_max = std::max(5, you.hp_max);
} you.hp = std::max(1, you.hp); you.hp_max = std::max(1, you.hp_max); you.base_hp = std::max(5000, you.base_hp); you.base_hp2 = std::max(5000 + you.hp_max, you.base_hp2);
}
you.hp = std::max(1, you.hp);
you.hp_max = std::max(1, you.hp_max);
you.base_hp = std::max(5000, you.base_hp);
you.base_hp2 = std::max(5000 + you.hp_max, you.base_hp2);