added faster menu selection for base game (required)

This commit is contained in:
2024-07-18 22:08:20 -04:00
parent d3f43c33f5
commit a03d444dad
11 changed files with 278 additions and 37 deletions

View File

@ -14,8 +14,10 @@ void borrow_life::apply(const enum race &race, int &HP, int &ATK,
if (remaining_duration != 0)
--remaining_duration;
if (remaining_duration == 0)
if (remaining_duration == 0) {
HP -= LOSE_HP * (race == rdrow ? DROW_POTION_MUL : 1);
HP = HP < 0 ? 0 : HP;
}
}
int borrow_life::get_priority() const {

View File

@ -15,6 +15,9 @@ void echoing_resilience::apply(const enum race &race, int &HP, int &ATK,
ATK -= LOSE_ATK * (race == rdrow ? DROW_POTION_MUL : 1);
DEF -= LOSE_DEF * (race == rdrow ? DROW_POTION_MUL : 1);
ATK = ATK < 0 ? 0 : ATK;
DEF = DEF < 0 ? 0 : DEF;
--remaining_duration;
}
}