Skip to content

Commit

Permalink
Merge branch 'develop' into adv-beta
Browse files Browse the repository at this point in the history
  • Loading branch information
myk002 committed Apr 17, 2024
2 parents 38c4bdc + 39df403 commit f6b4608
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
6 changes: 3 additions & 3 deletions docs/dev/Lua API.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4719,9 +4719,9 @@ Here is an example skeleton for a ZScreen tool window::
end

-- implement if you need to handle custom input
function MyWindow:onInput(keys)
return MyWindow.super.onInput(self, keys)
end
--function MyWindow:onInput(keys)
-- return MyWindow.super.onInput(self, keys)
--end

MyScreen = defclass(MyScreen, gui.ZScreen)
MyScreen.ATTRS {
Expand Down
8 changes: 8 additions & 0 deletions library/modules/Units.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1374,6 +1374,14 @@ string Units::getReadableName(df::unit* unit) {
break;
}
}

if (unit->enemy.undead) {
if (unit->enemy.undead->undead_name.empty())
name = name + " Corpse";
else
name = name + " " + unit->enemy.undead->undead_name;
}

if (isTame(unit)) {
name += " (";
name += getTameTag(unit);
Expand Down
2 changes: 1 addition & 1 deletion scripts

0 comments on commit f6b4608

Please sign in to comment.