OSDN Git Service

麻痺や彫像状態で死んだとき、死因に"麻痺状態で"、"彫像状態で"を追加するように
authormogami <mogami@0568b783-4c39-0410-ac80-bf13821ea2a2>
Fri, 22 Mar 2002 12:37:26 +0000 (12:37 +0000)
committermogami <mogami@0568b783-4c39-0410-ac80-bf13821ea2a2>
Fri, 22 Mar 2002 12:37:26 +0000 (12:37 +0000)
してみた。

src/effects.c

index c052e11..dc350fc 100644 (file)
@@ -4989,7 +4989,11 @@ bool take_hit(int damage_type, int damage, cptr hit_from, int monspell)
 #endif
 
                        /* Note cause of death */
-                       (void)strcpy(died_from, hit_from);
+#ifdef JP
+                       sprintf(died_from, "%s%s", !p_ptr->paralyzed ? "" : p_ptr->free_act ? "ĦÁü¾õÂÖ¤Ç":"Ëãáã¾õÂÖ¤Ç", hit_from);
+#else
+                       sprintf(died_from, "%s%s", hit_from, !p_ptr->paralyzed ? "" : " while helpless");
+#endif
 
                        /* No longer a winner */
                        total_winner = FALSE;