Update of /cvsroot/wpdev/xmlscripts/scripts
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12120
Modified Files:
food.py
Log Message:
no animations on a mount.
Index: food.py
===================================================================
RCS file: /cvsroot/wpdev/xmlscripts/scripts/food.py,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** food.py 19 Jul 2004 23:22:15 -0000 1.11
--- food.py 8 Aug 2004 20:17:45 -0000 1.12
***************
*** 2,6 ****
import wolfpack
import random
! from wolfpack.consts import ANIM_FIDGET3
from wolfpack.utilities import tobackpack
from system import poison
--- 2,6 ----
import wolfpack
import random
! from wolfpack.consts import ANIM_FIDGET3, LAYER_MOUNT
from wolfpack.utilities import tobackpack
from system import poison
***************
*** 45,49 ****
# Fidget animation and munch munch sound
char.soundeffect( random.choice([0x03a, 0x03b, 0x03c]), 1 )
! char.action(ANIM_FIDGET3)
return 1
--- 45,50 ----
# Fidget animation and munch munch sound
char.soundeffect( random.choice([0x03a, 0x03b, 0x03c]), 1 )
! if not char.itemonlayer( LAYER_MOUNT ):
! char.action(ANIM_FIDGET3)
return 1
***************
*** 69,73 ****
# Fidget animation and munch munch sound
player.soundeffect( random.choice([0x03a, 0x03b, 0x03c]), 1 )
! player.action(ANIM_FIDGET3)
player.hunger += 1
--- 70,75 ----
# Fidget animation and munch munch sound
player.soundeffect( random.choice([0x03a, 0x03b, 0x03c]), 1 )
! if not player.itemonlayer( LAYER_MOUNT ):
! player.action(ANIM_FIDGET3)
player.hunger += 1
|