OSDN Git Service

カメレオンの王が変身に失敗して「プレイヤー」になるのを修正。
authormogami <mogami@0568b783-4c39-0410-ac80-bf13821ea2a2>
Sat, 16 Mar 2002 12:45:43 +0000 (12:45 +0000)
committermogami <mogami@0568b783-4c39-0410-ac80-bf13821ea2a2>
Sat, 16 Mar 2002 12:45:43 +0000 (12:45 +0000)
src/monster2.c

index d9e7e3a..50bd0a5 100644 (file)
@@ -1329,13 +1329,6 @@ s16b get_mon_num(int level)
                                if (r_info[MON_LUPART].cur_num > 0) continue;
                        }
                }
-               else if (!p_ptr->inside_battle && chameleon_change
-                        && (r_ptr->flags1 & (RF1_UNIQUE)))
-               {
-                       /* Hack -- Chameleon Lord must be "unique" */
-                       if (r_info[MON_CHAMELEON_K].cur_num >= r_ptr->max_num)
-                               continue;
-               }
 
                /* Accept */
                table[i].prob3 = table[i].prob2;
@@ -2498,7 +2491,8 @@ void choose_new_monster(int m_idx, bool born, int r_idx)
        int old_r_idx = m_ptr->r_idx;
        bool old_unique = FALSE;
 
-       if (r_info[m_ptr->r_idx].flags1 & RF1_UNIQUE) old_unique = TRUE;
+       if (r_info[m_ptr->r_idx].flags1 & RF1_UNIQUE)
+               old_unique = TRUE;
        if (old_unique && (r_idx == MON_CHAMELEON)) r_idx = MON_CHAMELEON_K;
        r_ptr = &r_info[r_idx];