This commit is contained in:
a25liang
2024-07-12 16:41:42 -04:00
parent e7865b0c57
commit 50f058e7ea
57 changed files with 853 additions and 871 deletions

View File

@ -6,20 +6,20 @@ const int WOUND_DEF = 5;
const int WOUND_DEF_DROW = 7;
wound_def::wound_def():
potion{potion_type::wound_def, -1} {}
potion{potion_type::wound_def, -1} {}
void wound_def::apply(enum race &race, int &HP, int &ATK, int &DEF,
float &base_hit_rate) {
if (remaining_duration > 0) {
if (race == rdrow)
DEF = std::max(DEF - WOUND_DEF_DROW, 0);
else
DEF = std::max(DEF - WOUND_DEF, 0);
float &base_hit_rate) {
if (remaining_duration > 0) {
if (race == rdrow)
DEF = std::max(DEF - WOUND_DEF_DROW, 0);
else
DEF = std::max(DEF - WOUND_DEF, 0);
--remaining_duration;
}
--remaining_duration;
}
}
int wound_def::get_priority() const {
return CALC_ADD_BASE;
return CALC_ADD_BASE;
}