OSDN Git Service

Merge pull request #35763 (shimitei/hengband/fix/multi_window into master).
authordeskull <deskull@users.osdn.me>
Thu, 8 Sep 2016 15:06:23 +0000 (00:06 +0900)
committerdeskull <deskull@users.osdn.me>
Thu, 8 Sep 2016 15:06:23 +0000 (00:06 +0900)
25 files changed:
Hengband_vcs2010/Hengband.sln
Hengband_vcs2010/Hengband/Hengband.vcxproj
lib/edit/misc.txt
lib/edit/r_info.txt
lib/pref/picktype.prf
lib/xtra/music/music.cfg
src/birth.c
src/chuukei.c
src/cmd1.c
src/cmd2.c
src/cmd4.c
src/defines.h
src/externs.h
src/grid.c
src/inet.c
src/kajitips.h [deleted file]
src/load.c
src/main-win.c
src/mind.c
src/mindtips.h [deleted file]
src/object2.c
src/snipe.c
src/util.c
src/variable.c
src/xtra2.c

index 9857040..9e07ae6 100644 (file)
@@ -6,11 +6,14 @@ EndProject
 Global\r
        GlobalSection(SolutionConfigurationPlatforms) = preSolution\r
                Debug|Win32 = Debug|Win32\r
+               English-Debug|Win32 = English-Debug|Win32\r
                Release|Win32 = Release|Win32\r
        EndGlobalSection\r
        GlobalSection(ProjectConfigurationPlatforms) = postSolution\r
                {C00503B6-18FF-42F1-BAC0-6C94EDE62CB2}.Debug|Win32.ActiveCfg = Debug|Win32\r
                {C00503B6-18FF-42F1-BAC0-6C94EDE62CB2}.Debug|Win32.Build.0 = Debug|Win32\r
+               {C00503B6-18FF-42F1-BAC0-6C94EDE62CB2}.English-Debug|Win32.ActiveCfg = English-Debug|Win32\r
+               {C00503B6-18FF-42F1-BAC0-6C94EDE62CB2}.English-Debug|Win32.Build.0 = English-Debug|Win32\r
                {C00503B6-18FF-42F1-BAC0-6C94EDE62CB2}.Release|Win32.ActiveCfg = Release|Win32\r
                {C00503B6-18FF-42F1-BAC0-6C94EDE62CB2}.Release|Win32.Build.0 = Release|Win32\r
        EndGlobalSection\r
index 9982ad7..a2a5419 100644 (file)
@@ -5,6 +5,10 @@
       <Configuration>Debug</Configuration>\r
       <Platform>Win32</Platform>\r
     </ProjectConfiguration>\r
+    <ProjectConfiguration Include="English-Debug|Win32">\r
+      <Configuration>English-Debug</Configuration>\r
+      <Platform>Win32</Platform>\r
+    </ProjectConfiguration>\r
     <ProjectConfiguration Include="Release|Win32">\r
       <Configuration>Release</Configuration>\r
       <Platform>Win32</Platform>\r
   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">\r
     <ConfigurationType>Application</ConfigurationType>\r
     <CharacterSet>MultiByte</CharacterSet>\r
+    <UseOfMfc>false</UseOfMfc>\r
+  </PropertyGroup>\r
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='English-Debug|Win32'" Label="Configuration">\r
+    <ConfigurationType>Application</ConfigurationType>\r
+    <CharacterSet>MultiByte</CharacterSet>\r
+    <UseOfMfc>false</UseOfMfc>\r
   </PropertyGroup>\r
   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />\r
   <ImportGroup Label="ExtensionSettings">\r
   <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">\r
     <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />\r
   </ImportGroup>\r
+  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='English-Debug|Win32'" Label="PropertySheets">\r
+    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />\r
+  </ImportGroup>\r
   <PropertyGroup Label="UserMacros" />\r
   <PropertyGroup>\r
     <_ProjectFileVersion>10.0.40219.1</_ProjectFileVersion>\r
     <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">..\..\</OutDir>\r
+    <OutDir Condition="'$(Configuration)|$(Platform)'=='English-Debug|Win32'">..\..\</OutDir>\r
     <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(Configuration)\</IntDir>\r
+    <IntDir Condition="'$(Configuration)|$(Platform)'=='English-Debug|Win32'">$(Configuration)\</IntDir>\r
     <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">../../\</OutDir>\r
     <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(Configuration)\</IntDir>\r
   </PropertyGroup>\r
       <AdditionalDependencies>winmm.lib;wsock32.lib;%(AdditionalDependencies)</AdditionalDependencies>\r
       <GenerateDebugInformation>true</GenerateDebugInformation>\r
       <TargetMachine>MachineX86</TargetMachine>\r
+      <ShowProgress>LinkVerbose</ShowProgress>\r
+      <SubSystem>Windows</SubSystem>\r
+    </Link>\r
+  </ItemDefinitionGroup>\r
+  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='English-Debug|Win32'">\r
+    <ClCompile>\r
+      <Optimization>Disabled</Optimization>\r
+      <PreprocessorDefinitions>WINDOWS;SJIS;_CRT_SECURE_NO_WARNINGS;WIN32;%(PreprocessorDefinitions)</PreprocessorDefinitions>\r
+      <MinimalRebuild>true</MinimalRebuild>\r
+      <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>\r
+      <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>\r
+      <WarningLevel>Level4</WarningLevel>\r
+      <DebugInformationFormat>EditAndContinue</DebugInformationFormat>\r
+      <CompileAs>CompileAsC</CompileAs>\r
+      <DisableSpecificWarnings>4127;4996;4244;%(DisableSpecificWarnings)</DisableSpecificWarnings>\r
+    </ClCompile>\r
+    <Link>\r
+      <AdditionalDependencies>winmm.lib;wsock32.lib;%(AdditionalDependencies)</AdditionalDependencies>\r
+      <GenerateDebugInformation>true</GenerateDebugInformation>\r
+      <TargetMachine>MachineX86</TargetMachine>\r
+      <ShowProgress>LinkVerbose</ShowProgress>\r
+      <SubSystem>Windows</SubSystem>\r
     </Link>\r
   </ItemDefinitionGroup>\r
   <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">\r
index 7b746ad..220906f 100644 (file)
@@ -13,7 +13,7 @@ M:WX:99
 M:WY:66
 
 # Maximum number of monsters in r_info.txt
-M:R:1102
+M:R:1103
 
 # Maximum number of items in k_info.txt
 M:K:672
index 807e928..77f8781 100644 (file)
@@ -22192,3 +22192,18 @@ F:EMPTY_MIND | NO_FEAR | NO_CONF | NO_SLEEP
 D:$A mysterious purple jelly thing.  It looks ready to explode.
 D:紫でぷよぷよした謎の生物だ。
 
