OSDN Git Service

[Refactor] #37353 game_inscriptions を object-flavor.c/h へ移動.
authordeskull <deskull@users.sourceforge.jp>
Thu, 9 May 2019 10:11:25 +0000 (19:11 +0900)
committerdeskull <deskull@users.sourceforge.jp>
Thu, 9 May 2019 10:11:25 +0000 (19:11 +0900)
src/externs.h
src/object-flavor.c
src/object-flavor.h
src/tables.c

index 7eb04de..dbade25 100644 (file)
@@ -55,14 +55,11 @@ extern const concptr stat_names[6];
 extern const concptr stat_names_reduced[6];
 extern const concptr window_flag_desc[32];
 
-extern const concptr game_inscriptions[];
-
 extern const concptr ident_info[];
 extern const byte feature_action_flags[FF_FLAG_MAX];
 
 /* variable.c */
 
-
 extern bool character_generated;
 extern bool character_dungeon;
 extern bool character_loaded;
index 94885cb..c2c8671 100644 (file)
 #include "monsterrace.h"
 #include "object-ego.h"
 
+ /*!
+  * @brief アイテムの価値記述テーブル /
+  * Table of game-generated inscriptions (indexed by the defines in defines.h). -- RG
+  */
+const concptr game_inscriptions[] =
+{
+       NULL,            /* FEEL_NONE */
+#ifdef JP
+       "壊れている",    /* FEEL_BROKEN */
+       "恐ろしい",      /* FEEL_TERRIBLE */
+       "無価値",        /* FEEL_WORTHLESS */
+       "呪われている",  /* FEEL_CURSED */
+       "上質以上",      /* FEEL_UNCURSED */
+       "並",            /* FEEL_AVERAGE */
+       "上質",          /* FEEL_GOOD */
+       "高級品",        /* FEEL_EXCELLENT */
+       "特別製",        /* FEEL_SPECIAL */
+#else
+       "broken",        /* FEEL_BROKEN */
+       "terrible",      /* FEEL_TERRIBLE */
+       "worthless",     /* FEEL_WORTHLESS */
+       "cursed",        /* FEEL_CURSED */
+       "uncursed",      /* FEEL_UNCURSED */
+       "average",       /* FEEL_AVERAGE */
+       "good",          /* FEEL_GOOD */
+       "excellent",     /* FEEL_EXCELLENT */
+       "special",       /* FEEL_SPECIAL */
+#endif
+
+};
+
+
 /*!
  * @brief 最初から簡易な名称が明らかになるベースアイテムの判定。 /  Certain items, if aware, are known instantly 
  * @param i ベースアイテムID
index 52d7570..797c606 100644 (file)
@@ -13,6 +13,8 @@ extern char *object_desc_kosuu(char *t, object_type *o_ptr);
 extern void object_desc(char *buf, object_type *o_ptr, BIT_FLAGS mode);
 extern void strip_name(char *buf, KIND_OBJECT_IDX k_idx);
 
+extern const concptr game_inscriptions[];
+
 /*
  * Bit flags for object_desc()
  */
index a8ddabb..4cedfb2 100644 (file)
@@ -1166,36 +1166,6 @@ const concptr window_flag_desc[32] =
 };
 
 
-/*!
- * @brief アイテムの価値記述テーブル /
- * Table of game-generated inscriptions (indexed by the defines in defines.h). -- RG
- */
-const concptr game_inscriptions[] =
-{
-       NULL,            /* FEEL_NONE */
-#ifdef JP
-       "壊れている",    /* FEEL_BROKEN */
-       "恐ろしい",      /* FEEL_TERRIBLE */
-       "無価値",        /* FEEL_WORTHLESS */
-       "呪われている",  /* FEEL_CURSED */
-       "上質以上",      /* FEEL_UNCURSED */
-       "並",            /* FEEL_AVERAGE */
-       "上質",          /* FEEL_GOOD */
-       "高級品",        /* FEEL_EXCELLENT */
-       "特別製",        /* FEEL_SPECIAL */
-#else
-       "broken",        /* FEEL_BROKEN */
-       "terrible",      /* FEEL_TERRIBLE */
-       "worthless",     /* FEEL_WORTHLESS */
-       "cursed",        /* FEEL_CURSED */
-       "uncursed",      /* FEEL_UNCURSED */
-       "average",       /* FEEL_AVERAGE */
-       "good",          /* FEEL_GOOD */
-       "excellent",     /* FEEL_EXCELLENT */
-       "special",       /* FEEL_SPECIAL */
-#endif
-
-};
 
 /*!
  * @brief シンボル解説テーブル /