OSDN Git Service

鍛治師が殺戮修正をつけた小手が劣化されると発生するバグを修正。
authoriks <iks@0568b783-4c39-0410-ac80-bf13821ea2a2>
Thu, 17 Apr 2003 12:41:23 +0000 (12:41 +0000)
committeriks <iks@0568b783-4c39-0410-ac80-bf13821ea2a2>
Thu, 17 Apr 2003 12:41:23 +0000 (12:41 +0000)
- 殺戮修正が0になると表示がおかしい
- 劣化されてからエッセンス消去するとマイナスの殺戮修正が残る

src/flavor.c
src/object2.c

index e6dbdb8..825d3d3 100644 (file)
@@ -2734,6 +2734,10 @@ t = object_desc_str(t, "(
        if (have_flag(flgs, TR_SHOW_MODS)) show_weapon = TRUE;
 
        /* Display the item like a weapon */
+       if ((o_ptr->tval > TV_CAPTURE) && (o_ptr->xtra3 == 1 + ESSENCE_SLAY_GLOVE))
+               show_weapon = TRUE;
+
+       /* Display the item like a weapon */
        if (o_ptr->to_h && o_ptr->to_d) show_weapon = TRUE;
 
        /* Display the item like armour */
index af24a96..5c9a710 100644 (file)
@@ -8071,9 +8071,9 @@ static void erase_essence(void)
 
        object_desc(o_name, o_ptr, FALSE, 0);
 #ifdef JP
-       if (!get_check(format("¤è¤í¤·¤¤¤Ç¤¹¤«¡©[%s]", o_name))) return;
+       if (!get_check(format("¤è¤í¤·¤¤¤Ç¤¹¤«¡© [%s]", o_name))) return;
 #else
-       if (!get_check(format("Are you sure?[%s]", o_name))) return;
+       if (!get_check(format("Are you sure? [%s]", o_name))) return;
 #endif
 
        energy_use = 100;
@@ -8083,6 +8083,8 @@ static void erase_essence(void)
                o_ptr->to_h -= (o_ptr->xtra4>>8);
                o_ptr->to_d -= (o_ptr->xtra4 & 0x000f);
                o_ptr->xtra4 = 0;
+               if (o_ptr->to_h < 0) o_ptr->to_h = 0;
+               if (o_ptr->to_d < 0) o_ptr->to_d = 0;
        }
        o_ptr->xtra3 = 0;
        object_flags(o_ptr, flgs);