]> git.localhorst.tv Git - blobs.git/blobdiff - src/ui/ui.cpp
balancing
[blobs.git] / src / ui / ui.cpp
index 05fd499f376a333dc0b8d0e477fef48bfd9a4ca1..746be3e5295e1fc71fb7e5bbc82217405936964c 100644 (file)
@@ -223,7 +223,11 @@ void CreaturePanel::Hide() noexcept {
 void CreaturePanel::Draw(graphics::Viewport &viewport) noexcept {
        if (!c) return;
 
-       name->Text(c->Name());
+       std::string name_str(c->Name());
+       if (c->Dead()) {
+               name_str += " (deceased)";
+       }
+       name->Text(name_str);
        age->Text(TimeString(c->Age()));
        mass->Text(MassString(c->Mass()));
        size->Text(LengthString(c->Size()));