mirror of
https://github.com/evennia/evennia.git
synced 2026-03-31 13:07:16 +02:00
Made the default return_appearance use the get_display_name hook properly.
This commit is contained in:
parent
ce26ee0a25
commit
9f16cee0d2
1 changed files with 2 additions and 3 deletions
|
|
@ -204,7 +204,6 @@ class DefaultObject(ObjectDB):
|
|||
return self.contents_cache.get(exclude=exclude)
|
||||
contents = property(contents_get)
|
||||
|
||||
|
||||
@property
|
||||
def exits(self):
|
||||
"""
|
||||
|
|
@ -1264,7 +1263,7 @@ class DefaultObject(ObjectDB):
|
|||
con.access(looker, "view"))
|
||||
exits, users, things = [], [], []
|
||||
for con in visible:
|
||||
key = con.key
|
||||
key = con.get_display_name(looker)
|
||||
if con.destination:
|
||||
exits.append(key)
|
||||
elif con.has_player:
|
||||
|
|
@ -1272,7 +1271,7 @@ class DefaultObject(ObjectDB):
|
|||
else:
|
||||
things.append(key)
|
||||
# get description, build string
|
||||
string = "{c%s{n\n" % self.key
|
||||
string = "{c%s{n\n" % self.get_display_name(looker)
|
||||
desc = self.db.desc
|
||||
if desc:
|
||||
string += "%s" % desc
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue