diff orpg/dieroller/rollers/hackmaster.py @ 227:81d0bfd5e800 alpha

Traipse Alpha 'OpenRPG' {100612-00} Traipse is a distribution of OpenRPG that is designed to be easy to setup and go. Traipse also makes it easy for developers to work on code without fear of sacrifice. 'Ornery-Orc' continues the trend of 'Grumpy' and adds fixes to the code. 'Ornery-Orc's main goal is to offer more advanced features and enhance the productivity of the user. Update Summary (Preparing to close updates) New Features: New to Map, can re-order Grid, Miniatures, and Whiteboard layer draw order Fixes: Fix to InterParse that was causing an Infernal Loop with Namespace Internal Fix to XML data, removed old Minidom and switched to Element Tree Fix to Server that was causing eternal attempt to find a Server ID, in Register Rooms thread Fix to metaservers.xml file not being created
author sirebral
date Sat, 12 Jun 2010 03:50:37 -0500
parents 5c9a118476b2
children
line wrap: on
line diff
--- a/orpg/dieroller/rollers/hackmaster.py	Fri Jan 15 22:45:51 2010 -0600
+++ b/orpg/dieroller/rollers/hackmaster.py	Sat Jun 12 03:50:37 2010 -0500
@@ -22,7 +22,7 @@
 # Author: Ric Soard
 # Maintainer:
 # Version:
-#   $Id: hackmaster.py,v 0.4 2003/08/12
+#   $Id: hackmaster.py,v Traipse 'Ornery-Orc' prof.ebral Exp
 #
 # Description: special die roller for HackMaster(C)(TM) RPG
 #               has penetration damage - .damage(bonus,honor)
@@ -32,7 +32,7 @@
 #
 #
 
-__version__ = "$Id: hackmaster.py,v 1.8 2006/11/15 12:11:22 digitalxero Exp $"
+__version__ = "$Id: hackmaster.py,v Traipse 'Ornery-Orc' prof.ebral Exp $"
 
 import random
 from std import std
@@ -120,7 +120,6 @@
         #this is a static die that adds honor, we want high rolls so it's +1
         self.append(static_di(self.hon))
 
-
     def check_crit(self):
         if self.data[0] == self.data[0].sides:
             self.crit = 1
@@ -170,7 +169,6 @@
         myStr += " Example [1d8.severity(1)] <br />"
         myStr += " .help() : <br />"
         myStr += " displays this message <br />"
-
         return myStr
 
 # the severity roll is for critical resolution. The die is rerolled and added
@@ -185,7 +183,6 @@
         self.CheckReroll()
         self.append(static_di(self.hon))
 
-
     def __str__(self):
         myStr = "[Severity Dice, Honor]" + " [" + str(self.data[0])
         for a in self.data[1:]:
@@ -205,7 +202,6 @@
         result = int(random.uniform(1,self.data[num].sides+1))
         self.data[num].value += (((result - 1) * neg) + self.hon)
         self.data[num].history.append(((result - 1) * neg) + self.hon)
-        if result >= self.data[num].sides:
-            self.crit_chain(num,1)
-        if result == 1:
-            self.crit_chain(num,-1)
+        if result >= self.data[num].sides: self.crit_chain(num,1)
+        if result == 1: self.crit_chain(num,-1)
+