int upkeep_factor = 0;
cave_type *c_ptr;
object_type *o_ptr;
- u32b f1 = 0 , f2 = 0 , f3 = 0;
int temp;
object_kind *k_ptr;
const int dec_count = (easy_band ? 2 : 1);
/*
- * Hack -- determine if an item is "wearable" (or a missile)
- */
-static bool wearable_p(object_type *o_ptr)
-{
- /* Valid "tval" codes */
- switch (o_ptr->tval)
- {
- case TV_SHOT:
- case TV_ARROW:
- case TV_BOLT:
- case TV_BOW:
- case TV_DIGGING:
- case TV_HAFTED:
- case TV_POLEARM:
- case TV_SWORD:
- case TV_BOOTS:
- case TV_GLOVES:
- case TV_HELM:
- case TV_CROWN:
- case TV_SHIELD:
- case TV_CLOAK:
- case TV_SOFT_ARMOR:
- case TV_HARD_ARMOR:
- case TV_DRAG_ARMOR:
- case TV_LITE:
- case TV_AMULET:
- case TV_RING:
- case TV_CAPTURE:
- case TV_CARD:
- {
- return (TRUE);
- }
- }
-
- /* Nope */
- return (FALSE);
-}
-
-
-/*
* The following functions are used to load the basic building blocks
* of savefiles. They also maintain the "checksum" info for 2.7.0+
*/
*/
static void rd_item(object_type *o_ptr)
{
- u32b f1, f2, f3;
-
char buf[128];
static void spoil_mon_info(cptr fname)
{
char buf[1024];
- int msex, vn, i, j, k, l, n=0;
- bool breath, magic, sin;
- cptr p, q;
- cptr vp[64];
+ int msex, i, l, n=0;
+ bool breath, magic;
u32b flags1, flags2, flags3, flags4, flags5, flags6, flags7;
u16b why = 2;
s16b *who;
-
-#ifdef JP
- char jverb_buf[64];
-#endif
/* Build the filename */
path_build(buf, 1024, ANGBAND_DIR_USER, fname);