[wpdev-commits] xmlscripts/scripts potions.py,1.53,1.54
Brought to you by:
rip,
thiagocorrea
From: Sebastian H. <dar...@us...> - 2004-09-28 21:47:58
|
Update of /cvsroot/wpdev/xmlscripts/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23019 Modified Files: potions.py Log Message: lootlist fix Index: potions.py =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/scripts/potions.py,v retrieving revision 1.53 retrieving revision 1.54 diff -C2 -d -r1.53 -r1.54 *** potions.py 23 Sep 2004 22:24:47 -0000 1.53 --- potions.py 28 Sep 2004 21:47:50 -0000 1.54 *************** *** 406,414 **** elapsed = int( char.gettag( "heal_pot_timer" ) ) if elapsed > wolfpack.time.currenttime(): ! socket.clilocmessage( 500235 ) # You must wait 10 seconds before using another healing potion. ! return False ! else: ! char.settag( "heal_pot_timer", (wolfpack.time.currenttime() + HEAL_POT_DELAY) ) amount = 0 --- 406,417 ---- 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 |