[wpdev-commits] xmlscripts/scripts/magic spell.py,1.26,1.27
Brought to you by:
rip,
thiagocorrea
From: Sebastian H. <dar...@us...> - 2004-09-25 12:07:08
|
Update of /cvsroot/wpdev/xmlscripts/scripts/magic In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2092/magic Modified Files: spell.py Log Message: magie Index: spell.py =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/scripts/magic/spell.py,v retrieving revision 1.26 retrieving revision 1.27 diff -C2 -d -r1.26 -r1.27 *** spell.py 23 Sep 2004 01:11:49 -0000 1.26 --- spell.py 25 Sep 2004 12:06:59 -0000 1.27 *************** *** 101,104 **** --- 101,118 ---- # Change this to 0 for AoS behaviour self.castrecovery = 1 * circle + + # + # Show the cast action + # + def docastaction(self, char, mode): + if char.bodytype == BODY_HUMAN and not char.itemonlayer( LAYER_MOUNT ): + char.action(self.castaction) + + # + # Say the mantra + # + def saymantra(self, char, mode): + if self.mantra and mode in [MODE_BOOK, MODE_SCROLL]: + char.say(self.mantra) # *************** *** 138,143 **** char.reveal() ! if self.mantra: ! char.say(self.mantra) # Precasting --- 152,157 ---- char.reveal() ! # Say the mantra ! self.saymantra(char, mode) # Precasting *************** *** 145,150 **** # Show the cast action ! if char.bodytype == BODY_HUMAN and not char.itemonlayer( LAYER_MOUNT ): ! char.action(self.castaction) if item: --- 159,163 ---- # Show the cast action ! self.docastaction(char, mode) if item: |