Improved entity infotext
Improved entity infotext by moving entity name to top and showing entity type aswell
This commit is contained in:
parent
de0914312c
commit
b93b6d1153
4
api.lua
4
api.lua
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue