mirror of
https://github.com/evennia/evennia.git
synced 2026-03-20 06:46:31 +01:00
Moved the object's 'description' into an attribute, as suggested in the code. This means that get_description() and set_description() should no longer be used; instead use set_attribute('desc',value) and get_attribute('desc') as you would any attribute. 'desc' is used by the default look command, but apart from that, desc has no special status anymore.
/Griatch
This commit is contained in:
parent
e7d7284d5c
commit
05554e290a
7 changed files with 45 additions and 49 deletions
|
|
@ -98,11 +98,11 @@ class EvenniaBasicObject(object):
|
|||
else:
|
||||
show_dbrefs = False
|
||||
|
||||
description = target_obj.get_description()
|
||||
description = target_obj.get_attribute_value('desc')
|
||||
if description is not None:
|
||||
retval = "%s\r\n%s" % (
|
||||
target_obj.get_name(show_dbref=show_dbrefs),
|
||||
target_obj.get_description(),
|
||||
target_obj.get_attribute_value('desc'),
|
||||
)
|
||||
else:
|
||||
retval = "%s" % (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue