[wpdev-commits] xmlscripts/scripts equipment.py,1.2,1.3
Brought to you by:
rip,
thiagocorrea
|
From: <dar...@us...> - 2003-09-14 21:41:40
|
Update of /cvsroot/wpdev/xmlscripts/scripts In directory sc8-pr-cvs1:/tmp/cvs-serv1527 Modified Files: equipment.py Log Message: Index: equipment.py =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/scripts/equipment.py,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** equipment.py 27 Aug 2003 21:04:53 -0000 1.2 --- equipment.py 14 Sep 2003 21:41:36 -0000 1.3 *************** *** 30,65 **** def onEquip( char, item, layer ): # Boni? - changed = 0 - if item.hastag( 'boni_str' ): char.strength = char.strength + int( item.gettag( 'boni_str' ) ) - changed = 1 if item.hastag( 'boni_dex' ): char.dexterity = char.dexterity + int( item.gettag( 'boni_dex' ) ) - changed = 1 if item.hastag( 'boni_int' ): char.intelligence = char.intelligence + int( item.gettag( 'boni_int' ) ) - changed = 1 - - if changed and char.socket: - char.socket.resendstatus() def onUnequip( char, item, layer ): - changed = 0 - if item.hastag( 'boni_str' ): char.strength = char.strength - int( item.gettag( 'boni_str' ) ) - changed = 1 if item.hastag( 'boni_dex' ): char.dexterity = char.dexterity - int( item.gettag( 'boni_dex' ) ) - changed = 1 if item.hastag( 'boni_int' ): char.intelligence = char.intelligence - int( item.gettag( 'boni_int' ) ) - changed = 1 - - if changed and char.socket: - char.socket.resendstatus() --- 30,49 ---- |