Skip to content
Snippets Groups Projects
Commit 824b6b9b authored by dg's avatar dg
Browse files

Kill count in tooltips works

git-svn-id: http://svn.net-core.org/repos/t-engine4@5566 51575b47-30f0-44d4-a5cc-537603b46e54
parent 2e6a96bc
No related branches found
No related tags found
No related merge requests found
......@@ -297,11 +297,11 @@ end
function _M:tooltip(x, y, seen_by)
local str = mod.class.Actor.tooltip(self, x, y, seen_by)
if not str then return end
local killed = game.player.all_kills and (game.player.all_kills[self.name] or 0) or 0
local killed = game:getPlayer(true).all_kills and (game:getPlayer(true).all_kills[self.name] or 0) or 0
str:add(
true,
("Killed by you: "):format(killed), true,
("Killed by you: %s"):format(killed), true,
"Target: ", self.ai_target.actor and self.ai_target.actor.name or "none"
)
if config.settings.cheat then str:add(true, "UID: "..self.uid, true, self.image) end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment