feature_state state[MAX_FEAT_STATES]; /*!< feature_state テーブル */
byte subtype; /*!< 副特性値 */
- byte power; /*!< 地形強度 */
+ FEAT_POWER power; /*!< 地形強度 */
SYMBOL_COLOR d_attr[F_LIT_MAX]; /*!< デフォルトの地形シンボルカラー / Default feature attribute */
SYMBOL_CODE d_char[F_LIT_MAX]; /*!< デフォルトの地形シンボルアルファベット / Default feature character */
BIT_FLAGS gen_flags; /*!< ベースアイテムの生成特性ビット配列 / flags for generate */
DEPTH locale[4]; /*!< ベースアイテムの生成階テーブル / Allocation level(s) */
- byte chance[4]; /*!< ベースアイテムの生成確率テーブル / Allocation chance(s) */
+ PROB chance[4]; /*!< ベースアイテムの生成確率テーブル / Allocation chance(s) */
DEPTH level; /*!< ベースアイテムの基本生成階 / Level */
- byte extra; /*!< その他色々のビットフラグ配列 / Something */
+ BIT_FLAGS8 extra; /*!< その他色々のビットフラグ配列 / Something */
SYMBOL_COLOR d_attr; /*!< デフォルトのアイテムシンボルカラー / Default object attribute */
SYMBOL_CODE d_char; /*!< デフォルトのアイテムシンボルアルファベット / Default object character */
STR_OFFSET name; /* Name (offset) */
STR_OFFSET text; /* Text (offset) */
- byte slot; /* Standard slot value */
- byte rating; /* Rating boost */
+ INVENTORY_IDX slot; /*!< 装備部位 / Standard slot value */
+ PRICE rating; /*!< ベースアイテムからの価値加速 / Rating boost */
DEPTH level; /* Minimum level */
RARITY rarity; /* Object rarity */
- byte max_to_h; /* Maximum to-hit bonus */
- byte max_to_d; /* Maximum to-dam bonus */
- byte max_to_a; /* Maximum to-ac bonus */
+ HIT_PROB max_to_h; /* Maximum to-hit bonus */
+ HIT_POINT max_to_d; /* Maximum to-dam bonus */
+ ARMOUR_CLASS max_to_a; /* Maximum to-ac bonus */
PARAMETER_VALUE max_pval; /* Maximum pval */
- s32b cost; /* Ego-item "cost" */
+ PRICE cost; /* Ego-item "cost" */
- u32b flags[TR_FLAG_SIZE]; /* Ego-Item Flags */
-
- u32b gen_flags; /* flags for generate */
+ BIT_FLAGS flags[TR_FLAG_SIZE]; /* Ego-Item Flags */
+ BIT_FLAGS gen_flags; /* flags for generate */
IDX act_idx; /* Activative ability index */
};
struct monster_blow
{
- byte method;
- byte effect;
- byte d_dice;
- byte d_side;
+ BLOW_METHOD method;
+ BLOW_EFFECT effect;
+ DICE_NUMBER d_dice;
+ DICE_SID d_side;
};
ARMOUR_CLASS ac; /*!< アーマークラス / Armour Class */
- s16b sleep; /*!< 睡眠値 / Inactive counter (base) */
- byte aaf; /*!< 感知範囲(1-100スクエア) / Area affect radius (1-100) */
+ SLEEP_DEGREE sleep; /*!< 睡眠値 / Inactive counter (base) */
+ POSITION aaf; /*!< 感知範囲(1-100スクエア) / Area affect radius (1-100) */
SPEED speed; /*!< 加速(110で+0) / Speed (normally 110) */
EXP mexp; /*!< 殺害時基本経験値 / Exp value for kill */
- s16b extra; /*!< 未使用 / Unused (for now) */
+ BIT_FLAGS16 extra; /*!< 未使用 / Unused (for now) */
- byte freq_spell; /*!< 魔法&特殊能力仕様頻度(1/n) / Spell frequency */
+ RARITY freq_spell; /*!< 魔法&特殊能力仕様頻度(1/n) / Spell frequency */
BIT_FLAGS flags1; /* Flags 1 (general) */
BIT_FLAGS flags2; /* Flags 2 (abilities) */
STR_OFFSET name; /* Name (offset) */
STR_OFFSET text; /* Text (offset) */
- byte typ; /* Vault type */
- byte rat; /* Vault rating */
+ ROOM_IDX typ; /* Vault type */
+ PROB rat; /* Vault rating (unused) */
POSITION hgt; /* Vault height */
POSITION wid; /* Vault width */
};
{
u16b info; /* Hack -- cave flags */
- IDX feat; /* Hack -- feature type */
- IDX o_idx; /* Object in this grid */
+ FEAT_IDX feat; /* Hack -- feature type */
+ OBJECT_IDX o_idx; /* Object in this grid */
MONSTER_IDX m_idx; /* Monster in this grid */
- s16b special; /* Special cave info */
+ /*! 地形の特別な情報を保存する / Special cave info
+ * 具体的な使用一覧はクエスト行き階段の移行先クエストID、
+ * 各ダンジョン入口の移行先ダンジョンID、
+ *
+ */
+ s16b special;
- s16b mimic; /* Feature to mimic */
+ FEAT_IDX mimic; /* Feature to mimic */
byte cost; /* Hack -- cost of flowing */
byte dist; /* Hack -- distance from player */
struct object_type
{
- IDX k_idx; /* Kind index (zero if "dead") */
+ KIND_OBJECT_IDX k_idx; /* Kind index (zero if "dead") */
POSITION iy; /* Y-position on map, or zero */
POSITION ix; /* X-position on map, or zero */
XTRA8 xtra1; /* Extra info type (now unused) */
XTRA8 xtra2; /* Extra info activation index */
XTRA8 xtra3; /* Extra info for weaponsmith */
- XTRA16 xtra4; /* Extra info fuel or captured monster's current HP */
- XTRA16 xtra5; /* Extra info captured monster's max HP */
+ XTRA16 xtra4; /*!< 光源の残り寿命、あるいは捕らえたモンスターの現HP / Extra info fuel or captured monster's current HP */
+ XTRA16 xtra5; /*!< 捕らえたモンスターの最大HP / Extra info captured monster's max HP */
HIT_PROB to_h; /* Plusses to hit */
HIT_POINT to_d; /* Plusses to damage */
IDX next_o_idx; /* Next object in stack (if any) */
IDX held_m_idx; /* Monster holding us (if any) */
+
+ ARTIFACT_BIAS_IDX artifact_bias; /*!< ランダムアーティファクト生成時のバイアスID */
};
struct alloc_entry
{
- IDX index; /* The actual index */
+ KIND_OBJECT_IDX index; /* The actual index */
DEPTH level; /* Base dungeon level */
PROB prob1; /* Probability, pass 1 */
struct quest_type
{
- s16b status; /*!< クエストの進行ステータス / Is the quest taken, completed, finished? */
-
- s16b type; /*!< クエストの種別 / The quest type */
+ QUEST_STATUS status; /*!< クエストの進行ステータス / Is the quest taken, completed, finished? */
+ QUEST_TYPE type; /*!< クエストの種別 / The quest type */
char name[60]; /*!< クエスト名 / Quest name */
- DEPTH level; /*!< 処理階層 / Dungeon level */
- MONRACE_IDX r_idx; /*!< クエスト対象のモンスターID / Monster race */
-
- s16b cur_num; /*!< 撃破したモンスターの数 / Number killed */
- s16b max_num; /*!< 求められるモンスターの撃破数 / Number required */
+ DEPTH level; /*!< 処理階層 / Dungeon level */
+ MONRACE_IDX r_idx; /*!< クエスト対象のモンスターID / Monster race */
+
+ MONSTER_NUMBER cur_num; /*!< 撃破したモンスターの数 / Number killed */
+ MONSTER_NUMBER max_num; /*!< 求められるモンスターの撃破数 / Number required */
- IDX k_idx; /*!< クエスト対象のアイテムID / object index */
- s16b num_mon; /*!< QUEST_TYPE_KILL_NUMBER時の目標撃破数 number of monsters on level */
+ KIND_OBJECT_IDX k_idx; /*!< クエスト対象のアイテムID / object index */
+ MONSTER_NUMBER num_mon; /*!< QUEST_TYPE_KILL_NUMBER時の目標撃破数 number of monsters on level */
- byte flags; /*!< クエストに関するフラグビット / quest flags */
- byte dungeon; /*!< クエスト対象のダンジョンID / quest dungeon */
+ BIT_FLAGS flags; /*!< クエストに関するフラグビット / quest flags */
+ DUNGEON_IDX dungeon; /*!< クエスト対象のダンジョンID / quest dungeon */
- byte complev; /*!< クリア時プレイヤーレベル / player level (complete) */
- u32b comptime; /*!< クリア時ゲーム時間 / quest clear time*/
+ PLAYER_LEVEL complev; /*!< クリア時プレイヤーレベル / player level (complete) */
+ REAL_TIME comptime; /*!< クリア時ゲーム時間 / quest clear time*/
};
{
cptr owner_name; /* Name */
- s32b max_cost; /* Purse limit */
+ PRICE max_cost; /* Purse limit */
byte max_inflate; /* Inflation (max) */
byte min_inflate; /* Inflation (min) */
TIME_EFFECT magicdef;
TIME_EFFECT tim_res_nether; /* Timed -- Nether resistance */
TIME_EFFECT tim_res_time; /* Timed -- Time resistance */
- IDX mimic_form;
+ MIMIC_RACE_IDX mimic_form;
TIME_EFFECT tim_mimic;
TIME_EFFECT tim_sh_fire;
TIME_EFFECT tim_sh_holy;
TIME_EFFECT multishadow; /* Timed -- Multi-shadow */
TIME_EFFECT dustrobe; /* Timed -- Robe of dust */
- s16b chaos_patron;
+ PATRON_IDX chaos_patron;
BIT_FLAGS muta1;
BIT_FLAGS muta2;
BIT_FLAGS muta3;
s16b actions[8]; /* action codes */
s16b action_restr[8]; /* action restrictions */
- s16b member_class[MAX_CLASS]; /* which classes are part of guild */
- s16b member_race[MAX_RACES]; /* which classes are part of guild */
- s16b member_realm[MAX_MAGIC+1]; /* which realms are part of guild */
+ CLASS_IDX member_class[MAX_CLASS]; /* which classes are part of guild */
+ RACE_IDX member_race[MAX_RACES]; /* which classes are part of guild */
+ REALM_IDX member_realm[MAX_MAGIC+1]; /* which realms are part of guild */
};
int town;
int road;
u32b seed;
- s16b level;
+ DEPTH level;
byte entrance;
};
typedef struct
{
- s16b feat; /* Feature tile */
- byte percent; /* Chance of type */
+ FEAT_IDX feat; /* Feature tile */
+ PERCENTAGE percent; /* Chance of type */
}
feat_prob;
STR_OFFSET name; /* Name */
STR_OFFSET text; /* Description */
- byte dy;
- byte dx;
+ POSITION dy;
+ POSITION dx;
feat_prob floor[DUNGEON_FEAT_PROB_NUM]; /* Floor probability */
feat_prob fill[DUNGEON_FEAT_PROB_NUM]; /* Cave wall probability */
- s16b outer_wall; /* Outer wall tile */
- s16b inner_wall; /* Inner wall tile */
- s16b stream1; /* stream tile */
- s16b stream2; /* stream tile */
-
- s16b mindepth; /* Minimal depth */
- s16b maxdepth; /* Maximal depth */
- byte min_plev; /* Minimal plev needed to enter -- it's an anti-cheating mesure */
- s16b pit;
- s16b nest;
+ FEAT_IDX outer_wall; /* Outer wall tile */
+ FEAT_IDX inner_wall; /* Inner wall tile */
+ FEAT_IDX stream1; /* stream tile */
+ FEAT_IDX stream2; /* stream tile */
+
+ DEPTH mindepth; /* Minimal depth */
+ DEPTH maxdepth; /* Maximal depth */
+ PLAYER_LEVEL min_plev; /* Minimal plev needed to enter -- it's an anti-cheating mesure */
+ BIT_FLAGS16 pit;
+ BIT_FLAGS16 nest;
byte mode; /* Mode of combinaison of the monster flags */
int min_m_alloc_level; /* Minimal number of monsters per level */
int max_m_alloc_chance; /* There is a 1/max_m_alloc_chance chance per round of creating a new monster */
- u32b flags1; /* Flags 1 */
+ BIT_FLAGS flags1; /* Flags 1 */
- u32b mflags1; /* The monster flags that are allowed */
- u32b mflags2;
- u32b mflags3;
- u32b mflags4;
- u32b mflags7;
- u32b mflags8;
- u32b mflags9;
- u32b mflagsr;
+ BIT_FLAGS mflags1; /* The monster flags that are allowed */
+ BIT_FLAGS mflags2;
+ BIT_FLAGS mflags3;
+ BIT_FLAGS mflags4;
+ BIT_FLAGS mflags7;
+ BIT_FLAGS mflags8;
+ BIT_FLAGS mflags9;
+ BIT_FLAGS mflagsr;
- u32b m_a_ability_flags1;
- u32b m_a_ability_flags2;
- u32b m_a_ability_flags3;
- u32b m_a_ability_flags4;
+ BIT_FLAGS m_a_ability_flags1;
+ BIT_FLAGS m_a_ability_flags2;
+ BIT_FLAGS m_a_ability_flags3;
+ BIT_FLAGS m_a_ability_flags4;
char r_char[5]; /* Monster race allowed */
- int final_object; /* The object you'll find at the bottom */
- int final_artifact; /* The artifact you'll find at the bottom */
- int final_guardian; /* The artifact's guardian. If an artifact is specified, then it's NEEDED */
+ KIND_OBJECT_IDX final_object; /* The object you'll find at the bottom */
+ ARTIFACT_IDX final_artifact; /* The artifact you'll find at the bottom */
+ MONRACE_IDX final_guardian; /* The artifact's guardian. If an artifact is specified, then it's NEEDED */
byte special_div; /* % of monsters affected by the flags/races allowed, to add some variety */
int tunnel_percent;