Can now see an enemy take damage, and a damage number, but the effect is inverted.

This commit is contained in:
Zed A. Shaw 2025-12-28 02:05:30 -05:00
parent f175a5d4aa
commit 8208d146de
5 changed files with 26 additions and 11 deletions

View file

@ -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");
}
}