/* Rarely, take damage from the Jewel of Judgement */
if (one_in_(999) && !p_ptr->anti_magic)
{
- if ((inventory[INVEN_LITE].tval) &&
- (inventory[INVEN_LITE].sval == SV_LITE_JUDGE))
+ object_type *o_ptr = &inventory[INVEN_LITE];
+
+ if (o_ptr->name1 == ART_JUDGE)
{
#ifdef JP
-msg_print("¡Ø¿³È½¤ÎÊõÀС٤Ϥ¢¤Ê¤¿¤ÎÂÎÎϤòµÛ¼ý¤·¤¿¡ª");
-take_hit(DAMAGE_LOSELIFE, MIN(p_ptr->lev, 50), "¿³È½¤ÎÊõÀÐ", -1);
+ if (object_known_p(o_ptr))
+ msg_print("¡Ø¿³È½¤ÎÊõÀС٤Ϥ¢¤Ê¤¿¤ÎÂÎÎϤòµÛ¼ý¤·¤¿¡ª");
+ else
+ msg_print("¤Ê¤Ë¤«¤¬¤¢¤Ê¤¿¤ÎÂÎÎϤòµÛ¼ý¤·¤¿¡ª");
+ take_hit(DAMAGE_LOSELIFE, MIN(p_ptr->lev, 50), "¿³È½¤ÎÊõÀÐ", -1);
#else
- msg_print("The Jewel of Judgement drains life from you!");
+ if (object_known_p(o_ptr))
+ msg_print("The Jewel of Judgement drains life from you!");
+ else
+ msg_print("Something drains life from you!");
take_hit(DAMAGE_LOSELIFE, MIN(p_ptr->lev, 50), "the Jewel of Judgement", -1);
#endif
-
}
}