[wpdev-commits] xmlscripts/scripts/system hunger.py,1.3,1.4
Brought to you by:
rip,
thiagocorrea
From: Richard M. <dr...@us...> - 2004-08-23 03:10:49
|
Update of /cvsroot/wpdev/xmlscripts/scripts/system In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7923/system Modified Files: hunger.py Log Message: - Added the bolt command, just lightnings the target. - Added the email command, changes your account's email. - Added sparkle effects to the heal/restore commands. - Fixes for the account command: Fixed a few typos. Fixed a bug in updating the password Added support for the email field. - Tweaked the hunger script. - Fixed an update bug with npcs and the dye command. - Fixed a bug with the dupe command. Index: hunger.py =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/scripts/system/hunger.py,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** hunger.py 12 Aug 2004 20:03:29 -0000 1.3 --- hunger.py 23 Aug 2004 03:10:40 -0000 1.4 *************** *** 5,14 **** def onTimeChange( player ): ! if player.socket: ! if player.hunger >= 1 and player.hunger <= 6: ! player.hunger -= 1 ! player.socket.sysmessage( "Your stomach growls..." ) ! elif player.hunger == 0: ! player.damage( 3, random.randint( 0, 3 ) ) ! player.socket.sysmessage( "Your stomach hurts from the lack of food..." ) return False --- 5,15 ---- def onTimeChange( player ): ! if wolfpack.time.hour() in [ 0, 3, 6, 9, 12, 15, 18, 21 ]: ! if player.socket: ! if player.hunger >= 1 and player.hunger <= 6: ! player.hunger -= 1 ! player.socket.sysmessage( "Your stomach growls..." ) ! elif player.hunger == 0: ! player.damage( 3, random.randint( 0, 3 ) ) ! player.socket.sysmessage( "Your stomach hurts from the lack of food..." ) return False |