Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def get_display_name(self, looker, **kwargs):
- """
- 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.
- Returns:
- name (str): A string containing the name of the object,
- including the DBREF if this user is privileged to control
- said 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.
- """
- if self.locks.check_lockstring(looker, "perm(Builder)"):
- return f"{self.name}(#{self.id}) Combat Score: {self.db.combat_score}"
- return self.name
Add Comment
Please, Sign In to add comment