OSDN Git Service

#37287 #37353 (2.2.0.89) EFFECT_ID型を定義し、型の置換を継続中。 / Define EFFECT_ID ongoing type...
authorDeskull <desull@users.sourceforge.jp>
Sat, 2 Dec 2017 06:30:04 +0000 (15:30 +0900)
committerDeskull <desull@users.sourceforge.jp>
Sat, 2 Dec 2017 06:30:04 +0000 (15:30 +0900)
src/cmd2.c
src/externs.h
src/h-type.h
src/save.c
src/spells2.c

index bbd673c..16d2773 100644 (file)
@@ -578,7 +578,7 @@ static void chest_death(bool scatter, int y, int x, s16b o_idx)
  * Note that the chest itself is never destroyed.
  * </pre>
  */
-static void chest_trap(int y, int x, s16b o_idx)
+static void chest_trap(POSITION y, POSITION x, KIND_OBJECT_IDX o_idx)
 {
        int  i, trap;
 
index 7d86332..0b53eca 100644 (file)
@@ -1148,7 +1148,7 @@ extern bool unlite_area(HIT_POINT dam, int rad);
 extern bool fire_ball(int typ, int dir, HIT_POINT dam, int rad);
 extern bool fire_rocket(int typ, int dir, HIT_POINT dam, int rad);
 extern bool fire_ball_hide(int typ, int dir, HIT_POINT dam, int rad);
-extern bool fire_meteor(int who, int typ, int x, int y, HIT_POINT dam, int rad);
+extern bool fire_meteor(MONSTER_IDX who, EFFECT_ID typ, POSITION x, POSITION y, HIT_POINT dam, POSITION rad);
 extern bool fire_bolt(int typ, int dir, HIT_POINT dam);
 extern bool fire_blast(int typ, int dir, int dd, int ds, int num, int dev);
 extern void call_chaos(void);
index dffdd7c..d9da989 100644 (file)
@@ -198,6 +198,8 @@ typedef int QUANTITY; /*!< インターフェース上の指定個数 */
 typedef byte BLOW_METHOD; /*!< モンスターの打撃手段ID */
 typedef byte BLOW_EFFECT; /*!< モンスターの打撃効果ID */
 
+typedef int EFFECT_ID; /*!< 効果属性ID */
+
 
 /*** Pointers to all the basic types defined above ***/
 
index a80ee73..4632266 100644 (file)
@@ -1405,7 +1405,7 @@ static bool wr_savefile_new(void)
                /* (prevents problems with multi-level quests) */
                wr_s16b((s16b)q_ptr->level);
 
-               wr_byte(q_ptr->complev);
+               wr_byte((byte_hack)q_ptr->complev);
                wr_u32b(q_ptr->comptime);
 
                /* Save quest status if quest is running */
@@ -1416,8 +1416,8 @@ static bool wr_savefile_new(void)
                        wr_s16b(q_ptr->type);
                        wr_s16b(q_ptr->r_idx);
                        wr_s16b(q_ptr->k_idx);
-                       wr_byte(q_ptr->flags);
-                       wr_byte(q_ptr->dungeon);
+                       wr_byte((byte_hack)q_ptr->flags);
+                       wr_byte((byte_hack)q_ptr->dungeon);
                }
        }
 
index 1c7715e..7a01137 100644 (file)
@@ -4777,7 +4777,7 @@ bool fire_ball_hide(int typ, int dir, HIT_POINT dam, int rad)
  * Option to hurt the player.
  * </pre>
  */
-bool fire_meteor(int who, int typ, int y, int x, HIT_POINT dam, int rad)
+bool fire_meteor(MONSTER_IDX who, EFFECT_ID typ, POSITION y, POSITION x, HIT_POINT dam, POSITION rad)
 {
        int flg = PROJECT_STOP | PROJECT_GRID | PROJECT_ITEM | PROJECT_KILL;