def enact(self): where = self.where if self.where.type == "Exit": where = self.where.location if where == None: where = self.where.home global_database.move_item(self.what, where) ActionLook(self.object).enact()
def enact(self): room = global_database.create_room(self.name) Notifier().notify(self.object, " ".join((NameFormatter().format(room), "has been dug."))) if self.exit_name != None: my_exit = global_database.create_exit(self.exit_name, self.object.location) Notifier().notify(self.object, " ".join((NameFormatter().format(my_exit), "opened."))) global_database.move_item(my_exit, room) if self.return_exit_name != None: my_exit = global_database.create_exit(self.return_exit_name, room) Notifier().notify(self.object, " ".join((NameFormatter().format(my_exit), "opened."))) global_database.move_item(my_exit, self.object.location) if self.teleport: ActionGoto(self.object).setup({"what": room}).enact()