Update of /cvsroot/wpdev/xmlscripts/scripts/system
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26030/system
Modified Files:
hunger.py
Log Message:
adjusted hunger damage.
Index: hunger.py
===================================================================
RCS file: /cvsroot/wpdev/xmlscripts/scripts/system/hunger.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** hunger.py 12 Jul 2004 16:06:27 -0000 1.2
--- hunger.py 12 Aug 2004 20:03:29 -0000 1.3
***************
*** 1,4 ****
--- 1,5 ----
import wolfpack
+ import random
import wolfpack.time
***************
*** 9,15 ****
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 False
--- 10,14 ----
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
|