[wpdev-commits] xmlscripts/scripts/system hunger.py,NONE,1.1
Brought to you by:
rip,
thiagocorrea
From: Richard M. <dr...@us...> - 2004-07-12 00:49:03
|
Update of /cvsroot/wpdev/xmlscripts/scripts/system In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1477/system Added Files: hunger.py Log Message: Fixes, added a hunger script. --- NEW FILE: hunger.py --- import wolfpack import wolfpack.time 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.hitpoints -= 1 player.update() player.socket.sysmessage( "Your stomach hurts from the lack of food..." ) return True else: return False |