OSDN Git Service

[Refactor] #40514 player_type の resist_cold 変数を廃止. / Abolished the resist_cold variab...
[hengbandforosx/hengbandosx.git] / src / player-info / resistance-info.c
index 143b1d9..79ae3a5 100644 (file)
@@ -39,9 +39,9 @@ void set_element_resistance_info(player_type* creature_ptr, self_info_type* self
 
     if (has_immune_cold(creature_ptr)) {
         self_ptr->info[self_ptr->line++] = _("あなたは冷気に対する完全なる免疫を持っている。", "You are completely immune to cold.");
-    } else if (creature_ptr->resist_cold && is_oppose_cold(creature_ptr)) {
+    } else if (has_resist_cold(creature_ptr) && is_oppose_cold(creature_ptr)) {
         self_ptr->info[self_ptr->line++] = _("あなたは冷気への強力な耐性を持っている。", "You resist cold exceptionally well.");
-    } else if (creature_ptr->resist_cold || is_oppose_cold(creature_ptr)) {
+    } else if (has_resist_cold(creature_ptr) || is_oppose_cold(creature_ptr)) {
         self_ptr->info[self_ptr->line++] = _("あなたは冷気への耐性を持っている。", "You are resistant to cold.");
     }