[wpdev-commits] xmlscripts/scripts blades.py,1.9,1.10
Brought to you by:
rip,
thiagocorrea
From: Sebastian H. <dar...@us...> - 2004-09-30 12:39:31
|
Update of /cvsroot/wpdev/xmlscripts/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16616 Modified Files: blades.py Log Message: carving takes bloodcolors into account Index: blades.py =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/scripts/blades.py,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** blades.py 21 Sep 2004 05:42:54 -0000 1.9 --- blades.py 30 Sep 2004 12:39:21 -0000 1.10 *************** *** 148,151 **** --- 148,152 ---- if not basedef: char.socket.clilocmessage( 0x7A305, "", 0x3b2, 3, corpse ) # You see nothing useful to carve.. + return feathers = basedef.getintproperty('carve_feathers', 0) *************** *** 162,171 **** return ! # Create Random Blood ! bloodid = random.choice( blood ) ! blooditem = wolfpack.additem( bloodid ) ! blooditem.moveto( corpse.pos ) ! blooditem.decay = 1 ! blooditem.update() # Mark the corpse as carved --- 163,184 ---- return ! # See if the corpse has blood ! bloodcolor = basedef.getintproperty('bloodcolor', 0) ! ! if bloodcolor != -1: ! try: ! if basedef.hasstrproperty('bloodcolor'): ! (minv, maxv) = basedef.getstrproperty('bloodcolor', '0,0').split(',') ! bloodcolor = random.randint(int(minv), int(maxv)) ! except: ! pass ! ! # Create Random Blood ! bloodid = random.choice( blood ) ! blooditem = wolfpack.additem( bloodid ) ! blooditem.color = bloodcolor ! blooditem.moveto( corpse.pos ) ! blooditem.decay = 1 ! blooditem.update() # Mark the corpse as carved |