Update of /cvsroot/wpdev/xmlscripts/scripts/wolfpack
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6582/wolfpack
Modified Files:
consts.py properties.py
Log Message:
more detailed arms lore skill
Index: consts.py
===================================================================
RCS file: /cvsroot/wpdev/xmlscripts/scripts/wolfpack/consts.py,v
retrieving revision 1.68
retrieving revision 1.69
diff -C2 -d -r1.68 -r1.69
*** consts.py 2 Jun 2004 15:03:05 -0000 1.68
--- consts.py 22 Jun 2004 12:05:28 -0000 1.69
***************
*** 75,78 ****
--- 75,82 ----
ITEM_RANGED = 5 # Ranged weapon
+ ITEM_PIERCING = 6 # fencing : type 1005
+ ITEM_SLASHING = 7 # sword : type 1001, 1002
+ ITEM_BASHING = 8 # mace : type 1003, 1004
+
# Money Resource Types
GOLD_COIN = 0xeed
Index: properties.py
===================================================================
RCS file: /cvsroot/wpdev/xmlscripts/scripts/wolfpack/properties.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** properties.py 30 May 2004 13:22:41 -0000 1.3
--- properties.py 22 Jun 2004 12:05:29 -0000 1.4
***************
*** 271,273 ****
--- 271,281 ----
return item.type == 1006 or item.type == 1007
+ # Check weapon combat skill : only type check
+ if check == ITEM_SLASHING:
+ return item.type == 1001 or item.type == 1002
+ if check == ITEM_BASHING:
+ return item.type == 1003 or item.type == 1004
+ if check == ITEM_PIERCING:
+ return item.type == 1005
+
return 0
|