変愚蛮怒のメインリポジトリです
Revision | 567cb41bfdc9da1a54c175defaf50a490f3daa12 (tree) |
---|---|
Time | 2002-10-30 23:55:51 |
Author | mogami <mogami@0568...> |
Commiter | mogami |
狂戦士の殺戮の指輪に、to-damへのプラスを付加。
もともとあったto-hitへのマイナスと同じ式を使って o_ptr->to_d += 2+randint1(4); とした。
また指輪とアミュの価値判定のコードを修正、to_h + to_d + pval の合計がマイナス
のときだけ無価値と判定するようにした。
@@ -1293,9 +1293,7 @@ s32b object_value_real(object_type *o_ptr) | ||
1293 | 1293 | case TV_AMULET: |
1294 | 1294 | { |
1295 | 1295 | /* Hack -- negative bonuses are bad */ |
1296 | - if (o_ptr->to_a < 0) return (0L); | |
1297 | - if (o_ptr->to_h < 0) return (0L); | |
1298 | - if (o_ptr->to_d < 0) return (0L); | |
1296 | + if (o_ptr->to_h + o_ptr->to_d + o_ptr->to_a < 0) return (0L); | |
1299 | 1297 | |
1300 | 1298 | /* Give credit for bonuses */ |
1301 | 1299 | value += ((o_ptr->to_h + o_ptr->to_d + o_ptr->to_a) * 200L); |
@@ -3392,6 +3390,7 @@ static void a_m_aux_3(object_type *o_ptr, int level, int power) | ||
3392 | 3390 | { |
3393 | 3391 | o_ptr->name2 = EGO_RING_BERSERKER; |
3394 | 3392 | o_ptr->to_h -= 2+randint1(4); |
3393 | + o_ptr->to_d += 2+randint1(4); | |
3395 | 3394 | } |
3396 | 3395 | break; |
3397 | 3396 | case SV_RING_PROTECTION: |