capitalized all enums

This commit is contained in:
a25liang
2024-07-20 15:11:13 -04:00
parent af1522ba2f
commit 525226b763
53 changed files with 393 additions and 395 deletions

View File

@ -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) {