[wpdev-commits] xmlscripts/scripts/system hunger.py,1.6,1.7
Brought to you by:
rip,
thiagocorrea
From: Sebastian H. <dar...@us...> - 2004-10-17 15:53:03
|
Update of /cvsroot/wpdev/xmlscripts/scripts/system In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23548/system Modified Files: hunger.py Log Message: hunger fix Index: hunger.py =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/scripts/system/hunger.py,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** hunger.py 14 Oct 2004 01:59:00 -0000 1.6 --- hunger.py 17 Oct 2004 15:52:54 -0000 1.7 *************** *** 17,21 **** lasthunger = int(player.gettag('lasthunger')) ! if lasthunger + 2 < wolfpack.time.minutes(): if player.socket and not player.gm: if player.hunger >= 1 and player.hunger <= 6: --- 17,21 ---- lasthunger = int(player.gettag('lasthunger')) ! if lasthunger + hungerrate < wolfpack.time.minutes(): if player.socket and not player.gm: if player.hunger >= 1 and player.hunger <= 6: *************** *** 25,27 **** --- 25,28 ---- player.damage( 3, random.randint( 0, hungerdamage ) ) player.socket.sysmessage( tr("Your stomach hurts from the lack of food...") ) + playet.settag('lasthunger', wolfpack.time.minutes()) return False |