OSDN Git Service

ものまねの実際の失敗率計算に器用等が考慮されてなかったので修正。
authoriks <iks@0568b783-4c39-0410-ac80-bf13821ea2a2>
Sat, 31 Aug 2002 15:03:33 +0000 (15:03 +0000)
committeriks <iks@0568b783-4c39-0410-ac80-bf13821ea2a2>
Sat, 31 Aug 2002 15:03:33 +0000 (15:03 +0000)
src/mane.c

index 79a8d03..dc5d2b3 100644 (file)
@@ -1337,14 +1337,13 @@ msg_print("
        /* Reduce failure rate by "effective" level adjustment */
        if (plev > spell.level) chance -= 3 * (plev - spell.level);
 
-       if (p_ptr->pseikaku == SEIKAKU_NAMAKE) chance += 10;
-       if (p_ptr->pseikaku == SEIKAKU_KIREMONO) chance -= 3;
-
-       /* Reduce failure rate by INT/WIS adjustment */
-       chance -= 3 * (adj_mag_stat[p_ptr->stat_ind[spell.use_stat]] - 1);
+       /* Reduce failure rate by 1 stat and DEX 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 * damage / spell.manedam;
 
+       chance += p_ptr->to_m_chance;
+
        /* Extract the minimum failure rate */
        minfail = adj_mag_fail[p_ptr->stat_ind[spell.use_stat]];