capitalized all enums
This commit is contained in:
@ -4,14 +4,14 @@
|
||||
#include "../constants.h"
|
||||
|
||||
wound_atk::wound_atk(const position &pos):
|
||||
potion{potion_type::wound_atk, -1, pos} {}
|
||||
potion{potion_type::WOUND_ATK, -1, pos} {}
|
||||
|
||||
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)
|
||||
if (race == DROW)
|
||||
tmp *= DROW_POTION_MUL;
|
||||
|
||||
ATK = std::max(ATK - tmp, 0);
|
||||
|
Reference in New Issue
Block a user