[wpdev-commits] xmlscripts/scripts potions.py,1.55,1.56
Brought to you by:
rip,
thiagocorrea
From: Sebastian H. <dar...@us...> - 2004-09-30 15:57:41
|
Update of /cvsroot/wpdev/xmlscripts/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25945 Modified Files: potions.py Log Message: nightsight changes Index: potions.py =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/scripts/potions.py,v retrieving revision 1.55 retrieving revision 1.56 diff -C2 -d -r1.55 -r1.56 *** potions.py 29 Sep 2004 10:42:47 -0000 1.55 --- potions.py 30 Sep 2004 15:57:31 -0000 1.56 *************** *** 362,365 **** --- 362,366 ---- def nightsightPotion( char, potion ): socket = char.socket + # Remove an old bonus if char.hastag('nightsight'): *************** *** 367,376 **** char.lightbonus = max(0, char.lightbonus - bonus) ! # With 100% magery you gain a 18 light level bonus ! bonus = min(18, math.floor(18 * (char.skill[MAGERY] / 1000.0))) ! char.addscript( 'magic.nightsight' ) ! char.settag( 'nightsight', bonus) ! char.settag( 'nightsight_start', wolfpack.time.minutes()) char.lightbonus += bonus --- 368,377 ---- char.lightbonus = max(0, char.lightbonus - bonus) ! # With 100% magery you gain a 18 light level bonus (min. 5) ! bonus = max(6, min(18, math.floor(18 * (char.skill[MAGERY] / 1000.0)))) ! char.addscript('magic.nightsight') ! char.settag('nightsight', bonus) ! char.settag('nightsight_start', wolfpack.time.minutes()) char.lightbonus += bonus *************** *** 378,381 **** --- 379,383 ---- socket.updatelightlevel() + char.action(ANIM_FIDGET3) char.soundeffect(0x1e3) char.effect(0x376a, 9, 32) |