OSDN Git Service

Add monster race parsing for reinforcement data.
[hengband/hengband.git] / src / types.h
index 0213759..4e84cc8 100644 (file)
@@ -153,6 +153,8 @@ struct object_kind
        bool aware;                     /* The player is "aware" of the item's effects */
 
        bool tried;                     /* The player has "tried" one of the items */
+
+       byte act_idx;           /* Activative ability index */
 };
 
 
@@ -327,6 +329,9 @@ struct monster_race
        u32b flagsr;                    /* Flags R (resistances info) */
 
        monster_blow blow[4];   /* Up to four blows per round */
+       u16b reinforce_id[6];
+       u16b reinforce_dd[6];
+       u16b reinforce_ds[6];
 
        s16b next_r_idx;
        u32b next_exp;
@@ -589,6 +594,7 @@ struct monster_type
        s16b hp;                /* Current Hit points */
        s16b maxhp;             /* Max Hit points */
        s16b max_maxhp;         /* Max Max Hit points */
+       u32b dealt_damage;              /* Sum of damages dealt by player */
 
        s16b mtimed[MAX_MTIMED];        /* Timed status counter */
 
@@ -702,6 +708,7 @@ struct quest_type
        byte dungeon;           /* quest dungeon */
 
        byte complev;           /* player level (complete) */
+       u32b comptime;          /* quest clear time*/
 };
 
 
@@ -1080,6 +1087,7 @@ struct player_type
        byte recall_dungeon;      /* Dungeon set to be recalled */
 
        s16b energy_need;         /* Energy needed for next move */
+       s16b enchant_energy_need;         /* Energy needed for next upkeep effect        */
 
        s16b food;                /* Current nutrition */
 
@@ -1702,11 +1710,11 @@ typedef struct
  *  A structure type for travel command
  */
 typedef struct {
-       int run;
+       int run; /* Remaining grid number */
        int cost[MAX_HGT][MAX_WID];
-       int x;
-       int y;
-       int dir;
+       int x; /* Target X */
+       int y; /* Target Y */
+       int dir; /* Running direction */
 } travel_type;
 #endif
 
@@ -1719,4 +1727,11 @@ typedef struct {
                int constant;
                int dice;
        } timeout;
+       cptr desc;
 } activation_type;
+
+typedef struct {
+       int flag;
+       int type;
+       cptr name;
+} dragonbreath_type;