if self.story_name:
name = self.story_name
else:
name = "Generated Story {}".format(hash(story_content))
return "//// {}\n{}".format(name, story_content)
else:
return story_content
After Change
self.story_steps = story_steps
self.step_lookup = {s.id: s for s in self.story_steps}
ordered_ids, cyclic_edges = StoryGraph.order_steps(story_steps)
self.ordered_ids = ordered_ids
self.cyclic_edge_ids = cyclic_edges
if story_end_checkpoints:
self.story_end_checkpoints = story_end_checkpoints
else: