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.
|
Displays the name of the object in a viewer-aware manner.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
looker (TypedObject): The object or account that is looking
|
looker (TypedObject): The object or account that is looking at or getting information
|
||||||
at/getting inforamtion for this object. If not given, `.name` will be
|
for this object.
|
||||||
returned, which can in turn be used to display colored data.
|
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
str: A name to display for this object. This can contain color codes and may
|
str: A name to display for this object. By default this returns the `.name` of the object.
|
||||||
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.
|
|
||||||
|
|
||||||
Notes:
|
Notes:
|
||||||
This function could be extended to change how object names appear to users in character,
|
This function can 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,
|
but it does not change an object's keys or aliases when searching.
|
||||||
and is expected to produce something useful for builders.
|
|
||||||
|
|
||||||
"""
|
"""
|
||||||
return self.name
|
return self.name
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue