Diversion in timeline

This commit is contained in:
Ruben van de Ven 2019-06-18 10:46:48 +02:00
parent dbcff93237
commit 4ae8c20b92
1 changed files with 3 additions and 1 deletions

View File

@ -661,8 +661,9 @@ class Diversion(object):
if self.type != 'repeat' and self.type !='interrupt':
# repeat diversion should be usable infinte times
self.hasHit = True
story.addToLog(self)
story.hugvey.eventLogger.info(f"diverge {self.id}")
return r
def createReturnDirectionsTo(self, story, startMsg, returnMsg, originalDirection = None, inheritTiming = True, timeoutDuration = .5, replyContainsDurations = None):
@ -753,6 +754,7 @@ class Diversion(object):
Only used if the Diversion sets the story.currentDiversion
"""
story.logger.info("end of diversion")
story.hugvey.eventLogger.info(f"return from {self.id}")
if not self.finaliseMethod:
story.logger.info(f"No finalisation for diversion {self.id}")
story.currentDiversion = None