OSDN Git Service

#37359 (2.2.0.72) ランダムアーティファクトの弱いESP付与にドラゴンとユニーク感知が加わっていなかった不具合を修正。 / Fix that weak...
authorDeskull <desull@users.sourceforge.jp>
Fri, 1 Sep 2017 15:01:30 +0000 (00:01 +0900)
committerDeskull <desull@users.sourceforge.jp>
Fri, 1 Sep 2017 15:01:30 +0000 (00:01 +0900)
src/artifact.c
src/bldg.c
src/defines.h

index c1bcc6c..0cc750d 100644 (file)
@@ -151,16 +151,16 @@ void one_low_esp(object_type *o_ptr)
 {
        switch (randint1(10))
        {
-       case 1:  add_flag(o_ptr->art_flags, TR_ESP_ANIMAL);   break;
-       case 2:  add_flag(o_ptr->art_flags, TR_ESP_UNDEAD);   break;
-       case 3:  add_flag(o_ptr->art_flags, TR_ESP_DEMON);   break;
-       case 4:  add_flag(o_ptr->art_flags, TR_ESP_ORC);   break;
-       case 5:  add_flag(o_ptr->art_flags, TR_ESP_TROLL);   break;
-       case 6:  add_flag(o_ptr->art_flags, TR_ESP_GIANT);   break;
-       case 7:  add_flag(o_ptr->art_flags, TR_ESP_DRAGON);   break;
-       case 8:  add_flag(o_ptr->art_flags, TR_ESP_HUMAN);   break;
-       case 9:  add_flag(o_ptr->art_flags, TR_ESP_GOOD);   break;
-       case 10: add_flag(o_ptr->art_flags, TR_ESP_UNIQUE);   break;
+               case 1:  add_flag(o_ptr->art_flags, TR_ESP_ANIMAL);   break;
+               case 2:  add_flag(o_ptr->art_flags, TR_ESP_UNDEAD);   break;
+               case 3:  add_flag(o_ptr->art_flags, TR_ESP_DEMON);   break;
+               case 4:  add_flag(o_ptr->art_flags, TR_ESP_ORC);   break;
+               case 5:  add_flag(o_ptr->art_flags, TR_ESP_TROLL);   break;
+               case 6:  add_flag(o_ptr->art_flags, TR_ESP_GIANT);   break;
+               case 7:  add_flag(o_ptr->art_flags, TR_ESP_DRAGON);   break;
+               case 8:  add_flag(o_ptr->art_flags, TR_ESP_HUMAN);   break;
+               case 9:  add_flag(o_ptr->art_flags, TR_ESP_GOOD);   break;
+               case 10: add_flag(o_ptr->art_flags, TR_ESP_UNIQUE);   break;
        }
 }
 
@@ -1138,12 +1138,12 @@ static void random_misc(object_type * o_ptr)
                        int idx[3];
                        int n = randint1(3);
 
-                       idx[0] = randint1(8);
+                       idx[0] = randint1(10);
 
-                       idx[1] = randint1(7);
+                       idx[1] = randint1(9);
                        if (idx[1] >= idx[0]) idx[1]++;
 
-                       idx[2] = randint1(6);
+                       idx[2] = randint1(8);
                        if (idx[2] >= idx[0]) idx[2]++;
                        if (idx[2] >= idx[1]) idx[2]++;
 
@@ -1174,16 +1174,19 @@ static void random_misc(object_type * o_ptr)
                                add_flag(o_ptr->art_flags, TR_ESP_GIANT);
                                break;
                        case 7:
+                               add_flag(o_ptr->art_flags, TR_ESP_DRAGON);
+                               break;
+                       case 8:
                                add_flag(o_ptr->art_flags, TR_ESP_HUMAN);
                                if (!artifact_bias && one_in_(6))
                                        artifact_bias = BIAS_ROGUE;
                                break;
-                       case 8:
+                       case 9:
                                add_flag(o_ptr->art_flags, TR_ESP_GOOD);
                                if (!artifact_bias && one_in_(3))
                                        artifact_bias = BIAS_LAW;
                                break;
-                       case 9:
+                       case 10:
                                add_flag(o_ptr->art_flags, TR_ESP_UNIQUE);
                                if (!artifact_bias && one_in_(3))
                                        artifact_bias = BIAS_LAW;
index 6068e03..cec5d41 100644 (file)
@@ -2754,7 +2754,7 @@ static int hit_chance(int to_h, int ac)
        if (chance > 95) chance = 95;
        if (chance < 5) chance = 5;
        if (p_ptr->pseikaku == SEIKAKU_NAMAKE)
-               chance = (chance*19+9)/20;
+               chance = (chance * 19 + 9) / 20;
        return chance;
 }
 
index 4e310ee..e73dcb4 100644 (file)
@@ -53,7 +53,7 @@
 #define FAKE_VER_MAJOR 12 /*!< ゲームのバージョン番号定義(メジャー番号 + 10) */
 #define FAKE_VER_MINOR 2 /*!< ゲームのバージョン番号定義(マイナー番号) */
 #define FAKE_VER_PATCH 0 /*!< ゲームのバージョン番号定義(パッチ番号) */
-#define FAKE_VER_EXTRA 71 /*!< ゲームのバージョン番号定義(エクストラ番号) */
+#define FAKE_VER_EXTRA 72 /*!< ゲームのバージョン番号定義(エクストラ番号) */
 
 
  /*!