Reworked tutorial world objects, starting with mob.

This commit is contained in:
Griatch 2015-02-15 21:30:52 +01:00
parent 0029232ab0
commit 32fd9d2a4d
3 changed files with 386 additions and 296 deletions

View file

@ -41,6 +41,9 @@ class Mob(tut_objects.TutorialObject):
self.db.last_location = None
# only when True will the mob move.
self.db.roam_mode = True
#
self.db.move_from
self.location.msg_contents("With a cold breeze, %s drifts in the direction of %s." % (self.key, destination.key))
def announce_move_from(self, destination):
"Called just before moving"