[wpdev-commits] xmlscripts/scripts/wolfpack properties.py,1.5,1.6
Brought to you by:
rip,
thiagocorrea
From: Sebastian H. <dar...@us...> - 2004-08-29 16:07:47
|
Update of /cvsroot/wpdev/xmlscripts/scripts/wolfpack In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17885/wolfpack Modified Files: properties.py Log Message: corrected swing speeds Index: properties.py =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/scripts/wolfpack/properties.py,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** properties.py 11 Jul 2004 02:47:25 -0000 1.5 --- properties.py 29 Aug 2004 16:07:38 -0000 1.6 *************** *** 21,30 **** def getdelay(attacker, weapon): speed = fromitem(weapon, SPEED) ! value = max(1, (attacker.stamina + 100) * speed) # Scale value according to bonus # value += bonus * value / 100 ! return floor(40000.0 / value) * 500 # --- 21,33 ---- def getdelay(attacker, weapon): speed = fromitem(weapon, SPEED) ! value = (attacker.stamina + 100) * speed # Scale value according to bonus # value += bonus * value / 100 + + if value <= 0: + value = 1 ! return floor(40000.0 / float(value)) * 500 # |