added extra potions
This commit is contained in:
24
src/potions/savage_strike.cc
Normal file
24
src/potions/savage_strike.cc
Normal file
@ -0,0 +1,24 @@
|
||||
#include "savage_strike.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include "../constants.h"
|
||||
|
||||
savage_strike::savage_strike(const position &pos):
|
||||
potion{potion_type::savage_strike, DURATION, pos} {}
|
||||
|
||||
void savage_strike::apply(const enum race &race, int &HP, int &ATK, int &DEF,
|
||||
fraction &base_hit_rate) {
|
||||
if (remaining_duration != 0) {
|
||||
ATK *= ATK_MUL * (race == rdrow ? DROW_POTION_MUL : 1);
|
||||
base_hit_rate *= HR_MUL;
|
||||
--remaining_duration;
|
||||
}
|
||||
}
|
||||
|
||||
int savage_strike::get_priority() const {
|
||||
return CALC_MID;
|
||||
}
|
||||
|
||||
const char *savage_strike::get_name() const {
|
||||
return "SS";
|
||||
}
|
Reference in New Issue
Block a user