mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 12:56:30 +01:00
Show XYZRoom typeclass in repr() return
This commit is contained in:
parent
6dee18b989
commit
9cec254196
2 changed files with 4 additions and 1 deletions
|
|
@ -10,8 +10,11 @@
|
|||
`.get_extra_display_name_info` (the #dbref display by default) (Griatch)
|
||||
- Fix: Add `DefaultAccount.get_extra_display_name_info` method for API
|
||||
compliance with `DefaultObject` in commands. (Griatch)
|
||||
- Fix: Show `XYZRoom` subclass when repr() it. (Griatch)
|
||||
- [Fix][pull3485]: Typo in `sethome` message (chiizujin)
|
||||
|
||||
[pull3438]: https://github.com/evennia/evennia/pull/3446
|
||||
[pull3485]: https://github.com/evennia/evennia/pull/3485
|
||||
|
||||
|
||||
## Evennia 4.1.0
|
||||
|
|
|
|||
|
|
@ -282,7 +282,7 @@ class XYZRoom(DefaultRoom):
|
|||
|
||||
def __repr__(self):
|
||||
x, y, z = self.xyz
|
||||
return f"<XYZRoom '{self.db_key}', XYZ=({x},{y},{z})>"
|
||||
return f"<{self.__class__.__name__} '{self.db_key}', XYZ=({x},{y},{z})>"
|
||||
|
||||
@property
|
||||
def xyz(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue