Allow exits to post a traversing message ...
This commit is contained in:
parent
55e1378b57
commit
50f089b20f
1 changed files with 8 additions and 2 deletions
|
|
@ -22,5 +22,11 @@ class Exit(ObjectParent, DefaultExit):
|
|||
properties and methods available on all Objects child classes like this.
|
||||
|
||||
"""
|
||||
|
||||
pass
|
||||
def at_traverse(self, traveler, destination):
|
||||
pre_check = traveler.at_pre_move(destination)
|
||||
if pre_check:
|
||||
if self.db.traverse_msg:
|
||||
traveler.msg(f"\n{self.db.traverse_msg}\n")
|
||||
return super().at_traverse(traveler, destination)
|
||||
else:
|
||||
return False
|
||||
|
|
|
|||
Loading…
Reference in a new issue