OSDN Git Service

Fix definition of summon type.
authorDeskull <desull@users.sourceforge.jp>
Sat, 16 Aug 2014 11:04:26 +0000 (20:04 +0900)
committerDeskull <desull@users.sourceforge.jp>
Sat, 16 Aug 2014 11:04:26 +0000 (20:04 +0900)
src/cmd5.c
src/defines.h
src/do-spell.c
src/melee2.c
src/monster2.c
src/mutation.c

index 9ed78fa..211839b 100644 (file)
@@ -946,10 +946,10 @@ void do_cmd_study(void)
 static void wild_magic(int spell)
 {
        int counter = 0;
-       int type = SUMMON_BIZARRE1 + randint0(6);
+       int type = SUMMON_MOLD + randint0(6);
 
-       if (type < SUMMON_BIZARRE1) type = SUMMON_BIZARRE1;
-       else if (type > SUMMON_BIZARRE6) type = SUMMON_BIZARRE6;
+       if (type < SUMMON_MOLD) type = SUMMON_MOLD;
+       else if (type > SUMMON_MIMIC) type = SUMMON_MIMIC;
 
        switch (randint1(spell) + randint1(8) + 1)
        {
index f2d5af1..3e35dba 100644 (file)
 #define SUMMON_HI_DEMON             23 /*!< 召喚タイプ: 上級デーモン */
 #define SUMMON_AMBERITES            31 /*!< 召喚タイプ: アンバーの王族 */
 #define SUMMON_UNIQUE               32 /*!< 召喚タイプ: ユニーク */
-#define SUMMON_BIZARRE1             33 /*!< 召喚タイプ: カビ */
-#define SUMMON_BIZARRE2             34 /*!< 召喚タイプ: コウモリ */
-#define SUMMON_BIZARRE3             35 /*!< 召喚タイプ: クイルスルグ */
-#define SUMMON_BIZARRE4             36 /*!< 召喚タイプ: ボルテックス */
-#define SUMMON_BIZARRE5             37 /*!< 召喚タイプ: クリーピング・コイン */
-#define SUMMON_BIZARRE6             38 /*!< 召喚タイプ: ミミック */
+#define SUMMON_MOLD                 33 /*!< 召喚タイプ: カビ */
+#define SUMMON_BAT                  34 /*!< 召喚タイプ: コウモリ */
+#define SUMMON_QUYLTHULG            35 /*!< 召喚タイプ: クイルスルグ */
+#define SUMMON_XXX1                 36 /*!< 召喚タイプ: 未使用 */
+#define SUMMON_COIN_MIMIC           37 /*!< 召喚タイプ: クリーピング・コイン */
+#define SUMMON_MIMIC                38 /*!< 召喚タイプ: ミミック */
 #define SUMMON_CYBER                39 /*!< 召喚タイプ: サイバーデーモン */
 #define SUMMON_KIN                  40 /*!< 召喚タイプ: 召喚者の同族 */
 #define SUMMON_DAWN                 41 /*!< 召喚タイプ: 暁の戦士 */
index 83a8c56..8a750ec 100644 (file)
@@ -490,10 +490,10 @@ static void cast_invoke_spirits(int dir)
 static void wild_magic(int spell)
 {
        int counter = 0;
-       int type = SUMMON_BIZARRE1 + randint0(6);
+       int type = SUMMON_MOLD + randint0(6);
 
-       if (type < SUMMON_BIZARRE1) type = SUMMON_BIZARRE1;
-       else if (type > SUMMON_BIZARRE6) type = SUMMON_BIZARRE6;
+       if (type < SUMMON_MOLD) type = SUMMON_MOLD;
+       else if (type > SUMMON_MIMIC) type = SUMMON_MIMIC;
 
        switch (randint1(spell) + randint1(8) + 1)
        {
@@ -706,22 +706,22 @@ static void cast_shuffle(void)
        else if (die < 82)
        {
                msg_print(_("友好的なモンスターの絵だ。", "It's the picture of a friendly monster."));
-               trump_summoning(1, TRUE, py, px, (dun_level * 3 / 2), SUMMON_BIZARRE1, 0L);
+               trump_summoning(1, TRUE, py, px, (dun_level * 3 / 2), SUMMON_MOLD, 0L);
        }
        else if (die < 84)
        {
                msg_print(_("友好的なモンスターの絵だ。", "It's the picture of a friendly monster."));
-               trump_summoning(1, TRUE, py, px, (dun_level * 3 / 2), SUMMON_BIZARRE2, 0L);
+               trump_summoning(1, TRUE, py, px, (dun_level * 3 / 2), SUMMON_BAT, 0L);
        }
        else if (die < 86)
        {
                msg_print(_("友好的なモンスターの絵だ。", "It's the picture of a friendly monster."));
-               trump_summoning(1, TRUE, py, px, (dun_level * 3 / 2), SUMMON_BIZARRE4, 0L);
+               trump_summoning(1, TRUE, py, px, (dun_level * 3 / 2), SUMMON_VORTEX, 0L);
        }
        else if (die < 88)
        {
                msg_print(_("友好的なモンスターの絵だ。", "It's the picture of a friendly monster."));
-               trump_summoning(1, TRUE, py, px, (dun_level * 3 / 2), SUMMON_BIZARRE5, 0L);
+               trump_summoning(1, TRUE, py, px, (dun_level * 3 / 2), SUMMON_COIN_MIMIC, 0L);
        }
        else if (die < 96)
        {
index d54bf08..1044589 100644 (file)
@@ -2430,7 +2430,7 @@ static void process_monster(int m_idx)
 
                                        for (k = 0; k < 6; k++)
                                        {
-                                               if (summon_specific(m_idx, m_ptr->fy, m_ptr->fx, rlev, SUMMON_BIZARRE1, (PM_ALLOW_GROUP | p_mode)))
+                                               if (summon_specific(m_idx, m_ptr->fy, m_ptr->fx, rlev, SUMMON_MOLD, (PM_ALLOW_GROUP | p_mode)))
                                                {
                                                        if (m_list[hack_m_idx_ii].ml) count++;
                                                }
index 0d708c9..23049f0 100644 (file)
@@ -761,35 +761,29 @@ static bool summon_specific_aux(int r_idx)
                        break;
                }
 
-               case SUMMON_BIZARRE1:
+               case SUMMON_MOLD:
                {
                        okay = (r_ptr->d_char == 'm');
                        break;
                }
-               case SUMMON_BIZARRE2:
+               case SUMMON_BAT:
                {
                        okay = (r_ptr->d_char == 'b');
                        break;
                }
-               case SUMMON_BIZARRE3:
+               case SUMMON_QUYLTHULG:
                {
                        okay = (r_ptr->d_char == 'Q');
                        break;
                }
 
-               case SUMMON_BIZARRE4:
-               {
-                       okay = (r_ptr->d_char == 'v');
-                       break;
-               }
-
-               case SUMMON_BIZARRE5:
+               case SUMMON_COIN_MIMIC:
                {
                        okay = (r_ptr->d_char == '$');
                        break;
                }
 
-               case SUMMON_BIZARRE6:
+               case SUMMON_MIMIC:
                {
                        okay = ((r_ptr->d_char == '!') ||
                                 (r_ptr->d_char == '?') ||
index 84261c7..c41367e 100644 (file)
@@ -2326,7 +2326,7 @@ bool mutation_power_aux(u32b power)
                                int i;
                                for (i = 0; i < 8; i++)
                                {
-                                       summon_specific(-1, py, px, lvl, SUMMON_BIZARRE1, PM_FORCE_PET);
+                                       summon_specific(-1, py, px, lvl, SUMMON_MOLD, PM_FORCE_PET);
                                }
                        }
                        break;