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