OSDN Git Service

既知生存ユニークリストにレア度101以上の一般出現しないモンスターを表示
authornothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Thu, 12 Feb 2004 14:54:36 +0000 (14:54 +0000)
committernothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Thu, 12 Feb 2004 14:54:36 +0000 (14:54 +0000)
しないように変更.

src/cmd4.c

index 81370f6..dd93477 100644 (file)
@@ -6610,8 +6610,8 @@ static void do_cmd_knowledge_uniques(void)
        {
                monster_race *r_ptr = &r_info[who[k]];
 
-               /* Only print Uniques */
-               if (r_ptr->flags1 & (RF1_UNIQUE))
+               /* Only print Uniques (rarity <= 100) */
+               if ((r_ptr->flags1 & RF1_UNIQUE) && r_ptr->rarity && (r_ptr->rarity <= 100))
                {
                        bool dead = (r_ptr->max_num == 0);
 
@@ -6628,7 +6628,6 @@ static void do_cmd_knowledge_uniques(void)
                                fprintf(fff, "     %s is alive\n",
                                        (r_name + r_ptr->name));
 #endif
-
                        }
                }
        }