• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

変愚蛮怒のメインリポジトリです


Commit MetaInfo

Revision67d0906c3669458b8ef20c3beaddba89d9f4253d (tree)
Time2002-11-15 16:05:42
Authormogami <mogami@0568...>
Commitermogami

Log Message

魔力喰いで失敗してロッドが壊れたとき、残りのロッドのtimeoutが異常になるバグ修正。
またデバッグコマンド使用中に見付けたo_ptr->pvalをロッドの古い仕様に添って
書き変えていた古いコード削除。

Change Summary

Incremental Difference

--- a/src/spells3.c
+++ b/src/spells3.c
@@ -5906,8 +5906,8 @@ msg_format("
59065906 #endif
59075907
59085908 /* Reduce rod stack maximum timeout, drain wands. */
5909- if (o_ptr->tval == TV_ROD) o_ptr->timeout -= k_ptr->pval;
5910- if (o_ptr->tval == TV_WAND) o_ptr->pval = o_ptr->pval * (o_ptr->number - 1) / o_ptr->number;
5909+ if (o_ptr->tval == TV_ROD) o_ptr->timeout = MIN(o_ptr->timeout, k_ptr->pval * (o_ptr->number - 1));
5910+ else if (o_ptr->tval == TV_WAND) o_ptr->pval = o_ptr->pval * (o_ptr->number - 1) / o_ptr->number;
59115911
59125912 }
59135913 else
--- a/src/wizard2.c
+++ b/src/wizard2.c
@@ -1177,10 +1177,6 @@ static void wiz_quantity_item(object_type *o_ptr)
11771177
11781178 /* Accept modifications */
11791179 o_ptr->number = tmp_int;
1180-
1181- /* Hack -- rod pvals must change if the number in the stack does. -LM- */
1182- if (o_ptr->tval == TV_ROD)
1183- o_ptr->pval = o_ptr->pval * o_ptr->number / tmp_qnt;
11841180 }
11851181 }
11861182
Show on old repository browser