fixed:
1. potions being walked over 2. spawning on stairs 3. enemies walking under players 4. merchants not being aggresive 5. potions losing effect when sending pass signal (cleared by player::start_turn())’
This commit is contained in:
@ -73,11 +73,14 @@ long_result enemy_base::get_hit(character *ch, const int tATK,
|
||||
if (HP == 0)
|
||||
return {result::hit,
|
||||
"PC deals " + std::to_string(tmp) +
|
||||
" damage to " + abbrev + ". " + abbrev +
|
||||
" damage to " + abbrev + " (" +
|
||||
std::to_string(HP) + " HP). " +
|
||||
abbrev +
|
||||
" is slain by PC. "};
|
||||
|
||||
return {result::hit, "PC deals " +
|
||||
std::to_string(tmp) + " damage to " + abbrev + ". "};
|
||||
std::to_string(tmp) + " damage to " + abbrev + " (" +
|
||||
std::to_string(HP) + " HP). "};
|
||||
}
|
||||
|
||||
return {miss, "PC tried to hit " + abbrev + " but missed. "};
|
||||
|
Reference in New Issue
Block a user