reworked potion priority (5 -> 3) (5 is too much)

This commit is contained in:
2024-07-18 19:10:58 -04:00
parent 145e094684
commit b750081a1b
7 changed files with 35 additions and 23 deletions

View File

@ -10,14 +10,17 @@ void restore_health::apply(const enum race &race, int &HP, int &ATK, int &DEF,
fraction &base_hit_rate) {
if (remaining_duration != 0) {
int tmp = GAIN_HEALTH;
if (race == rdrow) tmp *= DROW_POTION_MUL;
if (race == rdrow)
tmp *= DROW_POTION_MUL;
HP = std::min(HP + tmp, MAX_HP[race]);
--remaining_duration;
}
}
int restore_health::get_priority() const {
return CALC_ADD_BASE;
return CALC_BASE;
}
const char *restore_health::get_name() const {