[wpdev-commits] xmlscripts/scripts/combat aos.py,1.20,1.21
Brought to you by:
rip,
thiagocorrea
From: Sebastian H. <dar...@us...> - 2004-10-01 10:44:51
|
Update of /cvsroot/wpdev/xmlscripts/scripts/combat In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4238/combat Modified Files: aos.py Log Message: Combat gain fixes Index: aos.py =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/scripts/combat/aos.py,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** aos.py 27 Sep 2004 14:37:25 -0000 1.20 --- aos.py 1 Oct 2004 10:44:31 -0000 1.21 *************** *** 16,20 **** # Normalize chance = min(1.0, max(0.02, chance)) ! minskill = (1.0 - chance) * 1200 maxskill = 1200 char.checkskill(skill, minskill, maxskill) --- 16,20 ---- # Normalize chance = min(1.0, max(0.02, chance)) ! minskill = min(char.skill[skill], (1.0 - chance) * 1200) maxskill = 1200 char.checkskill(skill, minskill, maxskill) |