removed layer and objects design

fixed bug in restore_health
This commit is contained in:
2024-07-11 21:50:10 -04:00
parent 0312986dce
commit 60f775b640
9 changed files with 8 additions and 85 deletions

View File

@ -9,9 +9,9 @@ void restore_health::apply(enum race &race, int &HP, int &ATK, int &DEF,
float &base_hit_rate) {
if (remaining_duration > 0) {
if (race == rdrow)
HP = std::max(HP + 7, MAX_HP[race]);
HP = std::min(HP + 7, MAX_HP[race]);
else
HP = std::max(HP + 5, MAX_HP[race]);
HP = std::min(HP + 5, MAX_HP[race]);
--remaining_duration;
}