[wpdev-commits] xmlscripts/scripts food.py,1.4,1.5
Brought to you by:
rip,
thiagocorrea
From: Ki H. P. <kh...@us...> - 2004-06-20 20:10:02
|
Update of /cvsroot/wpdev/xmlscripts/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30574/xmlscripts/scripts Modified Files: food.py Log Message: poisoning script Index: food.py =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/scripts/food.py,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** food.py 26 May 2004 13:07:19 -0000 1.4 --- food.py 20 Jun 2004 20:09:54 -0000 1.5 *************** *** 3,6 **** --- 3,7 ---- from wolfpack.consts import * from wolfpack.utilities import tobackpack + from system import poison # *************** *** 61,64 **** --- 62,77 ---- player.socket.clilocmessage(min(500872, 500868 + player.hunger)) + # Fidget animation and munch munch sound + player.soundeffect(random.choice([0x03a, 0x03b, 0x03c])) + player.action(ANIM_FIDGET3) + + player.hunger += 1 + + # poisoned food + if item.hastag( 'poisoning_char' ): + poison.poison( player, item.gettag( 'poisoning_strength' ) ) + player.socket.clilocmessage( 1010512 ) + skills.poisoning.wearoff( item ) + if item.amount > 1: item.amount -= 1 *************** *** 67,74 **** item.delete() - # Fidget animation and munch munch sound - player.soundeffect(random.choice([0x03a, 0x03b, 0x03c])) - player.action(ANIM_FIDGET3) - - player.hunger += 1 return 1 --- 80,82 ---- |