+#JZ#
+N:1102:ラット・オウガ
+E:Rat Ogre
+G:r:U
+I:115:25d11:10:65:30
+W:22:2:0:6000:0:0
+B:HIT:SUPERHURT:5d4
+B:HIT:SUPERHURT:5d4
+B:HIT:SUPERHURT:5d4
+B:BITE:POISON:9d3
+F:EVIL | DROP_1D2 | DROP_SKELETON | DROP_CORPSE | FORCE_SLEEP
+F:OPEN_DOOR | MALE | WILD_WASTE | WILD_SWAMP | NO_FEAR
+D:$It's a biped walking monster, seems subspecies of Skaven,
+D:$but it's larger and more terrible than them.
+D:それはスケイヴンの亜種と思われるが、より大きくおぞましい二足歩行の怪物だ。
index dda1750..2393063 100644 (file)
@@ -75,8 +75,12 @@ P:\t
 
 #
 # ダイス目が普通より大きい魔法の武器は拾う。
+# バージョン2以降の呪いのついたエゴ武器には
+# ダイス目が大きくかつ、一部使い方のあるものが多いので、
+# 簡易鑑定後に破壊対象としないよう、残すように指定する。
 #
 未鑑定のダイス目の違う武器
+~ダイス目の違う武器
 
 #
 # エゴでもアーティファクトでも無いありふれた装備は
index b1c34be..e7e3346 100644 (file)
@@ -30,6 +30,9 @@ type = MPEGVideo
 # quest     \83N\83G\83X\83g
 # arena     \83A\83\8a\81[\83i\82Å\8c\88\93¬\8e\9e
 # battle    \83J\83W\83m\82Ì\93¬\8bZ\8fê\8e\9e
+# quest_clear       \83N\83G\83X\83g\82ð\83N\83\8a\83A\82µ\82½\8e\9e\82©\82ç\83t\83\8d\83A\82ð\88Ú\82é\8e\9e\82Ü\82Å 
+# final_quest_clear \8dÅ\8fI\83N\83G\83X\83g\81i\81\96\8f\9f\97\98\81\96\8fð\8c\8f\81j\82ð\83N\83\8a\83A\82µ\82½\8e\9e\82©\82ç\83t\83\8d\83A\82ð\88Ú\82é\8e\9e\82Ü\82Å
+# ambush    \8fP\8c\82\82ð\8eó\82¯\82Ä\83t\83\8d\83A\82ð\88Ú\82é\8e\9e\82Ü\82Å
 [Basic]
 gameover = 
 exit = 
@@ -48,6 +51,9 @@ wild =
 quest = 
 arena = 
 battle = 
+quest_clear = 
+final_quest_clear = 
+ambush = 
 
 # [Town]\8d\80\96Ú
 # \92¬\82Ì\8cÂ\95ÊBGM\82ð\8ew\92è\82µ\82Ü\82·
index 5fd0f0f..626477b 100644 (file)
@@ -3243,12 +3243,16 @@ static void k_info_reset(void)
 
 
 /*!
- * @brief プレイヤー構造体の内容を初期値で消去する / Clear all the global "character" data
+ * @brief プレイヤー構造体の内容を初期値で消去する(名前を除く) / Clear all the global "character" data (without name)
  * @return なし
  */
-static void player_wipe(void)
+static void player_wipe_without_name(void)
 {
        int i;
+       player_type tmp;
+
+       /* Temporary copy for migration - written back later */
+       COPY(&tmp, p_ptr, player_type);
 
        /* Hack -- free the "last message" string */
        if (p_ptr->last_message) string_free(p_ptr->last_message);
@@ -3436,6 +3440,9 @@ static void player_wipe(void)
                dungeon_type = 0;
                p_ptr->recall_dungeon = DUNGEON_GALGALS;
        }
+
+       /* Data migration */
+       memcpy(p_ptr->name, tmp.name, sizeof(tmp.name));
 }
 
 
@@ -3718,7 +3725,7 @@ static byte player_init[MAX_CLASS][3][2] =
        {
                /* Monk */
                { TV_SORCERY_BOOK, 0 },
-               { TV_SOFT_ARMOR, SV_SOFT_LEATHER_ARMOR },
+               { TV_POTION, SV_POTION_SPEED },
                { TV_POTION, SV_POTION_HEROISM }
        },
 
@@ -3802,7 +3809,7 @@ static byte player_init[MAX_CLASS][3][2] =
        {
                /* ForceTrainer */
                { TV_SORCERY_BOOK, 0 },
-               { TV_SOFT_ARMOR, SV_SOFT_LEATHER_ARMOR },
+               { TV_POTION, SV_POTION_SPEED },
                { TV_POTION, SV_POTION_RESTORE_MANA }
        },
 
@@ -6541,7 +6548,7 @@ void player_birth(void)
        wipe_m_list();
 
        /* Wipe the player */
-       player_wipe();
+       player_wipe_without_name();
 
        /* Create a new character */
 
@@ -6557,7 +6564,7 @@ void player_birth(void)
                        if (player_birth_aux()) break;
 
                        /* Wipe the player */
-                       player_wipe();
+                       player_wipe_without_name();
                }
        }
 
index 4916603..0aba397 100644 (file)
@@ -544,7 +544,7 @@ static errr send_text_to_chuukei_server(int x, int y, int len, byte col, cptr st
        }
        else
        {
-#ifdef SJIS
+#if defined(SJIS) && defined(JP)
                sjis2euc(buf2);
 #endif
                sprintf(buf, "t%c%c%c%c%s", x+1, y+1, len, col, buf2);
@@ -952,7 +952,7 @@ static bool flush_ringbuf_client(void)
                switch (id)
                {
                case 't': /* 通常 */
-#ifdef SJIS
+#if defined(SJIS) && defined(JP)
                        euc2sjis(mesg);
 #endif
                        update_term_size(x, y, len);
index bf117ed..1125f5a 100644 (file)
@@ -158,18 +158,16 @@ bool test_hit_fire(int chance, monster_type *m_ptr, int vis, char* o_name)
 {
        int k, ac;
        monster_race *r_ptr = &r_info[m_ptr->r_idx];
-       
-       ac = r_ptr->ac;
-       if(m_ptr->r_idx == MON_GOEMON && !MON_CSLEEP(m_ptr)) ac *= 3;
 
        /* Percentile dice */
-       k = randint0(100);
+       k = randint1(100);
        
        /* Snipers with high-concentration reduce instant miss percentage.*/
        k += p_ptr->concent;
        
        /* Hack -- Instant miss or hit */
-       if (k < 10) return (k < 5);
+       if (k <= 5) return (FALSE);
+       if (k > 95) return (TRUE);
 
        if (p_ptr->pseikaku == SEIKAKU_NAMAKE)
                if (one_in_(20)) return (FALSE);
@@ -177,6 +175,15 @@ bool test_hit_fire(int chance, monster_type *m_ptr, int vis, char* o_name)
        /* Never hit */
        if (chance <= 0) return (FALSE);
 
+       ac = r_ptr->ac;
+       if (p_ptr->concent)
+       {
+               ac *= (8 - p_ptr->concent);
+               ac /= 8;
+       }
+
+       if(m_ptr->r_idx == MON_GOEMON && !MON_CSLEEP(m_ptr)) ac *= 3;
+
        /* Invisible monsters are harder to hit */
        if (!vis) chance = (chance + 1) / 2;
 
index 28f7c8a..982aa64 100644 (file)
@@ -3508,14 +3508,6 @@ void do_cmd_fire_aux(int item, object_type *j_ptr)
                                }
                        }
 
-                       /* Some shots have hit bonus */
-                       armour = r_ptr->ac;
-                       if (p_ptr->concent)
-                       {
-                               armour *= (8 - p_ptr->concent);
-                               armour /= 8;
-                       }
-
                        /* Did we hit it (penalize range) */
                        if (test_hit_fire(chance - cur_dis, m_ptr, m_ptr->ml, o_name))
                        {
index 70b407b..50fed9a 100644 (file)
@@ -502,13 +502,17 @@ errr do_cmd_write_nikki(int type, int num, cptr note)
                case NIKKI_MAXDEAPTH:
                {
                        fprintf(fff, _(" %2d:%02d %20s %sの最深階%d階に到達した。\n",
-                                                  " %2d:%02d %20s reached level %d of %s for the first time.\n"), hour, min, note_level, d_name+d_info[dungeon_type].name, num);
+                                                  " %2d:%02d %20s reached level %d of %s for the first time.\n"), hour, min, note_level,
+                                                  _(d_name+d_info[dungeon_type].name, num),
+                                                  _(num, d_name+d_info[dungeon_type].name));
                        break;
                }
                case NIKKI_TRUMP:
                {
                        fprintf(fff, _(" %2d:%02d %20s %s%sの最深階を%d階にセットした。\n",
-                                                  " %2d:%02d %20s reset recall level of %s to %d %s.\n"), hour, min, note_level, note, d_name + d_info[num].name, max_dlv[num]);
+                                                  " %2d:%02d %20s reset recall level of %s to %d %s.\n"), hour, min, note_level, note,
+                                                  _(d_name + d_info[num].name, max_dlv[num]),
+                                                  _(max_dlv[num], d_name + d_info[num].name));
                        break;
                }
                case NIKKI_STAIR:
