clean potions contants
This commit is contained in:
@ -3,9 +3,6 @@
|
||||
#include <algorithm>
|
||||
#include "../constants.h"
|
||||
|
||||
// TODO: move into class def as static constants
|
||||
const int BOOST_DEF = 5;
|
||||
const int BOOST_DEF_DROW = 7;
|
||||
|
||||
boost_def::boost_def(const position &pos):
|
||||
potion{potion_type::boost_def, -1, pos} {}
|
||||
@ -13,11 +10,9 @@ boost_def::boost_def(const position &pos):
|
||||
void boost_def::apply(const enum race &race, int &HP, int &ATK, int &DEF,
|
||||
fraction &base_hit_rate) {
|
||||
if (remaining_duration != 0) {
|
||||
if (race == rdrow)
|
||||
DEF += BOOST_DEF_DROW;
|
||||
else
|
||||
DEF += BOOST_DEF;
|
||||
|
||||
int tmp = BOOST_DEF;
|
||||
if (race == rdrow) tmp *= DROW_POTION_MUL;
|
||||
DEF += tmp;
|
||||
--remaining_duration;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user