clean potions contants
This commit is contained in:
@ -9,11 +9,9 @@ restore_health::restore_health(const position &pos):
|
||||
void restore_health::apply(const enum race &race, int &HP, int &ATK, int &DEF,
|
||||
fraction &base_hit_rate) {
|
||||
if (remaining_duration != 0) {
|
||||
if (race == rdrow)
|
||||
HP = std::min(HP + 7, MAX_HP[race]);
|
||||
else
|
||||
HP = std::min(HP + 5, MAX_HP[race]);
|
||||
|
||||
int tmp = GAIN_HEALTH;
|
||||
if (race == rdrow) tmp *= DROW_POTION_MUL;
|
||||
HP = std::min(HP + tmp, MAX_HP[race]);
|
||||
--remaining_duration;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user