Update of /cvsroot/wpdev/xmlscripts/scripts/magic
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20686/scripts/magic
Modified Files:
circle7.py circle4.py circle5.py
Log Message:
commented out the item.direction properties in field spell items
Index: circle7.py
===================================================================
RCS file: /cvsroot/wpdev/xmlscripts/scripts/magic/circle7.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** circle7.py 18 Jul 2004 08:56:52 -0000 1.7
--- circle7.py 18 Jul 2004 09:39:52 -0000 1.8
***************
*** 94,98 ****
newitem.moveto(pos)
newitem.decay = 0
! newitem.direction = 29
newitem.settag('dispellable_field', 1)
newitem.update()
--- 94,98 ----
newitem.moveto(pos)
newitem.decay = 0
! #newitem.direction = 29
newitem.settag('dispellable_field', 1)
newitem.update()
***************
*** 267,270 ****
--- 267,271 ----
# Enumerate chars
chars = wolfpack.chars(target.x, target.y, char.pos.map, 8)
+ items = wolfpack.items(target.x, target.y, char.pos.map, 8)
for target in chars:
if char == target or not target.npc or target.summontimer == 0:
***************
*** 279,288 ****
# Field spells
- items = wolfpack.items(target.x, target.y, char.pos.map, 8)
for item in items:
! if target.hastag('dispellable_field'):
! wolfpack.effect(0x376a, target.pos, 9, 20)
! target.soundeffect(0x201)
! target.delete()
class MeteorSwarm (Spell):
--- 280,288 ----
# Field spells
for item in items:
! if item.hastag('dispellable_field'):
! wolfpack.effect(0x376a, item.pos, 9, 20)
! item.soundeffect(0x201)
! item.delete()
class MeteorSwarm (Spell):
Index: circle4.py
===================================================================
RCS file: /cvsroot/wpdev/xmlscripts/scripts/magic/circle4.py,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** circle4.py 15 Jul 2004 01:17:12 -0000 1.8
--- circle4.py 18 Jul 2004 09:39:52 -0000 1.9
***************
*** 214,218 ****
newitem = wolfpack.newitem(1)
newitem.id = itemid
! newitem.direction = 29
newitem.moveto(pos)
newitem.decay = 0 # Dont decay. TempEffect will take care of them
--- 214,218 ----
newitem = wolfpack.newitem(1)
newitem.id = itemid
! #newitem.direction = 29
newitem.moveto(pos)
newitem.decay = 0 # Dont decay. TempEffect will take care of them
***************
*** 225,231 ****
# Affect chars who are occupying the field cells
chars = wolfpack.chars(newitem.pos.x, newitem.pos.y, newitem.pos.map)
! for affected in chars:
! if affected.pos.z >= newitem.pos.z - 10 and affected.pos.z <= newitem.pos.z + 10:
! newitem.callevent(EVENT_COLLIDE, (affected, newitem))
duration = int((4 + char.skill[ MAGERY ] * 0.05) * 1000)
--- 225,232 ----
# Affect chars who are occupying the field cells
chars = wolfpack.chars(newitem.pos.x, newitem.pos.y, newitem.pos.map)
! if len(chars) > 0 :
! for affected in chars:
! if affected.pos.z >= newitem.pos.z - 10 and affected.pos.z <= newitem.pos.z + 10:
! newitem.callevent(EVENT_COLLIDE, (affected, newitem))
duration = int((4 + char.skill[ MAGERY ] * 0.05) * 1000)
Index: circle5.py
===================================================================
RCS file: /cvsroot/wpdev/xmlscripts/scripts/magic/circle5.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** circle5.py 8 Jun 2004 20:05:19 -0000 1.9
--- circle5.py 18 Jul 2004 09:39:52 -0000 1.10
***************
*** 296,300 ****
newitem = wolfpack.newitem(1)
newitem.id = itemid
! newitem.direction = 29
newitem.moveto(pos)
newitem.decay = 0 # Dont decay. TempEffect will take care of them
--- 296,300 ----
newitem = wolfpack.newitem(1)
newitem.id = itemid
! #newitem.direction = 29
newitem.moveto(pos)
newitem.decay = 0 # Dont decay. TempEffect will take care of them
|