OSDN Git Service

武器簡易鑑定のswitch文を少し整理.
authornothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Sat, 3 May 2003 19:23:11 +0000 (19:23 +0000)
committernothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Sat, 3 May 2003 19:23:11 +0000 (19:23 +0000)
src/dungeon.c

index 8163096..30a84b1 100644 (file)
@@ -339,6 +339,8 @@ static void sense_inventory1(void)
                }
 
                case CLASS_MINDCRAFTER:
+               case CLASS_IMITATOR:
+               case CLASS_BLUE_MAGE:
                case CLASS_MIRROR_MASTER:
                {
                        /* Bad sensing */
@@ -382,16 +384,6 @@ static void sense_inventory1(void)
                        break;
                }
 
-               case CLASS_IMITATOR:
-               case CLASS_BLUE_MAGE:
-               {
-                       /* Bad sensing */
-                       if (0 != randint0(55000L / (plev * plev + 40))) return;
-
-                       /* Done */
-                       break;
-               }
-
                case CLASS_BEASTMASTER:
                {
                        /* Bad sensing */