capitalized all enums
This commit is contained in:
10
src/enemy.cc
10
src/enemy.cc
@ -35,7 +35,7 @@ long_result enemy_base::act(level *lvl, character *pc, bool hostile) {
|
||||
}
|
||||
|
||||
pos = target;
|
||||
return {fine, ""};
|
||||
return {NOTHING, ""};
|
||||
}
|
||||
|
||||
int choices_cnt = 0;
|
||||
@ -52,7 +52,7 @@ long_result enemy_base::act(level *lvl, character *pc, bool hostile) {
|
||||
if (choices_cnt)
|
||||
pos = choices[rng->rand_under(choices_cnt)];
|
||||
|
||||
return {fine, ""};
|
||||
return {NOTHING, ""};
|
||||
}
|
||||
|
||||
long_result enemy_base::attack(character *ch) {
|
||||
@ -71,18 +71,18 @@ long_result enemy_base::get_hit(character *ch, const int tATK,
|
||||
HP -= tmp;
|
||||
|
||||
if (HP == 0)
|
||||
return {result::hit,
|
||||
return {result::HIT,
|
||||
"PC deals " + std::to_string(tmp) +
|
||||
" damage to " + abbrev + " (" +
|
||||
std::to_string(HP) + " HP). " +
|
||||
abbrev + " is slain by PC. "};
|
||||
|
||||
return {result::hit, "PC deals " +
|
||||
return {result::HIT, "PC deals " +
|
||||
std::to_string(tmp) + " damage to " + abbrev + " (" +
|
||||
std::to_string(HP) + " HP). "};
|
||||
}
|
||||
|
||||
return {miss, "PC tried to hit " + abbrev + " but missed. "};
|
||||
return {MISS, "PC tried to hit " + abbrev + " but missed. "};
|
||||
}
|
||||
|
||||
int enemy_base::dies(level *lvl) {
|
||||
|
Reference in New Issue
Block a user