OSDN Git Service

Merge branch 'master' of git.osdn.net:/gitroot/hengband/hengband
[hengband/hengband.git] / src / birth / history.h
index dcb64b0..4b367a2 100644 (file)
@@ -1,21 +1,17 @@
-
-/*!
-* 生い立ちメッセージテーブル / Forward declare
-*/
-typedef struct hist_type hist_type;
+#include "system/angband.h"
 
 /*!
 * 生い立ちメッセージテーブルの構造体定義 / Player background information
 */
-struct hist_type
-{
+typedef struct hist_type {
        concptr info;                       /*!> メッセージ本文 / Textual History */
 
        byte roll;                          /*!> 確率の重み / Frequency of this entry */
        byte chart;                         /*!> 生い立ちメッセージの流れを示すチャートID / Chart index */
        byte next;                          /*!> 次のチャートID */
        byte bonus;                         /*!> メッセージに伴う社会的地位の変化量(50が基準値) / Social Class Bonus + 50 */
-};
+} hist_type;
+
+#define MAX_BACKGROUNDS 593
 
-struct hist_type;
-extern hist_type bg[];
+extern hist_type bg[MAX_BACKGROUNDS];