1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-11-15 23:10:31 +01:00

[areas] improve HUD text further

This commit is contained in:
Dorian Wouters 2016-06-22 23:51:38 +02:00
parent 6a310d9f8d
commit c10258cf35
No known key found for this signature in database
GPG Key ID: 6E9DA8063322434B

View File

@ -34,7 +34,11 @@ local function tick()
local icon = "areas_not_area.png" local icon = "areas_not_area.png"
if nb_areas > 0 then if nb_areas > 0 then
area_text = ("Nb area(s): %u\nOwner: %s\nName: %s"):format(nb_areas, area_owner_name, area_name) local plural = ""
if nb_areas > 1 then
plural = "s"
end
area_text = ("%s\nOwner: %s\n%u area" .. plural):format(area_name, area_owner_name, nb_areas)
icon = ("areas_%u_%u_%u.png"):format(mod_owner, mod_open, mod_farming) icon = ("areas_%u_%u_%u.png"):format(mod_owner, mod_open, mod_farming)
end end
if not areas.hud[name] then if not areas.hud[name] then