OSDN Git Service

シルバーゼリーに触られたとき、光源の燃料を減らすはずが、pvalを減らしていたので修正。
authormogami <mogami@0568b783-4c39-0410-ac80-bf13821ea2a2>
Mon, 27 May 2002 08:01:16 +0000 (08:01 +0000)
committermogami <mogami@0568b783-4c39-0410-ac80-bf13821ea2a2>
Mon, 27 May 2002 08:01:16 +0000 (08:01 +0000)
src/melee1.c

index c1390f0..63d68f7 100644 (file)
@@ -1160,8 +1160,8 @@ bool make_attack_normal(int m_idx)
                                        if ((o_ptr->xtra4 > 0) && (!artifact_p(o_ptr)))
                                        {
                                                /* Reduce fuel */
-                                               o_ptr->pval -= (250 + randint1(250));
-                                               if (o_ptr->pval < 1) o_ptr->pval = 1;
+                                               o_ptr->xtra4 -= (250 + randint1(250));
+                                               if (o_ptr->xtra4 < 1) o_ptr->xtra4 = 1;
 
                                                /* Notice */
                                                if (!p_ptr->blind)