[wpdev-commits] xmlscripts/scripts ore.py,1.5,1.6
Brought to you by:
rip,
thiagocorrea
|
From: <dr...@pr...> - 2004-01-26 22:45:29
|
Update of /cvsroot/wpdev/xmlscripts/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12895/scripts Modified Files: ore.py Log Message: Fixed two slight problems I found... 22 hours without sleep = extra bugs :D Now everything seems to work fine... Index: ore.py =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/scripts/ore.py,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** ore.py 26 Jan 2004 22:25:21 -0000 1.5 --- ore.py 26 Jan 2004 22:44:13 -0000 1.6 *************** *** 92,95 **** --- 92,98 ---- resname = item.gettag( 'resname' ) + if target.char: + return OOPS + targetitem = wolfpack.finditem( target.item.serial ) *************** *** 300,305 **** ore.update() elif ore.amount == 1: ! successsmelt( char, ingottable, resname, amount, ingotdef ) ! ore.delete() success = 1 --- 303,311 ---- ore.update() elif ore.amount == 1: ! # There is not enough metal-bearing ore in this pile to make an ingot. ! char.socket.clilocmessage( 501987, '', GRAY ) ! return OOPS ! ! success = 1 |