* @param o_ptr オブジェクト構造体の参照ポインタ
* @param pi_ptr pval修正構造体の参照ポインタ
*/
-static void analyze_pval(ItemEntity *o_ptr, pval_info_type *pi_ptr)
+static void analyze_pval(ItemEntity *o_ptr, ParameterValueInfo *pi_ptr)
{
if (!o_ptr->pval) {
return;
FILE_CLOSE_FAILED,
};
-/* A special type used just for deailing with pvals */
-struct pval_info_type {
- pval_info_type() = default;
+class ParameterValueInfo {
+public:
+ ParameterValueInfo() = default;
std::string pval_desc = ""; /* This will contain a string such as "+2", "-10", etc. */
struct obj_desc_list {
char description[MAX_NLEN]{}; /* "The Longsword Dragonsmiter (6d4) (+20, +25)" */
- pval_info_type pval_info{}; /* Description of what is affected by an object's pval */
+ ParameterValueInfo pval_info{}; /* Description of what is affected by an object's pval */
concptr slays[N_ELEMENTS(slay_flags_desc) + 1]{}; /* A list of an object's slaying preferences */
concptr brands[N_ELEMENTS(brand_flags_desc) + 1]{}; /* A list if an object's elemental brands */
concptr immunities[N_ELEMENTS(immune_flags_desc) + 1]{}; /* A list of immunities granted by an object */