Update of /cvsroot/wpdev/xmlscripts/scripts/system
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19228/system
Modified Files:
skillgain.py
Log Message:
Fixed statgain
Index: skillgain.py
===================================================================
RCS file: /cvsroot/wpdev/xmlscripts/scripts/system/skillgain.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** skillgain.py 27 Sep 2004 17:42:34 -0000 1.9
--- skillgain.py 28 Sep 2004 11:55:42 -0000 1.10
***************
*** 164,178 ****
realint = char.intelligence - char.intelligence2
! if (char.npc or char.strengthlock == 0) or realstr >= char.strengthcap:
strchance = 0.0
else:
strchance /= 33.3
! if (char.npc or char.dexteritylock == 0) or realdex >= char.dexteritycap:
dexchance = 0.0
else:
dexchance /= 33.3
! if (char.npc or char.intelligencelock == 0) or realint >= char.intelligencecap:
intchance = 0.0
else:
--- 164,178 ----
realint = char.intelligence - char.intelligence2
! if (char.npc or char.strengthlock != 0) or realstr >= char.strengthcap:
strchance = 0.0
else:
strchance /= 33.3
! if (char.npc or char.dexteritylock != 0) or realdex >= char.dexteritycap:
dexchance = 0.0
else:
dexchance /= 33.3
! if (char.npc or char.intelligencelock != 0) or realint >= char.intelligencecap:
intchance = 0.0
else:
|