Cover a couple of corner cases with rust_dmg().

This commit is contained in:
Sean Hunt
2015-03-02 12:36:33 -05:00
parent 9c4b0113aa
commit d588210a77
4 changed files with 96 additions and 54 deletions

View File

@@ -2204,7 +2204,7 @@ E coord *FDECL(gettrack, (int,int));
E boolean FDECL(burnarmor,(struct monst *));
E boolean FDECL(rust_dmg, (struct obj *,const char *,int,BOOLEAN_P));
E void FDECL(grease_protect, (struct obj *,const char *,struct monst *));
E boolean FDECL(grease_protect, (struct obj *,const char *,struct monst *));
E struct trap *FDECL(maketrap, (int,int,int));
E void FDECL(fall_through, (BOOLEAN_P));
E struct monst *FDECL(animate_statue, (struct obj *,XCHAR_P,XCHAR_P,int,int *));

View File

@@ -319,6 +319,12 @@ struct obj {
#define CONTAINED_TOO 0x1
#define BURIED_TOO 0x2
/* object erosion types */
#define ERODE_BURN 0
#define ERODE_RUST 1
#define ERODE_ROT 2
#define ERODE_CORRODE 3
/*
* Notes for adding new oextra structures:
*