mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Merge pull request #3445 from InspectorCaracal/patch-14
Update `get_display_name` docstring
This commit is contained in:
commit
802fea0149
1 changed files with 5 additions and 9 deletions
|
|
@ -1434,19 +1434,15 @@ class DefaultObject(ObjectDB, metaclass=TypeclassBase):
|
|||
Displays the name of the object in a viewer-aware manner.
|
||||
|
||||
Args:
|
||||
looker (TypedObject): The object or account that is looking
|
||||
at/getting inforamtion for this object. If not given, `.name` will be
|
||||
returned, which can in turn be used to display colored data.
|
||||
looker (TypedObject): The object or account that is looking at or getting information
|
||||
for this object.
|
||||
|
||||
Returns:
|
||||
str: A name to display for this object. This can contain color codes and may
|
||||
be customized based on `looker`. By default this contains the `.key` of the object,
|
||||
followed by the DBREF if this user is privileged to control said object.
|
||||
str: A name to display for this object. By default this returns the `.name` of the object.
|
||||
|
||||
Notes:
|
||||
This function could be extended to change how object names appear to users in character,
|
||||
but be wary. This function does not change an object's keys or aliases when searching,
|
||||
and is expected to produce something useful for builders.
|
||||
This function can be extended to change how object names appear to users in character,
|
||||
but it does not change an object's keys or aliases when searching.
|
||||
|
||||
"""
|
||||
return self.name
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue