Commits

Anonymous committed d1565d0

Added interface for different fighting styles and a hit treshold (below which teh character evades the attack or the attack hits the shield).

  • Participants
  • Parent commits 4afa2ad

Comments (0)

Files changed (1)

         # Now on to the battle values
         # Then its basic TP
         self.amov.kampfwerte['Trefferpunkte'] = self.bTP
-        # And its wound treshhold
+        # And its wound treshold
         self.amov.kampfwerte['Wundschwelle'] = self.WS[0]
         # After that the damage of its weapon
         self.amov.kampfwerte['Hauptwaffe']['Waffe']['Schaden'] = self.dam
                 return 24 - effective_value,  -necessary_striche
         
         
-    def fight_round(self,  other):
+    def fight_round(self,  other, styles_self=[], styles_other=[], treshold_self=0, treshold_other=0):
         """One battle action against another char.
+        
+    @param styles_self: The different styles the char should use (defense, pull back, escape, target: area). 
+    @type styles_self: A list of Strings. 
+    
+    @param styles_other: The different styles the enemy uses. 
+    @type styles_other: A list of Strings. 
+    
+    @param treshold_self: The treshold of the char below which no hit is scored. 
+    @type treshold_self: Int
+    
+    @param treshold_self: The treshold of the enemy below which no hit is scored. 
+    @type treshold_other: Int
+    
+    
 	@return: [ If the char won (bool), [your new wounds, critical, tp], [the 
 enemies new wounds, critical, tp] ]
+
+    Plans: 
+        - TODO: Add options for own fight style. 
+        - TODO: Add options for other fight style. 
+        
+    Planned options for own fight style: 
+        - defense (+6, no damage enemy)
+        - pull back (+9, no damage enemy)
+        - try to escape. 
+        - target specific body area for additional damage. 
+        - Shield/evasion (treshold for the enemies diff, below which no hit was archieved). 
 ."""
 	# Initialize all variables empty
         won = None #: Did we win this round?