OSDN Git Service

[Refactor] 無駄な空白、改行の削除、includeのソート
[hengband/hengband.git] / src / wizard / items-spoiler.c
index 55de1be..3f88e76 100644 (file)
@@ -7,8 +7,8 @@
 #include "object/object-generator.h"
 #include "object/object-kind.h"
 #include "object/object-value.h"
-#include "system/object-type-definition.h"
 #include "system/angband-version.h"
+#include "system/object-type-definition.h"
 #include "util/angband-files.h"
 #include "view/display-messages.h"
 #include "wizard/spoiler-util.h"
@@ -99,7 +99,9 @@ void spoil_obj_desc(player_type *player_ptr, concptr fname)
         return;
     }
 
-    fprintf(spoiler_file, "Spoiler File -- Basic Items (Bakabakaband %d.%d.%d.%d)\n\n\n", FAKE_VER_MAJOR - 10, FAKE_VER_MINOR, FAKE_VER_PATCH, FAKE_VER_EXTRA);
+    char title[200];
+    put_version(title);
+    fprintf(spoiler_file, "Spoiler File -- Basic Items (%s)\n\n\n", title);
     fprintf(spoiler_file, "%-37s%8s%7s%5s %40s%9s\n", "Description", "Dam/AC", "Wgt", "Lev", "Chance", "Cost");
     fprintf(spoiler_file, "%-37s%8s%7s%5s %40s%9s\n", "-------------------------------------", "------", "---", "---", "----------------", "----");
     int n = 0;
@@ -165,4 +167,4 @@ void spoil_obj_desc(player_type *player_ptr, concptr fname)
     }
 
     msg_print("Successfully created a spoiler file.");
-}
+}
\ No newline at end of file