1 #include "player-info/resistance-info.h"
2 #include "player-info/self-info-util.h"
3 #include "player/player-race.h"
4 #include "status/element-resistance.h"
6 void set_element_resistance_info(player_type* creature_ptr, self_info_type* si_ptr)
8 if (creature_ptr->immune_acid) {
9 si_ptr->info[si_ptr->line++] = _("
\82 \82È
\82½
\82Í
\8e_
\82É
\91Î
\82·
\82é
\8a®
\91S
\82È
\82é
\96Æ
\89u
\82ð
\8e\9d\82Á
\82Ä
\82¢
\82é
\81B", "You are completely immune to acid.");
10 } else if (creature_ptr->resist_acid && is_oppose_acid(creature_ptr)) {
11 si_ptr->info[si_ptr->line++] = _("
\82 \82È
\82½
\82Í
\8e_
\82Ö
\82Ì
\8b
\97Í
\82È
\91Ï
\90«
\82ð
\8e\9d\82Á
\82Ä
\82¢
\82é
\81B", "You resist acid exceptionally well.");
12 } else if (creature_ptr->resist_acid || is_oppose_acid(creature_ptr)) {
13 si_ptr->info[si_ptr->line++] = _("
\82 \82È
\82½
\82Í
\8e_
\82Ö
\82Ì
\91Ï
\90«
\82ð
\8e\9d\82Á
\82Ä
\82¢
\82é
\81B", "You are resistant to acid.");
16 if (creature_ptr->immune_elec) {
17 si_ptr->info[si_ptr->line++] = _("
\82 \82È
\82½
\82Í
\93d
\8c\82\82É
\91Î
\82·
\82é
\8a®
\91S
\82È
\82é
\96Æ
\89u
\82ð
\8e\9d\82Á
\82Ä
\82¢
\82é
\81B", "You are completely immune to lightning.");
18 } else if (creature_ptr->resist_elec && is_oppose_elec(creature_ptr)) {
19 si_ptr->info[si_ptr->line++] = _("
\82 \82È
\82½
\82Í
\93d
\8c\82\82Ö
\82Ì
\8b
\97Í
\82È
\91Ï
\90«
\82ð
\8e\9d\82Á
\82Ä
\82¢
\82é
\81B", "You resist lightning exceptionally well.");
20 } else if (creature_ptr->resist_elec || is_oppose_elec(creature_ptr)) {
21 si_ptr->info[si_ptr->line++] = _("
\82 \82È
\82½
\82Í
\93d
\8c\82\82Ö
\82Ì
\91Ï
\90«
\82ð
\8e\9d\82Á
\82Ä
\82¢
\82é
\81B", "You are resistant to lightning.");
24 if (is_specific_player_race(creature_ptr, RACE_ANDROID) && !creature_ptr->immune_elec) {
25 si_ptr->info[si_ptr->line++] = _("
\82 \82È
\82½
\82Í
\93d
\8c\82\82É
\8eã
\82¢
\81B", "You are susceptible to damage from lightning.");
28 if (creature_ptr->immune_fire) {
29 si_ptr->info[si_ptr->line++] = _("
\82 \82È
\82½
\82Í
\89Î
\82É
\91Î
\82·
\82é
\8a®
\91S
\82È
\82é
\96Æ
\89u
\82ð
\8e\9d\82Á
\82Ä
\82¢
\82é
\81B", "You are completely immune to fire.");
30 } else if (creature_ptr->resist_fire && is_oppose_fire(creature_ptr)) {
31 si_ptr->info[si_ptr->line++] = _("
\82 \82È
\82½
\82Í
\89Î
\82Ö
\82Ì
\8b
\97Í
\82È
\91Ï
\90«
\82ð
\8e\9d\82Á
\82Ä
\82¢
\82é
\81B", "You resist fire exceptionally well.");
32 } else if (creature_ptr->resist_fire || is_oppose_fire(creature_ptr)) {
33 si_ptr->info[si_ptr->line++] = _("
\82 \82È
\82½
\82Í
\89Î
\82Ö
\82Ì
\91Ï
\90«
\82ð
\8e\9d\82Á
\82Ä
\82¢
\82é
\81B", "You are resistant to fire.");
36 if (is_specific_player_race(creature_ptr, RACE_ENT) && !creature_ptr->immune_fire) {
37 si_ptr->info[si_ptr->line++] = _("
\82 \82È
\82½
\82Í
\89Î
\82É
\8eã
\82¢
\81B", "You are susceptible to damage from fire.");
40 if (creature_ptr->immune_cold) {
41 si_ptr->info[si_ptr->line++] = _("
\82 \82È
\82½
\82Í
\97â
\8bC
\82É
\91Î
\82·
\82é
\8a®
\91S
\82È
\82é
\96Æ
\89u
\82ð
\8e\9d\82Á
\82Ä
\82¢
\82é
\81B", "You are completely immune to cold.");
42 } else if (creature_ptr->resist_cold && is_oppose_cold(creature_ptr)) {
43 si_ptr->info[si_ptr->line++] = _("
\82 \82È
\82½
\82Í
\97â
\8bC
\82Ö
\82Ì
\8b
\97Í
\82È
\91Ï
\90«
\82ð
\8e\9d\82Á
\82Ä
\82¢
\82é
\81B", "You resist cold exceptionally well.");
44 } else if (creature_ptr->resist_cold || is_oppose_cold(creature_ptr)) {
45 si_ptr->info[si_ptr->line++] = _("
\82 \82È
\82½
\82Í
\97â
\8bC
\82Ö
\82Ì
\91Ï
\90«
\82ð
\8e\9d\82Á
\82Ä
\82¢
\82é
\81B", "You are resistant to cold.");
48 if (creature_ptr->resist_pois && is_oppose_pois(creature_ptr)) {
49 si_ptr->info[si_ptr->line++] = _("
\82 \82È
\82½
\82Í
\93Å
\82Ö
\82Ì
\8b
\97Í
\82È
\91Ï
\90«
\82ð
\8e\9d\82Á
\82Ä
\82¢
\82é
\81B", "You resist poison exceptionally well.");
50 } else if (creature_ptr->resist_pois || is_oppose_pois(creature_ptr)) {
51 si_ptr->info[si_ptr->line++] = _("
\82 \82È
\82½
\82Í
\93Å
\82Ö
\82Ì
\91Ï
\90«
\82ð
\8e\9d\82Á
\82Ä
\82¢
\82é
\81B", "You are resistant to poison.");