OSDN Git Service

[Fix] 呪いの一時効果の狂戦士化の説明文が*鑑定*時に出ない #1059
authorHabu <habu1010+github@gmail.com>
Tue, 15 Jun 2021 13:25:11 +0000 (22:25 +0900)
committerHabu <habu1010+github@gmail.com>
Tue, 15 Jun 2021 13:25:11 +0000 (22:25 +0900)
object_type の curse_flags の TRC::BERS_RAGE のチェック漏れによるもの。
他の呪いフラグと同じようにチェックするようにする。

src/perception/identification.cpp

index 8c602e9..2aec881 100644 (file)
@@ -654,7 +654,7 @@ bool screen_object(player_type *player_ptr, object_type *o_ptr, BIT_FLAGS mode)
         info[i++] = _("それは恐怖感を引き起こす。", "It makes you subject to cowardice.");
     }
 
-    if (has_flag(flgs, TR_BERS_RAGE))
+    if (has_flag(flgs, TR_BERS_RAGE) || o_ptr->curse_flags.has(TRC::BERS_RAGE))
         info[i++] = _("それは狂戦士化の発作を引き起こす。", "It makes you subject to berserker fits.");
 
     if ((has_flag(flgs, TR_TELEPORT)) || o_ptr->curse_flags.has(TRC::TELEPORT)) {