Improved entity infotext

Improved entity infotext by moving entity name to top and showing entity type aswell
This commit is contained in:
Kazooo 2024-04-06 21:21:51 +00:00
parent de0914312c
commit b93b6d1153
1 changed files with 2 additions and 2 deletions

View File

@ -718,9 +718,9 @@ function mob_class:update_tag(newname)
end
end
self.infotext = "Health: " .. self.health .. " / " .. prop.hp_max
self.infotext = "Entity: " .. self.name .. " | Type: " .. self.type
.. ("\nHealth: " .. self.health .. " / " .. prop.hp_max)
.. (self.owner == "" and "" or "\nOwner: " .. self.owner)
.. ("\nEntity: " .. self.name)
.. text
-- set infotext changes