OSDN Git Service

ミスリル・ゴーレムを倒した時にミスリルだけ落とすように変更.
authornothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Fri, 29 Aug 2003 16:49:05 +0000 (16:49 +0000)
committernothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Fri, 29 Aug 2003 16:49:05 +0000 (16:49 +0000)
src/xtra2.c

index 292d1db..b51d65e 100644 (file)
@@ -231,24 +231,19 @@ msg_print("
  */
 static int get_coin_type(int r_idx)
 {
-       monster_race    *r_ptr = &r_info[r_idx];
-
-       /* Analyze "coin" monsters */
-       if (r_ptr->d_char == '$')
+       /* Analyze monsters */
+       switch (r_idx)
        {
-               /* Look for textual clues */
-               switch (r_idx)
-               {
-               case MON_COPPER_COINS: return (2);
-               case MON_SILVER_COINS: return (5);
-               case MON_GOLD_COINS: return (10);
-               case MON_MITHRIL_COINS: return (16);
-               case MON_ADAMANT_COINS: return (17);
-               }
+       case MON_COPPER_COINS: return 2;
+       case MON_SILVER_COINS: return 5;
+       case MON_GOLD_COINS: return 10;
+       case MON_MITHRIL_COINS:
+       case MON_MITHRIL_GOLEM: return 16;
+       case MON_ADAMANT_COINS: return 17;
        }
 
        /* Assume nothing */
-       return (0);
+       return 0;
 }