mirror of
https://github.com/evennia/evennia.git
synced 2026-03-19 06:16:31 +01:00
Added an at_obj_receive hook to basic player/object script parents. This allows
e.g. room parents to react when a player enters them.
This commit is contained in:
parent
d06ac3e239
commit
eb6f82fea0
5 changed files with 22 additions and 11 deletions
|
|
@ -125,6 +125,12 @@ class EvenniaBasicObject(object):
|
|||
#print "SCRIPT TEST: %s dropped %s." % (pobject, self.scripted_obj)
|
||||
pass
|
||||
|
||||
def at_obj_receive(self, object=None):
|
||||
"""
|
||||
Called whenever an object is added to the contents of this object.
|
||||
"""
|
||||
pass
|
||||
|
||||
def return_appearance(self, pobject=None):
|
||||
"""
|
||||
Returns a string representation of an object's appearance when LOOKed at.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue