[wpdev-commits] xmlscripts/scripts equipment.py,1.1,1.2
Brought to you by:
rip,
thiagocorrea
|
From: <dar...@us...> - 2003-08-27 21:04:56
|
Update of /cvsroot/wpdev/xmlscripts/scripts In directory sc8-pr-cvs1:/tmp/cvs-serv3774/scripts Modified Files: equipment.py Log Message: moved some properties from cItem to python Index: equipment.py =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/scripts/equipment.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** equipment.py 27 Aug 2003 20:55:05 -0000 1.1 --- equipment.py 27 Aug 2003 21:04:53 -0000 1.2 *************** *** 4,27 **** if item.hastag( 'req_str' ) and wearer.strength < int( item.gettag( 'req_str' ) ): if player != wearer: ! player.message( 'This person seems too weak to wear that.' ) return 1 else: ! player.message( 'You are too weak to wear that.' ) return 1 if item.hastag( 'req_dex' ) and wearer.dexterity < int( item.gettag( 'req_dex' ) ): if player != wearer: ! player.message( 'This person seems too clumsy to wear that.' ) return 1 else: ! player.message( 'You are too clumsy to wear that.' ) return 1 if item.hastag( 'req_int' ) and wearer.intelligence < int( item.gettag( 'req_int' ) ): if player != wearer: ! player.message( 'This person seems too dumb to wear that.' ) return 1 else: ! player.message( 'You are too dumb to wear that.' ) return 1 --- 4,27 ---- if item.hastag( 'req_str' ) and wearer.strength < int( item.gettag( 'req_str' ) ): if player != wearer: ! player.message( 'This person can\'t wear that item, seems not strong enough.' ) return 1 else: ! player.message( 'You cannot wear that item, you seem not strong enough.' ) return 1 if item.hastag( 'req_dex' ) and wearer.dexterity < int( item.gettag( 'req_dex' ) ): if player != wearer: ! player.message( 'This person can\'t wear that item, seems not agile enough.' ) return 1 else: ! player.message( 'You cannot wear that item, you seem not agile enough.' ) return 1 if item.hastag( 'req_int' ) and wearer.intelligence < int( item.gettag( 'req_int' ) ): if player != wearer: ! player.message( 'This person can\'t wear that item, seems not smart enough.' ) return 1 else: ! player.message( 'You cannot wear that item, you seem not smart enough.' ) return 1 |