Commits

Anonymous committed 8623ca5

BRanching story - small story update.

  • Participants
  • Parent commits caf28c6

Comments (0)

Files changed (2)

File branching_story.py

 after this day of dancing
 with the sister of the sun, 
 a child of the faery kin. 
+
+So you start your journey
+back through the woods, 
+to the safe mundanity of your car. 
 """)
 
 wood = [

File rpg_lib/anyrpg.py

 class UserInteraction(object): 
     """Basic user interaction: Showing and asking things."""
     def __init__(self, *args, **kwds): 
-	self.line_length = 60 #: The maximum length of story lines. 
+	self.line_length = 80 #: The maximum length of story lines. 
 	self.line_wait = 0.4
 	self.char_wait = 0.05
         super(UserInteraction, self).__init__(*args, **kwds)
 		text = text[1:]
 	# Print as many words as possible without breaking the max line width. 
 	for j in text.split(): 
-	    if len(line_beginning) + len(text_to_print) + len(j) > line_length: 
+	    if len(line_beginning) + len(text_to_print) + len(j) >= line_length: 
 		self.diag(line_beginning + text_to_print, localize=localize, autoscroll=autoscroll, *args, **kwds) 
 		# If j > self.line_length -> split j and use only the remaining rest as default, printing all else directly. 
 		if len(line_beginning) + len(j) > self.line_length: