summaryrefslogtreecommitdiff
path: root/thing.lua
diff options
context:
space:
mode:
Diffstat (limited to 'thing.lua')
-rw-r--r--thing.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/thing.lua b/thing.lua
index f7cc32a..eee742b 100644
--- a/thing.lua
+++ b/thing.lua
@@ -19,4 +19,7 @@ function Thing.__tostring(self)
.. ':' .. self.id
.. (self.name == self.id and '('..self.name..')' or '')
end
+function Thing.name_with_shortname(self)
+ return self.name .. ' [' .. self.pylon.shortname .. ']'
+end
return Thing