Hengband  2.1.4
フィールド
object_kind 構造体

ベースアイテム情報の構造体 / Information about object "kinds", including player knowledge. [詳解]

#include <types.h>

フィールド

u32b name
 ベースアイテム名参照のためのネームバッファオフセット値 / Name (offset) [詳解]
 
u32b text
 解説テキスト参照のためのネームバッファオフセット値 / Text (offset) [詳解]
 
u32b flavor_name
 未確定名参照のためのネームバッファオフセット値 / Flavor name (offset) [詳解]
 
byte tval
 ベースアイテム種別の大項目値 Object type [詳解]
 
byte sval
 ベースアイテム種別の小項目値 Object sub type [詳解]
 
s16b pval
 ベースアイテムのpval(能力修正共通値) Object extra info [詳解]
 
s16b to_h
 ベースアイテムの命中修正値 / Bonus to hit [詳解]
 
s16b to_d
 ベースアイテムのダメージ修正値 / Bonus to damage [詳解]
 
s16b to_a
 ベースアイテムのAC修正値 / Bonus to armor [詳解]
 
s16b ac
 ベースアイテムのAC基本値 / Base armor [詳解]
 
byte dd
 
byte ds
 ダメージダイスの数と大きさ / Damage dice/sides [詳解]
 
s16b weight
 ベースアイテムの重量 / Weight [詳解]
 
s32b cost
 ベースアイテムの基本価値 / Object "base cost" [詳解]
 
u32b flags [TR_FLAG_SIZE]
 ベースアイテムの基本特性ビット配列 / Flags [詳解]
 
u32b gen_flags
 ベースアイテムの生成特性ビット配列 / flags for generate [詳解]
 
byte locale [4]
 ベースアイテムの生成階テーブル / Allocation level(s) [詳解]
 
byte chance [4]
 ベースアイテムの生成確率テーブル / Allocation chance(s) [詳解]
 
byte level
 ベースアイテムの基本生成階 / Level [詳解]
 
byte extra
 その他色々のビットフラグ配列 / Something [詳解]
 
byte d_attr
 デフォルトのアイテムシンボルカラー / Default object attribute [詳解]
 
byte d_char
 デフォルトのアイテムシンボルアルファベット / Default object character [詳解]
 
byte x_attr
 設定変更後のアイテムシンボルカラー / Desired object attribute [詳解]
 
byte x_char
 設定変更後のアイテムシンボルアルファベット / Desired object character [詳解]
 
s16b flavor
 調査中(TODO) / Special object flavor (or zero) [詳解]
 
bool easy_know
 ベースアイテムが初期からベース名を判断可能かどうか / This object is always known (if aware) [詳解]
 
bool aware
 ベースアイテムが鑑定済かどうか / The player is "aware" of the item's effects [詳解]
 
bool tried
 ベースアイテムを未鑑定のまま試したことがあるか / The player has "tried" one of the items [詳解]
 
byte act_idx
 発動能力のID / Activative ability index [詳解]
 

詳解

ベースアイテム情報の構造体 / Information about object "kinds", including player knowledge.

ゲーム進行用のセーブファイル上では aware と tried のみ保存対象とすること。と英文ではあるが実際はもっとある様子である。 / Only "aware" and "tried" are saved in the savefile

フィールド詳解

◆ ac

s16b ac

ベースアイテムのAC基本値 / Base armor

◆ act_idx

byte act_idx

発動能力のID / Activative ability index

◆ aware

bool aware

ベースアイテムが鑑定済かどうか / The player is "aware" of the item's effects

◆ chance

byte chance[4]

ベースアイテムの生成確率テーブル / Allocation chance(s)

◆ cost

s32b cost

ベースアイテムの基本価値 / Object "base cost"

◆ d_attr

byte d_attr

デフォルトのアイテムシンボルカラー / Default object attribute

◆ d_char

byte d_char

デフォルトのアイテムシンボルアルファベット / Default object character

◆ dd

byte dd

◆ ds

byte ds

ダメージダイスの数と大きさ / Damage dice/sides

◆ easy_know

bool easy_know

ベースアイテムが初期からベース名を判断可能かどうか / This object is always known (if aware)

◆ extra

byte extra

その他色々のビットフラグ配列 / Something

◆ flags

ベースアイテムの基本特性ビット配列 / Flags

◆ flavor

s16b flavor

調査中(TODO) / Special object flavor (or zero)

◆ flavor_name

u32b flavor_name

未確定名参照のためのネームバッファオフセット値 / Flavor name (offset)

◆ gen_flags

u32b gen_flags

ベースアイテムの生成特性ビット配列 / flags for generate

◆ level

byte level

ベースアイテムの基本生成階 / Level

◆ locale

byte locale[4]

ベースアイテムの生成階テーブル / Allocation level(s)

◆ name

u32b name

ベースアイテム名参照のためのネームバッファオフセット値 / Name (offset)

◆ pval

s16b pval

ベースアイテムのpval(能力修正共通値) Object extra info

◆ sval

byte sval

ベースアイテム種別の小項目値 Object sub type

◆ text

u32b text

解説テキスト参照のためのネームバッファオフセット値 / Text (offset)

◆ to_a

s16b to_a

ベースアイテムのAC修正値 / Bonus to armor

◆ to_d

s16b to_d

ベースアイテムのダメージ修正値 / Bonus to damage

◆ to_h

s16b to_h

ベースアイテムの命中修正値 / Bonus to hit

◆ tried

bool tried

ベースアイテムを未鑑定のまま試したことがあるか / The player has "tried" one of the items

◆ tval

byte tval

ベースアイテム種別の大項目値 Object type

◆ weight

s16b weight

ベースアイテムの重量 / Weight

◆ x_attr

byte x_attr

設定変更後のアイテムシンボルカラー / Desired object attribute

◆ x_char

byte x_char

設定変更後のアイテムシンボルアルファベット / Desired object character


この構造体詳解は次のファイルから抽出されました: