[wpdev-commits] xmlscripts/scripts spiderweb.py,1.5,1.6
Brought to you by:
rip,
thiagocorrea
From: Sebastian H. <dar...@us...> - 2004-08-29 13:37:28
|
Update of /cvsroot/wpdev/xmlscripts/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26087 Modified Files: spiderweb.py Log Message: fixes for custom spells Index: spiderweb.py =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/scripts/spiderweb.py,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** spiderweb.py 25 Aug 2004 17:03:05 -0000 1.5 --- spiderweb.py 29 Aug 2004 13:37:17 -0000 1.6 *************** *** 3,6 **** --- 3,7 ---- from math import ceil from wolfpack.consts import DAMAGE_MAGICAL, DAMAGE_PHYSICAL + import random # *************** *** 40,44 **** else: if char.socket: ! char.socket.sysmessage('You damage the spiderweb.') packet = wolfpack.packet(0x21, 8) packet.setbyte(1, sequence) --- 41,46 ---- else: if char.socket: ! if random.random() <= 0.25: ! char.socket.sysmessage('You damage the spiderweb.') packet = wolfpack.packet(0x21, 8) packet.setbyte(1, sequence) *************** *** 52,56 **** char.removescript( 'spiderweb' ) ! char.socket.sysmessage('You manage to break free of the spiderweb.') return False --- 54,59 ---- char.removescript( 'spiderweb' ) ! if char.socket: ! char.socket.sysmessage('You manage to break free of the spiderweb.') return False |