X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=src%2Fmonster1.c;h=270ad1cac55560dc59db6118e6675f1457025f3a;hb=a492efa52443c7afa39b02e29662b86285e4c22f;hp=f8c1de87b06d077b73f4c853f09bd094e9fa408e;hpb=362ae848f357219a25a7518cd708cefc9379d1e7;p=hengband%2Fhengband.git diff --git a/src/monster1.c b/src/monster1.c index f8c1de87b..270ad1cac 100644 --- a/src/monster1.c +++ b/src/monster1.c @@ -1,15 +1,15 @@ -/* File: monster1.c */ - -/* +/*! + * @file monster1.c + * @brief ã¢ã³ã¹ã¿ã¼æ å ±ã®è¨è¿° / describe monsters (using monster memory) + * @date 2013/12/11 + * @author * Copyright (c) 1997 Ben Harrison, James E. Wilson, Robert A. Koeneke - * * This software may be copied and distributed for educational, research, * and not for profit purposes provided that this copyright and statement * are included in all such copies. Other copyrights may also apply. + * 2014 Deskull rearranged comment for Doxygen. */ -/* Purpose: describe monsters (using monster memory) */ - #include "angband.h" @@ -18,36 +18,36 @@ */ static cptr wd_he[3] = #ifdef JP -{ "¤½¤ì", "Èà", "Èà½÷" }; +{ "ãã", "å½¼", "彼女" }; #else { "it", "he", "she" }; #endif static cptr wd_his[3] = #ifdef JP -{ "¤½¤ì¤Î", "Èà¤Î", "Èà½÷¤Î" }; +{ "ããã®", "å½¼ã®", "彼女ã®" }; #else { "its", "his", "her" }; #endif -/* - * Pluralizer. Args(count, singular, plural) +/*! + * è±èªã®è¤æ°ç³»è¨è¿°ç¨ãã¯ã / Pluralizer. Args(count, singular, plural) */ #define plural(c,s,p) \ (((c) == 1) ? (s) : (p)) - - - -/* - * Determine if the "armor" is known +/*! + * @brief ã¢ã³ã¹ã¿ã¼ã®ACæ å ±ãå¾ããã¨ãã§ããããè¿ã / Determine if the "armor" is known + * @param r_idx ã¢ã³ã¹ã¿ã¼ã®ç¨®æID + * @return æµã®ACãç¥ãæ¡ä»¶ãæºãããã¦ãããªãTRUEãè¿ã + * @details * The higher the level, the fewer kills needed. */ -static bool know_armour(int r_idx) +static bool know_armour(MONRACE_IDX r_idx) { monster_race *r_ptr = &r_info[r_idx]; @@ -55,7 +55,9 @@ static bool know_armour(int r_idx) s32b kills = r_ptr->r_tkills; - if (cheat_know) return (TRUE); + bool known = (r_ptr->r_cast_spell == MAX_UCHAR)? TRUE: FALSE; + + if (cheat_know || known) return (TRUE); /* Normal monsters */ if (kills > 304 / (4 + level)) return (TRUE); @@ -71,12 +73,19 @@ static bool know_armour(int r_idx) } -/* +/*! + * @brief ã¢ã³ã¹ã¿ã¼ã®ææå¨åãç¥ããã¨ãã§ãããã©ãããè¿ã * Determine if the "damage" of the given attack is known + * @param r_idx ã¢ã³ã¹ã¿ã¼ã®ç¨®æID + * @param i 確èªãããæ»ææçª + * @return æµã®ãã¡ã¼ã¸ãã¤ã¹ãç¥ãæ¡ä»¶ãæºãããã¦ãããªãTRUEãè¿ã + * @details + *
* the higher the level of the monster, the fewer the attacks you need, * the more damage an attack does, the more attacks you need + **/ -static bool know_damage(int r_idx, int i) +static bool know_damage(MONRACE_IDX r_idx, int i) { monster_race *r_ptr = &r_info[r_idx]; @@ -110,21 +119,93 @@ static bool know_damage(int r_idx, int i) */ void (*hook_c_roff)(byte attr, cptr str) = c_roff; +/*! + * @brief ã¢ã³ã¹ã¿ã¼ã®æãåºã¡ãã»ã¼ã¸ããããããæå®ãããé¢æ°ãã¤ã³ã¿ã«åºã¥ãåºåãã + * @param str åºåæåå + * @return ãªã + */ static void hooked_roff(cptr str) { /* Spawn */ hook_c_roff(TERM_WHITE, str); } +/*! +* @brief ãã¤ã¹ç®ãæååã«å¤æãã +* @param base_damage åºå®å¤ +* @param dice_num ãã¤ã¹æ° +* @param dice_side ãã¤ã¹é¢ +* @param dice_mult ãã¤ã¹åç +* @param dice_div ãã¤ã¹é¤æ° +* @param msg æååãæ ¼ç´ãããã¤ã³ã¿ +* @return ãªã +*/ +void dice_to_string(int base_damage, int dice_num, int dice_side, int dice_mult, int dice_div, char* msg) +{ + char base[80] = "", dice[80] = "", mult[80]=""; + + if (dice_num == 0) + { + sprintf(msg, "%d", base_damage); + } + else + { + if (base_damage != 0) + sprintf(base, "%d+", base_damage); + + if (dice_num == 1) + sprintf(dice, "d%d", dice_side); + else + sprintf(dice, "%dd%d", dice_num, dice_side); + + if (dice_mult != 1 || dice_div != 1) + { + if (dice_div == 1) + sprintf(mult, "*%d", dice_mult); + else + sprintf(mult, "*(%d/%d)", dice_mult, dice_div); + } + sprintf(msg, "%s%s%s", base, dice, mult); + } +} -/* +/*! +* @brief æååã«ã¢ã³ã¹ã¿ã¼ã®æ»æåãå ãã +* @param r_idx ã¢ã³ã¹ã¿ã¼ã®ç¨®æID +* @param SPELL_NUM åªæçªå· +* @param msg 表示ããæåå +* @param tmp è¿ãã¡ãã»ã¼ã¸ãæ ¼ç´ããé å +* @return ãªã +*/ +void set_damage(MONRACE_IDX r_idx, int SPELL_NUM, char* msg, char* tmp) +{ + int base_damage = monspell_race_damage(SPELL_NUM, r_idx, BASE_DAM); + int dice_num = monspell_race_damage(SPELL_NUM, r_idx, DICE_NUM); + int dice_side = monspell_race_damage(SPELL_NUM, r_idx, DICE_SIDE); + int dice_mult = monspell_race_damage(SPELL_NUM, r_idx, DICE_MULT); + int dice_div = monspell_race_damage(SPELL_NUM, r_idx, DICE_DIV); + char dmg_str[80], dice_str[80]; + dice_to_string(base_damage, dice_num, dice_side, dice_mult, dice_div, dmg_str); + sprintf(dice_str, "(%s)", dmg_str); + + if (know_armour(r_idx)) + sprintf(tmp, msg, dice_str); + else + sprintf(tmp, msg, ""); +} + +/*! + * @brief ã¢ã³ã¹ã¿ã¼ã®æãåºæ å ±ã表示ãã * Hack -- display monster information using "hooked_roff()" - * + * @param r_idx ã¢ã³ã¹ã¿ã¼ã®ç¨®æID + * @param mode 表示ãªãã·ã§ã³ + * @return ãªã + * @details * This function should only be called with the cursor placed at the * left edge of the screen, on a cleared line, in which the recall is * to take place. One extra blank line is left after the recall. */ -static void roff_aux(int r_idx, int mode) +static void roff_aux(MONRACE_IDX r_idx, BIT_FLAGS mode) { monster_race *r_ptr = &r_info[r_idx]; @@ -148,20 +229,21 @@ static void roff_aux(int r_idx, int mode) bool magic = FALSE; bool reinforce = FALSE; - u32b flags1; - u32b flags2; - u32b flags3; - u32b flags4; - u32b flags5; - u32b flags6; - u32b flags7; - u32b flagsr; + BIT_FLAGS flags1; + BIT_FLAGS flags2; + BIT_FLAGS flags3; + BIT_FLAGS flags4; + BIT_FLAGS a_ability_flags1; + BIT_FLAGS a_ability_flags2; + BIT_FLAGS flags7; + BIT_FLAGS flagsr; - byte drop_gold, drop_item; + ITEM_NUMBER drop_gold, drop_item; int vn = 0; byte color[96]; cptr vp[96]; + char tmp_msg[96][96]; bool know_everything = FALSE; @@ -174,8 +256,8 @@ static void roff_aux(int r_idx, int mode) flags2 = (r_ptr->flags2 & r_ptr->r_flags2); flags3 = (r_ptr->flags3 & r_ptr->r_flags3); flags4 = (r_ptr->flags4 & r_ptr->r_flags4); - flags5 = (r_ptr->flags5 & r_ptr->r_flags5); - flags6 = (r_ptr->flags6 & r_ptr->r_flags6); + a_ability_flags1 = (r_ptr->a_ability_flags1 & r_ptr->r_flags5); + a_ability_flags2 = (r_ptr->a_ability_flags2 & r_ptr->r_flags6); flags7 = (r_ptr->flags7 & r_ptr->flags7); flagsr = (r_ptr->flagsr & r_ptr->r_flagsr); @@ -209,8 +291,8 @@ static void roff_aux(int r_idx, int mode) flags2 = r_ptr->flags2; flags3 = r_ptr->flags3; flags4 = r_ptr->flags4; - flags5 = r_ptr->flags5; - flags6 = r_ptr->flags6; + a_ability_flags1 = r_ptr->a_ability_flags1; + a_ability_flags2 = r_ptr->a_ability_flags2; flagsr = r_ptr->flagsr; } @@ -271,14 +353,14 @@ static void roff_aux(int r_idx, int mode) if (r_ptr->r_deaths) { /* Killed ancestors */ - hooked_roff(format(_("%^s¤Ï¤¢¤Ê¤¿¤ÎÀèÁĤò %d ¿ÍÁò¤Ã¤Æ¤¤¤ë", "%^s has slain %d of your ancestors"), + hooked_roff(format(_("%^sã¯ããªãã®å ç¥ã %d 人è¬ã£ã¦ãã", "%^s has slain %d of your ancestors"), wd_he[msex], r_ptr->r_deaths)); /* But we've also killed it */ if (dead) { hooked_roff(format( - _("¤¬¡¢¤¹¤Ç¤ËµØƤ¤Á¤Ï²Ì¤¿¤·¤Æ¤¤¤ë¡ª", + _("ãããã§ã«ä»è¨ã¡ã¯æããã¦ããï¼", (", but you have avenged %s! ", plural(r_ptr->r_deaths, "him", "them"))))); } @@ -286,7 +368,7 @@ static void roff_aux(int r_idx, int mode) else { hooked_roff(format( - _("¤Î¤Ë¡¢¤Þ¤ÀµØƤ¤Á¤ò²Ì¤¿¤·¤Æ¤¤¤Ê¤¤¡£", + _("ã®ã«ãã¾ã ä»è¨ã¡ãæããã¦ããªãã", (", who %s unavenged. ", plural(r_ptr->r_deaths, "remains", "remain"))))); } @@ -297,7 +379,7 @@ static void roff_aux(int r_idx, int mode) /* Dead unique who never hurt us */ else if (dead) { - hooked_roff(_("¤¢¤Ê¤¿¤Ï¤³¤ÎµØŨ¤ò¤¹¤Ç¤ËÁò¤êµî¤Ã¤Æ¤¤¤ë¡£", "You have slain this foe. ")); + hooked_roff(_("ããªãã¯ãã®ä»æµããã§ã«è¬ãå»ã£ã¦ããã", "You have slain this foe. ")); /* Start a new line */ hooked_roff("\n"); @@ -309,14 +391,14 @@ static void roff_aux(int r_idx, int mode) { /* Dead ancestors */ hooked_roff( - _(format("¤³¤Î¥â¥ó¥¹¥¿¡¼¤Ï¤¢¤Ê¤¿¤ÎÀèÁĤò %d ¿ÍÁò¤Ã¤Æ¤¤¤ë", r_ptr->r_deaths), + _(format("ãã®ã¢ã³ã¹ã¿ã¼ã¯ããªãã®å ç¥ã %d 人è¬ã£ã¦ãã", r_ptr->r_deaths), format("%d of your ancestors %s been killed by this creature, ", r_ptr->r_deaths, plural(r_ptr->r_deaths, "has", "have")))); /* Some kills this life */ if (r_ptr->r_pkills) { hooked_roff(format( - _("¤¬¡¢¤¢¤Ê¤¿¤Ï¤³¤Î¥â¥ó¥¹¥¿¡¼¤ò¾¯¤Ê¤¯¤È¤â %d ÂΤÏÅݤ·¤Æ¤¤¤ë¡£", + _("ããããªãã¯ãã®ã¢ã³ã¹ã¿ã¼ãå°ãªãã¨ã %d ä½ã¯åãã¦ããã", "and you have exterminated at least %d of the creatures. "), r_ptr->r_pkills)); } @@ -324,7 +406,7 @@ static void roff_aux(int r_idx, int mode) else if (r_ptr->r_tkills) { hooked_roff(format( - _("¤¬¡¢¤¢¤Ê¤¿¤ÎÀèÁĤϤ³¤Î¥â¥ó¥¹¥¿¡¼¤ò¾¯¤Ê¤¯¤È¤â %d ÂΤÏÅݤ·¤Æ¤¤¤ë¡£", + _("ããããªãã®å ç¥ã¯ãã®ã¢ã³ã¹ã¿ã¼ãå°ãªãã¨ã %d ä½ã¯åãã¦ããã", "and your ancestors have exterminated at least %d of the creatures. "), r_ptr->r_tkills)); } @@ -332,7 +414,7 @@ static void roff_aux(int r_idx, int mode) else { hooked_roff(format( - _("¤¬¡¢¤Þ¤À%s¤òÅݤ·¤¿¤³¤È¤Ï¤Ê¤¤¡£", + _("ããã¾ã %sãåãããã¨ã¯ãªãã", "and %s is not ever known to have been defeated. "), wd_he[msex])); } @@ -347,7 +429,7 @@ static void roff_aux(int r_idx, int mode) if (r_ptr->r_pkills) { hooked_roff(format( - _("¤¢¤Ê¤¿¤Ï¤³¤Î¥â¥ó¥¹¥¿¡¼¤ò¾¯¤Ê¤¯¤È¤â %d ÂΤϻ¦¤·¤Æ¤¤¤ë¡£", + _("ããªãã¯ãã®ã¢ã³ã¹ã¿ã¼ãå°ãªãã¨ã %d ä½ã¯æ®ºãã¦ããã", "You have killed at least %d of these creatures. "), r_ptr->r_pkills)); } @@ -355,14 +437,14 @@ static void roff_aux(int r_idx, int mode) else if (r_ptr->r_tkills) { hooked_roff(format( - _("¤¢¤Ê¤¿¤ÎÀèÁĤϤ³¤Î¥â¥ó¥¹¥¿¡¼¤ò¾¯¤Ê¤¯¤È¤â %d ÂΤϻ¦¤·¤Æ¤¤¤ë¡£", + _("ããªãã®å ç¥ã¯ãã®ã¢ã³ã¹ã¿ã¼ãå°ãªãã¨ã %d ä½ã¯æ®ºãã¦ããã", "Your ancestors have killed at least %d of these creatures. "), r_ptr->r_tkills)); } /* Killed none */ else { - hooked_roff(_("¤³¤Î¥â¥ó¥¹¥¿¡¼¤òÅݤ·¤¿¤³¤È¤Ï¤Ê¤¤¡£", "No battles to the death are recalled. ")); + hooked_roff(_("ãã®ã¢ã³ã¹ã¿ã¼ãåãããã¨ã¯ãªãã", "No battles to the death are recalled. ")); } /* Start a new line */ @@ -397,7 +479,7 @@ static void roff_aux(int r_idx, int mode) /* Describe location */ if (r_ptr->level == 0) { - hooked_roff(format(_("%^s¤ÏÄ®¤Ë½»¤ß", "%^s lives in the town"), wd_he[msex])); + hooked_roff(format(_("%^sã¯çºã«ä½ã¿", "%^s lives in the town"), wd_he[msex])); old = TRUE; } else if (r_ptr->r_tkills || know_everything) @@ -405,13 +487,13 @@ static void roff_aux(int r_idx, int mode) if (depth_in_feet) { hooked_roff(format( - _("%^s¤ÏÄ̾ïÃϲ¼ %d ¥Õ¥£¡¼¥È¤Ç½Ð¸½¤·", "%^s is normally found at depths of %d feet"), + _("%^sã¯é常å°ä¸ %d ãã£ã¼ãã§åºç¾ã", "%^s is normally found at depths of %d feet"), wd_he[msex], r_ptr->level * 50)); } else { hooked_roff(format( - _("%^s¤ÏÄ̾ïÃϲ¼ %d ³¬¤Ç½Ð¸½¤·", "%^s is normally found on dungeon level %d"), + _("%^sã¯é常å°ä¸ %d éã§åºç¾ã", "%^s is normally found on dungeon level %d"), wd_he[msex], r_ptr->level)); } old = TRUE; @@ -421,7 +503,7 @@ static void roff_aux(int r_idx, int mode) /* Describe movement */ if (r_idx == MON_CHAMELEON) { - hooked_roff(_("¡¢Â¾¤Î¥â¥ó¥¹¥¿¡¼¤Ë²½¤±¤ë¡£", "and can take the shape of other monster.")); + hooked_roff(_("ãä»ã®ã¢ã³ã¹ã¿ã¼ã«åããã", "and can take the shape of other monster.")); return; } else @@ -429,11 +511,11 @@ static void roff_aux(int r_idx, int mode) /* Introduction */ if (old) { - hooked_roff(_("¡¢", ", and ")); + hooked_roff(_("ã", ", and ")); } else { - hooked_roff(format(_("%^s¤Ï", "%^s "), wd_he[msex])); + hooked_roff(format(_("%^sã¯", "%^s "), wd_he[msex])); old = TRUE; } #ifndef JP @@ -446,48 +528,48 @@ static void roff_aux(int r_idx, int mode) /* Adverb */ if ((flags1 & RF1_RAND_50) && (flags1 & RF1_RAND_25)) { - hooked_roff(_("¤«¤Ê¤ê", " extremely")); + hooked_roff(_("ããªã", " extremely")); } else if (flags1 & RF1_RAND_50) { - hooked_roff(_("´öʬ", " somewhat")); + hooked_roff(_("å¹¾å", " somewhat")); } else if (flags1 & RF1_RAND_25) { - hooked_roff(_("¾¯¡¹", " a bit")); + hooked_roff(_("å°ã ", " a bit")); } /* Adjective */ - hooked_roff(_("ÉÔµ¬Â§¤Ë", " erratically")); + hooked_roff(_("ä¸è¦åã«", " erratically")); /* Hack -- Occasional conjunction */ - if (speed != 110) hooked_roff(_("¡¢¤«¤Ä", ", and")); + if (speed != 110) hooked_roff(_("ããã¤", ", and")); } /* Speed */ if (speed > 110) { - if (speed > 139) hook_c_roff(TERM_RED, _("¿®¤¸Æñ¤¤¤Û¤É", " incredibly")); - else if (speed > 134) hook_c_roff(TERM_ORANGE, _("ÌÔÎõ¤Ë", " extremely")); - else if (speed > 129) hook_c_roff(TERM_ORANGE, _("Èó¾ï¤Ë", " very")); - else if (speed > 124) hook_c_roff(TERM_UMBER, _("¤«¤Ê¤ê", " fairly")); - else if (speed < 120) hook_c_roff(TERM_L_UMBER, _("¤ä¤ä", " somewhat")); - hook_c_roff(TERM_L_RED, _("ÁÇÁ᤯", " quickly")); + if (speed > 139) hook_c_roff(TERM_RED, _("ä¿¡ãé£ãã»ã©", " incredibly")); + else if (speed > 134) hook_c_roff(TERM_ORANGE, _("ççã«", " extremely")); + else if (speed > 129) hook_c_roff(TERM_ORANGE, _("é常ã«", " very")); + else if (speed > 124) hook_c_roff(TERM_UMBER, _("ããªã", " fairly")); + else if (speed < 120) hook_c_roff(TERM_L_UMBER, _("ãã", " somewhat")); + hook_c_roff(TERM_L_RED, _("ç´ æ©ã", " quickly")); } else if (speed < 110) { - if (speed < 90) hook_c_roff(TERM_L_GREEN, _("¿®¤¸Æñ¤¤¤Û¤É", " incredibly")); - else if (speed < 95) hook_c_roff(TERM_BLUE, _("Èó¾ï¤Ë", " very")); - else if (speed < 100) hook_c_roff(TERM_BLUE, _("¤«¤Ê¤ê", " fairly")); - else if (speed > 104) hook_c_roff(TERM_GREEN, _("¤ä¤ä", " somewhat")); - hook_c_roff(TERM_L_BLUE, _("¤æ¤Ã¤¯¤ê¤È", " slowly")); + if (speed < 90) hook_c_roff(TERM_L_GREEN, _("ä¿¡ãé£ãã»ã©", " incredibly")); + else if (speed < 95) hook_c_roff(TERM_BLUE, _("é常ã«", " very")); + else if (speed < 100) hook_c_roff(TERM_BLUE, _("ããªã", " fairly")); + else if (speed > 104) hook_c_roff(TERM_GREEN, _("ãã", " somewhat")); + hook_c_roff(TERM_L_BLUE, _("ãã£ããã¨", " slowly")); } else { - hooked_roff(_("ÉáÄ̤ή¤µ¤Ç", " at normal speed")); + hooked_roff(_("æ®éã®éãã§", " at normal speed")); } #ifdef JP - hooked_roff("Æ°¤¤¤Æ¤¤¤ë"); + hooked_roff("åãã¦ãã"); #endif } @@ -497,22 +579,22 @@ static void roff_aux(int r_idx, int mode) /* Introduce */ if (old) { - hooked_roff(_("¡¢¤·¤«¤·", ", but ")); + hooked_roff(_("ãããã", ", but ")); } else { - hooked_roff(format(_("%^s¤Ï", "%^s "), wd_he[msex])); + hooked_roff(format(_("%^sã¯", "%^s "), wd_he[msex])); old = TRUE; } /* Describe */ - hooked_roff(_("¿¯Æþ¼Ô¤òÄÉÀפ·¤Ê¤¤", "does not deign to chase intruders")); + hooked_roff(_("ä¾µå ¥è ã追跡ããªã", "does not deign to chase intruders")); } /* End this sentence */ if (old) { - hooked_roff(_("¡£", ". ")); + hooked_roff(_("ã", ". ")); old = FALSE; } @@ -522,7 +604,7 @@ static void roff_aux(int r_idx, int mode) { /* Introduction */ #ifdef JP - hooked_roff("¤³¤Î"); + hooked_roff("ãã®"); #else if (flags1 & RF1_UNIQUE) { @@ -536,59 +618,53 @@ static void roff_aux(int r_idx, int mode) /* Describe the "quality" */ - if (flags2 & RF2_ELDRITCH_HORROR) hook_c_roff(TERM_VIOLET, _("¶¸µ¤¤òͶ¤¦", " sanity-blasting"));/*nuke me*/ - if (flags3 & RF3_ANIMAL) hook_c_roff(TERM_L_GREEN, _("¼«Á³³¦¤Î", " natural")); - if (flags3 & RF3_EVIL) hook_c_roff(TERM_L_DARK, _("¼Ù°¤Ê¤ë", " evil")); - if (flags3 & RF3_GOOD) hook_c_roff(TERM_YELLOW, _("Á±ÎɤÊ", " good")); - if (flags3 & RF3_UNDEAD) hook_c_roff(TERM_VIOLET, _("¥¢¥ó¥Ç¥Ã¥É¤Î", " undead")); - if (flags3 & RF3_AMBERITE) hook_c_roff(TERM_VIOLET, _("¥¢¥ó¥Ð¡¼¤Î²¦Â²¤Î", " Amberite")); + if (flags2 & RF2_ELDRITCH_HORROR) hook_c_roff(TERM_VIOLET, _("çæ°ãèªã", " sanity-blasting"));/*nuke me*/ + if (flags3 & RF3_ANIMAL) hook_c_roff(TERM_L_GREEN, _("èªç¶çã®", " natural")); + if (flags3 & RF3_EVIL) hook_c_roff(TERM_L_DARK, _("éªæªãªã", " evil")); + if (flags3 & RF3_GOOD) hook_c_roff(TERM_YELLOW, _("åè¯ãª", " good")); + if (flags3 & RF3_UNDEAD) hook_c_roff(TERM_VIOLET, _("ã¢ã³ãããã®", " undead")); + if (flags3 & RF3_AMBERITE) hook_c_roff(TERM_VIOLET, _("ã¢ã³ãã¼ã®çæã®", " Amberite")); if ((flags3 & (RF3_DRAGON | RF3_DEMON | RF3_GIANT | RF3_TROLL | RF3_ORC)) || (flags2 & (RF2_QUANTUM | RF2_HUMAN))) { /* Describe the "race" */ - if (flags3 & RF3_DRAGON) hook_c_roff(TERM_ORANGE, _("¥É¥é¥´¥ó", " dragon")); - if (flags3 & RF3_DEMON) hook_c_roff(TERM_VIOLET, _("¥Ç¡¼¥â¥ó", " demon")); - if (flags3 & RF3_GIANT) hook_c_roff(TERM_L_UMBER, _("¥¸¥ã¥¤¥¢¥ó¥È", " giant")); - if (flags3 & RF3_TROLL) hook_c_roff(TERM_BLUE, _("¥È¥í¥ë", " troll")); - if (flags3 & RF3_ORC) hook_c_roff(TERM_UMBER, _("¥ª¡¼¥¯", " orc")); - if (flags2 & RF2_HUMAN) hook_c_roff(TERM_L_WHITE, _("¿Í´Ö", " human")); - if (flags2 & RF2_QUANTUM) hook_c_roff(TERM_VIOLET, _("ÎÌ»ÒÀ¸Êª", " quantum creature")); + if (flags3 & RF3_DRAGON) hook_c_roff(TERM_ORANGE, _("ãã©ã´ã³", " dragon")); + if (flags3 & RF3_DEMON) hook_c_roff(TERM_VIOLET, _("ãã¼ã¢ã³", " demon")); + if (flags3 & RF3_GIANT) hook_c_roff(TERM_L_UMBER, _("ã¸ã£ã¤ã¢ã³ã", " giant")); + if (flags3 & RF3_TROLL) hook_c_roff(TERM_BLUE, _("ããã«", " troll")); + if (flags3 & RF3_ORC) hook_c_roff(TERM_UMBER, _("ãªã¼ã¯", " orc")); + if (flags2 & RF2_HUMAN) hook_c_roff(TERM_L_WHITE, _("人é", " human")); + if (flags2 & RF2_QUANTUM) hook_c_roff(TERM_VIOLET, _("éåçç©", " quantum creature")); } else { - hooked_roff(_("¥â¥ó¥¹¥¿¡¼", " creature")); + hooked_roff(_("ã¢ã³ã¹ã¿ã¼", " creature")); } #ifdef JP - hooked_roff("¤òÅݤ¹¤³¤È¤Ï"); + hooked_roff("ãåããã¨ã¯"); #endif /* Group some variables */ { long i, j; -#ifdef JP - i = p_ptr->lev; - hooked_roff(format(" %lu ¥ì¥Ù¥ë¤Î¥¥ã¥é¥¯¥¿¤Ë¤È¤Ã¤Æ", (long)i)); - - i = (long)r_ptr->mexp * r_ptr->level / (p_ptr->max_plv+2); - j = ((((long)r_ptr->mexp * r_ptr->level % (p_ptr->max_plv+2)) * - (long)1000 / (p_ptr->max_plv+2) + 5) / 10); - - hooked_roff(format(" Ìó%ld.%02ld ¥Ý¥¤¥ó¥È¤Î·Ð¸³¤È¤Ê¤ë¡£", - (long)i, (long)j )); -#else /* calculate the integer exp part */ - i = (long)r_ptr->mexp * r_ptr->level / (p_ptr->max_plv+2); + i = (long)r_ptr->mexp * r_ptr->level / (p_ptr->max_plv + 2) * 3 / 2; /* calculate the fractional exp part scaled by 100, */ /* must use long arithmetic to avoid overflow */ - j = ((((long)r_ptr->mexp * r_ptr->level % (p_ptr->max_plv+2)) * - (long)1000 / (p_ptr->max_plv+2) + 5) / 10); + j = ((((long)r_ptr->mexp * r_ptr->level % (p_ptr->max_plv + 2) * 3 / 2) * + (long)1000 / (p_ptr->max_plv + 2) + 5) / 10); + +#ifdef JP + hooked_roff(format(" %d ã¬ãã«ã®ãã£ã©ã¯ã¿ã«ã¨ã£ã¦ ç´%ld.%02ld ãã¤ã³ãã®çµé¨ã¨ãªãã", + p_ptr->lev, (long)i, (long)j )); +#else /* Mention the experience */ - hooked_roff(format(" is worth about %ld.%02ld point%s", - (long)i, (long)j, - (((i == 1) && (j == 0)) ? "" : "s"))); + hooked_roff(format(" is worth about %ld.%02ld point%s for level %d player", + (long)i, (long)j, + (((i == 1) && (j == 0)) ? "" : "s")), p_ptr->lev); /* Take account of annoying English */ p = "th"; @@ -614,54 +690,54 @@ static void roff_aux(int r_idx, int mode) if ((flags2 & RF2_AURA_FIRE) && (flags2 & RF2_AURA_ELEC) && (flags3 & RF3_AURA_COLD)) { hook_c_roff(TERM_VIOLET, format( - _("%^s¤Ï±ê¤Èɹ¤È¥¹¥Ñ¡¼¥¯¤ËÊñ¤Þ¤ì¤Æ¤¤¤ë¡£", "%^s is surrounded by flames, ice and electricity. "), wd_he[msex])); + _("%^sã¯çã¨æ°·ã¨ã¹ãã¼ã¯ã«å ã¾ãã¦ããã", "%^s is surrounded by flames, ice and electricity. "), wd_he[msex])); } else if ((flags2 & RF2_AURA_FIRE) && (flags2 & RF2_AURA_ELEC)) { hook_c_roff(TERM_L_RED, format( - _("%^s¤Ï±ê¤È¥¹¥Ñ¡¼¥¯¤ËÊñ¤Þ¤ì¤Æ¤¤¤ë¡£", "%^s is surrounded by flames and electricity. "), wd_he[msex])); + _("%^sã¯çã¨ã¹ãã¼ã¯ã«å ã¾ãã¦ããã", "%^s is surrounded by flames and electricity. "), wd_he[msex])); } else if ((flags2 & RF2_AURA_FIRE) && (flags3 & RF3_AURA_COLD)) { hook_c_roff(TERM_BLUE, format( - _("%^s¤Ï±ê¤Èɹ¤ËÊñ¤Þ¤ì¤Æ¤¤¤ë¡£", "%^s is surrounded by flames and ice. "), wd_he[msex])); + _("%^sã¯çã¨æ°·ã«å ã¾ãã¦ããã", "%^s is surrounded by flames and ice. "), wd_he[msex])); } else if ((flags3 & RF3_AURA_COLD) && (flags2 & RF2_AURA_ELEC)) { hook_c_roff(TERM_L_GREEN, format( - _("%^s¤Ïɹ¤È¥¹¥Ñ¡¼¥¯¤ËÊñ¤Þ¤ì¤Æ¤¤¤ë¡£", "%^s is surrounded by ice and electricity. "), wd_he[msex])); + _("%^sã¯æ°·ã¨ã¹ãã¼ã¯ã«å ã¾ãã¦ããã", "%^s is surrounded by ice and electricity. "), wd_he[msex])); } else if (flags2 & RF2_AURA_FIRE) { hook_c_roff(TERM_RED, format( - _("%^s¤Ï±ê¤ËÊñ¤Þ¤ì¤Æ¤¤¤ë¡£", "%^s is surrounded by flames. "), wd_he[msex])); + _("%^sã¯çã«å ã¾ãã¦ããã", "%^s is surrounded by flames. "), wd_he[msex])); } else if (flags3 & RF3_AURA_COLD) { hook_c_roff(TERM_BLUE, format( - _("%^s¤Ïɹ¤ËÊñ¤Þ¤ì¤Æ¤¤¤ë¡£", "%^s is surrounded by ice. "), wd_he[msex])); + _("%^sã¯æ°·ã«å ã¾ãã¦ããã", "%^s is surrounded by ice. "), wd_he[msex])); } else if (flags2 & RF2_AURA_ELEC) { hook_c_roff(TERM_L_BLUE, format( - _("%^s¤Ï¥¹¥Ñ¡¼¥¯¤ËÊñ¤Þ¤ì¤Æ¤¤¤ë¡£", "%^s is surrounded by electricity. "), wd_he[msex])); + _("%^sã¯ã¹ãã¼ã¯ã«å ã¾ãã¦ããã", "%^s is surrounded by electricity. "), wd_he[msex])); } if (flags2 & RF2_REFLECTING) - hooked_roff(format(_("%^s¤ÏÌð¤Î¼öʸ¤òÄ·¤ÍÊÖ¤¹¡£", "%^s reflects bolt spells. "), wd_he[msex])); + hooked_roff(format(_("%^sã¯ç¢ã®åªæãè·³ãè¿ãã", "%^s reflects bolt spells. "), wd_he[msex])); /* Describe escorts */ if ((flags1 & RF1_ESCORT) || (flags1 & RF1_ESCORTS) || reinforce) { hooked_roff(format( - _("%^s¤ÏÄ̾ï¸î±Ò¤òȼ¤Ã¤Æ¸½¤ì¤ë¡£", "%^s usually appears with escorts. "), wd_he[msex])); + _("%^sã¯é常è·è¡ãä¼´ã£ã¦ç¾ããã", "%^s usually appears with escorts. "), wd_he[msex])); if(reinforce) { - hooked_roff(_("¸î±Ò¤Î¹½À®¤Ï", "These escorts")); + hooked_roff(_("è·è¡ã®æ§æã¯", "These escorts")); if((flags1 & RF1_ESCORT) || (flags1 & RF1_ESCORTS)) { - hooked_roff(_("¾¯¤Ê¤¯¤È¤â", " at the least")); + hooked_roff(_("å°ãªãã¨ã", " at the least")); } #ifndef JP hooked_roff(" contain "); @@ -673,12 +749,12 @@ static void roff_aux(int r_idx, int mode) monster_race *rf_ptr = &r_info[r_ptr->reinforce_id[n]]; if(rf_ptr->flags1 & RF1_UNIQUE) { - hooked_roff(format(_("¡¢%s", ", %s"), r_name + rf_ptr->name)); + hooked_roff(format(_("ã%s", ", %s"), r_name + rf_ptr->name)); } else { #ifdef JP - hooked_roff(format("¡¢ %dd%d ÂΤÎ%s", r_ptr->reinforce_dd[n], r_ptr->reinforce_ds[n], + hooked_roff(format("ã %dd%d ä½ã®%s", r_ptr->reinforce_dd[n], r_ptr->reinforce_ds[n], r_name + rf_ptr->name)); #else bool plural = (r_ptr->reinforce_dd[n] * r_ptr->reinforce_ds[n] > 1); @@ -690,29 +766,49 @@ static void roff_aux(int r_idx, int mode) } } } - hooked_roff(_("¤ÇÀ®¤êΩ¤Ã¤Æ¤¤¤ë¡£", ".")); + hooked_roff(_("ã§æãç«ã£ã¦ããã", ".")); } } /* Describe friends */ else if (flags1 & RF1_FRIENDS) { - hooked_roff(format(_("%^s¤ÏÄ̾クÃĤǸ½¤ì¤ë¡£", "%^s usually appears in groups. "), wd_he[msex])); + hooked_roff(format(_("%^sã¯é常éå£ã§ç¾ããã", "%^s usually appears in groups. "), wd_he[msex])); } /* Collect inate attacks */ vn = 0; - if (flags4 & RF4_SHRIEK) { vp[vn] = _("ÈáÌĤǽõ¤±¤òµá¤á¤ë", "shriek for help"); color[vn++] = TERM_L_WHITE; } - if (flags4 & RF4_ROCKET) { vp[vn] = _("¥í¥±¥Ã¥È¤òȯ¼Í¤¹¤ë", "shoot a rocket"); color[vn++] = TERM_UMBER; } - if (flags4 & RF4_SHOOT) { vp[vn] = _("¼Í·â¤ò¤¹¤ë", "fire an arrow"); color[vn++] = TERM_UMBER; } - if (flags6 & (RF6_SPECIAL)) { vp[vn] = _("ÆÃÊ̤ʹÔÆ°¤ò¤¹¤ë", "do something"); color[vn++] = TERM_VIOLET; } + if (flags4 & RF4_SHRIEK) { vp[vn] = _("æ²é³´ã§å©ããæ±ãã", "shriek for help"); color[vn++] = TERM_L_WHITE; } + if (flags4 & RF4_ROCKET) + { + set_damage(r_idx, (MS_ROCKET), _("ãã±ãã%sãçºå°ãã", "shoot a rocket%s"), tmp_msg[vn]); + vp[vn] = tmp_msg[vn]; + color[vn++] = TERM_UMBER; + } + + if (flags4 & RF4_SHOOT) + { + for (r = 0, m = 0; m < 4; m++) + { + if (r_ptr->blow[m].method == RBM_SHOOT) + { + if (know_armour(r_idx)) + sprintf(tmp_msg[vn], _("å¨å %dd%d ã®å°æããã","fire an arrow (Power:%dd%d)"), r_ptr->blow[m].d_side, r_ptr->blow[m].d_dice); + else + sprintf(tmp_msg[vn], _("å°æããã", "fire an arrow")); + vp[vn] = tmp_msg[vn]; color[vn++] = TERM_UMBER; + break; + } + } + } + if (a_ability_flags2 & (RF6_SPECIAL)) { vp[vn] = _("ç¹å¥ãªè¡åããã", "do something"); color[vn++] = TERM_VIOLET; } /* Describe inate attacks */ if (vn) { /* Intro */ - hooked_roff(format(_("%^s¤Ï", "%^s"), wd_he[msex])); + hooked_roff(format(_("%^sã¯", "%^s"), wd_he[msex])); /* Scan */ @@ -723,8 +819,8 @@ static void roff_aux(int r_idx, int mode) { jverb(vp[n], jverb_buf, JVERB_OR); hook_c_roff(color[n], jverb_buf); - hook_c_roff(color[n], "¤ê"); - hooked_roff("¡¢"); + hook_c_roff(color[n], "ã"); + hooked_roff("ã"); } else hook_c_roff(color[n], vp[n]); #else @@ -740,34 +836,144 @@ static void roff_aux(int r_idx, int mode) } /* End */ - hooked_roff(_("¤³¤È¤¬¤¢¤ë¡£", ". ")); + hooked_roff(_("ãã¨ãããã", ". ")); } /* Collect breaths */ vn = 0; - if (flags4 & (RF4_BR_ACID)) { vp[vn] = _("»À", "acid"); color[vn++] = TERM_GREEN; } - if (flags4 & (RF4_BR_ELEC)) { vp[vn] = _("°ðºÊ", "lightning"); color[vn++] = TERM_BLUE; } - if (flags4 & (RF4_BR_FIRE)) { vp[vn] = _("²Ð±ê", "fire"); color[vn++] = TERM_RED; } - if (flags4 & (RF4_BR_COLD)) { vp[vn] = _("Î䵤", "frost"); color[vn++] = TERM_L_WHITE; } - if (flags4 & (RF4_BR_POIS)) { vp[vn] = _("ÆÇ", "poison"); color[vn++] = TERM_L_GREEN; } - if (flags4 & (RF4_BR_NETH)) { vp[vn] = _("ÃϹö", "nether"); color[vn++] = TERM_L_DARK; } - if (flags4 & (RF4_BR_LITE)) { vp[vn] = _("Á®¸÷", "light"); color[vn++] = TERM_YELLOW; } - if (flags4 & (RF4_BR_DARK)) { vp[vn] = _("°Å¹õ", "darkness"); color[vn++] = TERM_L_DARK; } - if (flags4 & (RF4_BR_CONF)) { vp[vn] = _("º®Íð", "confusion"); color[vn++] = TERM_L_UMBER; } - if (flags4 & (RF4_BR_SOUN)) { vp[vn] = _("¹ì²»", "sound"); color[vn++] = TERM_ORANGE; } - if (flags4 & (RF4_BR_CHAO)) { vp[vn] = _("¥«¥ª¥¹", "chaos"); color[vn++] = TERM_VIOLET; } - if (flags4 & (RF4_BR_DISE)) { vp[vn] = _("Îô²½", "disenchantment"); color[vn++] = TERM_VIOLET; } - if (flags4 & (RF4_BR_NEXU)) { vp[vn] = _("°ø²Ìº®Íð", "nexus"); color[vn++] = TERM_VIOLET; } - if (flags4 & (RF4_BR_TIME)) { vp[vn] = _("»þ´ÖµÕž", "time"); color[vn++] = TERM_L_BLUE; } - if (flags4 & (RF4_BR_INER)) { vp[vn] = _("ÃÙÆß", "inertia"); color[vn++] = TERM_SLATE; } - if (flags4 & (RF4_BR_GRAV)) { vp[vn] = _("½ÅÎÏ", "gravity"); color[vn++] = TERM_SLATE; } - if (flags4 & (RF4_BR_SHAR)) { vp[vn] = _("ÇËÊÒ", "shards"); color[vn++] = TERM_L_UMBER; } - if (flags4 & (RF4_BR_PLAS)) { vp[vn] = _("¥×¥é¥º¥Þ", "plasma"); color[vn++] = TERM_L_RED; } - if (flags4 & (RF4_BR_WALL)) { vp[vn] = _("¥Õ¥©¡¼¥¹", "force"); color[vn++] = TERM_UMBER; } - if (flags4 & (RF4_BR_MANA)) { vp[vn] = _("ËâÎÏ", "mana"); color[vn++] = TERM_L_BLUE; } - if (flags4 & (RF4_BR_NUKE)) { vp[vn] = _("Êü¼ÍÀÇÑ´þʪ", "toxic waste"); color[vn++] = TERM_L_GREEN; } - if (flags4 & (RF4_BR_DISI)) { vp[vn] = _("ʬ²ò", "disintegration"); color[vn++] = TERM_SLATE; } + if (flags4 & (RF4_BR_ACID)) + { + set_damage(r_idx, (MS_BR_ACID), _("é ¸%s", "acid%s"), tmp_msg[vn]); + vp[vn] = tmp_msg[vn]; + color[vn++] = TERM_GREEN; + } + if (flags4 & (RF4_BR_ELEC)) + { + set_damage(r_idx, (MS_BR_ELEC), _("稲妻%s", "lightning%s"), tmp_msg[vn]); + vp[vn] = tmp_msg[vn]; + color[vn++] = TERM_BLUE; + } + if (flags4 & (RF4_BR_FIRE)) + { + set_damage(r_idx, (MS_BR_FIRE), _("ç«ç%s", "fire%s"), tmp_msg[vn]); + vp[vn] = tmp_msg[vn]; + color[vn++] = TERM_RED; + } + if (flags4 & (RF4_BR_COLD)) + { + set_damage(r_idx, (MS_BR_COLD), _("å·æ°%s", "frost%s"), tmp_msg[vn]); + vp[vn] = tmp_msg[vn]; + color[vn++] = TERM_L_WHITE; + } + if (flags4 & (RF4_BR_POIS)) + { + set_damage(r_idx, (MS_BR_POIS), _("æ¯%s", "poison%s"), tmp_msg[vn]); + vp[vn] = tmp_msg[vn]; + color[vn++] = TERM_L_GREEN; + } + if (flags4 & (RF4_BR_NETH)) + { + set_damage(r_idx, (MS_BR_NETHER), _("å°ç%s", "nether%s"), tmp_msg[vn]); + vp[vn] = tmp_msg[vn]; + color[vn++] = TERM_L_DARK; + } + if (flags4 & (RF4_BR_LITE)) + { + set_damage(r_idx, (MS_BR_LITE), _("éå %s", "light%s"), tmp_msg[vn]); + vp[vn] = tmp_msg[vn]; + color[vn++] = TERM_YELLOW; + } + if (flags4 & (RF4_BR_DARK)) + { + set_damage(r_idx, (MS_BR_DARK), _("æé»%s", "darkness%s"), tmp_msg[vn]); + vp[vn] = tmp_msg[vn]; + color[vn++] = TERM_L_DARK; + } + if (flags4 & (RF4_BR_CONF)) + { + set_damage(r_idx, (MS_BR_CONF), _("æ··ä¹±%s", "confusion%s"), tmp_msg[vn]); + vp[vn] = tmp_msg[vn]; + color[vn++] = TERM_L_UMBER; + } + if (flags4 & (RF4_BR_SOUN)) + { + set_damage(r_idx, (MS_BR_SOUND), _("è½é³%s", "sound%s"), tmp_msg[vn]); + vp[vn] = tmp_msg[vn]; + color[vn++] = TERM_ORANGE; + } + if (flags4 & (RF4_BR_CHAO)) + { + set_damage(r_idx, (MS_BR_CHAOS), _("ã«ãªã¹%s", "chaos%s"), tmp_msg[vn]); + vp[vn] = tmp_msg[vn]; + color[vn++] = TERM_VIOLET; + } + if (flags4 & (RF4_BR_DISE)) + { + set_damage(r_idx, (MS_BR_DISEN), _("å£å%s", "disenchantment%s"), tmp_msg[vn]); + vp[vn] = tmp_msg[vn]; + color[vn++] = TERM_VIOLET; + } + if (flags4 & (RF4_BR_NEXU)) + { + set_damage(r_idx, (MS_BR_NEXUS), _("å ææ··ä¹±%s", "nexus%s"), tmp_msg[vn]); + vp[vn] = tmp_msg[vn]; + color[vn++] = TERM_VIOLET; + } + if (flags4 & (RF4_BR_TIME)) + { + set_damage(r_idx, (MS_BR_TIME), _("æéé転%s", "time%s"), tmp_msg[vn]); + vp[vn] = tmp_msg[vn]; + color[vn++] = TERM_L_BLUE; + } + if (flags4 & (RF4_BR_INER)) + { + set_damage(r_idx, (MS_BR_INERTIA), _("é é%s", "inertia%s"), tmp_msg[vn]); + vp[vn] = tmp_msg[vn]; + color[vn++] = TERM_SLATE; + } + if (flags4 & (RF4_BR_GRAV)) + { + set_damage(r_idx, (MS_BR_GRAVITY), _("éå%s", "gravity%s"), tmp_msg[vn]); + vp[vn] = tmp_msg[vn]; + color[vn++] = TERM_SLATE; + } + if (flags4 & (RF4_BR_SHAR)) + { + set_damage(r_idx, (MS_BR_SHARDS), _("ç ´ç%s", "shards%s"), tmp_msg[vn]); + vp[vn] = tmp_msg[vn]; + color[vn++] = TERM_L_UMBER; + } + if (flags4 & (RF4_BR_PLAS)) + { + set_damage(r_idx, (MS_BR_PLASMA), _("ãã©ãºã%s", "plasma%s"), tmp_msg[vn]); + vp[vn] = tmp_msg[vn]; + color[vn++] = TERM_L_RED; + } + if (flags4 & (RF4_BR_WALL)) + { + set_damage(r_idx, (MS_BR_FORCE), _("ãã©ã¼ã¹%s", "force%s"), tmp_msg[vn]); + vp[vn] = tmp_msg[vn]; + color[vn++] = TERM_UMBER; + } + if (flags4 & (RF4_BR_MANA)) + { + set_damage(r_idx, (MS_BR_MANA), _("éå%s", "mana%s"), tmp_msg[vn]); + vp[vn] = tmp_msg[vn]; + color[vn++] = TERM_L_BLUE; + } + if (flags4 & (RF4_BR_NUKE)) + { + set_damage(r_idx, (MS_BR_NUKE), _("æ¾å°æ§å»æ£ç©%s", "toxic waste%s"), tmp_msg[vn]); + vp[vn] = tmp_msg[vn]; + color[vn++] = TERM_L_GREEN; + } + if (flags4 & (RF4_BR_DISI)) + { + set_damage(r_idx, (MS_BR_DISI), _("å解%s", "disintegration%s"), tmp_msg[vn]); + vp[vn] = tmp_msg[vn]; + color[vn++] = TERM_SLATE; + } /* Describe breaths */ if (vn) @@ -776,14 +982,14 @@ static void roff_aux(int r_idx, int mode) breath = TRUE; /* Intro */ - hooked_roff(format(_("%^s¤Ï", "%^s"), wd_he[msex])); + hooked_roff(format(_("%^sã¯", "%^s"), wd_he[msex])); /* Scan */ for (n = 0; n < vn; n++) { /* Intro */ #ifdef JP - if ( n != 0 ) hooked_roff("¤ä"); + if ( n != 0 ) hooked_roff("ã"); #else if (n == 0) hooked_roff(" may breathe "); else if (n < vn-1) hooked_roff(", "); @@ -795,91 +1001,245 @@ static void roff_aux(int r_idx, int mode) hook_c_roff(color[n], vp[n]); } #ifdef JP - hooked_roff("¤Î¥Ö¥ì¥¹¤òÅǤ¯¤³¤È¤¬¤¢¤ë"); + hooked_roff("ã®ãã¬ã¹ãåããã¨ããã"); #endif } /* Collect spells */ vn = 0; - if (flags5 & (RF5_BA_ACID)) { vp[vn] = _("¥¢¥·¥Ã¥É¡¦¥Ü¡¼¥ë", "produce acid balls"); color[vn++] = TERM_GREEN; } - if (flags5 & (RF5_BA_ELEC)) { vp[vn] = _("¥µ¥ó¥À¡¼¡¦¥Ü¡¼¥ë", "produce lightning balls"); color[vn++] = TERM_BLUE; } - if (flags5 & (RF5_BA_FIRE)) { vp[vn] = _("¥Õ¥¡¥¤¥¢¡¦¥Ü¡¼¥ë", "produce fire balls"); color[vn++] = TERM_RED; } - if (flags5 & (RF5_BA_COLD)) { vp[vn] = _("¥¢¥¤¥¹¡¦¥Ü¡¼¥ë", "produce frost balls"); color[vn++] = TERM_L_WHITE; } - if (flags5 & (RF5_BA_POIS)) { vp[vn] = _("°½±À", "produce poison balls"); color[vn++] = TERM_L_GREEN; } - if (flags5 & (RF5_BA_NETH)) { vp[vn] = _("ÃϹöµå", "produce nether balls"); color[vn++] = TERM_L_DARK; } - if (flags5 & (RF5_BA_WATE)) { vp[vn] = _("¥¦¥©¡¼¥¿¡¼¡¦¥Ü¡¼¥ë", "produce water balls"); color[vn++] = TERM_BLUE; } - if (flags4 & (RF4_BA_NUKE)) { vp[vn] = _("Êü¼Íǽµå", "produce balls of radiation"); color[vn++] = TERM_L_GREEN; } - if (flags5 & (RF5_BA_MANA)) { vp[vn] = _("ËâÎϤÎÍò", "invoke mana storms"); color[vn++] = TERM_L_BLUE; } - if (flags5 & (RF5_BA_DARK)) { vp[vn] = _("°Å¹õ¤ÎÍò", "invoke darkness storms"); color[vn++] = TERM_L_DARK; } - if (flags5 & (RF5_BA_LITE)) { vp[vn] = _("¥¹¥¿¡¼¥Ð¡¼¥¹¥È", "invoke starburst"); color[vn++] = TERM_YELLOW; } - if (flags4 & (RF4_BA_CHAO)) { vp[vn] = _("½ã¥í¥°¥ë¥¹", "invoke raw Logrus"); color[vn++] = TERM_VIOLET; } - if (flags6 & (RF6_HAND_DOOM)) { vp[vn] = _("ÇËÌǤμê", "invoke the Hand of Doom"); color[vn++] = TERM_VIOLET; } - if (flags6 & (RF6_PSY_SPEAR)) { vp[vn] = _("¸÷¤Î·õ", "psycho-spear"); color[vn++] = TERM_YELLOW; } - if (flags5 & (RF5_DRAIN_MANA)) { vp[vn] = _("ËâÎϵۼý", "drain mana"); color[vn++] = TERM_SLATE; } - if (flags5 & (RF5_MIND_BLAST)) { vp[vn] = _("Àº¿À¹¶·â", "cause mind blasting"); color[vn++] = TERM_L_RED; } - if (flags5 & (RF5_BRAIN_SMASH)) { vp[vn] = _("Ǿ¹¶·â", "cause brain smashing"); color[vn++] = TERM_RED; } - if (flags5 & (RF5_CAUSE_1)) { vp[vn] = _("·Ú½ý¡Ü¼ö¤¤", "cause light wounds and cursing"); color[vn++] = TERM_L_WHITE; } - if (flags5 & (RF5_CAUSE_2)) { vp[vn] = _("½Å½ý¡Ü¼ö¤¤", "cause serious wounds and cursing"); color[vn++] = TERM_L_WHITE; } - if (flags5 & (RF5_CAUSE_3)) { vp[vn] = _("Ã×Ì¿½ý¡Ü¼ö¤¤", "cause critical wounds and cursing"); color[vn++] = TERM_L_WHITE; } - if (flags5 & (RF5_CAUSE_4)) { vp[vn] = _("È빦¤òÆͤ¯", "cause mortal wounds"); color[vn++] = TERM_L_WHITE; } - if (flags5 & (RF5_BO_ACID)) { vp[vn] = _("¥¢¥·¥Ã¥É¡¦¥Ü¥ë¥È", "produce acid bolts"); color[vn++] = TERM_GREEN; } - if (flags5 & (RF5_BO_ELEC)) { vp[vn] = _("¥µ¥ó¥À¡¼¡¦¥Ü¥ë¥È", "produce lightning bolts"); color[vn++] = TERM_BLUE; } - if (flags5 & (RF5_BO_FIRE)) { vp[vn] = _("¥Õ¥¡¥¤¥¢¡¦¥Ü¥ë¥È", "produce fire bolts"); color[vn++] = TERM_RED; } - if (flags5 & (RF5_BO_COLD)) { vp[vn] = _("¥¢¥¤¥¹¡¦¥Ü¥ë¥È", "produce frost bolts"); color[vn++] = TERM_L_WHITE; } - if (flags5 & (RF5_BO_NETH)) { vp[vn] = _("ÃϹö¤ÎÌð", "produce nether bolts"); color[vn++] = TERM_L_DARK; } - if (flags5 & (RF5_BO_WATE)) { vp[vn] = _("¥¦¥©¡¼¥¿¡¼¡¦¥Ü¥ë¥È", "produce water bolts"); color[vn++] = TERM_BLUE; } - if (flags5 & (RF5_BO_MANA)) { vp[vn] = _("ËâÎϤÎÌð", "produce mana bolts"); color[vn++] = TERM_L_BLUE; } - if (flags5 & (RF5_BO_PLAS)) { vp[vn] = _("¥×¥é¥º¥Þ¡¦¥Ü¥ë¥È", "produce plasma bolts"); color[vn++] = TERM_L_RED; } - if (flags5 & (RF5_BO_ICEE)) { vp[vn] = _("¶Ë´¨¤ÎÌð", "produce ice bolts"); color[vn++] = TERM_WHITE; } - if (flags5 & (RF5_MISSILE)) { vp[vn] = _("¥Þ¥¸¥Ã¥¯¥ß¥µ¥¤¥ë", "produce magic missiles"); color[vn++] = TERM_SLATE; } - if (flags5 & (RF5_SCARE)) { vp[vn] = _("¶²ÉÝ", "terrify"); color[vn++] = TERM_SLATE; } - if (flags5 & (RF5_BLIND)) { vp[vn] = _("Ìܤ¯¤é¤Þ¤·", "blind"); color[vn++] = TERM_L_DARK; } - if (flags5 & (RF5_CONF)) { vp[vn] = _("º®Íð", "confuse"); color[vn++] = TERM_L_UMBER; } - if (flags5 & (RF5_SLOW)) { vp[vn] = _("¸ºÂ®", "slow"); color[vn++] = TERM_UMBER; } - if (flags5 & (RF5_HOLD)) { vp[vn] = _("Ëãáã", "paralyze"); color[vn++] = TERM_RED; } - if (flags6 & (RF6_HASTE)) { vp[vn] = _("²Ã®", "haste-self"); color[vn++] = TERM_L_GREEN; } - if (flags6 & (RF6_HEAL)) { vp[vn] = _("¼£Ìþ", "heal-self"); color[vn++] = TERM_WHITE; } - if (flags6 & (RF6_INVULNER)) { vp[vn] = _("̵Ũ²½", "make invulnerable"); color[vn++] = TERM_WHITE; } - if (flags4 & RF4_DISPEL) { vp[vn] = _("ËâÎϾõî", "dispel-magic"); color[vn++] = TERM_L_WHITE; } - if (flags6 & (RF6_BLINK)) { vp[vn] = _("¥·¥ç¡¼¥È¥Æ¥ì¥Ý¡¼¥È", "blink-self"); color[vn++] = TERM_UMBER; } - if (flags6 & (RF6_TPORT)) { vp[vn] = _("¥Æ¥ì¥Ý¡¼¥È", "teleport-self"); color[vn++] = TERM_ORANGE; } - if (flags6 & (RF6_WORLD)) { vp[vn] = _("»þ¤ò»ß¤á¤ë", "stop the time"); color[vn++] = TERM_L_BLUE; } - if (flags6 & (RF6_TELE_TO)) { vp[vn] = _("¥Æ¥ì¥Ý¡¼¥È¥Ð¥Ã¥¯", "teleport to"); color[vn++] = TERM_L_UMBER; } - if (flags6 & (RF6_TELE_AWAY)) { vp[vn] = _("¥Æ¥ì¥Ý¡¼¥È¥¢¥¦¥§¥¤", "teleport away"); color[vn++] = TERM_UMBER; } - if (flags6 & (RF6_TELE_LEVEL)) { vp[vn] = _("¥Æ¥ì¥Ý¡¼¥È¡¦¥ì¥Ù¥ë", "teleport level"); color[vn++] = TERM_ORANGE; } - - if (flags6 & (RF6_DARKNESS)) + if (a_ability_flags1 & (RF5_BA_ACID)) + { + set_damage(r_idx, (MS_BALL_ACID), _("ã¢ã·ããã»ãã¼ã«%s", "produce acid balls%s"), tmp_msg[vn]); + vp[vn] = tmp_msg[vn]; + color[vn++] = TERM_GREEN; + } + if (a_ability_flags1 & (RF5_BA_ELEC)) + { + set_damage(r_idx, (MS_BALL_ELEC), _("ãµã³ãã¼ã»ãã¼ã«%s", "produce lightning balls%s"), tmp_msg[vn]); + vp[vn] = tmp_msg[vn]; + color[vn++] = TERM_BLUE; + } + if (a_ability_flags1 & (RF5_BA_FIRE)) + { + set_damage(r_idx, (MS_BALL_FIRE), _("ãã¡ã¤ã¢ã»ãã¼ã«%s", "produce fire balls%s"), tmp_msg[vn]); + vp[vn] = tmp_msg[vn]; + color[vn++] = TERM_RED; + } + if (a_ability_flags1 & (RF5_BA_COLD)) + { + set_damage(r_idx, (MS_BALL_COLD), _("ã¢ã¤ã¹ã»ãã¼ã«%s", "produce frost balls%s"), tmp_msg[vn]); + vp[vn] = tmp_msg[vn]; + color[vn++] = TERM_L_WHITE; + } + if (a_ability_flags1 & (RF5_BA_POIS)) + { + set_damage(r_idx, (MS_BALL_POIS), _("æªèé²%s", "produce poison balls%s"), tmp_msg[vn]); + vp[vn] = tmp_msg[vn]; + color[vn++] = TERM_L_GREEN; + } + if (a_ability_flags1 & (RF5_BA_NETH)) + { + set_damage(r_idx, (MS_BALL_NETHER), _("å°çç%s", "produce nether balls%s"), tmp_msg[vn]); + vp[vn] = tmp_msg[vn]; + color[vn++] = TERM_L_DARK; + } + if (a_ability_flags1 & (RF5_BA_WATE)) + { + set_damage(r_idx, (MS_BALL_WATER), _("ã¦ã©ã¼ã¿ã¼ã»ãã¼ã«%s", "produce water balls%s"), tmp_msg[vn]); + vp[vn] = tmp_msg[vn]; + color[vn++] = TERM_BLUE; + } + if (flags4 & (RF4_BA_NUKE)) + { + set_damage(r_idx, (MS_BALL_NUKE), _("æ¾å°è½ç%s", "produce balls of radiation%s"), tmp_msg[vn]); + vp[vn] = tmp_msg[vn]; + color[vn++] = TERM_L_GREEN; + } + if (a_ability_flags1 & (RF5_BA_MANA)) + { + set_damage(r_idx, (MS_BALL_MANA), _("éåã®åµ%s", "invoke mana storms%s"), tmp_msg[vn]); + vp[vn] = tmp_msg[vn]; + color[vn++] = TERM_L_BLUE; + } + if (a_ability_flags1 & (RF5_BA_DARK)) + { + set_damage(r_idx, (MS_BALL_DARK), _("æé»ã®åµ%s", "invoke darkness storms%s"), tmp_msg[vn]); + vp[vn] = tmp_msg[vn]; + color[vn++] = TERM_L_DARK; + } + if (a_ability_flags1 & (RF5_BA_LITE)) + { + set_damage(r_idx, (MS_STARBURST), _("ã¹ã¿ã¼ãã¼ã¹ã%s", "invoke starburst%s"), tmp_msg[vn]); + vp[vn] = tmp_msg[vn]; + color[vn++] = TERM_YELLOW; + } + if (flags4 & (RF4_BA_CHAO)) + { + set_damage(r_idx, (MS_BALL_CHAOS), _("ç´ãã°ã«ã¹%s", "invoke raw Logrus%s"), tmp_msg[vn]); + vp[vn] = tmp_msg[vn]; + color[vn++] = TERM_VIOLET; + } + if (a_ability_flags2 & (RF6_HAND_DOOM)){ vp[vn] = _("ç ´æ» ã®æ(40%-60%)", "invoke the Hand of Doom(40%-60%)"); color[vn++] = TERM_VIOLET; } + if (a_ability_flags2 & (RF6_PSY_SPEAR)) + { + set_damage(r_idx, (MS_PSY_SPEAR), _("å ã®å£%s", "psycho-spear%s"), tmp_msg[vn]); + vp[vn] = tmp_msg[vn]; + color[vn++] = TERM_YELLOW; + } + if (a_ability_flags1 & (RF5_DRAIN_MANA)) + { + set_damage(r_idx, (MS_DRAIN_MANA), _("éåå¸å%s", "drain mana%s"), tmp_msg[vn]); + vp[vn] = tmp_msg[vn]; + color[vn++] = TERM_SLATE; + } + if (a_ability_flags1 & (RF5_MIND_BLAST)) + { + set_damage(r_idx, (MS_MIND_BLAST), _("ç²¾ç¥æ»æ%s", "cause mind blasting%s"), tmp_msg[vn]); + vp[vn] = tmp_msg[vn]; + color[vn++] = TERM_L_RED; + } + if (a_ability_flags1 & (RF5_BRAIN_SMASH)) + { + set_damage(r_idx, (MS_BRAIN_SMASH), _("è³æ»æ%s", "cause brain smashing%s"), tmp_msg[vn]); + vp[vn] = tmp_msg[vn]; + color[vn++] = TERM_RED; + } + if (a_ability_flags1 & (RF5_CAUSE_1)) + { + set_damage(r_idx, (MS_CAUSE_1), + _("軽å·ï¼åªã%s", "cause light wounds and cursing%s"), tmp_msg[vn]); + vp[vn] = tmp_msg[vn]; + color[vn++] = TERM_L_WHITE; + } + if (a_ability_flags1 & (RF5_CAUSE_2)) + { + set_damage(r_idx, (MS_CAUSE_2), + _("éå·ï¼åªã%s", "cause serious wounds and cursing%s"), tmp_msg[vn]); + vp[vn] = tmp_msg[vn]; + color[vn++] = TERM_L_WHITE; + } + if (a_ability_flags1 & (RF5_CAUSE_3)) + { + set_damage(r_idx, (MS_CAUSE_3), + _("è´å½å·ï¼åªã%s", "cause critical wounds and cursing%s"), tmp_msg[vn]); + vp[vn] = tmp_msg[vn]; + color[vn++] = TERM_L_WHITE; + } + if (a_ability_flags1 & (RF5_CAUSE_4)) + { + set_damage(r_idx, (MS_CAUSE_4), + _("ç§åãçªã%s", "cause mortal wounds%s"), tmp_msg[vn]); + vp[vn] = tmp_msg[vn]; + color[vn++] = TERM_L_WHITE; + } + if (a_ability_flags1 & (RF5_BO_ACID)) + { + set_damage(r_idx, (MS_BOLT_ACID), _("ã¢ã·ããã»ãã«ã%s", "produce acid bolts%s"), tmp_msg[vn]); + vp[vn] = tmp_msg[vn]; + color[vn++] = TERM_GREEN; + } + if (a_ability_flags1 & (RF5_BO_ELEC)) + { + set_damage(r_idx, (MS_BOLT_ELEC), _("ãµã³ãã¼ã»ãã«ã%s", "produce lightning bolts%s"), tmp_msg[vn]); + vp[vn] = tmp_msg[vn]; + color[vn++] = TERM_BLUE; + } + if (a_ability_flags1 & (RF5_BO_FIRE)) + { + set_damage(r_idx, (MS_BOLT_FIRE), _("ãã¡ã¤ã¢ã»ãã«ã%s", "produce fire bolts%s"), tmp_msg[vn]); + vp[vn] = tmp_msg[vn]; + color[vn++] = TERM_RED; + } + if (a_ability_flags1 & (RF5_BO_COLD)) + { + set_damage(r_idx, (MS_BOLT_COLD), _("ã¢ã¤ã¹ã»ãã«ã%s", "produce frost bolts%s"), tmp_msg[vn]); + vp[vn] = tmp_msg[vn]; + color[vn++] = TERM_L_WHITE; + } + if (a_ability_flags1 & (RF5_BO_NETH)) + { + set_damage(r_idx, (MS_BOLT_NETHER), _("å°çã®ç¢%s", "produce nether bolts%s"), tmp_msg[vn]); + vp[vn] = tmp_msg[vn]; + color[vn++] = TERM_L_DARK; + } + if (a_ability_flags1 & (RF5_BO_WATE)) + { + set_damage(r_idx, (MS_BOLT_WATER), _("ã¦ã©ã¼ã¿ã¼ã»ãã«ã%s", "produce water bolts%s"), tmp_msg[vn]); + vp[vn] = tmp_msg[vn]; + color[vn++] = TERM_BLUE; + } + if (a_ability_flags1 & (RF5_BO_MANA)) + { + set_damage(r_idx, (MS_BOLT_MANA), _("éåã®ç¢%s", "produce mana bolts%s"), tmp_msg[vn]); + vp[vn] = tmp_msg[vn]; + color[vn++] = TERM_L_BLUE; + } + if (a_ability_flags1 & (RF5_BO_PLAS)) + { + set_damage(r_idx, (MS_BOLT_PLASMA), _("ãã©ãºãã»ãã«ã%s", "produce plasma bolts%s"), tmp_msg[vn]); + vp[vn] = tmp_msg[vn]; + color[vn++] = TERM_L_RED; + } + if (a_ability_flags1 & (RF5_BO_ICEE)) + { + set_damage(r_idx, (MS_BOLT_ICE), _("極å¯ã®ç¢%s", "produce ice bolts%s"), tmp_msg[vn]); + vp[vn] = tmp_msg[vn]; + color[vn++] = TERM_WHITE; + } + if (a_ability_flags1 & (RF5_MISSILE)) + { + set_damage(r_idx, (MS_MAGIC_MISSILE), _("ãã¸ãã¯ããµã¤ã«%s", "produce magic missiles%s"), tmp_msg[vn]); + vp[vn] = tmp_msg[vn]; + color[vn++] = TERM_SLATE; + } + if (a_ability_flags1 & (RF5_SCARE)) { vp[vn] = _("ææ", "terrify"); color[vn++] = TERM_SLATE; } + if (a_ability_flags1 & (RF5_BLIND)) { vp[vn] = _("ç®ããã¾ã", "blind"); color[vn++] = TERM_L_DARK; } + if (a_ability_flags1 & (RF5_CONF)) { vp[vn] = _("æ··ä¹±", "confuse"); color[vn++] = TERM_L_UMBER; } + if (a_ability_flags1 & (RF5_SLOW)) { vp[vn] = _("æ¸é", "slow"); color[vn++] = TERM_UMBER; } + if (a_ability_flags1 & (RF5_HOLD)) { vp[vn] = _("麻çº", "paralyze"); color[vn++] = TERM_RED; } + if (a_ability_flags2 & (RF6_HASTE)) { vp[vn] = _("å é", "haste-self"); color[vn++] = TERM_L_GREEN; } + if (a_ability_flags2 & (RF6_HEAL)) { vp[vn] = _("æ²»ç", "heal-self"); color[vn++] = TERM_WHITE; } + if (a_ability_flags2 & (RF6_INVULNER)) { vp[vn] = _("ç¡æµå", "make invulnerable"); color[vn++] = TERM_WHITE; } + if (flags4 & RF4_DISPEL) { vp[vn] = _("éåæ¶å»", "dispel-magic"); color[vn++] = TERM_L_WHITE; } + if (a_ability_flags2 & (RF6_BLINK)) { vp[vn] = _("ã·ã§ã¼ããã¬ãã¼ã", "blink-self"); color[vn++] = TERM_UMBER; } + if (a_ability_flags2 & (RF6_TPORT)) { vp[vn] = _("ãã¬ãã¼ã", "teleport-self"); color[vn++] = TERM_ORANGE; } + if (a_ability_flags2 & (RF6_WORLD)) { vp[vn] = _("æãæ¢ãã", "stop the time"); color[vn++] = TERM_L_BLUE; } + if (a_ability_flags2 & (RF6_TELE_TO)) { vp[vn] = _("ãã¬ãã¼ãããã¯", "teleport to"); color[vn++] = TERM_L_UMBER; } + if (a_ability_flags2 & (RF6_TELE_AWAY)) { vp[vn] = _("ãã¬ãã¼ãã¢ã¦ã§ã¤", "teleport away"); color[vn++] = TERM_UMBER; } + if (a_ability_flags2 & (RF6_TELE_LEVEL)) { vp[vn] = _("ãã¬ãã¼ãã»ã¬ãã«", "teleport level"); color[vn++] = TERM_ORANGE; } + + if (a_ability_flags2 & (RF6_DARKNESS)) { if ((p_ptr->pclass != CLASS_NINJA) || (r_ptr->flags3 & (RF3_UNDEAD | RF3_HURT_LITE)) || (r_ptr->flags7 & RF7_DARK_MASK)) { - vp[vn] = _("°Å°Ç", "create darkness"); color[vn++] = TERM_L_DARK; + vp[vn] = _("æé", "create darkness"); color[vn++] = TERM_L_DARK; } else { - vp[vn] = _("Á®¸÷", "create light"); color[vn++] = TERM_YELLOW; + vp[vn] = _("éå ", "create light"); color[vn++] = TERM_YELLOW; } } - if (flags6 & (RF6_TRAPS)) { vp[vn] = _("¥È¥é¥Ã¥×", "create traps"); color[vn++] = TERM_BLUE; } - if (flags6 & (RF6_FORGET)) { vp[vn] = _("µ²±¾Ãµî", "cause amnesia"); color[vn++] = TERM_BLUE; } - if (flags6 & (RF6_RAISE_DEAD)) { vp[vn] = _("»à¼ÔÉü³è", "raise dead"); color[vn++] = TERM_RED; } - if (flags6 & (RF6_S_MONSTER)) { vp[vn] = _("¥â¥ó¥¹¥¿¡¼°ìÂξ¤´", "summon a monster"); color[vn++] = TERM_SLATE; } - if (flags6 & (RF6_S_MONSTERS)) { vp[vn] = _("¥â¥ó¥¹¥¿¡¼Ê£¿ô¾¤´", "summon monsters"); color[vn++] = TERM_L_WHITE; } - if (flags6 & (RF6_S_KIN)) { vp[vn] = _("µß±ç¾¤´", "summon aid"); color[vn++] = TERM_ORANGE; } - if (flags6 & (RF6_S_ANT)) { vp[vn] = _("¥¢¥ê¾¤´", "summon ants"); color[vn++] = TERM_RED; } - if (flags6 & (RF6_S_SPIDER)) { vp[vn] = _("¥¯¥â¾¤´", "summon spiders"); color[vn++] = TERM_L_DARK; } - if (flags6 & (RF6_S_HOUND)) { vp[vn] = _("¥Ï¥¦¥ó¥É¾¤´", "summon hounds"); color[vn++] = TERM_L_UMBER; } - if (flags6 & (RF6_S_HYDRA)) { vp[vn] = _("¥Ò¥É¥é¾¤´", "summon hydras"); color[vn++] = TERM_L_GREEN; } - if (flags6 & (RF6_S_ANGEL)) { vp[vn] = _("Å·»È°ìÂξ¤´", "summon an angel"); color[vn++] = TERM_YELLOW; } - if (flags6 & (RF6_S_DEMON)) { vp[vn] = _("¥Ç¡¼¥â¥ó°ìÂξ¤´", "summon a demon"); color[vn++] = TERM_L_RED; } - if (flags6 & (RF6_S_UNDEAD)) { vp[vn] = _("¥¢¥ó¥Ç¥Ã¥É°ìÂξ¤´", "summon an undead"); color[vn++] = TERM_L_DARK; } - if (flags6 & (RF6_S_DRAGON)) { vp[vn] = _("¥É¥é¥´¥ó°ìÂξ¤´", "summon a dragon"); color[vn++] = TERM_ORANGE; } - if (flags6 & (RF6_S_HI_UNDEAD)) { vp[vn] = _("¶¯ÎϤʥ¢¥ó¥Ç¥Ã¥É¾¤´", "summon Greater Undead"); color[vn++] = TERM_L_DARK; } - if (flags6 & (RF6_S_HI_DRAGON)) { vp[vn] = _("¸ÅÂå¥É¥é¥´¥ó¾¤´", "summon Ancient Dragons"); color[vn++] = TERM_ORANGE; } - if (flags6 & (RF6_S_CYBER)) { vp[vn] = _("¥µ¥¤¥Ð¡¼¥Ç¡¼¥â¥ó¾¤´", "summon Cyberdemons"); color[vn++] = TERM_UMBER; } - if (flags6 & (RF6_S_AMBERITES)) { vp[vn] = _("¥¢¥ó¥Ð¡¼¤Î²¦Â²¾¤´", "summon Lords of Amber"); color[vn++] = TERM_VIOLET; } - if (flags6 & (RF6_S_UNIQUE)) { vp[vn] = _("¥æ¥Ë¡¼¥¯¡¦¥â¥ó¥¹¥¿¡¼¾¤´", "summon Unique Monsters"); color[vn++] = TERM_VIOLET; } + if (a_ability_flags2 & (RF6_TRAPS)) { vp[vn] = _("ãã©ãã", "create traps"); color[vn++] = TERM_BLUE; } + if (a_ability_flags2 & (RF6_FORGET)) { vp[vn] = _("è¨æ¶æ¶å»", "cause amnesia"); color[vn++] = TERM_BLUE; } + if (a_ability_flags2 & (RF6_RAISE_DEAD)) { vp[vn] = _("æ»è 復活", "raise dead"); color[vn++] = TERM_RED; } + if (a_ability_flags2 & (RF6_S_MONSTER)) { vp[vn] = _("ã¢ã³ã¹ã¿ã¼ä¸ä½å¬å", "summon a monster"); color[vn++] = TERM_SLATE; } + if (a_ability_flags2 & (RF6_S_MONSTERS)) { vp[vn] = _("ã¢ã³ã¹ã¿ã¼è¤æ°å¬å", "summon monsters"); color[vn++] = TERM_L_WHITE; } + if (a_ability_flags2 & (RF6_S_KIN)) { vp[vn] = _("ææ´å¬å", "summon aid"); color[vn++] = TERM_ORANGE; } + if (a_ability_flags2 & (RF6_S_ANT)) { vp[vn] = _("ã¢ãªå¬å", "summon ants"); color[vn++] = TERM_RED; } + if (a_ability_flags2 & (RF6_S_SPIDER)) { vp[vn] = _("ã¯ã¢å¬å", "summon spiders"); color[vn++] = TERM_L_DARK; } + if (a_ability_flags2 & (RF6_S_HOUND)) { vp[vn] = _("ãã¦ã³ãå¬å", "summon hounds"); color[vn++] = TERM_L_UMBER; } + if (a_ability_flags2 & (RF6_S_HYDRA)) { vp[vn] = _("ããã©å¬å", "summon hydras"); color[vn++] = TERM_L_GREEN; } + if (a_ability_flags2 & (RF6_S_ANGEL)) { vp[vn] = _("天使ä¸ä½å¬å", "summon an angel"); color[vn++] = TERM_YELLOW; } + if (a_ability_flags2 & (RF6_S_DEMON)) { vp[vn] = _("ãã¼ã¢ã³ä¸ä½å¬å", "summon a demon"); color[vn++] = TERM_L_RED; } + if (a_ability_flags2 & (RF6_S_UNDEAD)) { vp[vn] = _("ã¢ã³ãããä¸ä½å¬å", "summon an undead"); color[vn++] = TERM_L_DARK; } + if (a_ability_flags2 & (RF6_S_DRAGON)) { vp[vn] = _("ãã©ã´ã³ä¸ä½å¬å", "summon a dragon"); color[vn++] = TERM_ORANGE; } + if (a_ability_flags2 & (RF6_S_HI_UNDEAD)) { vp[vn] = _("å¼·åãªã¢ã³ãããå¬å", "summon Greater Undead"); color[vn++] = TERM_L_DARK; } + if (a_ability_flags2 & (RF6_S_HI_DRAGON)) { vp[vn] = _("å¤ä»£ãã©ã´ã³å¬å", "summon Ancient Dragons"); color[vn++] = TERM_ORANGE; } + if (a_ability_flags2 & (RF6_S_CYBER)) { vp[vn] = _("ãµã¤ãã¼ãã¼ã¢ã³å¬å", "summon Cyberdemons"); color[vn++] = TERM_UMBER; } + if (a_ability_flags2 & (RF6_S_AMBERITES)) { vp[vn] = _("ã¢ã³ãã¼ã®çæå¬å", "summon Lords of Amber"); color[vn++] = TERM_VIOLET; } + if (a_ability_flags2 & (RF6_S_UNIQUE)) { vp[vn] = _("ã¦ãã¼ã¯ã»ã¢ã³ã¹ã¿ã¼å¬å", "summon Unique Monsters"); color[vn++] = TERM_VIOLET; } /* Describe spells */ @@ -891,19 +1251,19 @@ static void roff_aux(int r_idx, int mode) /* Intro */ if (breath) { - hooked_roff(_("¡¢¤Ê¤ª¤«¤Ä", ", and is also")); + hooked_roff(_("ããªããã¤", ", and is also")); } else { - hooked_roff(format(_("%^s¤Ï", "%^s is"), wd_he[msex])); + hooked_roff(format(_("%^sã¯", "%^s is"), wd_he[msex])); } #ifdef JP /* Adverb */ - if (flags2 & (RF2_SMART)) hook_c_roff(TERM_YELLOW, "Ū³Î¤Ë"); + if (flags2 & (RF2_SMART)) hook_c_roff(TERM_YELLOW, "ç確ã«"); /* Verb Phrase */ - hooked_roff("ËâË¡¤ò»È¤¦¤³¤È¤¬¤Ç¤¡¢"); + hooked_roff("éæ³ã使ããã¨ãã§ãã"); #else /* Verb Phrase */ hooked_roff(" magical, casting spells"); @@ -918,7 +1278,7 @@ static void roff_aux(int r_idx, int mode) { /* Intro */ #ifdef JP - if ( n != 0 ) hooked_roff("¡¢"); + if ( n != 0 ) hooked_roff("ã"); #else if (n == 0) hooked_roff(" which "); else if (n < vn-1) hooked_roff(", "); @@ -930,7 +1290,7 @@ static void roff_aux(int r_idx, int mode) hook_c_roff(color[n], vp[n]); } #ifdef JP - hooked_roff("¤Î¼öʸ¤ò¾§¤¨¤ë¤³¤È¤¬¤¢¤ë"); + hooked_roff("ã®åªæãå±ãããã¨ããã"); #endif } @@ -948,7 +1308,7 @@ static void roff_aux(int r_idx, int mode) if (m > 100 || know_everything) { hooked_roff(format( - _("(³ÎΨ:1/%d)", "; 1 time in %d"), 100 / n)); + _("(確ç:1/%d)", "; 1 time in %d"), 100 / n)); } /* Guess at the frequency */ @@ -956,19 +1316,19 @@ static void roff_aux(int r_idx, int mode) { n = ((n + 9) / 10) * 10; hooked_roff(format( - _("(³ÎΨ:Ìó1/%d)", "; about 1 time in %d"), 100 / n)); + _("(確ç:ç´1/%d)", "; about 1 time in %d"), 100 / n)); } /* End this sentence */ - hooked_roff(_("¡£", ". ")); + hooked_roff(_("ã", ". ")); } /* Describe monster "toughness" */ - if (know_armour(r_idx)) + if (know_everything || know_armour(r_idx)) { /* Armor */ hooked_roff(format( - _("%^s¤Ï AC%d ¤ÎËɸæÎϤÈ", "%^s has an armor rating of %d"), + _("%^s㯠AC%d ã®é²å¾¡åã¨", "%^s has an armor rating of %d"), wd_he[msex], r_ptr->ac)); /* Maximized hitpoints */ @@ -976,7 +1336,7 @@ static void roff_aux(int r_idx, int mode) { u32b hp = r_ptr->hdice * (nightmare ? 2 : 1) * r_ptr->hside; hooked_roff(format( - _(" %d ¤ÎÂÎÎϤ¬¤¢¤ë¡£", " and a life rating of %d. "), + _(" %d ã®ä½åãããã", " and a life rating of %d. "), (s16b)MIN(30000, hp))); } @@ -984,7 +1344,7 @@ static void roff_aux(int r_idx, int mode) else { hooked_roff(format( - _(" %dd%d ¤ÎÂÎÎϤ¬¤¢¤ë¡£", " and a life rating of %dd%d. "), + _(" %dd%d ã®ä½åãããã", " and a life rating of %dd%d. "), r_ptr->hdice * (nightmare ? 2 : 1), r_ptr->hside)); } } @@ -993,25 +1353,25 @@ static void roff_aux(int r_idx, int mode) /* Collect special abilities. */ vn = 0; - if (flags7 & (RF7_HAS_LITE_1 | RF7_HAS_LITE_2)) { vp[vn] = _("¥À¥ó¥¸¥ç¥ó¤ò¾È¤é¤¹", "illuminate the dungeon"); color[vn++] = TERM_WHITE; } - if (flags7 & (RF7_HAS_DARK_1 | RF7_HAS_DARK_2)) { vp[vn] = _("¥À¥ó¥¸¥ç¥ó¤ò°Å¤¯¤¹¤ë", "darken the dungeon"); color[vn++] = TERM_L_DARK; } - if (flags2 & RF2_OPEN_DOOR) { vp[vn] = _("¥É¥¢¤ò³«¤±¤ë", "open doors"); color[vn++] = TERM_WHITE; } - if (flags2 & RF2_BASH_DOOR) { vp[vn] = _("¥É¥¢¤òÂǤÁÇˤë", "bash down doors"); color[vn++] = TERM_WHITE; } - if (flags7 & RF7_CAN_FLY) { vp[vn] = _("¶õ¤òÈô¤Ö", "fly"); color[vn++] = TERM_WHITE; } - if (flags7 & RF7_CAN_SWIM) { vp[vn] = _("¿å¤òÅϤë", "swim"); color[vn++] = TERM_WHITE; } - if (flags2 & RF2_PASS_WALL) { vp[vn] = _("Êɤò¤¹¤êÈ´¤±¤ë", "pass through walls"); color[vn++] = TERM_WHITE; } - if (flags2 & RF2_KILL_WALL) { vp[vn] = _("Êɤò·¡¤ê¿Ê¤à", "bore through walls"); color[vn++] = TERM_WHITE; } - if (flags2 & RF2_MOVE_BODY) { vp[vn] = _("¼å¤¤¥â¥ó¥¹¥¿¡¼¤ò²¡¤·¤Î¤±¤ë", "push past weaker monsters"); color[vn++] = TERM_WHITE; } - if (flags2 & RF2_KILL_BODY) { vp[vn] = _("¼å¤¤¥â¥ó¥¹¥¿¡¼¤òÅݤ¹", "destroy weaker monsters"); color[vn++] = TERM_WHITE; } - if (flags2 & RF2_TAKE_ITEM) { vp[vn] = _("¥¢¥¤¥Æ¥à¤ò½¦¤¦", "pick up objects"); color[vn++] = TERM_WHITE; } - if (flags2 & RF2_KILL_ITEM) { vp[vn] = _("¥¢¥¤¥Æ¥à¤ò²õ¤¹", "destroy objects"); color[vn++] = TERM_WHITE; } + if (flags7 & (RF7_HAS_LITE_1 | RF7_HAS_LITE_2)) { vp[vn] = _("ãã³ã¸ã§ã³ãç §ãã", "illuminate the dungeon"); color[vn++] = TERM_WHITE; } + if (flags7 & (RF7_HAS_DARK_1 | RF7_HAS_DARK_2)) { vp[vn] = _("ãã³ã¸ã§ã³ãæããã", "darken the dungeon"); color[vn++] = TERM_L_DARK; } + if (flags2 & RF2_OPEN_DOOR) { vp[vn] = _("ãã¢ãéãã", "open doors"); color[vn++] = TERM_WHITE; } + if (flags2 & RF2_BASH_DOOR) { vp[vn] = _("ãã¢ãæã¡ç ´ã", "bash down doors"); color[vn++] = TERM_WHITE; } + if (flags7 & RF7_CAN_FLY) { vp[vn] = _("空ãé£ã¶", "fly"); color[vn++] = TERM_WHITE; } + if (flags7 & RF7_CAN_SWIM) { vp[vn] = _("æ°´ã渡ã", "swim"); color[vn++] = TERM_WHITE; } + if (flags2 & RF2_PASS_WALL) { vp[vn] = _("å£ãããæãã", "pass through walls"); color[vn++] = TERM_WHITE; } + if (flags2 & RF2_KILL_WALL) { vp[vn] = _("å£ãæãé²ã", "bore through walls"); color[vn++] = TERM_WHITE; } + if (flags2 & RF2_MOVE_BODY) { vp[vn] = _("å¼±ãã¢ã³ã¹ã¿ã¼ãæ¼ãã®ãã", "push past weaker monsters"); color[vn++] = TERM_WHITE; } + if (flags2 & RF2_KILL_BODY) { vp[vn] = _("å¼±ãã¢ã³ã¹ã¿ã¼ãåã", "destroy weaker monsters"); color[vn++] = TERM_WHITE; } + if (flags2 & RF2_TAKE_ITEM) { vp[vn] = _("ã¢ã¤ãã ãæ¾ã", "pick up objects"); color[vn++] = TERM_WHITE; } + if (flags2 & RF2_KILL_ITEM) { vp[vn] = _("ã¢ã¤ãã ãå£ã", "destroy objects"); color[vn++] = TERM_WHITE; } /* Describe special abilities. */ if (vn) { /* Intro */ - hooked_roff(format(_("%^s¤Ï", "%^s"), wd_he[msex])); + hooked_roff(format(_("%^sã¯", "%^s"), wd_he[msex])); /* Scan */ for (n = 0; n < vn; n++) @@ -1022,7 +1382,7 @@ static void roff_aux(int r_idx, int mode) { jverb(vp[n], jverb_buf, JVERB_AND); hook_c_roff(color[n], jverb_buf); - hooked_roff("¡¢"); + hooked_roff("ã"); } else hook_c_roff(color[n], vp[n]); #else @@ -1037,75 +1397,75 @@ static void roff_aux(int r_idx, int mode) } /* End */ - hooked_roff(_("¤³¤È¤¬¤Ç¤¤ë¡£", ". ")); + hooked_roff(_("ãã¨ãã§ããã", ". ")); } /* Aquatic */ if (flags7 & RF7_AQUATIC) { - hooked_roff(format(_("%^s¤Ï¿åÃæ¤ËÀ³¤ó¤Ç¤¤¤ë¡£", "%^s lives in water. "), wd_he[msex])); + hooked_roff(format(_("%^sã¯æ°´ä¸ã«æ£²ãã§ããã", "%^s lives in water. "), wd_he[msex])); } /* Describe special abilities. */ if (flags7 & (RF7_SELF_LITE_1 | RF7_SELF_LITE_2)) { - hooked_roff(format(_("%^s¤Ï¸÷¤Ã¤Æ¤¤¤ë¡£", "%^s is shining. "), wd_he[msex])); + hooked_roff(format(_("%^sã¯å ã£ã¦ããã", "%^s is shining. "), wd_he[msex])); } if (flags7 & (RF7_SELF_DARK_1 | RF7_SELF_DARK_2)) { - hook_c_roff(TERM_L_DARK, format(_("%^s¤Ï°Å¹õ¤ËÊñ¤Þ¤ì¤Æ¤¤¤ë¡£", "%^s is surrounded by darkness. "), wd_he[msex])); + hook_c_roff(TERM_L_DARK, format(_("%^sã¯æé»ã«å ã¾ãã¦ããã", "%^s is surrounded by darkness. "), wd_he[msex])); } if (flags2 & RF2_INVISIBLE) { - hooked_roff(format(_("%^s¤ÏÆ©ÌÀ¤ÇÌܤ˸«¤¨¤Ê¤¤¡£", "%^s is invisible. "), wd_he[msex])); + hooked_roff(format(_("%^sã¯éæã§ç®ã«è¦ããªãã", "%^s is invisible. "), wd_he[msex])); } if (flags2 & RF2_COLD_BLOOD) { - hooked_roff(format(_("%^s¤ÏÎä·ìưʪ¤Ç¤¢¤ë¡£", "%^s is cold blooded. "), wd_he[msex])); + hooked_roff(format(_("%^sã¯å·è¡åç©ã§ããã", "%^s is cold blooded. "), wd_he[msex])); } if (flags2 & RF2_EMPTY_MIND) { - hooked_roff(format(_("%^s¤Ï¥Æ¥ì¥Ñ¥·¡¼¤Ç¤Ï´¶ÃΤǤ¤Ê¤¤¡£", "%^s is not detected by telepathy. "), wd_he[msex])); + hooked_roff(format(_("%^sã¯ãã¬ãã·ã¼ã§ã¯æç¥ã§ããªãã", "%^s is not detected by telepathy. "), wd_he[msex])); } else if (flags2 & RF2_WEIRD_MIND) { - hooked_roff(format(_("%^s¤Ï¤Þ¤ì¤Ë¥Æ¥ì¥Ñ¥·¡¼¤Ç´¶ÃΤǤ¤ë¡£", "%^s is rarely detected by telepathy. "), wd_he[msex])); + hooked_roff(format(_("%^sã¯ã¾ãã«ãã¬ãã·ã¼ã§æç¥ã§ããã", "%^s is rarely detected by telepathy. "), wd_he[msex])); } if (flags2 & RF2_MULTIPLY) { - hook_c_roff(TERM_L_UMBER, format(_("%^s¤ÏÇúȯŪ¤ËÁý¿£¤¹¤ë¡£", "%^s breeds explosively. "), wd_he[msex])); + hook_c_roff(TERM_L_UMBER, format(_("%^sã¯ççºçã«å¢æ®ããã", "%^s breeds explosively. "), wd_he[msex])); } if (flags2 & RF2_REGENERATE) { - hook_c_roff(TERM_L_WHITE, format(_("%^s¤ÏÁÇÁ᤯ÂÎÎϤò²óÉü¤¹¤ë¡£", "%^s regenerates quickly. "), wd_he[msex])); + hook_c_roff(TERM_L_WHITE, format(_("%^sã¯ç´ æ©ãä½åãå復ããã", "%^s regenerates quickly. "), wd_he[msex])); } if (flags7 & RF7_RIDING) { - hook_c_roff(TERM_SLATE, format(_("%^s¤Ë¾è¤ë¤³¤È¤¬¤Ç¤¤ë¡£", "%^s is suitable for riding. "), wd_he[msex])); + hook_c_roff(TERM_SLATE, format(_("%^sã«ä¹ããã¨ãã§ããã", "%^s is suitable for riding. "), wd_he[msex])); } /* Collect susceptibilities */ vn = 0; - if (flags3 & RF3_HURT_ROCK) { vp[vn] = _("´ä¤ò½üµî¤¹¤ë¤â¤Î", "rock remover"); color[vn++] = TERM_UMBER; } - if (flags3 & RF3_HURT_LITE) { vp[vn] = _("ÌÀ¤ë¤¤¸÷", "bright light"); color[vn++] = TERM_YELLOW; } - if (flags3 & RF3_HURT_FIRE) { vp[vn] = _("±ê", "fire"); color[vn++] = TERM_RED; } - if (flags3 & RF3_HURT_COLD) { vp[vn] = _("Î䵤", "cold"); color[vn++] = TERM_L_WHITE; } + if (flags3 & RF3_HURT_ROCK) { vp[vn] = _("岩ãé¤å»ãããã®", "rock remover"); color[vn++] = TERM_UMBER; } + if (flags3 & RF3_HURT_LITE) { vp[vn] = _("æããå ", "bright light"); color[vn++] = TERM_YELLOW; } + if (flags3 & RF3_HURT_FIRE) { vp[vn] = _("ç", "fire"); color[vn++] = TERM_RED; } + if (flags3 & RF3_HURT_COLD) { vp[vn] = _("å·æ°", "cold"); color[vn++] = TERM_L_WHITE; } /* Describe susceptibilities */ if (vn) { /* Intro */ - hooked_roff(format(_("%^s¤Ë¤Ï", "%^s"), wd_he[msex])); + hooked_roff(format(_("%^sã«ã¯", "%^s"), wd_he[msex])); /* Scan */ for (n = 0; n < vn; n++) { /* Intro */ #ifdef JP - if ( n != 0 ) hooked_roff("¤ä"); + if ( n != 0 ) hooked_roff("ã"); #else if (n == 0) hooked_roff(" is hurt by "); else if (n < vn-1) hooked_roff(", "); @@ -1118,49 +1478,49 @@ static void roff_aux(int r_idx, int mode) } /* End */ - hooked_roff(_("¤Ç¥À¥á¡¼¥¸¤òÍ¿¤¨¤é¤ì¤ë¡£", ". ")); + hooked_roff(_("ã§ãã¡ã¼ã¸ãä¸ããããã", ". ")); } /* Collect immunities */ vn = 0; - if (flagsr & RFR_IM_ACID) { vp[vn] = _("»À", "acid"); color[vn++] = TERM_GREEN; } - if (flagsr & RFR_IM_ELEC) { vp[vn] = _("°ðºÊ", "lightning"); color[vn++] = TERM_BLUE; } - if (flagsr & RFR_IM_FIRE) { vp[vn] = _("±ê", "fire"); color[vn++] = TERM_RED; } - if (flagsr & RFR_IM_COLD) { vp[vn] = _("Î䵤", "cold"); color[vn++] = TERM_L_WHITE; } - if (flagsr & RFR_IM_POIS) { vp[vn] = _("ÆÇ", "poison"); color[vn++] = TERM_L_GREEN; } + if (flagsr & RFR_IM_ACID) { vp[vn] = _("é ¸", "acid"); color[vn++] = TERM_GREEN; } + if (flagsr & RFR_IM_ELEC) { vp[vn] = _("稲妻", "lightning"); color[vn++] = TERM_BLUE; } + if (flagsr & RFR_IM_FIRE) { vp[vn] = _("ç", "fire"); color[vn++] = TERM_RED; } + if (flagsr & RFR_IM_COLD) { vp[vn] = _("å·æ°", "cold"); color[vn++] = TERM_L_WHITE; } + if (flagsr & RFR_IM_POIS) { vp[vn] = _("æ¯", "poison"); color[vn++] = TERM_L_GREEN; } /* Collect resistances */ - if (flagsr & RFR_RES_LITE) { vp[vn] = _("Á®¸÷", "light"); color[vn++] = TERM_YELLOW; } - if (flagsr & RFR_RES_DARK) { vp[vn] = _("°Å¹õ", "dark"); color[vn++] = TERM_L_DARK; } - if (flagsr & RFR_RES_NETH) { vp[vn] = _("ÃϹö", "nether"); color[vn++] = TERM_L_DARK; } - if (flagsr & RFR_RES_WATE) { vp[vn] = _("¿å", "water"); color[vn++] = TERM_BLUE; } - if (flagsr & RFR_RES_PLAS) { vp[vn] = _("¥×¥é¥º¥Þ", "plasma"); color[vn++] = TERM_L_RED; } - if (flagsr & RFR_RES_SHAR) { vp[vn] = _("ÇËÊÒ", "shards"); color[vn++] = TERM_L_UMBER; } - if (flagsr & RFR_RES_SOUN) { vp[vn] = _("¹ì²»", "sound"); color[vn++] = TERM_ORANGE; } - if (flagsr & RFR_RES_CHAO) { vp[vn] = _("¥«¥ª¥¹", "chaos"); color[vn++] = TERM_VIOLET; } - if (flagsr & RFR_RES_NEXU) { vp[vn] = _("°ø²Ìº®Íð", "nexus"); color[vn++] = TERM_VIOLET; } - if (flagsr & RFR_RES_DISE) { vp[vn] = _("Îô²½", "disenchantment"); color[vn++] = TERM_VIOLET; } - if (flagsr & RFR_RES_WALL) { vp[vn] = _("¥Õ¥©¡¼¥¹", "force"); color[vn++] = TERM_UMBER; } - if (flagsr & RFR_RES_INER) { vp[vn] = _("ÃÙÆß", "inertia"); color[vn++] = TERM_SLATE; } - if (flagsr & RFR_RES_TIME) { vp[vn] = _("»þ´ÖµÕž", "time"); color[vn++] = TERM_L_BLUE; } - if (flagsr & RFR_RES_GRAV) { vp[vn] = _("½ÅÎÏ", "gravity"); color[vn++] = TERM_SLATE; } - if (flagsr & RFR_RES_ALL) { vp[vn] = _("¤¢¤é¤æ¤ë¹¶·â", "all"); color[vn++] = TERM_YELLOW; } - if ((flagsr & RFR_RES_TELE) && !(r_ptr->flags1 & RF1_UNIQUE)) { vp[vn] = _("¥Æ¥ì¥Ý¡¼¥È", "teleportation"); color[vn++] = TERM_ORANGE; } + if (flagsr & RFR_RES_LITE) { vp[vn] = _("éå ", "light"); color[vn++] = TERM_YELLOW; } + if (flagsr & RFR_RES_DARK) { vp[vn] = _("æé»", "dark"); color[vn++] = TERM_L_DARK; } + if (flagsr & RFR_RES_NETH) { vp[vn] = _("å°ç", "nether"); color[vn++] = TERM_L_DARK; } + if (flagsr & RFR_RES_WATE) { vp[vn] = _("æ°´", "water"); color[vn++] = TERM_BLUE; } + if (flagsr & RFR_RES_PLAS) { vp[vn] = _("ãã©ãºã", "plasma"); color[vn++] = TERM_L_RED; } + if (flagsr & RFR_RES_SHAR) { vp[vn] = _("ç ´ç", "shards"); color[vn++] = TERM_L_UMBER; } + if (flagsr & RFR_RES_SOUN) { vp[vn] = _("è½é³", "sound"); color[vn++] = TERM_ORANGE; } + if (flagsr & RFR_RES_CHAO) { vp[vn] = _("ã«ãªã¹", "chaos"); color[vn++] = TERM_VIOLET; } + if (flagsr & RFR_RES_NEXU) { vp[vn] = _("å ææ··ä¹±", "nexus"); color[vn++] = TERM_VIOLET; } + if (flagsr & RFR_RES_DISE) { vp[vn] = _("å£å", "disenchantment"); color[vn++] = TERM_VIOLET; } + if (flagsr & RFR_RES_WALL) { vp[vn] = _("ãã©ã¼ã¹", "force"); color[vn++] = TERM_UMBER; } + if (flagsr & RFR_RES_INER) { vp[vn] = _("é é", "inertia"); color[vn++] = TERM_SLATE; } + if (flagsr & RFR_RES_TIME) { vp[vn] = _("æéé転", "time"); color[vn++] = TERM_L_BLUE; } + if (flagsr & RFR_RES_GRAV) { vp[vn] = _("éå", "gravity"); color[vn++] = TERM_SLATE; } + if (flagsr & RFR_RES_ALL) { vp[vn] = _("ããããæ»æ", "all"); color[vn++] = TERM_YELLOW; } + if ((flagsr & RFR_RES_TELE) && !(r_ptr->flags1 & RF1_UNIQUE)) { vp[vn] = _("ãã¬ãã¼ã", "teleportation"); color[vn++] = TERM_ORANGE; } /* Describe immunities and resistances */ if (vn) { /* Intro */ - hooked_roff(format(_("%^s¤Ï", "%^s"), wd_he[msex])); + hooked_roff(format(_("%^sã¯", "%^s"), wd_he[msex])); /* Scan */ for (n = 0; n < vn; n++) { /* Intro */ #ifdef JP - if ( n != 0 ) hooked_roff("¤È"); + if ( n != 0 ) hooked_roff("ã¨"); #else if (n == 0) hooked_roff(" resists "); else if (n < vn-1) hooked_roff(", "); @@ -1173,7 +1533,7 @@ static void roff_aux(int r_idx, int mode) } /* End */ - hooked_roff(_("¤ÎÂÑÀ¤ò»ý¤Ã¤Æ¤¤¤ë¡£", ". ")); + hooked_roff(_("ã®èæ§ãæã£ã¦ããã", ". ")); } @@ -1181,39 +1541,39 @@ static void roff_aux(int r_idx, int mode) { if (r_ptr->next_r_idx) { - hooked_roff(format(_("%^s¤Ï·Ð¸³¤òÀѤà¤È¡¢", "%^s will evolve into "), wd_he[msex])); + hooked_roff(format(_("%^sã¯çµé¨ãç©ãã¨ã", "%^s will evolve into "), wd_he[msex])); hook_c_roff(TERM_YELLOW, format("%s", r_name+r_info[r_ptr->next_r_idx].name)); hooked_roff(format( - _(("¤Ë¿Ê²½¤¹¤ë¡£"), + _(("ã«é²åããã"), (" when %s gets enugh experience. ", wd_he[msex])))); } else if (!(r_ptr->flags1 & RF1_UNIQUE)) { - hooked_roff(format(_("%s¤Ï¿Ê²½¤·¤Ê¤¤¡£", "%s won't evolve. "), wd_he[msex])); + hooked_roff(format(_("%sã¯é²åããªãã", "%s won't evolve. "), wd_he[msex])); } } /* Collect non-effects */ vn = 0; - if (flags3 & RF3_NO_STUN) { vp[vn] = _("Û¯Û°¤È¤·¤Ê¤¤", "stunned"); color[vn++] = TERM_ORANGE; } - if (flags3 & RF3_NO_FEAR) { vp[vn] = _("¶²Éݤò´¶¤¸¤Ê¤¤", "frightened"); color[vn++] = TERM_SLATE; } - if (flags3 & RF3_NO_CONF) { vp[vn] = _("º®Í𤷤ʤ¤", "confused"); color[vn++] = TERM_L_UMBER; } - if (flags3 & RF3_NO_SLEEP) { vp[vn] = _("̲¤é¤µ¤ì¤Ê¤¤", "slept"); color[vn++] = TERM_BLUE; } - if ((flagsr & RFR_RES_TELE) && (r_ptr->flags1 & RF1_UNIQUE)) { vp[vn] = _("¥Æ¥ì¥Ý¡¼¥È¤µ¤ì¤Ê¤¤", "teleported"); color[vn++] = TERM_ORANGE; } + if (flags3 & RF3_NO_STUN) { vp[vn] = _("æ¦æ§ã¨ããªã", "stunned"); color[vn++] = TERM_ORANGE; } + if (flags3 & RF3_NO_FEAR) { vp[vn] = _("ææãæããªã", "frightened"); color[vn++] = TERM_SLATE; } + if (flags3 & RF3_NO_CONF) { vp[vn] = _("æ··ä¹±ããªã", "confused"); color[vn++] = TERM_L_UMBER; } + if (flags3 & RF3_NO_SLEEP) { vp[vn] = _("ç ããããªã", "slept"); color[vn++] = TERM_BLUE; } + if ((flagsr & RFR_RES_TELE) && (r_ptr->flags1 & RF1_UNIQUE)) { vp[vn] = _("ãã¬ãã¼ããããªã", "teleported"); color[vn++] = TERM_ORANGE; } /* Describe non-effects */ if (vn) { /* Intro */ hooked_roff(format( - _("%^s¤Ï", "%^s"), wd_he[msex])); + _("%^sã¯", "%^s"), wd_he[msex])); /* Scan */ for (n = 0; n < vn; n++) { /* Intro */ #ifdef JP - if ( n != 0 ) hooked_roff("¤·¡¢"); + if ( n != 0 ) hooked_roff("ãã"); #else if (n == 0) hooked_roff(" cannot be "); else if (n < vn - 1) hooked_roff(", "); @@ -1226,7 +1586,7 @@ static void roff_aux(int r_idx, int mode) } /* End */ - hooked_roff(_("¡£", ". ")); + hooked_roff(_("ã", ". ")); } @@ -1239,51 +1599,51 @@ static void roff_aux(int r_idx, int mode) if (r_ptr->sleep > 200) { - act = _("¤ò̵»ë¤·¤¬¤Á¤Ç¤¢¤ë¤¬", "prefers to ignore"); + act = _("ãç¡è¦ããã¡ã§ããã", "prefers to ignore"); } else if (r_ptr->sleep > 95) { - act = _("¤ËÂФ·¤Æ¤Û¤È¤ó¤ÉÃí°Õ¤òʧ¤ï¤Ê¤¤¤¬", "pays very little attention to"); + act = _("ã«å¯¾ãã¦ã»ã¨ãã©æ³¨æãæããªãã", "pays very little attention to"); } else if (r_ptr->sleep > 75) { - act = _("¤ËÂФ·¤Æ¤¢¤Þ¤êÃí°Õ¤òʧ¤ï¤Ê¤¤¤¬", "pays little attention to"); + act = _("ã«å¯¾ãã¦ãã¾ã注æãæããªãã", "pays little attention to"); } else if (r_ptr->sleep > 45) { - act = _("¤ò¸«²á¤´¤·¤¬¤Á¤Ç¤¢¤ë¤¬", "tends to overlook"); + act = _("ãè¦éãããã¡ã§ããã", "tends to overlook"); } else if (r_ptr->sleep > 25) { - act = _("¤ò¤Û¤ó¤Î¾¯¤·¤Ï¸«¤Æ¤ª¤ê", "takes quite a while to see"); + act = _("ãã»ãã®å°ãã¯è¦ã¦ãã", "takes quite a while to see"); } else if (r_ptr->sleep > 10) { - act = _("¤ò¤·¤Ð¤é¤¯¤Ï¸«¤Æ¤ª¤ê", "takes a while to see"); + act = _("ããã°ããã¯è¦ã¦ãã", "takes a while to see"); } else if (r_ptr->sleep > 5) { - act = _("¤ò´öʬÃí°Õ¿¼¤¯¸«¤Æ¤ª¤ê", "is fairly observant of"); + act = _("ãå¹¾å注ææ·±ãè¦ã¦ãã", "is fairly observant of"); } else if (r_ptr->sleep > 3) { - act = _("¤òÃí°Õ¿¼¤¯¸«¤Æ¤ª¤ê", "is observant of"); + act = _("ã注ææ·±ãè¦ã¦ãã", "is observant of"); } else if (r_ptr->sleep > 1) { - act = _("¤ò¤«¤Ê¤êÃí°Õ¿¼¤¯¸«¤Æ¤ª¤ê", "is very observant of"); + act = _("ãããªã注ææ·±ãè¦ã¦ãã", "is very observant of"); } else if (r_ptr->sleep > 0) { - act = _("¤ò·Ù²ü¤·¤Æ¤ª¤ê", "is vigilant for"); + act = _("ãè¦æãã¦ãã", "is vigilant for"); } else { - act = _("¤ò¤«¤Ê¤ê·Ù²ü¤·¤Æ¤ª¤ê", "is ever vigilant for"); + act = _("ãããªãè¦æãã¦ãã", "is ever vigilant for"); } hooked_roff( - _(format("%^s¤Ï¿¯Æþ¼Ô%s¡¢ %d ¥Õ¥£¡¼¥ÈÀ褫¤é¿¯Æþ¼Ô¤Ëµ¤ÉÕ¤¯¤³¤È¤¬¤¢¤ë¡£", wd_he[msex], act, 10 * r_ptr->aaf), + _(format("%^sã¯ä¾µå ¥è %sã %d ãã£ã¼ãå ããä¾µå ¥è ã«æ°ä»ããã¨ãããã", wd_he[msex], act, 10 * r_ptr->aaf), format("%^s %s intruders, which %s may notice from %d feet. ", wd_he[msex], act, wd_he[msex], 10 * r_ptr->aaf))); } @@ -1293,7 +1653,7 @@ static void roff_aux(int r_idx, int mode) { /* Intro */ hooked_roff(format( - _("%^s¤Ï", "%^s may carry"), wd_he[msex])); + _("%^sã¯", "%^s may carry"), wd_he[msex])); #ifndef JP /* No "n" needed */ sin = FALSE; @@ -1306,7 +1666,7 @@ static void roff_aux(int r_idx, int mode) /* One drop (may need an "n") */ if (n == 1) { - hooked_roff(_("°ì¤Ä¤Î", " a")); + hooked_roff(_("ä¸ã¤ã®", " a")); #ifndef JP sin = TRUE; #endif @@ -1316,27 +1676,27 @@ static void roff_aux(int r_idx, int mode) else if (n == 2) { hooked_roff( - _("°ì¤Ä¤«Æó¤Ä¤Î", " one or two")); + _("ä¸ã¤ãäºã¤ã®", " one or two")); } /* Many drops */ else { hooked_roff(format( - _(" %d ¸Ä¤Þ¤Ç¤Î", " up to %d"), n)); + _(" %d åã¾ã§ã®", " up to %d"), n)); } /* Great */ if (flags1 & RF1_DROP_GREAT) { - p = _("ÆÃÊ̤Ê", " exceptional"); + p = _("ç¹å¥ãª", " exceptional"); } /* Good (no "n" needed) */ else if (flags1 & RF1_DROP_GOOD) { - p = _("¾å¼Á¤Ê", " good"); + p = _("ä¸è³ªãª", " good"); #ifndef JP sin = FALSE; #endif @@ -1361,14 +1721,14 @@ static void roff_aux(int r_idx, int mode) /* Dump "object(s)" */ if (p) hooked_roff(p); hooked_roff( - _("¥¢¥¤¥Æ¥à", " object")); + _("ã¢ã¤ãã ", " object")); #ifndef JP if (n != 1) hooked_roff("s"); #endif /* Conjunction replaces variety, if needed for "gold" below */ - p = _("¤ä", " or"); + p = _("ã", " or"); } /* Treasures */ @@ -1385,7 +1745,7 @@ static void roff_aux(int r_idx, int mode) /* Dump "treasure(s)" */ if (p) hooked_roff(p); - hooked_roff(_("ºâÊõ", " treasure")); + hooked_roff(_("財å®", " treasure")); #ifndef JP if (n != 1) hooked_roff("s"); #endif @@ -1393,7 +1753,7 @@ static void roff_aux(int r_idx, int mode) } /* End this sentence */ - hooked_roff(_("¤ò»ý¤Ã¤Æ¤¤¤ë¤³¤È¤¬¤¢¤ë¡£", ". ")); + hooked_roff(_("ãæã£ã¦ãããã¨ãããã", ". ")); } @@ -1432,30 +1792,30 @@ static void roff_aux(int r_idx, int mode) /* Acquire the method */ switch (method) { - case RBM_HIT: p = _("²¥¤ë", "hit"); break; - case RBM_TOUCH: p = _("¿¨¤ë", "touch"); break; - case RBM_PUNCH: p = _("¥Ñ¥ó¥Á¤¹¤ë", "punch"); break; - case RBM_KICK: p = _("½³¤ë", "kick"); break; - case RBM_CLAW: p = _("¤Ò¤Ã¤«¤¯", "claw"); break; - case RBM_BITE: p = _("³ú¤à", "bite"); break; - case RBM_STING: p = _("»É¤¹", "sting"); break; - case RBM_SLASH: p = _("»Â¤ë", "slash"); break; - case RBM_BUTT: p = _("³Ñ¤ÇÆͤ¯", "butt"); break; - case RBM_CRUSH: p = _("ÂÎÅö¤¿¤ê¤¹¤ë", "crush"); break; - case RBM_ENGULF: p = _("°û¤ß¹þ¤à", "engulf"); break; - case RBM_CHARGE: p = _("ÀÁµá½ñ¤ò¤è¤³¤¹", "charge"); break; - case RBM_CRAWL: p = _("ÂΤξå¤òÇ礤²ó¤ë", "crawl on you"); break; - case RBM_DROOL: p = _("¤è¤À¤ì¤ò¤¿¤é¤¹", "drool on you"); break; - case RBM_SPIT: p = _("¤Ä¤Ð¤òÅǤ¯", "spit"); break; - case RBM_EXPLODE: p = _("Çúȯ¤¹¤ë", "explode"); break; - case RBM_GAZE: p = _("¤Ë¤é¤à", "gaze"); break; - case RBM_WAIL: p = _("µã¤¶«¤Ö", "wail"); break; - case RBM_SPORE: p = _("˦»Ò¤òÈô¤Ð¤¹", "release spores"); break; + case RBM_HIT: p = _("æ®´ã", "hit"); break; + case RBM_TOUCH: p = _("触ã", "touch"); break; + case RBM_PUNCH: p = _("ãã³ããã", "punch"); break; + case RBM_KICK: p = _("è¹´ã", "kick"); break; + case RBM_CLAW: p = _("ã²ã£ãã", "claw"); break; + case RBM_BITE: p = _("åã", "bite"); break; + case RBM_STING: p = _("åºã", "sting"); break; + case RBM_SLASH: p = _("æ¬ã", "slash"); break; + case RBM_BUTT: p = _("è§ã§çªã", "butt"); break; + case RBM_CRUSH: p = _("ä½å½ãããã", "crush"); break; + case RBM_ENGULF: p = _("飲ã¿è¾¼ã", "engulf"); break; + case RBM_CHARGE: p = _("è«æ±æ¸ãããã", "charge"); break; + case RBM_CRAWL: p = _("ä½ã®ä¸ãéãåã", "crawl on you"); break; + case RBM_DROOL: p = _("ãã ããããã", "drool on you"); break; + case RBM_SPIT: p = _("ã¤ã°ãåã", "spit"); break; + case RBM_EXPLODE: p = _("ççºãã", "explode"); break; + case RBM_GAZE: p = _("ã«ãã", "gaze"); break; + case RBM_WAIL: p = _("æ³£ãå«ã¶", "wail"); break; + case RBM_SPORE: p = _("èåãé£ã°ã", "release spores"); break; case RBM_XXX4: break; - case RBM_BEG: p = _("¶â¤ò¤»¤¬¤à", "beg"); break; - case RBM_INSULT: p = _("Éî¿«¤¹¤ë", "insult"); break; - case RBM_MOAN: p = _("¤¦¤á¤¯", "moan"); break; - case RBM_SHOW: p = _("²Î¤¦", "sing"); break; + case RBM_BEG: p = _("éãããã", "beg"); break; + case RBM_INSULT: p = _("侮辱ãã", "insult"); break; + case RBM_MOAN: p = _("ããã", "moan"); break; + case RBM_SHOW: p = _("æã", "sing"); break; } @@ -1465,48 +1825,48 @@ static void roff_aux(int r_idx, int mode) /* Acquire the effect */ switch (effect) { - case RBE_SUPERHURT: - case RBE_HURT: q = _("¹¶·â¤¹¤ë", "attack"); break; - case RBE_POISON: q = _("ÆǤò¤¯¤é¤ï¤¹", "poison"); break; - case RBE_UN_BONUS: q = _("Îô²½¤µ¤»¤ë", "disenchant"); break; - case RBE_UN_POWER: q = _("ËâÆ»¶ñ¤ÎËâÎϤòµÛ¤¤¼è¤ë", "drain charges"); break; - case RBE_EAT_GOLD: q = _("¶â¤òÅð¤à", "steal gold"); break; - case RBE_EAT_ITEM: q = _("¥¢¥¤¥Æ¥à¤òÅð¤à", "steal items"); break; - case RBE_EAT_FOOD: q = _("¤¢¤Ê¤¿¤Î¿©ÎÁ¤ò¿©¤Ù¤ë", "eat your food"); break; - case RBE_EAT_LITE: q = _("ÌÀ¤«¤ê¤òµÛ¼ý¤¹¤ë", "absorb light"); break; - case RBE_ACID: q = _("»À¤òÈô¤Ð¤¹", "shoot acid"); break; - case RBE_ELEC: q = _("´¶ÅŤµ¤»¤ë", "electrocute"); break; - case RBE_FIRE: q = _("dz¤ä¤¹", "burn"); break; - case RBE_COLD: q = _("Åà¤é¤»¤ë", "freeze"); break; - case RBE_BLIND: q = _("ÌÕÌܤˤ¹¤ë", "blind"); break; - case RBE_CONFUSE: q = _("º®Í𤵤»¤ë", "confuse"); break; - case RBE_TERRIFY: q = _("¶²Éݤµ¤»¤ë", "terrify"); break; - case RBE_PARALYZE: q = _("Ëãá㤵¤»¤ë", "paralyze"); break; - case RBE_LOSE_STR: q = _("ÏÓÎϤò¸º¾¯¤µ¤»¤ë", "reduce strength"); break; - case RBE_LOSE_INT: q = _("ÃÎǽ¤ò¸º¾¯¤µ¤»¤ë", "reduce intelligence"); break; - case RBE_LOSE_WIS: q = _("¸¤µ¤ò¸º¾¯¤µ¤»¤ë", "reduce wisdom"); break; - case RBE_LOSE_DEX: q = _("´ïÍѤµ¤ò¸º¾¯¤µ¤»¤ë", "reduce dexterity"); break; - case RBE_LOSE_CON: q = _("Âѵ×ÎϤò¸º¾¯¤µ¤»¤ë", "reduce constitution"); break; - case RBE_LOSE_CHR: q = _("Ì¥ÎϤò¸º¾¯¤µ¤»¤ë", "reduce charisma"); break; - case RBE_LOSE_ALL: q = _("Á´¥¹¥Æ¡¼¥¿¥¹¤ò¸º¾¯¤µ¤»¤ë", "reduce all stats"); break; - case RBE_SHATTER: q = _("Ê´ºÕ¤¹¤ë", "shatter"); break; - case RBE_EXP_10: q = _("·Ð¸³Ãͤò¸º¾¯(10d6+)¤µ¤»¤ë", "lower experience (by 10d6+)"); break; - case RBE_EXP_20: q = _("·Ð¸³Ãͤò¸º¾¯(20d6+)¤µ¤»¤ë", "lower experience (by 20d6+)"); break; - case RBE_EXP_40: q = _("·Ð¸³Ãͤò¸º¾¯(40d6+)¤µ¤»¤ë", "lower experience (by 40d6+)"); break; - case RBE_EXP_80: q = _("·Ð¸³Ãͤò¸º¾¯(80d6+)¤µ¤»¤ë", "lower experience (by 80d6+)"); break; - case RBE_DISEASE: q = _("ɵ¤¤Ë¤¹¤ë", "disease"); break; - case RBE_TIME: q = _("»þ´Ö¤òµÕÌá¤ê¤µ¤»¤ë", "time"); break; - case RBE_DR_LIFE: q = _("À¸Ì¿ÎϤòµÛ¼ý¤¹¤ë", "drain life"); break; - case RBE_DR_MANA: q = _("ËâÎϤòÃ¥¤¦", "drain mana force"); break; - case RBE_INERTIA: q = _("¸ºÂ®¤µ¤»¤ë", "slow"); break; - case RBE_STUN: q = _("Û¯Û°¤È¤µ¤»¤ë", "stun"); break; + case RBE_SUPERHURT: q = _("å¼·åã«æ»æãã", "slaughter"); break; + case RBE_HURT: q = _("æ»æãã", "attack"); break; + case RBE_POISON: q = _("æ¯ããããã", "poison"); break; + case RBE_UN_BONUS: q = _("å£åããã", "disenchant"); break; + case RBE_UN_POWER: q = _("å å¡«éåãå¸åãã", "drain charges"); break; + case RBE_EAT_GOLD: q = _("éãçã", "steal gold"); break; + case RBE_EAT_ITEM: q = _("ã¢ã¤ãã ãçã", "steal items"); break; + case RBE_EAT_FOOD: q = _("ããªãã®é£æãé£ã¹ã", "eat your food"); break; + case RBE_EAT_LITE: q = _("æãããå¸åãã", "absorb light"); break; + case RBE_ACID: q = _("é ¸ãé£ã°ã", "shoot acid"); break; + case RBE_ELEC: q = _("æé»ããã", "electrocute"); break; + case RBE_FIRE: q = _("çãã", "burn"); break; + case RBE_COLD: q = _("åããã", "freeze"); break; + case RBE_BLIND: q = _("ç²ç®ã«ãã", "blind"); break; + case RBE_CONFUSE: q = _("æ··ä¹±ããã", "confuse"); break; + case RBE_TERRIFY: q = _("ææããã", "terrify"); break; + case RBE_PARALYZE: q = _("麻çºããã", "paralyze"); break; + case RBE_LOSE_STR: q = _("è åãæ¸å°ããã", "reduce strength"); break; + case RBE_LOSE_INT: q = _("ç¥è½ãæ¸å°ããã", "reduce intelligence"); break; + case RBE_LOSE_WIS: q = _("è³¢ããæ¸å°ããã", "reduce wisdom"); break; + case RBE_LOSE_DEX: q = _("å¨ç¨ããæ¸å°ããã", "reduce dexterity"); break; + case RBE_LOSE_CON: q = _("èä¹ åãæ¸å°ããã", "reduce constitution"); break; + case RBE_LOSE_CHR: q = _("é åãæ¸å°ããã", "reduce charisma"); break; + case RBE_LOSE_ALL: q = _("å ¨ã¹ãã¼ã¿ã¹ãæ¸å°ããã", "reduce all stats"); break; + case RBE_SHATTER: q = _("ç²ç ãã", "shatter"); break; + case RBE_EXP_10: q = _("çµé¨å¤ãæ¸å°(10d6+)ããã", "lower experience (by 10d6+)"); break; + case RBE_EXP_20: q = _("çµé¨å¤ãæ¸å°(20d6+)ããã", "lower experience (by 20d6+)"); break; + case RBE_EXP_40: q = _("çµé¨å¤ãæ¸å°(40d6+)ããã", "lower experience (by 40d6+)"); break; + case RBE_EXP_80: q = _("çµé¨å¤ãæ¸å°(80d6+)ããã", "lower experience (by 80d6+)"); break; + case RBE_DISEASE: q = _("ç æ°ã«ãã", "disease"); break; + case RBE_TIME: q = _("æéãéæ»ãããã", "time"); break; + case RBE_DR_LIFE: q = _("çå½åãå¸åãã", "drain life"); break; + case RBE_DR_MANA: q = _("éåã奪ã", "drain mana force"); break; + case RBE_INERTIA: q = _("æ¸éããã", "slow"); break; + case RBE_STUN: q = _("æ¦æ§ã¨ããã", "stun"); break; } #ifdef JP - if ( r == 0 ) hooked_roff( format("%^s¤Ï", wd_he[msex]) ); + if ( r == 0 ) hooked_roff( format("%^sã¯", wd_he[msex]) ); - /***¼ã´³É½¸½¤òÊѹ¹ ita ***/ + /***è¥å¹²è¡¨ç¾ãå¤æ´ ita ***/ /* Describe damage (if known) */ if (d1 && d2 && (know_everything || know_damage(r_idx, m))) @@ -1514,13 +1874,13 @@ static void roff_aux(int r_idx, int mode) /* Display the damage */ hooked_roff(format(" %dd%d ", d1, d2)); - hooked_roff("¤Î¥À¥á¡¼¥¸¤Ç"); + hooked_roff("ã®ãã¡ã¼ã¸ã§"); } /* Hack -- force a method */ - if (!p) p = "²¿¤«´ñ̯¤Ê¤³¤È¤ò¤¹¤ë"; + if (!p) p = "ä½ãå¥å¦ãªãã¨ããã"; /* Describe the method */ - /* XX¤·¤ÆYY¤·/XX¤·¤ÆYY¤¹¤ë/XX¤·/XX¤¹¤ë */ + /* XXãã¦YYã/XXãã¦YYãã/XXã/XXãã */ if(q) jverb( p ,jverb_buf, JVERB_TO); else if(r!=n-1) jverb( p ,jverb_buf, JVERB_AND); else strcpy(jverb_buf, p); @@ -1534,7 +1894,7 @@ static void roff_aux(int r_idx, int mode) else strcpy(jverb_buf,q); hooked_roff(jverb_buf); } - if(r!=n-1) hooked_roff("¡¢"); + if(r!=n-1) hooked_roff("ã"); #else /* Introduce the attack description */ if (!r) @@ -1584,14 +1944,14 @@ static void roff_aux(int r_idx, int mode) /* Finish sentence above */ if (r) { - hooked_roff(_("¡£", ". ")); + hooked_roff(_("ã", ". ")); } /* Notice lack of attacks */ else if (flags1 & RF1_NEVER_BLOW) { hooked_roff(format( - _("%^s¤ÏʪÍýŪ¤Ê¹¶·âÊýË¡¤ò»ý¤¿¤Ê¤¤¡£", + _("%^sã¯ç©ççãªæ»ææ¹æ³ãæããªãã", "%^s has no physical attacks. "), wd_he[msex])); } @@ -1599,7 +1959,7 @@ static void roff_aux(int r_idx, int mode) else { hooked_roff(format( - _("%s¹¶·â¤Ë¤Ä¤¤¤Æ¤Ï²¿¤âÃΤé¤Ê¤¤¡£", + _("%sæ»æã«ã¤ãã¦ã¯ä½ãç¥ããªãã", "Nothing is known about %s attack. "), wd_his[msex])); } @@ -1611,14 +1971,14 @@ static void roff_aux(int r_idx, int mode) if ((flags1 & RF1_QUESTOR) && ((r_ptr->r_sights) && (r_ptr->max_num) && ((r_idx == MON_OBERON) || (r_idx == MON_SERPENT)))) { hook_c_roff(TERM_VIOLET, - _("¤¢¤Ê¤¿¤Ï¤³¤Î¥â¥ó¥¹¥¿¡¼¤ò»¦¤·¤¿¤¤¤È¤¤¤¦¶¯¤¤Íß˾¤ò´¶¤¸¤Æ¤¤¤ë...", + _("ããªãã¯ãã®ã¢ã³ã¹ã¿ã¼ã殺ãããã¨ããå¼·ã欲æãæãã¦ãã...", "You feel an intense desire to kill this monster... ")); } else if (flags7 & RF7_GUARDIAN) { hook_c_roff(TERM_L_RED, - _("¤³¤Î¥â¥ó¥¹¥¿¡¼¤Ï¥À¥ó¥¸¥ç¥ó¤Î¼ç¤Ç¤¢¤ë¡£", + _("ãã®ã¢ã³ã¹ã¿ã¼ã¯ãã³ã¸ã§ã³ã®ä¸»ã§ããã", "This monster is the master of a dungeon.")); } @@ -1629,11 +1989,13 @@ static void roff_aux(int r_idx, int mode) } - -/* +/*! + * @brief ã¢ã³ã¹ã¿ã¼æ å ±ã®ããããè¨è¿°ãã * Hack -- Display the "name" and "attr/chars" of a monster race + * @param r_idx ã¢ã³ã¹ã¿ã¼ã®ç¨®æID + * @return ãªã */ -void roff_top(int r_idx) +void roff_top(MONRACE_IDX r_idx) { monster_race *r_ptr = &r_info[r_idx]; @@ -1680,7 +2042,7 @@ void roff_top(int r_idx) /* Wizards get extra info */ if (p_ptr->wizard) { - char buf[6]; + char buf[16]; sprintf(buf, "%d", r_idx); @@ -1692,10 +2054,14 @@ void roff_top(int r_idx) -/* +/*! + * @brief ã¢ã³ã¹ã¿ã¼æ å ±ã®è¡¨ç¤ºã¨å ±ã«ç»é¢ãä¸ææ¶å»ãããµãã«ã¼ãã³ / * Hack -- describe the given monster race at the top of the screen + * @param r_idx ã¢ã³ã¹ã¿ã¼ã®ç¨®æID + * @param mode 表示ãªãã·ã§ã³ + * @return ãªã */ -void screen_roff(int r_idx, int mode) +void screen_roff(MONRACE_IDX r_idx, BIT_FLAGS mode) { /* Flush messages */ msg_print(NULL); @@ -1715,10 +2081,13 @@ void screen_roff(int r_idx, int mode) -/* +/*! + * @brief ã¢ã³ã¹ã¿ã¼æ å ±ã®ç¾å¨ã®ã¦ã£ã³ãã¦ã«è¡¨ç¤ºãã / * Hack -- describe the given monster race in the current "term" window + * @param r_idx ã¢ã³ã¹ã¿ã¼ã®ç¨®æID + * @return ãªã */ -void display_roff(int r_idx) +void display_roff(MONRACE_IDX r_idx) { int y; @@ -1742,11 +2111,14 @@ void display_roff(int r_idx) } - -/* +/*! + * @brief ã¢ã³ã¹ã¿ã¼è©³ç´°æ å ±ãèªåã¹ãã¤ã©ã¼åãã«åºåãã / * Hack -- output description of the given monster race + * @param r_idx ã¢ã³ã¹ã¿ã¼ã®ç¨®æID + * @param roff_func åºåå¦çãè¡ãé¢æ°ãã¤ã³ã¿ + * @return ãªã */ -void output_monster_spoiler(int r_idx, void (*roff_func)(byte attr, cptr str)) +void output_monster_spoiler(MONRACE_IDX r_idx, void (*roff_func)(byte attr, cptr str)) { hook_c_roff = roff_func; @@ -1755,7 +2127,12 @@ void output_monster_spoiler(int r_idx, void (*roff_func)(byte attr, cptr str)) } -bool mon_hook_dungeon(int r_idx) +/*! + * @brief ã¢ã³ã¹ã¿ã¼ããã³ã¸ã§ã³ã«åºç¾ãããã©ãããè¿ã + * @param r_idx å¤å®ããã¢ã³ã¹ã¿ã¼ã®ç¨®æID + * @return ãã³ã¸ã§ã³ã«åºç¾ãããªãã°TRUEãè¿ã + */ +bool mon_hook_dungeon(MONRACE_IDX r_idx) { monster_race *r_ptr = &r_info[r_idx]; @@ -1771,7 +2148,12 @@ bool mon_hook_dungeon(int r_idx) } -static bool mon_hook_ocean(int r_idx) +/*! + * @brief ã¢ã³ã¹ã¿ã¼ãæµ·æ´ã«åºç¾ãããã©ãããè¿ã + * @param r_idx å¤å®ããã¢ã³ã¹ã¿ã¼ã®ç¨®æID + * @return æµ·æ´ã«åºç¾ãããªãã°TRUEãè¿ã + */ +static bool mon_hook_ocean(MONRACE_IDX r_idx) { monster_race *r_ptr = &r_info[r_idx]; @@ -1782,7 +2164,12 @@ static bool mon_hook_ocean(int r_idx) } -static bool mon_hook_shore(int r_idx) +/*! + * @brief ã¢ã³ã¹ã¿ã¼ã海岸ã«åºç¾ãããã©ãããè¿ã + * @param r_idx å¤å®ããã¢ã³ã¹ã¿ã¼ã®ç¨®æID + * @return 海岸ã«åºç¾ãããªãã°TRUEãè¿ã + */ +static bool mon_hook_shore(MONRACE_IDX r_idx) { monster_race *r_ptr = &r_info[r_idx]; @@ -1793,7 +2180,12 @@ static bool mon_hook_shore(int r_idx) } -static bool mon_hook_waste(int r_idx) +/*! + * @brief ã¢ã³ã¹ã¿ã¼ãèå°ã«åºç¾ãããã©ãããè¿ã + * @param r_idx å¤å®ããã¢ã³ã¹ã¿ã¼ã®ç¨®æID + * @return èå°ã«åºç¾ãããªãã°TRUEãè¿ã + */ +static bool mon_hook_waste(MONRACE_IDX r_idx) { monster_race *r_ptr = &r_info[r_idx]; @@ -1804,7 +2196,12 @@ static bool mon_hook_waste(int r_idx) } -static bool mon_hook_town(int r_idx) +/*! + * @brief ã¢ã³ã¹ã¿ã¼ãçºã«åºç¾ãããã©ãããè¿ã + * @param r_idx å¤å®ããã¢ã³ã¹ã¿ã¼ã®ç¨®æID + * @return èå°ã«åºç¾ãããªãã°TRUEãè¿ã + */ +static bool mon_hook_town(MONRACE_IDX r_idx) { monster_race *r_ptr = &r_info[r_idx]; @@ -1815,7 +2212,12 @@ static bool mon_hook_town(int r_idx) } -static bool mon_hook_wood(int r_idx) +/*! + * @brief ã¢ã³ã¹ã¿ã¼ã森æã«åºç¾ãããã©ãããè¿ã + * @param r_idx å¤å®ããã¢ã³ã¹ã¿ã¼ã®ç¨®æID + * @return 森æã«åºç¾ãããªãã°TRUEãè¿ã + */ +static bool mon_hook_wood(MONRACE_IDX r_idx) { monster_race *r_ptr = &r_info[r_idx]; @@ -1826,7 +2228,12 @@ static bool mon_hook_wood(int r_idx) } -static bool mon_hook_volcano(int r_idx) +/*! + * @brief ã¢ã³ã¹ã¿ã¼ãç«å±±ã«åºç¾ãããã©ãããè¿ã + * @param r_idx å¤å®ããã¢ã³ã¹ã¿ã¼ã®ç¨®æID + * @return ç«å±±ã«åºç¾ãããªãã°TRUEãè¿ã + */ +static bool mon_hook_volcano(MONRACE_IDX r_idx) { monster_race *r_ptr = &r_info[r_idx]; @@ -1836,8 +2243,12 @@ static bool mon_hook_volcano(int r_idx) return FALSE; } - -static bool mon_hook_mountain(int r_idx) +/*! + * @brief ã¢ã³ã¹ã¿ã¼ãå±±å°ã«åºç¾ãããã©ãããè¿ã + * @param r_idx å¤å®ããã¢ã³ã¹ã¿ã¼ã®ç¨®æID + * @return å±±å°ã«åºç¾ãããªãã°TRUEãè¿ã + */ +static bool mon_hook_mountain(MONRACE_IDX r_idx) { monster_race *r_ptr = &r_info[r_idx]; @@ -1848,7 +2259,12 @@ static bool mon_hook_mountain(int r_idx) } -static bool mon_hook_grass(int r_idx) +/*! + * @brief ã¢ã³ã¹ã¿ã¼ãèåã«åºç¾ãããã©ãããè¿ã + * @param r_idx å¤å®ããã¢ã³ã¹ã¿ã¼ã®ç¨®æID + * @return 森æã«åºç¾ãããªãã°TRUEãè¿ã + */ +static bool mon_hook_grass(MONRACE_IDX r_idx) { monster_race *r_ptr = &r_info[r_idx]; @@ -1858,8 +2274,12 @@ static bool mon_hook_grass(int r_idx) return FALSE; } - -static bool mon_hook_deep_water(int r_idx) +/*! + * @brief ã¢ã³ã¹ã¿ã¼ãæ·±ãæ°´å°å½¢ã«åºç¾ãããã©ãããè¿ã + * @param r_idx å¤å®ããã¢ã³ã¹ã¿ã¼ã®ç¨®æID + * @return æ·±ãæ°´å°å½¢ã«åºç¾ãããªãã°TRUEãè¿ã + */ +static bool mon_hook_deep_water(MONRACE_IDX r_idx) { monster_race *r_ptr = &r_info[r_idx]; @@ -1872,7 +2292,12 @@ static bool mon_hook_deep_water(int r_idx) } -static bool mon_hook_shallow_water(int r_idx) +/*! + * @brief ã¢ã³ã¹ã¿ã¼ãæµ ãæ°´å°å½¢ã«åºç¾ãããã©ãããè¿ã + * @param r_idx å¤å®ããã¢ã³ã¹ã¿ã¼ã®ç¨®æID + * @return æµ ãæ°´å°å½¢ã«åºç¾ãããªãã°TRUEãè¿ã + */ +static bool mon_hook_shallow_water(MONRACE_IDX r_idx) { monster_race *r_ptr = &r_info[r_idx]; @@ -1885,7 +2310,12 @@ static bool mon_hook_shallow_water(int r_idx) } -static bool mon_hook_lava(int r_idx) +/*! + * @brief ã¢ã³ã¹ã¿ã¼ã溶岩å°å½¢ã«åºç¾ãããã©ãããè¿ã + * @param r_idx å¤å®ããã¢ã³ã¹ã¿ã¼ã®ç¨®æID + * @return 溶岩å°å½¢ã«åºç¾ãããªãã°TRUEãè¿ã + */ +static bool mon_hook_lava(MONRACE_IDX r_idx) { monster_race *r_ptr = &r_info[r_idx]; @@ -1900,7 +2330,12 @@ static bool mon_hook_lava(int r_idx) } -static bool mon_hook_floor(int r_idx) +/*! + * @brief ã¢ã³ã¹ã¿ã¼ãé常ã®åºå°å½¢ã«åºç¾ãããã©ãããè¿ã + * @param r_idx å¤å®ããã¢ã³ã¹ã¿ã¼ã®ç¨®æID + * @return é常ã®åºå°å½¢ã«åºç¾ãããªãã°TRUEãè¿ã + */ +static bool mon_hook_floor(MONRACE_IDX r_idx) { monster_race *r_ptr = &r_info[r_idx]; @@ -1912,6 +2347,10 @@ static bool mon_hook_floor(int r_idx) } +/*! + * @brief ãã¬ã¤ã¤ã¼ã®ç¾å¨ã®åºåããã座æ¨ããå¾ãå°å¢ãå ã«ã¢ã³ã¹ã¿ã¼ã®çææ¡ä»¶é¢æ°ãè¿ã + * @return å°å¢ã«ãã£ãã¢ã³ã¹ã¿ã¼ã®çææ¡ä»¶é¢æ° + */ monster_hook_type get_monster_hook(void) { if (!dun_level && !p_ptr->inside_quest) @@ -1947,7 +2386,10 @@ monster_hook_type get_monster_hook(void) } } - +/*! + * @brief æå®ãããåºåããã座æ¨ã®å°å¢ãå ã«ã¢ã³ã¹ã¿ã¼ã®çææ¡ä»¶é¢æ°ãè¿ã + * @return å°å¢ã«ãã£ãã¢ã³ã¹ã¿ã¼ã®çææ¡ä»¶é¢æ° + */ monster_hook_type get_monster_hook2(int y, int x) { feature_type *f_ptr = &f_info[cave[y][x].feat]; @@ -1979,12 +2421,21 @@ monster_hook_type get_monster_hook2(int y, int x) else return (monster_hook_type)mon_hook_floor; } - +/*! + * @brief ã¢ã³ã¹ã¿ã¼ãå好çã«ãã + * @param m_ptr ã¢ã³ã¹ã¿ã¼æ å ±æ§é ä½ã®åç §ãã¤ã³ã¿ + * @return ãªã + */ void set_friendly(monster_type *m_ptr) { m_ptr->smart |= SM_FRIENDLY; } +/*! + * @brief ã¢ã³ã¹ã¿ã¼ããããã«ãã + * @param m_ptr ã¢ã³ã¹ã¿ã¼æ å ±æ§é ä½ã®åç §ãã¤ã³ã¿ + * @return ãªã + */ void set_pet(monster_type *m_ptr) { if (!is_pet(m_ptr)) check_pets_num_and_align(m_ptr, TRUE); @@ -1997,8 +2448,11 @@ void set_pet(monster_type *m_ptr) m_ptr->sub_align = SUB_ALIGN_NEUTRAL; } -/* +/*! + * @brief ã¢ã³ã¹ã¿ã¼ãæµã«åã * Makes the monster hostile towards the player + * @param m_ptr ã¢ã³ã¹ã¿ã¼æ å ±æ§é ä½ã®åç §ãã¤ã³ã¿ + * @return ãªã */ void set_hostile(monster_type *m_ptr) { @@ -2011,8 +2465,11 @@ void set_hostile(monster_type *m_ptr) } -/* +/*! + * @brief ã¢ã³ã¹ã¿ã¼ãæããã * Anger the monster + * @param m_ptr ã¢ã³ã¹ã¿ã¼æ å ±æ§é ä½ã®åç §ãã¤ã³ã¿ + * @return ãªã */ void anger_monster(monster_type *m_ptr) { @@ -2022,11 +2479,7 @@ void anger_monster(monster_type *m_ptr) char m_name[80]; monster_desc(m_name, m_ptr, 0); -#ifdef JP -msg_format("%^s¤ÏÅܤä¿¡ª", m_name); -#else - msg_format("%^s gets angry!", m_name); -#endif + msg_format(_("%^sã¯æã£ãï¼", "%^s gets angry!"), m_name); set_hostile(m_ptr); @@ -2038,8 +2491,13 @@ msg_format("%^s } -/* +/*! + * @brief ã¢ã³ã¹ã¿ã¼ãå°å½¢ãè¸ç ´ã§ãããã©ãããè¿ã * Check if monster can cross terrain + * @param feat å°å½¢ID + * @param r_ptr ã¢ã³ã¹ã¿ã¼ç¨®ææ§é ä½ã®åç §ãã¤ã³ã¿ + * @param mode ãªãã·ã§ã³ + * @return è¸ç ´å¯è½ãªãã°TRUEãè¿ã */ bool monster_can_cross_terrain(s16b feat, monster_race *r_ptr, u16b mode) { @@ -2097,8 +2555,14 @@ bool monster_can_cross_terrain(s16b feat, monster_race *r_ptr, u16b mode) } -/* +/*! + * @brief æå®ããã座æ¨ã®å°å½¢ãã¢ã³ã¹ã¿ã¼ãè¸ç ´ã§ãããã©ãããè¿ã * Strictly check if monster can enter the grid + * @param y å°å½¢ã®Yåº§æ¨ + * @param x å°å½¢ã®Xåº§æ¨ + * @param r_ptr ã¢ã³ã¹ã¿ã¼ç¨®ææ§é ä½ã®åç §ãã¤ã³ã¿ + * @param mode ãªãã·ã§ã³ + * @return è¸ç ´å¯è½ãªãã°TRUEãè¿ã */ bool monster_can_enter(int y, int x, monster_race *r_ptr, u16b mode) { @@ -2112,8 +2576,12 @@ bool monster_can_enter(int y, int x, monster_race *r_ptr, u16b mode) } -/* +/*! + * @brief ã¢ã³ã¹ã¿ã¼ã®å±æ§ã®åºã¥ããæµå¯¾é¢ä¿ã®æç¡ãè¿ãï¼ãµãã«ã¼ãã³ï¼ * Check if this monster has "hostile" alignment (aux) + * @param sub_align1 ã¢ã³ã¹ã¿ã¼1ã®ãµããã©ã° + * @param sub_align2 ã¢ã³ã¹ã¿ã¼2ã®ãµããã©ã° + * @return æµå¯¾é¢ä¿ã«ãããªãã°TRUEãè¿ã */ static bool check_hostile_align(byte sub_align1, byte sub_align2) { @@ -2129,8 +2597,12 @@ static bool check_hostile_align(byte sub_align1, byte sub_align2) } -/* +/*! + * @brief ã¢ã³ã¹ã¿ã¼ã®å±æ§ã®åºã¥ããæµå¯¾é¢ä¿ã®æç¡ãè¿ã * Check if two monsters are enemies + * @param m_ptr ã¢ã³ã¹ã¿ã¼1ã®æ§é ä½åç §ãã¤ã³ã¿ + * @param n_ptr ã¢ã³ã¹ã¿ã¼2ã®æ§é ä½åç §ãã¤ã³ã¿ + * @return æµå¯¾é¢ä¿ã«ãããªãã°TRUEãè¿ã */ bool are_enemies(monster_type *m_ptr, monster_type *n_ptr) { @@ -2166,8 +2638,15 @@ bool are_enemies(monster_type *m_ptr, monster_type *n_ptr) } -/* +/*! + * @brief ã¢ã³ã¹ã¿ã¼ããã¬ã¤ã¤ã¼ã«å¯¾ãã¦æµæãæ±ããã©ãããè¿ã * Check if this monster race has "hostile" alignment + * @param m_ptr ã¢ã³ã¹ã¿ã¼æ å ±æ§é ä½ã®åç §ãã¤ã³ã¿ + * @param pa_good ãã¬ã¤ã¤ã¼ã®åå¾åå¤ + * @param pa_evil ãã¬ã¤ã¤ã¼ã®æªå¾åå¤ + * @param r_ptr ã¢ã³ã¹ã¿ã¼ç¨®ææ å ±ã®æ§é ä½åç §ãã¤ã³ã¿ + * @return ãã¬ã¤ã¤ã¼ã«æµæãæã¤ãªãã°TRUEãè¿ã + * @details * If user is player, m_ptr == NULL. */ bool monster_has_hostile_align(monster_type *m_ptr, int pa_good, int pa_evil, monster_race *r_ptr) @@ -2196,9 +2675,12 @@ bool monster_has_hostile_align(monster_type *m_ptr, int pa_good, int pa_evil, mo } -/* +/*! + * @brief ã¢ã³ã¹ã¿ã¼ãçå½ä½ãã©ãããè¿ã * Is the monster "alive"? - * + * @param r_ptr å¤å®ããã¢ã³ã¹ã¿ã¼ã®ç¨®ææ å ±æ§é ä½åç §ãã¤ã³ã¿ + * @return çå½ä½ãªãã°TRUEãè¿ã + * @details * Used to determine the message to print for a killed monster. * ("dies", "destroyed") */ @@ -2212,10 +2694,15 @@ bool monster_living(monster_race *r_ptr) } -/* - * Is this monster declined to be questor or bounty? +/*! + * @brief ã¢ã³ã¹ã¿ã¼ãç¹æ®è½åä¸ãè³éé¦ããæé¤ããå¿ è¦ããããã©ãããè¿ãã + * Is the monster "alive"? / Is this monster declined to be questor or bounty? + * @param r_idx ã¢ã³ã¹ã¿ã¼ã®ç¨®æID + * @return è³éé¦ã«å ããããªããªãã°TRUEãè¿ã + * @details + * å®è³ªãã¼ãã¼ã«ï¼ã«ãã¼ãç¨ã */ -bool no_questor_or_bounty_uniques(int r_idx) +bool no_questor_or_bounty_uniques(MONRACE_IDX r_idx) { switch (r_idx) {