@@ -565,12 +569,12 @@ errr do_cmd_write_nikki(int type, int num, cptr note)
                        if (num < 0)
                        {
                                int n = -num;
-                               fprintf(fff, _(" %2d:%02d %20s 闘技場の%d回戦で、%sの前に敗れ去った。\n", " %2d:%02d %20s beaten by %s in the %d%s fight.\n"),
-                                                       hour, min, note_level, _(n, note), _(note, n), _("", get_ordinal_number_suffix(n)));
+                               fprintf(fff, _(" %2d:%02d %20s 闘技場の%d%s回戦で、%sの前に敗れ去った。\n", " %2d:%02d %20s beaten by %s in the %d%s fight.\n"),
+                                                       hour, min, note_level, _(n, note), _("", n), _(note, get_ordinal_number_suffix(n)));
                                break;
                        }
-                       fprintf(fff, _(" %2d:%02d %20s 闘技場の%d回戦(%s)に勝利した。\n", " %2d:%02d %20s won the %d%s fight (%s).\n"), 
-                                               hour, min, note_level, num, _(note, get_ordinal_number_suffix(num)), note);
+                       fprintf(fff, _(" %2d:%02d %20s 闘技場の%d%s回戦(%s)に勝利した。\n", " %2d:%02d %20s won the %d%s fight (%s).\n"),
+                                               hour, min, note_level, num, _("", get_ordinal_number_suffix(num)), note);
                        
                        if (num == MAX_ARENA_MONS)
                        {
index 64bf19e..5fe391c 100644 (file)
@@ -4453,7 +4453,10 @@ extern int PlayerUID;
 #define MUSIC_BASIC_QUEST     15
 #define MUSIC_BASIC_ARENA     16
 #define MUSIC_BASIC_BATTLE    17
-#define MUSIC_BASIC_MAX       18 /*!< BGM定義の最大数 */
+#define MUSIC_BASIC_QUEST_CLEAR 18
+#define MUSIC_BASIC_FINAL_QUEST_CLEAR 19
+#define MUSIC_BASIC_AMBUSH    20
+#define MUSIC_BASIC_MAX       21 /*!< BGM定義の最大数 */
 
 /*** Sound constants ***/
 
index d977fc6..486ea09 100644 (file)
@@ -1547,7 +1547,7 @@ extern void race_score(int race_num);
 extern void show_highclass(void);
 
 /* mind.c */
-extern mind_power mind_powers[5];
+extern mind_power const mind_powers[5];
 extern void mindcraft_info(char *p, int use_mind, int power);
 extern void do_cmd_mind(void);
 extern void do_cmd_mind_browse(void);
@@ -1816,4 +1816,3 @@ extern void revenge_store(int dam);
 extern bool teleport_barrier(int m_idx);
 extern bool magic_barrier(int m_idx);
 extern bool multiply_barrier(int m_idx);
-
index 5b5f9de..125975a 100644 (file)
@@ -1104,7 +1104,7 @@ static void short_seg_hack(int x1, int y1, int x2, int y2, int type, int count,
 /*!
  * @brief 特定の壁(永久壁など)を避けながら部屋間の通路を作成する / This routine maps a path from (x1, y1) to (x2, y2) avoiding SOLID walls.
  * @return なし
- * @todo 詳細調査
+ * @todo 詳細調査
  * @details
  * Permanent rock is ignored in this path finding- sometimes there is no\n
  * path around anyway -so there will be a crash if we try to find one.\n
@@ -1136,8 +1136,6 @@ bool build_tunnel2(int x1, int y1, int x2, int y2, int type, int cutoff)
 
                /* perturbation perpendicular to path */
                changex = (randint0(abs(dy) + 2) * 2 - abs(dy) - 1) / 2;
-
-               /* perturbation perpendicular to path */
                changey = (randint0(abs(dx) + 2) * 2 - abs(dx) - 1) / 2;
 
                /* Work out "mid" ponit */
index d5fbac7..1bcec65 100644 (file)
@@ -165,7 +165,7 @@ void set_proxy(char *default_url, int default_port)
 
        /* ポート番号があるかどうかを調べ、あればproxy_portに設定。 */
        --len;
-       while (len > 0 && isdigit(s[len]))
+       while (len > 0 && isdigit((unsigned char)s[len]))
                --len;
        if (len > 0 && s[len] == ':' && s[len + 1] != '\0')
        {
diff --git a/src/kajitips.h b/src/kajitips.h
deleted file mode 100644 (file)
index 566cd96..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-static cptr kaji_tips[5] =
-{
-#ifdef JP
-       "現在持っているエッセンスの一覧を表示する。",
-       "アイテムからエッセンスを取り出す。エッセンスを取られたアイテムは全く魔法がかかっていない初期状態に戻る。",
-       "既にエッセンスが付加されたアイテムからエッセンスのみ消し去る。エッセンスは手に入らない。",
-       "アイテムにエッセンスを付加する。既にエッセンスが付加されたアイテムやアーティファクトには付加できない。",
-       "武器や防具を強化したり、攻撃で傷つかないようにしたりする。エッセンスが付加されたアイテムやアーティファクトに対しても使用できる。",
-#else
-       "Display essences you have.",
-       "Extract essences from an item. The item become non magical.",
-       "Remove added essences from an equipment which was improved before. The removed essence will be ruined.",
-       "Add essences to an item. The improved items or artifacts cannot be reimprove.",
-       "Enchant an equipment or make an equiment element-proofed. The improved items and artifacts can be enchanted too.",
-#endif
-};
index 513abb9..f4dd3c5 100644 (file)
@@ -1749,7 +1749,7 @@ static void rd_extra(void)
 
        if (z_older_than(10, 0, 1))
        {
-               for (i = 0; i < OLD_MAX_MANE; i++)
+               for (i = 0; i < MAX_MANE; i++)
                {
                        p_ptr->mane_spell[i] = -1;
                        p_ptr->mane_dam[i] = 0;
index f092957..08d64dd 100644 (file)
@@ -553,6 +553,9 @@ static bool can_use_music = FALSE;
 static MCI_OPEN_PARMS mop;
 static char mci_device_type[256];
 
+int current_music_type = 0;
+int current_music_id = 0;
+
 #endif /* USE_MUSIC */
 
 
@@ -2489,6 +2492,7 @@ static errr Term_xtra_win_music(int n, int v)
 #endif /* USE_MUSIC */
 
        /* Sound disabled */
+
        if(!use_music) return (1);
 
        /* Illegal sound */
@@ -2516,8 +2520,8 @@ static errr Term_xtra_win_music(int n, int v)
        /* No sample */
        if (i == 0)
        {
-               mciSendCommand(mop.wDeviceID, MCI_STOP, 0, 0);
-               mciSendCommand(mop.wDeviceID, MCI_CLOSE, 0, 0);
+               //mciSendCommand(mop.wDeviceID, MCI_STOP, 0, 0);
+               //mciSendCommand(mop.wDeviceID, MCI_CLOSE, 0, 0);
                return (1);
        }
 
@@ -2561,6 +2565,13 @@ static errr Term_xtra_win_music(int n, int v)
                break;
        }
 
+       if(current_music_type == n && current_music_id == v)
+       {
+               return (0);
+       }
+       current_music_type = n;
+       current_music_id = v;
+
 #ifdef WIN32
 
        mop.lpstrDeviceType = mci_device_type;  
index f70f8d7..22e2250 100644 (file)
 
 
 #include "angband.h"
-#include "mindtips.h"
 
 /*! 特殊技能の一覧テーブル */
-mind_power mind_powers[5] =
+mind_power const mind_powers[5] =
 {
   {
     {
@@ -289,6 +288,245 @@ mind_power mind_powers[5] =
   },
 };
 
+/*! 特殊能力の解説文字列 */
+static cptr const mind_tips[5][MAX_MIND_POWERS] =
+{
+#ifdef JP
+{
+       "近くの全ての見えるモンスターを感知する。レベル5で罠/扉、15で透明なモンスター、30で財宝とアイテムを感知できるようになる。レベル20で周辺の地形を感知し、45でその階全体を永久に照らし、ダンジョン内のすべてのアイテムを感知する。レベル25で一定時間テレパシーを得る。",
+       "精神攻撃のビームまたは球を放つ。",
+       "近距離のテレポートをする。",
+       "遠距離のテレポートをする。",
+       "レベル30未満で、モンスターを朦朧か混乱か恐怖させる球を放つ。レベル30以上で視界内の全てのモンスターを魅了する。抵抗されると無効。",
+       "テレキネシスの球を放つ。",
+       "一定時間、ACを上昇させる。レベルが上がると、酸、炎、冷気、電撃、毒の耐性も得られる。",
+       "レベル25未満で、アイテムの雰囲気を知る。レベル25以上で、アイテムを鑑定する。",
+       "レベル25未満で、自分を中心とした精神攻撃の球を発生させる。レベル25以上で、視界内の全てのモンスターに対して精神攻撃を行う。",
+       "恐怖と朦朧から回復し、ヒーロー気分かつ加速状態でなければHPが少し回復する。さらに、一定時間ヒーロー気分になり、加速する。",
+       "アイテムを自分の足元へ移動させる。",
+       "精神攻撃の球を放つ。モンスターに命中すると、0~1.5ターン消費する。抵抗されなければ、MPが回復する。",
+       "無傷球をも切り裂く純粋なエネルギーのビームを放つ。",
+       "時を止める。全MPを消費し、消費したMPに応じて長く時を止めていられる。",
+       "",
+       "",
+       "",
+       "",
+       "",
+       "",
+       "",
+},
+{
+       "ごく小さい気の球を放つ。",
+       "光源が照らしている範囲か部屋全体を永久に明るくする。",
+       "一定時間、空中に浮けるようになる。",
+       "射程の短い気のビームを放つ。",
+       "一定時間、魔法防御能力を上昇させる。",
+       "気を練る。気を練ると術の威力は上がり、持続時間は長くなる。練った気は時間とともに拡散する。練りすぎると暴走する危険がある。",
+       "一定時間、攻撃してきた全てのモンスターを傷つけるオーラを纏う。",
+       "隣りのモンスターに対して気をぶつけ、吹きとばす。",
+       "大きな気の球を放つ。",
+       "モンスター1体にかかった魔法を解除する。",
+       "1体の幽霊を召喚する。",
+       "自分を中心とした超巨大な炎の球を発生させる。",
+       "射程の長い、強力な気のビームを放つ。",
+       "しばらくの間、非常に速く動くことができる。",
+       "",
+       "",
+       "",
+       "",
+       "",
+       "",
+       "",
+},
+{
+       "近くの思考することができるモンスターを感知する。",
+       "攻撃した後、反対側に抜ける。",
+       "トラップにかかるが、そのトラップを破壊する。",
+       "周囲のダンジョンを揺らし、壁と床をランダムに入れ変える。",
+       "全方向に向かって攻撃する。",
+       "",
+       "",
+       "",
+       "",
+       "",
+       "",
+       "",
+       "",
+       "",
+       "",
+       "",
+       "",
+       "",
+       "",
+       "",
+       "",
+},
+{
+       "近くの全てのモンスターを感知する。レベル15で透明なモンスターを感知する。レベル25で一定時間テレパシーを得る。レベル35で周辺の地形を感知する。全ての効果は、鏡の上でないとレベル4だけ余計に必要になる。",
+       "自分のいる床の上に鏡を生成する。",
+       "閃光の矢を放つ。レベル10以上では鏡の上で使うとビームになる。",
+       "近距離のテレポートをする。",
+       "自分の周囲や、 自分のいる部屋全体を明るくする。",
+       "遠距離のテレポートをする。",
+       "一定時間、鏡のオーラが付く。攻撃を受けると破片のダメージで反撃し、さらに鏡の上にいた場合近距離のテレポートをする。",
+       "モンスターをテレポートさせるビームを放つ。抵抗されると無効。",
+       "破片の球を放つ。",
+       "全ての鏡の周りに眠りの球を発生させる。",
+       "ターゲットに向かって魔力のビームを放つ。鏡に命中すると、その鏡を破壊し、別の鏡に向かって反射する。",
+       "鏡の上のモンスターを消し去る。",
+       "一定時間、ACを上昇させる。レベル32で反射が付く。レベル40で魔法防御が上がる。",
+       "ターゲットに向かって強力な魔力のビームを放つ。鏡に命中すると、その鏡を破壊し、8方向に魔力のビームを発生させる。",
+       "視界内のモンスターを減速させ、朦朧とさせ、混乱させ、恐怖させ、麻痺させる。鏡の上で使うと威力が高い。",
+       "フロアを作り変える。鏡の上でしか使えない。",
+       "短距離内の指定した場所にテレポートする。",
+       "地上にいるときはダンジョンの最深階へ、ダンジョンにいるときは地上へと移動する。",
+       "全ての攻撃が、1/2の確率で無効になる。",
+       "視界内の2つの鏡とプレイヤーを頂点とする三角形の領域に、魔力の結界を発生させる。",
+       "一定時間、ダメージを受けなくなるバリアを張る。切れた瞬間に少しターンを消費するので注意。",
+},
+{
+       "半径3以内かその部屋を暗くする。",
+       "近くの全ての見えるモンスターを感知する。レベル5で罠/扉/階段、レベル15でアイテムを感知できるようになる。レベル45でその階全体の地形と全てのアイテムを感知する。",
+       "近距離のテレポートをする。",
+       "攻撃を受けた瞬間にテレポートをするようになる。失敗するとその攻撃のダメージを受ける。テレポートに失敗することもある。",
+       "遠距離のテレポートをする。",
+       "攻撃してすぐにテレポートする。",
+       "敵1体の動きを封じる。ユニークモンスター相手の場合又は抵抗された場合には無効。",
+       "アイテムを識別する。",
+       "一定時間、浮遊能力を得る。",
+       "自分を中心とした火の球を発生させ、テレポートする。さらに、一定時間炎に対する耐性を得る。装備による耐性に累積する。",
+       "素早く相手に近寄り攻撃する。",
+       "ランダムな方向に8回くさびを投げる。",
+       "敵を1体自分の近くに引き寄せる。",
+       "ダメージのない混乱の球を放つ。",
+       "1体のモンスターと位置を交換する。",
+       "自分のいる床の上に、モンスターが通ると爆発してダメージを与えるルーンを描く。",
+       "一定時間、半物質化し壁を通り抜けられるようになる。さらに、一定時間酸への耐性を得る。装備による耐性に累積する。",
+       "自分を中心とした超巨大な毒、生命力吸収、混乱の球を発生させ、テレポートする。",
+       "ランダムな方向に何回か炎か地獄かプラズマのビームを放つ。",
+       "全ての攻撃が、1/2の確率で無効になる。",
+       "",
+},
+#else
+{
+       "Detects visible monsters in your vicinity and more and more. Detects traps and doors at level 5, invisible monsters at level 15, items at level 30. And magic mapping at level 20. Lights and know the whole level at level 45. Gives telepathy at level 25.",
+       "Fires a beam or ball which inflicts PSI damage.",
+       "Teleport short distance.",
+       "Teleport long distance.",
+       "Stuns, confuses or scares a monster. Or attempts to charm all monsters in sight at level 30.",
+       "Fires a ball which hurts monsters with telekinesis.",
+       "Gives stone skin and some resistance to elements for a while. The level increased, the more number of resistances given.",
+       "Gives feeling of an item. Or identify an item at level 25.",
+       "Generate a ball centered on you which inflict monster with PSI damage. Or inflict all monsters with PSI damage at level 25.",
+       "Removes fear and stun. Gives heroism and speed. Heals HP a little unless you already have heroism and temporal speed boost.",
+       "Pulls a distant item close to you.",
+       "Fires a ball which damages monsters and absorbs monsters' mind power. Absorbing is takes more turns which from 0 to 1.5.",
+       "Fires a beam of pure energy which penetrate the invulnerability barrier.",
+       "Stops time. Consumes all of your SP. The more consumes SP, the longer duration of spell.",
+       "",
+       "",
+       "",
+       "",
+       "",
+       "",
+       "",
+},
+{
+       "Fires a very small energy ball.",
+       "Lights up nearby area and the inside of a room permanently.",
+       "Gives levitaion a while.",
+       "Fires a short energy beam.",
+       "Gives magic resistance for a while.",
+       "Improves spirit energy power temporaly. Improved spirit energy will be more and more powerfull or have longer duration. Too many improving results in uncontrollable explosion of spirit energy.",
+       "Gives aura which damages all monsters which attacked you for a while.",
+       "Damages an adjacent monster, and blow it away.",
+       "Fires a large energy ball.",
+       "Dispels all magics which is effecting a monster.",
+       "Summons ghosts.",
+       "Generates a huge ball of frame which centered on you.",
+       "Fires a long, powerful energy beam.",
+       "Gives extremely fast speed.",
+       "",
+       "",
+       "",
+       "",
+       "",
+       "",
+       "",
+},
+{
+       "Detects all monsters except mindless in your vicinity.",
+       "Attacks monster with your weapons normaly, then move through counter side of the monster.",
+       "Sets off a trap, then destroy that trap.",
+       "Shakes dungeon structure, and results in random swaping of floors and walls.",
+       "Attacks all adjacent monsters.",
+       "",
+       "",
+       "",
+       "",
+       "",
+       "",
+       "",
+       "",
+       "",
+       "",
+       "",
+       "",
+       "",
+       "",
+       "",
+       "",
+},
+{
+       "Detects visible monsters in your vicinity and more and more. Detects invisible monsters at level 15. Gives telepathy at level 25. Magic mapping at level 35. All of effects need 4 more levels unless on a mirror.",
+       "Makes a mirror under you.",
+       "Fires bolt of flash light. Or fires beam of light on a mirror at level 10.",
+       "Teleport short distance.",
+       "Lights up nearby area and the inside of a room permanently.",
+       "Teleport long distance.",
+       "Gives aura of shards of mirror for a while. It cause counter attack to monsters which attacks you.",
+       "Teleports all monsters on the line away unless resisted.",
+       "Fires a ball of shards.",
+       "Generate balls which send monsters to sleep on all mirrors in the whole level.",
+       "Fires a beam of mana. If the beam hit a mirror, it breaks that mirror and reflects toward another mirror.",
+       "Eliminates a monster on a mirror from current dungeon level.",
+       "Gives bonus to AC. Gives reflection at level 32. Gives magic resistance at level 40.",
+       "Fires a powerful beam of mana. If the beam hit a mirror, it breaks that mirror and fires 8 beams of mana to 8 different directions from that point.",
+       "Attempts to slow, stun, confuse, scare, freeze all monsters in sight. Gets more power on a mirror.",
+       "Recreates current dungeon level. Can only be used on a mirror.",
+       "Teleport to given location.",
+       "Recalls player from dungeon to town, or from town to the deepest level of dungeon.",
+       "Completely protects you from any attacks at one in two chance.",
+       "Generates a magical triangle which damages all monsters in the area. The vertices of the triangle is you and two mirrors in sight.",
+       "Generates barrier which completly protect you from almost all damages. Takes a few your turns when the barrier breaks or duration time is exceeded.",
+},
+
+{
+       "Darken nearby area and inside of a room.",
+       "Detects visible monsters in your vicinity and more and more. Detects traps, doors and stairs at level 5, items at level 15. Lights and know the whole level at level 45.",
+       "Teleport short distance.",
+       "Teleport as you recieve an attack. Might be able to teleport just before recieveing damages at higher level.",
+       "Teleport long distance.",
+       "Attack and teleport in a time.",
+       "Attempt to freeze a monster.",
+       "Identifies an item.",
+       "Gives levitation for a while.",
+       "Generate a fire ball and teleport in a time. Gives resistance to fire for a while. This resistance can be added to which from equipment for more powerful resistance.",
+       "Steps close to a monster and attacks at a time.",
+       "Shoots 8 iron Spikes in 8 random directions.",
+       "Teleport a monster to a place adjacent to you.",
+       "Releases a confusion ball which doesn't inflict any damage.",
+       "Swaps positions of you and a monster.",
+       "Sets a glyph under you. The glyph will explode when a monster moves on it.",
+       "Become ethereal form which gives ability to pass walls, and gives resistance to acid for a while. This resistance can be added to which from equipment for more powerful resistance.",
+       "Generates huge balls of poison, drain life and confusion, then teleport in a time.",
+       "Fires some number of beams of fire, nether or plasma in random directions.",
+       "Creates shadows of yourself which gives you abillity to completely evade any attacks at one in two chance for a while.",
+       "",
+},
+#endif
+};
+
 /*!
  * @brief 特殊技能の効果情報をまとめたフォーマットを返す
  * @param p 情報を返す文字列参照ポインタ
@@ -453,7 +691,7 @@ void mindcraft_info(char *p, int use_mind, int power)
       cptr            p;
 
       mind_type       spell;
-      mind_power      *mind_ptr;
+      const mind_power      *mind_ptr;
       bool            flag, redraw;
       int             use_mind;
       int menu_line = (use_menu ? 1 : 0);
diff --git a/src/mindtips.h b/src/mindtips.h
deleted file mode 100644 (file)
index f464cd2..0000000
+++ /dev/null
@@ -1,252 +0,0 @@
-/*!
- * @file mindtips.h
- * @brief プレイヤーの特殊能力解説をまとめる
- * @date 2014/09/07
- * @author
- * 不明(変愚蛮怒スタッフ)
- */
-
-
-#ifdef JP
-/*! 特殊能力の解説文字列 */
-static cptr mind_tips[5][MAX_MIND_POWERS] =
-{
-{
-       "近くの全ての見えるモンスターを感知する。レベル5で罠/扉、15で透明なモンスター、30で財宝とアイテムを感知できるようになる。レベル20で周辺の地形を感知し、45でその階全体を永久に照らし、ダンジョン内のすべてのアイテムを感知する。レベル25で一定時間テレパシーを得る。",
-       "精神攻撃のビームまたは球を放つ。",
-       "近距離のテレポートをする。",
-       "遠距離のテレポートをする。",
-       "レベル30未満で、モンスターを朦朧か混乱か恐怖させる球を放つ。レベル30以上で視界内の全てのモンスターを魅了する。抵抗されると無効。",
-       "テレキネシスの球を放つ。",
-       "一定時間、ACを上昇させる。レベルが上がると、酸、炎、冷気、電撃、毒の耐性も得られる。",
-       "レベル25未満で、アイテムの雰囲気を知る。レベル25以上で、アイテムを鑑定する。",
-       "レベル25未満で、自分を中心とした精神攻撃の球を発生させる。レベル25以上で、視界内の全てのモンスターに対して精神攻撃を行う。",
-       "恐怖と朦朧から回復し、ヒーロー気分かつ加速状態でなければHPが少し回復する。さらに、一定時間ヒーロー気分になり、加速する。",
-       "アイテムを自分の足元へ移動させる。",
-       "精神攻撃の球を放つ。モンスターに命中すると、0~1.5ターン消費する。抵抗されなければ、MPが回復する。",
-       "無傷球をも切り裂く純粋なエネルギーのビームを放つ。",
-       "時を止める。全MPを消費し、消費したMPに応じて長く時を止めていられる。",
-       "",
-       "",
-       "",
-       "",
-       "",
-       "",
-       "",
-},
-{
-       "ごく小さい気の球を放つ。",
-       "光源が照らしている範囲か部屋全体を永久に明るくする。",
-       "一定時間、空中に浮けるようになる。",
-       "射程の短い気のビームを放つ。",
-       "一定時間、魔法防御能力を上昇させる。",
-       "気を練る。気を練ると術の威力は上がり、持続時間は長くなる。練った気は時間とともに拡散する。練りすぎると暴走する危険がある。",
-       "一定時間、攻撃してきた全てのモンスターを傷つけるオーラを纏う。",
-       "隣りのモンスターに対して気をぶつけ、吹きとばす。",
-       "大きな気の球を放つ。",
-       "モンスター1体にかかった魔法を解除する。",
-       "1体の幽霊を召喚する。",
-       "自分を中心とした超巨大な炎の球を発生させる。",
-       "射程の長い、強力な気のビームを放つ。",
-       "しばらくの間、非常に速く動くことができる。",
-       "",
-       "",
-       "",
-       "",
-       "",
-       "",
-       "",
-},
-{
-       "近くの思考することができるモンスターを感知する。",
-       "攻撃した後、反対側に抜ける。",
-       "トラップにかかるが、そのトラップを破壊する。",
-       "周囲のダンジョンを揺らし、壁と床をランダムに入れ変える。",
-       "全方向に向かって攻撃する。",
-       "",
-       "",
-       "",
-       "",
-       "",
-       "",
-       "",
-       "",
-       "",
-       "",
-       "",
-       "",
-       "",
-       "",
-       "",
-       "",
-},
-{
-       "近くの全てのモンスターを感知する。レベル15で透明なモンスターを感知する。レベル25で一定時間テレパシーを得る。レベル35で周辺の地形を感知する。全ての効果は、鏡の上でないとレベル4だけ余計に必要になる。",
-       "自分のいる床の上に鏡を生成する。",
-       "閃光の矢を放つ。レベル10以上では鏡の上で使うとビームになる。",
-       "近距離のテレポートをする。",
-       "自分の周囲や、 自分のいる部屋全体を明るくする。",
-       "遠距離のテレポートをする。",
-       "一定時間、鏡のオーラが付く。攻撃を受けると破片のダメージで反撃し、さらに鏡の上にいた場合近距離のテレポートをする。",
-       "モンスターをテレポートさせるビームを放つ。抵抗されると無効。",
-       "破片の球を放つ。",
-       "全ての鏡の周りに眠りの球を発生させる。",
-       "ターゲットに向かって魔力のビームを放つ。鏡に命中すると、その鏡を破壊し、別の鏡に向かって反射する。",
-       "鏡の上のモンスターを消し去る。",
-       "一定時間、ACを上昇させる。レベル32で反射が付く。レベル40で魔法防御が上がる。",
-       "ターゲットに向かって強力な魔力のビームを放つ。鏡に命中すると、その鏡を破壊し、8方向に魔力のビームを発生させる。",
-       "視界内のモンスターを減速させ、朦朧とさせ、混乱させ、恐怖させ、麻痺させる。鏡の上で使うと威力が高い。",
-       "フロアを作り変える。鏡の上でしか使えない。",
-       "短距離内の指定した場所にテレポートする。",
-       "地上にいるときはダンジョンの最深階へ、ダンジョンにいるときは地上へと移動する。",
-       "全ての攻撃が、1/2の確率で無効になる。",
-       "視界内の2つの鏡とプレイヤーを頂点とする三角形の領域に、魔力の結界を発生させる。",
-       "一定時間、ダメージを受けなくなるバリアを張る。切れた瞬間に少しターンを消費するので注意。",
-},
-{
-       "半径3以内かその部屋を暗くする。",
-       "近くの全ての見えるモンスターを感知する。レベル5で罠/扉/階段、レベル15でアイテムを感知できるようになる。レベル45でその階全体の地形と全てのアイテムを感知する。",
-       "近距離のテレポートをする。",
-       "攻撃を受けた瞬間にテレポートをするようになる。失敗するとその攻撃のダメージを受ける。テレポートに失敗することもある。",
-       "遠距離のテレポートをする。",
-       "攻撃してすぐにテレポートする。",
-       "敵1体の動きを封じる。ユニークモンスター相手の場合又は抵抗された場合には無効。",
-       "アイテムを識別する。",
-       "一定時間、浮遊能力を得る。",
-       "自分を中心とした火の球を発生させ、テレポートする。さらに、一定時間炎に対する耐性を得る。装備による耐性に累積する。",
-       "素早く相手に近寄り攻撃する。",
-       "ランダムな方向に8回くさびを投げる。",
-       "敵を1体自分の近くに引き寄せる。",
-       "ダメージのない混乱の球を放つ。",
-       "1体のモンスターと位置を交換する。",
-       "自分のいる床の上に、モンスターが通ると爆発してダメージを与えるルーンを描く。",
-       "一定時間、半物質化し壁を通り抜けられるようになる。さらに、一定時間酸への耐性を得る。装備による耐性に累積する。",
-       "自分を中心とした超巨大な毒、生命力吸収、混乱の球を発生させ、テレポートする。",
-       "ランダムな方向に何回か炎か地獄かプラズマのビームを放つ。",
-       "全ての攻撃が、1/2の確率で無効になる。",
-       "",
-},
-};
-#else
-/*! scripts for mind spell tips. */
-static cptr mind_tips[5][MAX_MIND_POWERS] =
-{
-{
-       "Detects visible monsters in your vicinity and more and more. Detects traps and doors at level 5, invisible monsters at level 15, items at level 30. And magic mapping at level 20. Lights and know the whole level at level 45. Gives telepathy at level 25.",
-       "Fires a beam or ball which inflicts PSI damage.",
-       "Teleport short distance.",
-       "Teleport long distance.",
-       "Stuns, confuses or scares a monster. Or attempts to charm all monsters in sight at level 30.",
-       "Fires a ball which hurts monsters with telekinesis.",
-       "Gives stone skin and some resistance to elements for a while. The level increased, the more number of resistances given.",
-       "Gives feeling of an item. Or identify an item at level 25.",
-       "Generate a ball centered on you which inflict monster with PSI damage. Or inflict all monsters with PSI damage at level 25.",
-       "Removes fear and stun. Gives heroism and speed. Heals HP a little unless you already have heroism and temporal speed boost.",
-       "Pulls a distant item close to you.",
-       "Fires a ball which damages monsters and absorbs monsters' mind power. Absorbing is takes more turns which from 0 to 1.5.",
-       "Fires a beam of pure energy which penetrate the invulnerability barrier.",
-       "Stops time. Consumes all of your SP. The more consumes SP, the longer duration of spell.",
-       "",
-       "",
-       "",
-       "",
-       "",
-       "",
-       "",
-},
-{
-       "Fires a very small energy ball.",
-       "Lights up nearby area and the inside of a room permanently.",
-       "Gives levitaion a while.",
-       "Fires a short energy beam.",
-       "Gives magic resistance for a while.",
-       "Improves spirit energy power temporaly. Improved spirit energy will be more and more powerfull or have longer duration. Too many improving results in uncontrollable explosion of spirit energy.",
-       "Gives aura which damages all monsters which attacked you for a while.",
-       "Damages an adjacent monster, and blow it away.",
-       "Fires a large energy ball.",
-       "Dispels all magics which is effecting a monster.",
-       "Summons ghosts.",
-       "Generates a huge ball of frame which centered on you.",
-       "Fires a long, powerful energy beam.",
-       "Gives extremely fast speed.",
-       "",
-       "",
-       "",
-       "",
-       "",
-       "",
-       "",
-},
-{
-       "Detects all monsters except mindless in your vicinity.",
-       "Attacks monster with your weapons normaly, then move through counter side of the monster.",
-       "Sets off a trap, then destroy that trap.",
-       "Shakes dungeon structure, and results in random swaping of floors and walls.",
-       "Attacks all adjacent monsters.",
-       "",
-       "",
-       "",
-       "",
-       "",
-       "",
-       "",
-       "",
-       "",
-       "",
-       "",
-       "",
-       "",
-       "",
-       "",
-       "",
-},
-{
-       "Detects visible monsters in your vicinity and more and more. Detects invisible monsters at level 15. Gives telepathy at level 25. Magic mapping at level 35. All of effects need 4 more levels unless on a mirror.",
-       "Makes a mirror under you.",
-       "Fires bolt of flash light. Or fires beam of light on a mirror at level 10.",
-       "Teleport short distance.",
-       "Lights up nearby area and the inside of a room permanently.",
-       "Teleport long distance.",
-       "Gives aura of shards of mirror for a while. It cause counter attack to monsters which attacks you.",
-       "Teleports all monsters on the line away unless resisted.",
-       "Fires a ball of shards.",
-       "Generate balls which send monsters to sleep on all mirrors in the whole level.",
-       "Fires a beam of mana. If the beam hit a mirror, it breaks that mirror and reflects toward another mirror.",
-       "Eliminates a monster on a mirror from current dungeon level.",
-       "Gives bonus to AC. Gives reflection at level 32. Gives magic resistance at level 40.",
-       "Fires a powerful beam of mana. If the beam hit a mirror, it breaks that mirror and fires 8 beams of mana to 8 different directions from that point.",
-       "Attempts to slow, stun, confuse, scare, freeze all monsters in sight. Gets more power on a mirror.",
-       "Recreates current dungeon level. Can only be used on a mirror.",
-       "Teleport to given location.",
-       "Recalls player from dungeon to town, or from town to the deepest level of dungeon.",
-       "Completely protects you from any attacks at one in two chance.",
-       "Generates a magical triangle which damages all monsters in the area. The vertices of the triangle is you and two mirrors in sight.",
-       "Generates barrier which completly protect you from almost all damages. Takes a few your turns when the barrier breaks or duration time is exceeded.",
-},
-
-{
-       "Darken nearby area and inside of a room.",
-       "Detects visible monsters in your vicinity and more and more. Detects traps, doors and stairs at level 5, items at level 15. Lights and know the whole level at level 45.",
-       "Teleport short distance.",
-       "Teleport as you recieve an attack. Might be able to teleport just before recieveing damages at higher level.",
-       "Teleport long distance.",
-       "Attack and teleport in a time.",
-       "Attempt to freeze a monster.",
-       "Identifies an item.",
-       "Gives levitation for a while.",
-       "Generate a fire ball and teleport in a time. Gives resistance to fire for a while. This resistance can be added to which from equipment for more powerful resistance.",
-       "Steps close to a monster and attacks at a time.",
-       "Shoots 8 iron Spikes in 8 random directions.",
-       "Teleport a monster to a place adjacent to you.",
-       "Releases a confusion ball which doesn't inflict any damage.",
-       "Swaps positions of you and a monster.",
-       "Sets a glyph under you. The glyph will explode when a monster moves on it.",
-       "Become ethereal form which gives ability to pass walls, and gives resistance to acid for a while. This resistance can be added to which from equipment for more powerful resistance.",
-       "Generates huge balls of poison, drain life and confusion, then teleport in a time.",
-       "Fires some number of beams of fire, nether or plasma in random directions.",
-       "Creates shadows of yourself which gives you abillity to completely evade any attacks at one in two chance for a while.",
-       "",
-},
-};
-#endif
-
index 0d13cce..ec45ca1 100644 (file)
 
 #include "angband.h"
 
-#include "kajitips.h"
+static cptr const kaji_tips[5] =
+{
+#ifdef JP
+       "現在持っているエッセンスの一覧を表示する。",
+       "アイテムからエッセンスを取り出す。エッセンスを取られたアイテムは全く魔法がかかっていない初期状態に戻る。",
+       "既にエッセンスが付加されたアイテムからエッセンスのみ消し去る。エッセンスは手に入らない。",
+       "アイテムにエッセンスを付加する。既にエッセンスが付加されたアイテムやアーティファクトには付加できない。",
+       "武器や防具を強化したり、攻撃で傷つかないようにしたりする。エッセンスが付加されたアイテムやアーティファクトに対しても使用できる。",
+#else
+       "Display essences you have.",
+       "Extract essences from an item. The item become non magical.",
+       "Remove added essences from an equipment which was improved before. The removed essence will be ruined.",
+       "Add essences to an item. The improved items or artifacts cannot be reimprove.",
+       "Enchant an equipment or make an equiment element-proofed. The improved items and artifacts can be enchanted too.",
+#endif
+};
 
 /*!
  * @brief 床上、モンスター所持でスタックされたアイテムを削除しスタックを補完する / Excise a dungeon object from any stacks
index d4267db..462da5a 100644 (file)
@@ -22,7 +22,7 @@ struct snipe_power
 };
 
 /*! スナイパー技能の解説メッセージ */
-static const char *snipe_tips[MAX_SNIPE_POWERS] =
+static cptr const snipe_tips[MAX_SNIPE_POWERS] =
 {
 #ifdef JP
        "精神を集中する。射撃の威力、精度が上がり、高度な射撃術が使用できるようになる。",
@@ -62,7 +62,7 @@ static const char *snipe_tips[MAX_SNIPE_POWERS] =
 };
 
 /*! スナイパー技能テーブル */
-snipe_power snipe_powers[MAX_SNIPE_POWERS] =
+static snipe_power const snipe_powers[MAX_SNIPE_POWERS] =
 {
        /* Level gained,  cost,  name */
 #ifdef JP
index 6e5d68d..446b7e0 100644 (file)
@@ -287,7 +287,7 @@ static errr path_temp(char *buf, int max)
        if (!s) return (-1);
 
        /* Format to length */
-#ifndef WIN32
+#if !defined(WIN32) || (defined(_MSC_VER) && (_MSC_VER >= 1900))
        (void)strnfmt(buf, max, "%s", s);
 #else
        (void)strnfmt(buf, max, ".%s", s);
@@ -503,7 +503,7 @@ errr my_fgets(FILE *fff, char *buf, huge n)
                        }
 #endif
                        /* Handle printables */
-                       else if (isprint(*s))
+                       else if (isprint((unsigned char)*s))
                        {
                                /* Copy */
                                buf[i++] = *s;
@@ -1715,7 +1715,7 @@ errr play_music(int type, int val)
        if (!use_music) return 1;
 
        /* Make a sound (if allowed) */
-       return Term_xtra(type , val);
+       return Term_xtra(type, val);
 }
 
 /*
@@ -1727,6 +1727,12 @@ void select_floor_music()
        /* No sound */
        if (!use_music) return;
 
+       if(ambush_flag)
+       {
+               play_music(TERM_XTRA_MUSIC_BASIC, MUSIC_BASIC_AMBUSH);
+               return;
+       }
+
        if(p_ptr->wild_mode)
        {
                play_music(TERM_XTRA_MUSIC_BASIC, MUSIC_BASIC_WILD);
@@ -1770,11 +1776,11 @@ void select_floor_music()
 
        if(dungeon_type)
        {
-               if(play_music(TERM_XTRA_MUSIC_DUNGEON, dungeon_type))
+               if(p_ptr->feeling == 2) play_music(TERM_XTRA_MUSIC_BASIC, MUSIC_BASIC_DUN_FEEL2);
+               else if(p_ptr->feeling >= 3 && p_ptr->feeling <= 5) play_music(TERM_XTRA_MUSIC_BASIC, MUSIC_BASIC_DUN_FEEL1);
+               else
                {
-                       if(p_ptr->feeling == 2) play_music(TERM_XTRA_MUSIC_BASIC, MUSIC_BASIC_DUN_FEEL2);
-                       else if(p_ptr->feeling >= 3 && p_ptr->feeling <= 5) play_music(TERM_XTRA_MUSIC_BASIC, MUSIC_BASIC_DUN_FEEL1);
-                       else
+                       if(play_music(TERM_XTRA_MUSIC_DUNGEON, dungeon_type))
                        {
                                if(dun_level < 40) play_music(TERM_XTRA_MUSIC_BASIC, MUSIC_BASIC_DUN_LOW);
                                else if(dun_level < 80) play_music(TERM_XTRA_MUSIC_BASIC, MUSIC_BASIC_DUN_MED);
index 623b1f1..44fc61b 100644 (file)
@@ -673,6 +673,9 @@ const cptr angband_music_basic_name[MUSIC_BASIC_MAX] =
        "quest",
        "arena",
        "battle",
+       "quest_clear",
+       "final_quest_clear",
+       "ambush",
 };
 
 
@@ -1279,3 +1282,4 @@ travel_type travel;
 int snipe_type = SP_NONE;
 bool reset_concent = FALSE;   /* Concentration reset flag */
 bool is_fired = FALSE;
+
index c405839..d735b03 100644 (file)
@@ -420,6 +420,7 @@ void complete_quest(int quest_num)
 
        if (!(q_ptr->flags & QUEST_FLAG_SILENT))
        {
+               play_music(TERM_XTRA_MUSIC_BASIC, MUSIC_BASIC_QUEST_CLEAR);
                msg_print(_("クエストを達成した!", "You just completed your quest!"));
                msg_print(NULL);
        }
@@ -1404,6 +1405,8 @@ void monster_death(int m_idx, bool drop_item)
                /* Redraw the "title" */
                p_ptr->redraw |= (PR_TITLE);
 
+               play_music(TERM_XTRA_MUSIC_BASIC, MUSIC_BASIC_FINAL_QUEST_CLEAR);
+
                do_cmd_write_nikki(NIKKI_BUNSHOU, 0, _("見事に変愚蛮怒の勝利者となった!", "become *WINNER* of Hengband finely!"));
 
                if ((p_ptr->pclass == CLASS_CHAOS_WARRIOR) || (p_ptr->muta2 & MUT2_CHAOS_GIFT))