[wpdev-commits] xmlscripts/scripts/weapons blades.py,1.8,1.9
Brought to you by:
rip,
thiagocorrea
|
From: <dr...@us...> - 2004-01-14 13:07:01
|
Update of /cvsroot/wpdev/xmlscripts/scripts/weapons In directory sc8-pr-cvs1:/tmp/cvs-serv23374 Modified Files: blades.py Log Message: Not all bladed weapons should get logs from a tree, only the axe types. Normal blades get kindling. The war axe is allowed to get logs. The scythe can get logs. :) Index: blades.py =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/scripts/weapons/blades.py,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** blades.py 12 Feb 2003 14:37:23 -0000 1.8 --- blades.py 14 Jan 2004 13:06:47 -0000 1.9 *************** *** 16,20 **** import weapons.blades ! # List of Blood IDs blood = [ "122a", "122b", "122d", "122f" ] trees = [] --- 16,20 ---- import weapons.blades ! # Lists of IDs blood = [ "122a", "122b", "122d", "122f" ] trees = [] *************** *** 87,94 **** return ! # This depends on the Weapon Type, 1001 (=Swords) and 1002 (=Axes) can hack logs ! if item.type == 1001 or item.type == 1002: hack_logs( char, target.pos ) ! else: hack_kindling( char, target.pos ) --- 87,96 ---- return ! # Axes/Polearms get Logs, Swords get kindling. ! # Also allows a mace's war axe to be use. 0x13af and 0x13b0 ! if item.type == 1002 or item.id == 0x13af or item.id == 0x13b0: hack_logs( char, target.pos ) ! # Swords and Fencing Weapons: Get kindling ! elif item.type == 1001 or item.type == 1005: hack_kindling( char, target.pos ) |