*/
void reset_visuals(void)
{
- int i;
+ int i, j;
/* Extract some info about terrain features */
for (i = 0; i < max_f_idx; i++)
feature_type *f_ptr = &f_info[i];
/* Assume we will use the underlying values */
- f_ptr->x_attr = f_ptr->d_attr;
- f_ptr->x_char = f_ptr->d_char;
+ for (j = 0; j < F_LIT_MAX; j++)
+ {
+ f_ptr->x_attr[j] = f_ptr->d_attr[j];
+ f_ptr->x_char[j] = f_ptr->d_char[j];
+ }
}
/* Extract default attr/char code for objects */
/*
- * Hack -- describe an item currently in a store's inventory
- * This allows an item to *look* like the player is "aware" of it
- */
-void object_desc_store(char *buf, object_type *o_ptr, int pref, int mode)
-{
- /* Save the "aware" flag */
- bool hack_aware = object_aware_p(o_ptr);
-
- /* Save the "known" flag */
- bool hack_known = (o_ptr->ident & (IDENT_KNOWN)) ? TRUE : FALSE;
-
-
- /* Set the "known" flag */
- o_ptr->ident |= (IDENT_KNOWN);
-
- /* Force "aware" for description */
- k_info[o_ptr->k_idx].aware = TRUE;
-
-
- /* Describe the object */
- object_desc(buf, o_ptr, pref, mode);
-
-
- /* Restore "aware" flag */
- k_info[o_ptr->k_idx].aware = hack_aware;
-
- /* Clear the known flag */
- if (!hack_known) o_ptr->ident &= ~(IDENT_KNOWN);
-}
-
-
-
-
-/*
* Determine the "Activation" (if any) for an artifact
* Return a string, or NULL for "no activation"
*/
char o_name[MAX_NLEN];
int wid, hgt;
+ int trivial_info = 0;
+
/* Extract the flags */
object_flags(o_ptr, flgs);
{ info[i] = &temp[j]; i++;}
}
+ if (TV_EQUIP_BEGIN <= o_ptr->tval && o_ptr->tval <= TV_EQUIP_END)
+ {
+ /* Descriptions of a basic equipment is just a flavor */
+ trivial_info = i;
+ }
+
/* Mega-Hack -- describe activation */
if (have_flag(flgs, TR_ACTIVATE))
{
info[i++] = "It is made for use while riding.";
#endif
else
+ {
#ifdef JP
-info[i++] = "¤½¤ì¤Ï¾èÇÏÃæ¤Ç¤â»È¤¤¤ä¤¹¤¤¡£";
+ info[i++] = "¤½¤ì¤Ï¾èÇÏÃæ¤Ç¤â»È¤¤¤ä¤¹¤¤¡£";
#else
info[i++] = "It is suitable for use while riding.";
#endif
-
+ /* This information is not important enough */
+ trivial_info++;
+ }
}
if (have_flag(flgs, TR_STR))
{
info[i++] = "It is cursed.";
#endif
+ /*
+ * It's a trivial infomation since there is
+ * fake inscription {cursed}
+ */
+ trivial_info++;
}
}
}
}
- /* No special effects */
- if (!i) return (FALSE);
+ /* No relevant informations */
+ if (i <= trivial_info) return (FALSE);
/* Save the screen */
screen_save();
/* Display Item name */
if (real)
- object_desc(o_name, o_ptr, TRUE, 3);
+ object_desc(o_name, o_ptr, 0);
else
- object_desc_store(o_name, o_ptr, TRUE, 0);
+ object_desc(o_name, o_ptr, (OD_NAME_ONLY | OD_STORE));
prt(o_name, 0, 0);
Term_putstr(0, i, 3, TERM_WHITE, tmp_val);
/* Obtain an item description */
- object_desc(o_name, o_ptr, TRUE, 3);
+ object_desc(o_name, o_ptr, 0);
/* Obtain the length of the description */
n = strlen(o_name);
}
else
{
- object_desc(o_name, o_ptr, TRUE, 3);
+ object_desc(o_name, o_ptr, 0);
attr = tval_to_attr[o_ptr->tval % 128];
}
if (!item_tester_okay(o_ptr)) continue;
/* Describe the object */
- object_desc(o_name, o_ptr, TRUE, 3);
+ object_desc(o_name, o_ptr, 0);
/* Save the object index, color, and description */
out_index[k] = i;
if (!item_tester_okay(o_ptr) && (!((i == INVEN_LARM) && p_ptr->ryoute) || item_tester_no_ryoute)) continue;
/* Description */
- object_desc(o_name, o_ptr, TRUE, 3);
+ object_desc(o_name, o_ptr, 0);
if ((i == INVEN_LARM) && p_ptr->ryoute)
{
}
/* Describe */
- object_desc(o_name, o_ptr, TRUE, 3);
+ object_desc(o_name, o_ptr, 0);
/* Prompt */
#ifdef JP
o_ptr = &o_list[floor_list[i]];
/* Describe the object */
- object_desc(o_name, o_ptr, TRUE, 3);
+ object_desc(o_name, o_ptr, 0);
/* Save the index */
out_index[k] = i;
*
* This is called by py_pickup() when easy_floor is TRUE.
*/
-void py_pickup_floor(int pickup)
+void py_pickup_floor(bool pickup)
{
s16b this_o_idx, next_o_idx = 0;
o_ptr = &o_list[this_o_idx];
/* Describe the object */
- object_desc(o_name, o_ptr, TRUE, 3);
+ object_desc(o_name, o_ptr, 0);
/* Access the next object */
next_o_idx = o_ptr->next_o_idx;
#endif /* ALLOW_EASY_SENSE */
/* Describe the object */
- object_desc(o_name, o_ptr, TRUE, 3);
+ object_desc(o_name, o_ptr, 0);
/* Message */
#ifdef JP
#endif /* ALLOW_EASY_SENSE */
/* Describe the object */
- object_desc(o_name, o_ptr, TRUE, 3);
+ object_desc(o_name, o_ptr, 0);
/* Message */
#ifdef JP
#endif /* ALLOW_EASY_SENSE */
/* Describe the object */
- object_desc(o_name, o_ptr, TRUE, 3);
+ object_desc(o_name, o_ptr, 0);
/* Build a prompt */
#ifdef JP