reworked potion priority (5 -> 3) (5 is too much)
This commit is contained in:
@ -3,9 +3,6 @@
|
||||
#include <algorithm>
|
||||
#include "../constants.h"
|
||||
|
||||
const int WOUND_ATK = 5;
|
||||
const int WOUND_ATK_DROW = 7;
|
||||
|
||||
wound_atk::wound_atk(const position &pos):
|
||||
potion{potion_type::wound_atk, -1, pos} {}
|
||||
|
||||
@ -13,14 +10,17 @@ void wound_atk::apply(const enum race &race, int &HP, int &ATK, int &DEF,
|
||||
fraction &base_hit_rate) {
|
||||
if (remaining_duration != 0) {
|
||||
int tmp = WOUND_ATK;
|
||||
if (race == rdrow) tmp *= DROW_POTION_MUL;
|
||||
|
||||
if (race == rdrow)
|
||||
tmp *= DROW_POTION_MUL;
|
||||
|
||||
ATK = std::max(ATK - tmp, 0);
|
||||
--remaining_duration;
|
||||
}
|
||||
}
|
||||
|
||||
int wound_atk::get_priority() const {
|
||||
return CALC_ADD_BASE;
|
||||
return CALC_BASE;
|
||||
}
|
||||
|
||||
const char *wound_atk::get_name() const {
|
||||
|
Reference in New Issue
Block a user