Now have enough state to show what's going on in the fight, next is to use graphics and stuff to make it better.

This commit is contained in:
Zed A. Shaw 2025-12-23 00:11:31 -05:00
parent a8863cf687
commit f50e713179
9 changed files with 55 additions and 16 deletions

View file

@ -105,11 +105,16 @@ namespace boss {
}
void UI::damage(const std::string& actor, int amount) {
auto& config = $arena.actor_config(actor);
if(amount == 0) {
$arena.$ui.show_text("boss7", fmt::format(L"{} MISSED!", guecs::to_wstring(actor)));
$arena.$ui.show_text(config.cell,
fmt::format(L"{} MISSED!", guecs::to_wstring(actor)));
} else {
$arena.$ui.show_text("boss7", fmt::format(L"{} HIT {}!", guecs::to_wstring(actor), amount));
$arena.$ui.show_text(config.cell,
fmt::format(L"{} HIT {}!", guecs::to_wstring(actor), amount));
}
}
void UI::zoom(const std::string &cell_name, double ratio) {