[wpdev-commits] xmlscripts/scripts environment.py,1.5,1.6
Brought to you by:
rip,
thiagocorrea
|
From: <dar...@us...> - 2003-09-15 12:46:05
|
Update of /cvsroot/wpdev/xmlscripts/scripts In directory sc8-pr-cvs1:/tmp/cvs-serv17546 Modified Files: environment.py Log Message: Test logging for dyetubs. Index: environment.py =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/scripts/environment.py,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** environment.py 15 Sep 2003 12:42:15 -0000 1.5 --- environment.py 15 Sep 2003 12:46:00 -0000 1.6 *************** *** 214,228 **** # Valid Target? ! if target.item.getoutmostchar() != char: ! char.socket.sysmessage( "You have to have this in your belongings." ) ! return ! ! if not target.item.dye: ! char.socket.sysmessage( "You cannot dye this." ) ! return ! target.item.color = dyetub.color target.item.update() ! char.soundeffect( 0x023e ) # Table of IDs mapped to handler functions --- 214,230 ---- # Valid Target? ! if not char.gm: ! if target.item.getoutmostchar() != char: ! char.socket.sysmessage( "You have to have this in your belongings." ) ! return ! ! if not target.item.dye: ! char.socket.sysmessage( "You cannot dye this." ) ! return ! ! char.socket.log( LOG_TRACE, "Dying item (%x,%x) using tub (%x,%x)\n" % ( target.item.serial, target.item.color, dyetub.serial, dyetub.color ) ) target.item.color = dyetub.color target.item.update() ! char.soundeffect( 0x023e ) # Table of IDs mapped to handler functions |