[wpdev-commits] xmlscripts/scripts/skills poisoning.py,1.1,1.2
Brought to you by:
rip,
thiagocorrea
From: Ki H. P. <kh...@us...> - 2004-06-20 20:34:37
|
Update of /cvsroot/wpdev/xmlscripts/scripts/skills In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20482 Modified Files: poisoning.py Log Message: skill check Index: poisoning.py =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/scripts/skills/poisoning.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** poisoning.py 20 Jun 2004 20:09:53 -0000 1.1 --- poisoning.py 20 Jun 2004 20:34:28 -0000 1.2 *************** *** 95,99 **** # FIXME : success / fail chance ! if skill < ( strength + 0.8 ) * 20: # failed to poison item char.socket.clilocmessage( 1010518 ) --- 95,99 ---- # FIXME : success / fail chance ! if skill < ( strength + 0.8 ) * 200: # failed to poison item char.socket.clilocmessage( 1010518 ) *************** *** 101,107 **** # check skill advance # FIXME : less / strong chance ! if random.randint( 0, 20 ) > ( skill - strength * 20 ): strength = strength - 1 if strength < 1: --- 101,108 ---- # check skill advance + char.checkskill( POISONING, 0, 1000 ) # FIXME : less / strong chance ! if random.randint( 0, 20 ) > ( skill - strength * 200 ): strength = strength - 1 if strength < 1: *************** *** 139,143 **** return skill = weapon.gettag( 'poisoning_skill' ) ! chance = int( skill / 4 ) if chance > random.randint( 0, 100 ): poison.poison( char, strength ) --- 140,144 ---- return skill = weapon.gettag( 'poisoning_skill' ) ! chance = int( skill / 40 ) if chance > random.randint( 0, 100 ): poison.poison( char, strength ) |