[wpdev-commits] xmlscripts/scripts potions.py,1.54,1.55
Brought to you by:
rip,
thiagocorrea
From: Sebastian H. <dar...@us...> - 2004-09-29 10:43:02
|
Update of /cvsroot/wpdev/xmlscripts/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31609 Modified Files: potions.py Log Message: dyetub and potion fix Index: potions.py =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/scripts/potions.py,v retrieving revision 1.54 retrieving revision 1.55 diff -C2 -d -r1.54 -r1.55 *** potions.py 28 Sep 2004 21:47:50 -0000 1.54 --- potions.py 29 Sep 2004 10:42:47 -0000 1.55 *************** *** 400,417 **** return False - if not char.hastag( "heal_pot_timer" ): - char.settag( "heal_pot_timer", (wolfpack.time.currenttime() + HEAL_POT_DELAY) ) - # Compare ! elapsed = int( char.gettag( "heal_pot_timer" ) ) ! if elapsed > wolfpack.time.currenttime(): ! # Broken Timer ! if wolfpack.time.currenttime() - elapsed > HEAL_POT_DELAY: ! char.deltag('heal_pot_timer') ! else: ! socket.clilocmessage( 500235 ) # You must wait 10 seconds before using another healing potion. ! return False ! char.settag( "heal_pot_timer", wolfpack.time.currenttime() + HEAL_POT_DELAY) amount = 0 --- 400,415 ---- return False # Compare ! if socket.hastag('heal_pot_timer'): ! elapsed = int( socket.gettag( "heal_pot_timer" ) ) ! if elapsed > wolfpack.time.currenttime(): ! # Broken Timer ! if wolfpack.time.currenttime() - elapsed > HEAL_POT_DELAY: ! socket.deltag('heal_pot_timer') ! else: ! socket.clilocmessage( 500235 ) # You must wait 10 seconds before using another healing potion. ! return False ! socket.settag( "heal_pot_timer", wolfpack.time.currenttime() + HEAL_POT_DELAY) amount = 0 |