OSDN Git Service

[Refactor] #37287 #37353 型の置換。 / Type replacement.
authorDeskull <deskull@users.sourceforge.jp>
Sat, 6 Oct 2018 09:14:07 +0000 (18:14 +0900)
committerDeskull <deskull@users.sourceforge.jp>
Sat, 6 Oct 2018 09:14:07 +0000 (18:14 +0900)
src/chest.c
src/chest.h
src/externs.h
src/mutation.c
src/racial.c

index c81f8b5..721d084 100644 (file)
@@ -20,7 +20,7 @@
 * on the level on which the chest is generated.\r
 * </pre>\r
 */\r
-void chest_death(bool scatter, int y, int x, s16b o_idx)\r
+void chest_death(bool scatter, POSITION y, POSITION x, OBJECT_IDX o_idx)\r
 {\r
        int number;\r
 \r
@@ -132,9 +132,9 @@ void chest_death(bool scatter, int y, int x, s16b o_idx)
 * Note that the chest itself is never destroyed.\r
 * </pre>\r
 */\r
-void chest_trap(POSITION y, POSITION x, KIND_OBJECT_IDX o_idx)\r
+void chest_trap(POSITION y, POSITION x, OBJECT_IDX o_idx)\r
 {\r
-       int  i, trap;\r
+       int i, trap;\r
 \r
        object_type *o_ptr = &o_list[o_idx];\r
 \r
index 9af1095..52a9a87 100644 (file)
@@ -1,4 +1,4 @@
 \r
-extern void chest_death(bool scatter, int y, int x, s16b o_idx);\r
-extern void chest_trap(POSITION y, POSITION x, KIND_OBJECT_IDX o_idx);\r
+extern void chest_death(bool scatter, POSITION y, POSITION x, OBJECT_IDX o_idx);\r
+extern void chest_trap(POSITION y, POSITION x, OBJECT_IDX o_idx);\r
 \r
index 89153d5..87f883a 100644 (file)
@@ -1572,7 +1572,7 @@ extern void lose_all_mutations(void);
 extern void dump_mutations(FILE *OutFile);
 extern void do_cmd_knowledge_mutations(void);
 extern int calc_mutant_regenerate_mod(void);
-extern bool mutation_power_aux(u32b power);
+extern bool mutation_power_aux(int power);
 
 
 /*
index a85aaec..f47cae7 100644 (file)
@@ -2086,14 +2086,13 @@ int calc_mutant_regenerate_mod(void)
 
 /*!
  * @brief 突然変異のレイシャル効果実装
- * @return 発動させる突然変異レイシャルのID
+ * @param power 発動させる突然変異レイシャルのID
  * @return レイシャルを実行した場合TRUE、キャンセルした場合FALSEを返す
  */
-bool mutation_power_aux(u32b power)
+bool mutation_power_aux(int power)
 {
-       int     dir = 0;
-       int     lvl = p_ptr->lev;
-
+       DIRECTION dir = 0;
+       PLAYER_LEVEL lvl = p_ptr->lev;
 
        switch (power)
        {
@@ -2101,7 +2100,6 @@ bool mutation_power_aux(u32b power)
                        if (!get_aim_dir(&dir)) return FALSE;
                        stop_mouth();
                        msg_print(_("酸を吐きかけた...", "You spit acid..."));
-
                        fire_ball(GF_ACID, dir, lvl, 1 + (lvl / 30));
                        break;
 
@@ -2109,40 +2107,34 @@ bool mutation_power_aux(u32b power)
                        if (!get_aim_dir(&dir)) return FALSE;
                        stop_mouth();
                        msg_print(_("あなたは火炎のブレスを吐いた...", "You breathe fire..."));
-
                        fire_breath(GF_FIRE, dir, lvl * 2, 1 + (lvl / 20));
                        break;
 
                case MUT1_HYPN_GAZE:
                        if (!get_aim_dir(&dir)) return FALSE;
                        msg_print(_("あなたの目は幻惑的になった...", "Your eyes look mesmerizing..."));
-
                        (void)charm_monster(dir, lvl);
                        break;
 
                case MUT1_TELEKINES:
                        if (!get_aim_dir(&dir)) return FALSE;
                        msg_print(_("集中している...", "You concentrate..."));
-
                        fetch(dir, lvl * 10, TRUE);
                        break;
 
                case MUT1_VTELEPORT:
                        msg_print(_("集中している...", "You concentrate..."));
-
                        teleport_player(10 + 4 * lvl, 0L);
                        break;
 
                case MUT1_MIND_BLST:
                        if (!get_aim_dir(&dir)) return FALSE;
                        msg_print(_("集中している...", "You concentrate..."));
-
                        fire_bolt(GF_PSI, dir, damroll(3 + ((lvl - 1) / 5), 3));
                        break;
 
                case MUT1_RADIATION:
                        msg_print(_("体から放射能が発生した!", "Radiation flows from your body!"));
-
                        fire_ball(GF_NUKE, 0, (lvl * 2), 3 + (lvl / 20));
                        break;
 
@@ -2166,7 +2158,7 @@ bool mutation_power_aux(u32b power)
 
                case MUT1_EAT_ROCK:
                        {
-                               int x, y;
+                               POSITION x, y;
                                cave_type *c_ptr;
                                feature_type *f_ptr, *mimic_f_ptr;
 
@@ -2362,7 +2354,7 @@ bool mutation_power_aux(u32b power)
 
                case MUT1_BANISH:
                        {
-                               int x, y;
+                               POSITION x, y;
                                cave_type *c_ptr;
                                monster_type *m_ptr;
                                monster_race *r_ptr;
@@ -2412,7 +2404,7 @@ bool mutation_power_aux(u32b power)
 
                case MUT1_COLD_TOUCH:
                        {
-                               int x, y;
+                               POSITION x, y;
                                cave_type *c_ptr;
 
                                if (!get_rep_dir2(&dir)) return FALSE;
index c209743..2599e49 100644 (file)
@@ -595,10 +595,10 @@ struct power_desc_type
 {
        char name[80];
        PLAYER_LEVEL level;
-       int  cost;
-       int  stat;
-       int  fail;
-       int  number;
+       int cost;
+       int stat;
+       int fail;
+       int number;
 };