- SUB_EXP weapon_max = s_info[enum2i(player_ptr->pclass)].w_max[tval][num];
- strip_name(tmp, k_ref.idx);
- fprintf(fff, "%-25s ", tmp);
- if (show_actual_value)
- fprintf(fff, "%4d/%4d ", std::min(weapon_exp, weapon_max), weapon_max);
- if (weapon_exp >= weapon_max)
+ SUB_EXP weapon_max = player_ptr->weapon_exp_max[tval][num];
+ const auto tmp = strip_name(k_ref.idx);
+ fprintf(fff, "%-25s ", tmp.data());
+ if (show_actual_value) {
+ fprintf(fff, "%4d/%4d ", weapon_exp, weapon_max);
+ }
+ if (weapon_exp >= weapon_max) {