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:
Griatch 2009-05-03 16:55:42 +00:00
parent e7d7284d5c
commit 05554e290a
7 changed files with 45 additions and 49 deletions

View file

@ -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" % (