Commits

Anonymous committed e707454

corrected dieing.

  • Participants
  • Parent commits 2f59471

Comments (0)

Files changed (1)

                 self.active = False
             else:
                 # else it checks, if it can still stand. 
-                self.active = check(value, MW=12)
-            # If it is no longer active and its TP are at least its critical wound value below 0, it dies now (else it is just no longer able to fight).  
-            if not self.active and self.TP <= -self.WS[1]:
-                self.die()
+		# The first two KO checks are against 12, the others get consecutively harder.
+		if self.number_of_ko_checks == 0:
+	                self.active = check(value, MW=12)
+		else: 
+                	self.active = check(value, MW=(12 + 3*(self.number_of_ko_checks -1)))
+			# these are deadly if missed.
+			if not self.active:
+				self.die()
         
         # In any case, if the TP fall below 4 times the base attribute, or he got more than 18 wounds, he dies. 
         if self.TP < -4*self.WS[1] or (self.wounds[0] + 3*self.wounds[1]) > 18: