git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4181 c06c8d41-db1a-0410-9941-cceddc491573
PFXO27GR7J3RADNZEY7HZMEZBKLBPIBC2AIAGA6HAE4ZSXNEE66AC
GQTOIBHYZYKCI7ZOKK4NSYSBHKWM4FDRFIQWVKDJPKUFGTMENMAQC
K2CS6TCX2NDVL2ASEHGP4J4K4IJ6FP3ANNKTSIWVG43HPYSBX6ZQC
else
patient->hit_points += health_boost; bool success = true; if (patient->hit_points > patient->max_hit_points)
patient->hit_points += health_boost;
bool success = true;
if (patient->hit_points > patient->max_hit_points)
patient->hit_points += health_boost; if (patient->hit_points > patient->max_hit_points)
if (permit_growth)
if (permit_growth) patient->max_hit_points++;
patient->max_hit_points++;
const monsterentry* m = get_monster_data(patient->type); const unsigned maxhp = m->hpdice[0] * (m->hpdice[1] + m->hpdice[2]) + m->hpdice[3];
const monsterentry* m = get_monster_data(patient->type);
const unsigned maxhp =
m->hpdice[0] * (m->hpdice[1] + m->hpdice[2]) + m->hpdice[3];
patient->hit_points = patient->max_hit_points;
// Limit HP growth. if (random2(3 * maxhp) > 2 * patient->max_hit_points) patient->max_hit_points++; else success = false;
// Limit HP growth.
if (random2(3 * maxhp) > 2 * patient->max_hit_points)
success = false;
return (true);
return (success);