Update of /cvsroot/wpdev/xmlscripts/scripts/commands
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28830/commands
Modified Files:
boom.py
Log Message:
go boom now uses less boom of server cpu ^^
Index: boom.py
===================================================================
RCS file: /cvsroot/wpdev/xmlscripts/scripts/commands/boom.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** boom.py 5 Oct 2004 13:02:12 -0000 1.1
--- boom.py 5 Oct 2004 13:22:03 -0000 1.2
***************
*** 13,35 ****
if 0.5 >= random.random():
t = random.randint(0, 2)
-
- item = wolfpack.additem('eed')
- item.moveto(x, y, z, map)
# Fire Column
if t == 0:
! wolfpack.effect(0x3709, pos, 10, 30)
! item.soundeffect(0x208)
# Explosion
elif t == 1:
! wolfpack.effect(0x36bd, pos, 20, 10)
! item.soundeffect(0x307)
# Ball of fire
elif t == 2:
! wolfpack.effect(0x36fe, pos, 10, 10)
!
! item.delete()
# Go boom
--- 13,30 ----
if 0.5 >= random.random():
t = random.randint(0, 2)
# Fire Column
if t == 0:
! pos.effect(0x3709, 10, 30)
! pos.soundeffect(0x208)
# Explosion
elif t == 1:
! pos.effect(0x36bd, 20, 10)
! pos.soundeffect(0x307)
# Ball of fire
elif t == 2:
! pos.effect(0x36fe, 10, 10)
# Go boom
|