- impl goblin character class
This commit is contained in:
@ -1,5 +1,4 @@
|
||||
#include "vampire.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <math.h>
|
||||
|
||||
@ -9,7 +8,7 @@ result vampire::attack(const direction dir, const character_list &chlist) {
|
||||
|
||||
for (auto &ch : chlist)
|
||||
if (tmp == ch->get_position()) {
|
||||
auto res = ch->get_hit(race, ATK, base_hitrate);
|
||||
auto res = ch->get_hit(race, ATK, base_hit_rate);
|
||||
if (res != result::miss) {
|
||||
HP += GAIN_HP;
|
||||
}
|
||||
|
Reference in New Issue
Block a user