OSDN Git Service

[Refactor] #3529 pval_info_type をParameterValueInfo に改名した
authorHourier <66951241+Hourier@users.noreply.github.com>
Sun, 9 Jul 2023 10:10:20 +0000 (19:10 +0900)
committerHourier <66951241+Hourier@users.noreply.github.com>
Tue, 11 Jul 2023 11:43:34 +0000 (20:43 +0900)
src/wizard/artifact-analyzer.cpp
src/wizard/spoiler-util.h

index f0326cb..154d48d 100644 (file)
@@ -82,7 +82,7 @@ static std::string analyze_general(PlayerType *player_ptr, ItemEntity *o_ptr)
  * @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;
index 7b60564..c74a26a 100644 (file)
@@ -19,9 +19,9 @@ enum class SpoilerOutputResultType {
     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. */
 
@@ -31,7 +31,7 @@ struct pval_info_type {
 
 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 */