3 #include "system/angband.h"
4 #include "system/object-type-definition.h"
7 * @struct artifact_type
8 * @brief 固定アーティファクト情報の構造体 / Artifact structure.
11 * the save-file only writes "cur_num" to the savefile.
12 * "max_num" is always "1" (if that artifact "exists")
14 typedef struct artifact_type {
15 STR_OFFSET name; /*!< アーティファクト名(headerオフセット参照) / Name (offset) */
16 STR_OFFSET text; /*!< アーティファクト解説(headerオフセット参照) / Text (offset) */
17 tval_type tval; /*!< ベースアイテム大項目ID / Artifact type */
18 OBJECT_SUBTYPE_VALUE sval; /*!< ベースアイテム小項目ID / Artifact sub type */
19 PARAMETER_VALUE pval; /*!< pval修正値 / Artifact extra info */
20 HIT_PROB to_h; /*!< 命中ボーナス値 / Bonus to hit */
21 HIT_POINT to_d; /*!< ダメージボーナス値 / Bonus to damage */
22 ARMOUR_CLASS to_a; /*!< ACボーナス値 / Bonus to armor */
23 ARMOUR_CLASS ac; /*!< 上書きベースAC値 / Base armor */
25 DICE_SID ds; /*!< ダイス値 / Damage when hits */
26 WEIGHT weight; /*!< 重量 / Weight */
27 PRICE cost; /*!< 基本価格 / Artifact "cost" */
28 BIT_FLAGS flags[TR_FLAG_SIZE]; /*! アイテムフラグ / Artifact Flags */
29 BIT_FLAGS gen_flags; /*! アイテム生成フラグ / flags for generate */
30 DEPTH level; /*! 基本生成階 / Artifact level */
31 RARITY rarity; /*! レアリティ / Artifact rarity */
32 byte cur_num; /*! 現在の生成数 / Number created (0 or 1) */
33 byte max_num; /*! (未使用)最大生成数 / Unused (should be "1") */
34 FLOOR_IDX floor_id; /*! アイテムを落としたフロアのID / Leaved on this location last time */
35 byte act_idx; /*! 発動能力ID / Activative ability index */
38 extern artifact_type *a_info;
41 extern ARTIFACT_IDX max_a_idx;