Can now see an enemy take damage, and a damage number, but the effect is inverted.
This commit is contained in:
parent
f175a5d4aa
commit
8208d146de
5 changed files with 26 additions and 11 deletions
|
|
@ -109,11 +109,10 @@ namespace boss {
|
|||
}
|
||||
|
||||
void UI::damage(const std::string& actor, int amount) {
|
||||
// BUG: the $arena should really do this
|
||||
if(amount == 0) {
|
||||
$arena.attach_text(actor, "MISS!");
|
||||
} else {
|
||||
$arena.attach_text(actor, "HIT!");
|
||||
$arena.attach_text(actor, fmt::format("{}", amount));
|
||||
|
||||
if(amount > 0) {
|
||||
$arena.apply_effect(actor, "flame");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue