OSDN Git Service

#37527 (2.2.0.90) ものまね師倍返し時の失率表示ミスを修正。 / Fix display of fail rate on Double Revenge...
authorDeskull <desull@users.sourceforge.jp>
Wed, 20 Sep 2017 14:58:26 +0000 (23:58 +0900)
committerDeskull <desull@users.sourceforge.jp>
Wed, 20 Sep 2017 14:58:26 +0000 (23:58 +0900)
src/defines.h
src/mane.c

index 25db0b3..4640828 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 89 /*!< ゲームのバージョン番号定義(エクストラ番号) */
+#define FAKE_VER_EXTRA 90 /*!< ゲームのバージョン番号定義(エクストラ番号) */
 
 
  /*!
index e79196a..f890b84 100644 (file)
@@ -166,7 +166,7 @@ static int get_mane_power(int *sn, bool baigaesi)
                                        /* Reduce failure rate by INT/WIS adjustment */
                                        chance -= 3 * (adj_mag_stat[p_ptr->stat_ind[spell.use_stat]] + adj_mag_stat[p_ptr->stat_ind[A_DEX]] - 2) / 2;
 
-                                       if (spell.manedam) chance = chance * p_ptr->mane_dam[i] / spell.manedam;
+                                       if (spell.manedam) chance = chance * (baigaesi ? p_ptr->mane_dam[i] * 2 : p_ptr->mane_dam[i]) / spell.manedam;
 
                                        chance += p_ptr->to_m_chance;