OSDN Git Service

ASCII表示のモンスターの死体の設定色がTERM_DARK(文字の見えない黒)なら
authornothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Tue, 25 May 2004 13:01:20 +0000 (13:01 +0000)
committernothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Tue, 25 May 2004 13:01:20 +0000 (13:01 +0000)
ば, 表示色をそのモンスターの設定色で表示するように変更し, デフォルト
でこの設定とした. 死体を従来の単色表示に戻す場合は, シンボルエディタ
で死体に黒以外の色を設定するか, prefで死体(K:579)の色設定を行う. なお
骨は従来のままであり, モンスターの設定色にはならない.

lib/edit/k_info.txt
src/defines.h

index 9f8eec8..a7dd25d 100644 (file)
@@ -5590,7 +5590,7 @@ P:0:1d1:0:0:0
 
 N:579:¤Î»àÂÎ
 E:Corpse~
-G:~:v
+G:~:d
 I:10:1:0
 W:1:0:40:0
 A:1/2
index d37e9ef..3a004e7 100644 (file)
 #define object_attr(T) \
        ((k_info[(T)->k_idx].flavor) ? \
         (k_info[k_info[(T)->k_idx].flavor].x_attr) : \
-        (k_info[(T)->k_idx].x_attr))
+        ((!(T)->k_idx || ((T)->tval != TV_CORPSE) || ((T)->sval != SV_CORPSE) || \
+          (k_info[(T)->k_idx].x_attr != TERM_DARK)) ? \
+         (k_info[(T)->k_idx].x_attr) : (r_info[(T)->pval].x_attr)))
 
 /*
  * Return the "char" for a given item.