*/
static void shuffle_flavors(byte tval)
{
- s16b *k_idx_list;
- int k_idx_list_num = 0;
+ IDX *k_idx_list;
+ IDX k_idx_list_num = 0;
int i;
/* Allocate an array for a list of k_idx */
/* Assume no "modifier" string */
cptr modstr = "";
- int power;
- int fire_rate;
+ int power;
+ int fire_rate;
bool aware = FALSE;
bool known = FALSE;
if (*str)
{
/* Find the '#' */
- cptr str = my_strchr(quark_str(o_ptr->inscription), '#');
+ cptr str_aux = my_strchr(quark_str(o_ptr->inscription), '#');
/* Add the false name */
t = object_desc_str(t,"『");
- t = object_desc_str(t, &str[1]);
+ t = object_desc_str(t, &str_aux[1]);
t = object_desc_str(t,"』");
}
}
if(show_ammo_crit_ratio)
{
- int percent = calc_crit_ratio_shot(o_ptr->weight,
- known ? o_ptr->to_h : 0,
- object_is_known(bow_ptr) ? bow_ptr->to_h : 0, avgdam);
+ int percent = calc_crit_ratio_shot(known ? o_ptr->to_h : 0, known ? bow_ptr->to_h : 0);
t = object_desc_chr(t, '/');
t = object_desc_num(t, percent / 100);