OSDN Git Service

[Refactor] #40467 Separated mutation-info.c/h from self-info.c
authorHourier <hourier@users.sourceforge.jp>
Fri, 21 Aug 2020 02:29:42 +0000 (11:29 +0900)
committerHourier <hourier@users.sourceforge.jp>
Fri, 21 Aug 2020 02:31:11 +0000 (11:31 +0900)
Hengband/Hengband/Hengband.vcxproj
Hengband/Hengband/Hengband.vcxproj.filters
src/Makefile.am
src/player-info/mutation-info.c [new file with mode: 0644]
src/player-info/mutation-info.h [new file with mode: 0644]
src/player-info/self-info.c

index 3fbaba0..0af76d4 100644 (file)
     <ClCompile Include="..\..\src\object-activation\activation-teleport.c" />\r
     <ClCompile Include="..\..\src\object-activation\activation-util.c" />\r
     <ClCompile Include="..\..\src\player-info\class-ability-info.c" />\r
+    <ClCompile Include="..\..\src\player-info\mutation-info.c" />\r
     <ClCompile Include="..\..\src\player-info\race-ability-info.c" />\r
     <ClCompile Include="..\..\src\player-info\self-info-util.c" />\r
     <ClCompile Include="..\..\src\room\vault-builder.c" />\r
     <ClInclude Include="..\..\src\object-activation\activation-util.h" />\r
     <ClInclude Include="..\..\src\player-info\base-status-types.h" />\r
     <ClInclude Include="..\..\src\player-info\class-ability-info.h" />\r
+    <ClInclude Include="..\..\src\player-info\mutation-info.h" />\r
     <ClInclude Include="..\..\src\player-info\race-ability-info.h" />\r
     <ClInclude Include="..\..\src\player-info\self-info-util.h" />\r
     <ClInclude Include="..\..\src\room\vault-builder.h" />\r
index 0c6a5e6..e383d2a 100644 (file)
     <ClCompile Include="..\..\src\player-info\class-ability-info.c">
       <Filter>player-info</Filter>
     </ClCompile>
+    <ClCompile Include="..\..\src\player-info\mutation-info.c">
+      <Filter>player-info</Filter>
+    </ClCompile>
   </ItemGroup>
   <ItemGroup>
     <ClInclude Include="..\..\src\combat\shoot.h">
     <ClInclude Include="..\..\src\player-info\class-ability-info.h">
       <Filter>player-info</Filter>
     </ClInclude>
+    <ClInclude Include="..\..\src\player-info\mutation-info.h">
+      <Filter>player-info</Filter>
+    </ClInclude>
   </ItemGroup>
   <ItemGroup>
     <None Include="..\..\src\wall.bmp" />
index 7543798..18b8231 100644 (file)
@@ -633,6 +633,7 @@ hengband_SOURCES = \
        player-info/avatar.h player-info/avatar.c \
        player-info/base-status-types.h \
        player-info/class-ability-info.c player-info/class-ability-info.h \
+       player-info/mutation-info.c player-info/mutation-info.h \
        player-info/race-ability-info.c player-info/race-ability-info.h \
        player-info/self-info.c player-info/self-info.h \
        player-info/self-info-util.c player-info/self-info-util.h \
diff --git a/src/player-info/mutation-info.c b/src/player-info/mutation-info.c
new file mode 100644 (file)
index 0000000..652a0f9
--- /dev/null
@@ -0,0 +1,318 @@
+#include "player-info/mutation-info.h"
+#include "mutation/mutation-flag-types.h"
+#include "player-info/self-info-util.h"
+#include "player/player-status-flags.h"
+
+void set_mutation_info_1(player_type *creature_ptr, self_info_type *si_ptr)
+{
+    if (creature_ptr->muta1 == 0)
+        return;
+
+    if (creature_ptr->muta1 & MUT1_SPIT_ACID)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Í\8e_\82ð\90\81\82«\82©\82¯\82é\82±\82Æ\82ª\82Å\82«\82é\81B(\83_\83\81\81[\83\83\8c\83x\83\8bX1)", "You can spit acid (dam lvl).");
+
+    if (creature_ptr->muta1 & MUT1_BR_FIRE)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Í\89\8a\82Ì\83u\83\8c\83X\82ð\93f\82­\82±\82Æ\82ª\82Å\82«\82é\81B(\83_\83\81\81[\83\83\8c\83x\83\8bX2)", "You can breathe fire (dam lvl * 2).");
+
+    if (creature_ptr->muta1 & MUT1_HYPN_GAZE)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82ÌáÉ\82Ý\82Í\8dÃ\96°\8cø\89Ê\82ð\82à\82Â\81B", "Your gaze is hypnotic.");
+
+    if (creature_ptr->muta1 & MUT1_TELEKINES)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Í\94O\93®\97Í\82ð\82à\82Á\82Ä\82¢\82é\81B", "You are telekinetic.");
+
+    if (creature_ptr->muta1 & MUT1_VTELEPORT)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Í\8e©\95ª\82Ì\88Ó\8ev\82Å\83e\83\8c\83|\81[\83g\82Å\82«\82é\81B", "You can teleport at will.");
+
+    if (creature_ptr->muta1 & MUT1_MIND_BLST)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Í\90¸\90_\8dU\8c\82\82ð\8ds\82¦\82é\81B(\83_\83\81\81[\83W 3\81`12d3)", "You can Mind Blast your enemies (3 to 12d3 dam).");
+
+    if (creature_ptr->muta1 & MUT1_RADIATION)
+        si_ptr->info[si_ptr->line++]
+            = _("\82 \82È\82½\82Í\8e©\95ª\82Ì\88Ó\8ev\82Å\8b­\82¢\95ú\8eË\90ü\82ð\94­\90\82·\82é\82±\82Æ\82ª\82Å\82«\82é\81B(\83_\83\81\81[\83\83\8c\83x\83\8bX2)", "You can emit hard radiation at will (dam lvl * 2).");
+
+    if (creature_ptr->muta1 & MUT1_VAMPIRISM)
+        si_ptr->info[si_ptr->line++] = _(
+            "\82 \82È\82½\82Í\8bz\8c\8c\8bS\82Ì\82æ\82¤\82É\93G\82©\82ç\90\96½\97Í\82ð\8bz\8eû\82·\82é\82±\82Æ\82ª\82Å\82«\82é\81B(\83_\83\81\81[\83\83\8c\83x\83\8bX2)", "Like a vampire, you can drain life from a foe (dam lvl * 2).");
+
+    if (creature_ptr->muta1 & MUT1_SMELL_MET)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Í\8bß\82­\82É\82 \82é\8bM\8bà\91®\82ð\82©\82¬\95ª\82¯\82é\82±\82Æ\82ª\82Å\82«\82é\81B", "You can smell nearby precious metal.");
+
+    if (creature_ptr->muta1 & MUT1_SMELL_MON)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Í\8bß\82­\82Ì\83\82\83\93\83X\83^\81[\82Ì\91\8dÝ\82ð\82©\82¬\95ª\82¯\82é\82±\82Æ\82ª\82Å\82«\82é\81B", "You can smell nearby monsters.");
+
+    if (creature_ptr->muta1 & MUT1_BLINK)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Í\92Z\82¢\8b\97\97£\82ð\83e\83\8c\83|\81[\83g\82Å\82«\82é\81B", "You can teleport yourself short distances.");
+
+    if (creature_ptr->muta1 & MUT1_EAT_ROCK)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Í\8dd\82¢\8aâ\82ð\90H\82×\82é\82±\82Æ\82ª\82Å\82«\82é\81B", "You can consume solid rock.");
+
+    if (creature_ptr->muta1 & MUT1_SWAP_POS)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Í\91¼\82Ì\8eÒ\82Æ\8fê\8f\8a\82ð\93ü\82ê\91Ö\82í\82é\82±\82Æ\82ª\82Å\82«\82é\81B", "You can switch locations with another being.");
+
+    if (creature_ptr->muta1 & MUT1_SHRIEK)
+        si_ptr->info[si_ptr->line++]
+            = _("\82 \82È\82½\82Í\90g\82Ì\96Ñ\82à\82æ\82¾\82Â\8b©\82Ñ\90º\82ð\94­\82·\82é\82±\82Æ\82ª\82Å\82«\82é\81B(\83_\83\81\81[\83\83\8c\83x\83\8bX2)", "You can emit a horrible shriek (dam 2 * lvl).");
+
+    if (creature_ptr->muta1 & MUT1_ILLUMINE)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Í\96¾\82é\82¢\8cõ\82ð\95ú\82Â\82±\82Æ\82ª\82Å\82«\82é\81B", "You can emit bright light.");
+
+    if (creature_ptr->muta1 & MUT1_DET_CURSE)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Í\8e×\88«\82È\96\82\96@\82Ì\8aë\8c¯\82ð\8a´\82\82Æ\82é\82±\82Æ\82ª\82Å\82«\82é\81B", "You can feel the danger of evil magic.");
+
+    if (creature_ptr->muta1 & MUT1_BERSERK)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Í\8e©\95ª\82Ì\88Ó\8ev\82Å\8b\97\90\90í\93¬\8fó\91Ô\82É\82È\82é\82±\82Æ\82ª\82Å\82«\82é\81B", "You can drive yourself into a berserk frenzy.");
+
+    if (creature_ptr->muta1 & MUT1_POLYMORPH)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Í\8e©\95ª\82Ì\88Ó\8eu\82Å\95Ï\89»\82Å\82«\82é\81B", "You can polymorph yourself at will.");
+
+    if (creature_ptr->muta1 & MUT1_MIDAS_TCH)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Í\92Ê\8fí\83A\83C\83e\83\80\82ð\8bà\82É\95Ï\82¦\82é\82±\82Æ\82ª\82Å\82«\82é\81B", "You can turn ordinary items to gold.");
+
+    if (creature_ptr->muta1 & MUT1_GROW_MOLD)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Í\8eü\88Í\82É\83L\83m\83R\82ð\90\82â\82·\82±\82Æ\82ª\82Å\82«\82é\81B", "You can cause mold to grow near you.");
+
+    if (creature_ptr->muta1 & MUT1_RESIST)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Í\8c³\91f\82Ì\8dU\8c\82\82É\91Î\82µ\82Ä\90g\82ð\8dd\82­\82·\82é\82±\82Æ\82ª\82Å\82«\82é\81B", "You can harden yourself to the ravages of the elements.");
+
+    if (creature_ptr->muta1 & MUT1_EARTHQUAKE)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Í\8eü\88Í\82Ì\83_\83\93\83W\83\87\83\93\82ð\95ö\89ó\82³\82¹\82é\82±\82Æ\82ª\82Å\82«\82é\81B", "You can bring down the dungeon around your ears.");
+
+    if (creature_ptr->muta1 & MUT1_EAT_MAGIC)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Í\96\82\96@\82Ì\83G\83l\83\8b\83M\81[\82ð\8e©\95ª\82Ì\95¨\82Æ\82µ\82Ä\8eg\97p\82Å\82«\82é\81B", "You can consume magic energy for your own use.");
+
+    if (creature_ptr->muta1 & MUT1_WEIGH_MAG)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Í\8e©\95ª\82É\89e\8b¿\82ð\97^\82¦\82é\96\82\96@\82Ì\97Í\82ð\8a´\82\82é\82±\82Æ\82ª\82Å\82«\82é\81B", "You can feel the strength of the magics affecting you.");
+
+    if (creature_ptr->muta1 & MUT1_STERILITY)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Í\8fW\92c\93I\90\90B\95s\94\\82ð\8bN\82±\82·\82±\82Æ\82ª\82Å\82«\82é\81B", "You can cause mass impotence.");
+
+    if (creature_ptr->muta1 & MUT1_HIT_AND_AWAY)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Í\8dU\8c\82\82µ\82½\8cã\90g\82ð\8eç\82é\82½\82ß\93¦\82°\82é\82±\82Æ\82ª\82Å\82«\82é\81B", "You can run for your life after hitting something.");
+
+    if (creature_ptr->muta1 & MUT1_DAZZLE)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Í\8d¬\97\90\82Æ\96Ó\96Ú\82ð\88ø\82«\8bN\82±\82·\95ú\8eË\94\\82ð\94­\90\82·\82é\82±\82Æ\82ª\82Å\82«\82é\81B ", "You can emit confusing, blinding radiation.");
+
+    if (creature_ptr->muta1 & MUT1_LASER_EYE)
+        si_ptr->info[si_ptr->line++]
+            = _("\82 \82È\82½\82Í\96Ú\82©\82ç\83\8c\81[\83U\81[\8cõ\90ü\82ð\94­\82·\82é\82±\82Æ\82ª\82Å\82«\82é\81B(\83_\83\81\81[\83\83\8c\83x\83\8bX2)", "Your eyes can fire laser beams (dam 2 * lvl).");
+
+    if (creature_ptr->muta1 & MUT1_RECALL)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Í\8aX\82Æ\83_\83\93\83W\83\87\83\93\82Ì\8aÔ\82ð\8ds\82«\97\88\82·\82é\82±\82Æ\82ª\82Å\82«\82é\81B", "You can travel between town and the depths.");
+
+    if (creature_ptr->muta1 & MUT1_BANISH)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Í\8e×\88«\82È\83\82\83\93\83X\83^\81[\82ð\92n\8d\96\82É\97\8e\82Æ\82·\82±\82Æ\82ª\82Å\82«\82é\81B", "You can send evil creatures directly to Hell.");
+
+    if (creature_ptr->muta1 & MUT1_COLD_TOUCH)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Í\93G\82ð\90G\82Á\82Ä\93\80\82ç\82¹\82é\82±\82Æ\82ª\82Å\82«\82é\81B(\83_\83\81\81[\83\83\8c\83x\83\8bX3)", "You can freeze things with a touch (dam 3 * lvl).");
+
+    if (creature_ptr->muta1 & MUT1_LAUNCHER)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Í\83A\83C\83e\83\80\82ð\97Í\8b­\82­\93\8a\82°\82é\82±\82Æ\82ª\82Å\82«\82é\81B", "You can hurl objects with great force.");
+}
+
+void set_mutation_info_2(player_type *creature_ptr, self_info_type *si_ptr)
+{
+    if (creature_ptr->muta2 == 0)
+        return;
+
+    if (creature_ptr->muta2 & MUT2_BERS_RAGE)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Í\8b\90í\8em\89»\82Ì\94­\8dì\82ð\8bN\82±\82·\81B", "You are subject to berserker fits.");
+
+    if (creature_ptr->muta2 & MUT2_COWARDICE)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Í\8e\9e\81X\89°\95a\82É\82È\82é\81B", "You are subject to cowardice.");
+
+    if (creature_ptr->muta2 & MUT2_RTELEPORT)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Í\83\89\83\93\83_\83\80\82É\83e\83\8c\83|\81[\83g\82·\82é\81B", "You may randomly teleport.");
+
+    if (creature_ptr->muta2 & MUT2_ALCOHOL)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Ì\91Ì\82Í\83A\83\8b\83R\81[\83\8b\82ð\95ª\94å\82·\82é\81B", "Your body produces alcohol.");
+
+    if (creature_ptr->muta2 & MUT2_HALLU)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Í\8c\8ao\82ð\88ø\82«\8bN\82±\82·\90¸\90_\8dö\97\90\82É\90N\82³\82ê\82Ä\82¢\82é\81B", "You have a hallucinatory insanity.");
+
+    if (creature_ptr->muta2 & MUT2_FLATULENT)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Í\90§\8cä\82Å\82«\82È\82¢\8b­\97ó\82È\9b\9b\82ð\82±\82­\81B", "You are subject to uncontrollable flatulence.");
+
+    if (creature_ptr->muta2 & MUT2_PROD_MANA)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Í\90§\8cä\95s\94\\82È\96\82\96@\82Ì\83G\83l\83\8b\83M\81[\82ð\94­\82µ\82Ä\82¢\82é\81B", "You produce magical energy uncontrollably.");
+
+    if (creature_ptr->muta2 & MUT2_ATT_DEMON)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Í\83f\81[\83\82\83\93\82ð\88ø\82«\82Â\82¯\82é\81B", "You attract demons.");
+
+    if (creature_ptr->muta2 & MUT2_SCOR_TAIL)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Í\83T\83\\83\8a\82Ì\90K\94ö\82ª\90\82¦\82Ä\82¢\82é\81B(\93Å\81A\83_\83\81\81[\83W 3d7)", "You have a scorpion tail (poison, 3d7).");
+
+    if (creature_ptr->muta2 & MUT2_HORNS)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Í\8ap\82ª\90\82¦\82Ä\82¢\82é\81B(\83_\83\81\81[\83W 2d6)", "You have horns (dam. 2d6).");
+
+    if (creature_ptr->muta2 & MUT2_BEAK)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Í\83N\83`\83o\83V\82ª\90\82¦\82Ä\82¢\82é\81B(\83_\83\81\81[\83W 2d4)", "You have a beak (dam. 2d4).");
+
+    if (creature_ptr->muta2 & MUT2_SPEED_FLUX)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Í\83\89\83\93\83_\83\80\82É\91\81\82­\93®\82¢\82½\82è\92x\82­\93®\82¢\82½\82è\82·\82é\81B", "You move faster or slower randomly.");
+
+    if (creature_ptr->muta2 & MUT2_BANISH_ALL)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Í\8e\9e\81X\8bß\82­\82Ì\83\82\83\93\83X\83^\81[\82ð\8fÁ\96Å\82³\82¹\82é\81B", "You sometimes cause nearby creatures to vanish.");
+
+    if (creature_ptr->muta2 & MUT2_EAT_LIGHT)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Í\8e\9e\81X\8eü\88Í\82Ì\8cõ\82ð\8bz\8eû\82µ\82Ä\89h\97{\82É\82·\82é\81B", "You sometimes feed off of the light around you.");
+
+    if (creature_ptr->muta2 & MUT2_TRUNK)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Í\8fÛ\82Ì\82æ\82¤\82È\95@\82ð\8e\9d\82Á\82Ä\82¢\82é\81B(\83_\83\81\81[\83W 1d4)", "You have an elephantine trunk (dam 1d4).");
+
+    if (creature_ptr->muta2 & MUT2_ATT_ANIMAL)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Í\93®\95¨\82ð\88ø\82«\82Â\82¯\82é\81B", "You attract animals.");
+
+    if (creature_ptr->muta2 & MUT2_TENTACLES)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Í\8e×\88«\82È\90G\8eè\82ð\8e\9d\82Á\82Ä\82¢\82é\81B(\83_\83\81\81[\83W 2d5)", "You have evil looking tentacles (dam 2d5).");
+
+    if (creature_ptr->muta2 & MUT2_RAW_CHAOS)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Í\82µ\82Î\82µ\82Î\8f\83\83J\83I\83X\82É\95ï\82Ü\82ê\82é\81B", "You occasionally are surrounded with raw chaos.");
+
+    if (creature_ptr->muta2 & MUT2_NORMALITY)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Í\95Ï\88Ù\82µ\82Ä\82¢\82½\82ª\81A\89ñ\95\9c\82µ\82Ä\82«\82Ä\82¢\82é\81B", "You may be mutated, but you're recovering.");
+
+    if (creature_ptr->muta2 & MUT2_WRAITH)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Ì\93÷\91Ì\82Í\97H\91Ì\89»\82µ\82½\82è\8eÀ\91Ì\89»\82µ\82½\82è\82·\82é\81B", "You fade in and out of physical reality.");
+
+    if (creature_ptr->muta2 & MUT2_POLY_WOUND)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Ì\8c\92\8dN\82Í\83J\83I\83X\82Ì\97Í\82É\89e\8b¿\82ð\8eó\82¯\82é\81B", "Your health is subject to chaotic forces.");
+
+    if (creature_ptr->muta2 & MUT2_WASTING)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Í\90\8a\8eã\82·\82é\8b°\82ë\82µ\82¢\95a\8bC\82É\82©\82©\82Á\82Ä\82¢\82é\81B", "You have a horrible wasting disease.");
+
+    if (creature_ptr->muta2 & MUT2_ATT_DRAGON)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Í\83h\83\89\83S\83\93\82ð\88ø\82«\82Â\82¯\82é\81B", "You attract dragons.");
+
+    if (creature_ptr->muta2 & MUT2_WEIRD_MIND)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Ì\90¸\90_\82Í\83\89\83\93\83_\83\80\82É\8ag\91å\82µ\82½\82è\8fk\8f¬\82µ\82½\82è\82µ\82Ä\82¢\82é\81B", "Your mind randomly expands and contracts.");
+
+    if (creature_ptr->muta2 & MUT2_NAUSEA)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Ì\88Ý\82Í\94ñ\8fí\82É\97\8e\82¿\92\85\82«\82ª\82È\82¢\81B", "You have a seriously upset stomach.");
+
+    if (creature_ptr->muta2 & MUT2_CHAOS_GIFT)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Í\83J\83I\83X\82Ì\8eç\8cì\88«\96\82\82©\82ç\96J\94ü\82ð\82¤\82¯\82Æ\82é\81B", "Chaos deities give you gifts.");
+
+    if (creature_ptr->muta2 & MUT2_WALK_SHAD)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Í\82µ\82Î\82µ\82Î\91¼\82Ì\81u\89e\81v\82É\96À\82¢\8d\9e\82Þ\81B", "You occasionally stumble into other shadows.");
+
+    if (creature_ptr->muta2 & MUT2_WARNING)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Í\93G\82É\8aÖ\82·\82é\8cx\8d\90\82ð\8a´\82\82é\81B", "You receive warnings about your foes.");
+
+    if (creature_ptr->muta2 & MUT2_INVULN)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Í\8e\9e\81X\95\89\82¯\92m\82ç\82¸\82È\8bC\95ª\82É\82È\82é\81B", "You occasionally feel invincible.");
+
+    if (creature_ptr->muta2 & MUT2_SP_TO_HP)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Í\8e\9e\81X\8c\8c\82ª\8bØ\93÷\82É\82Ç\82Á\82Æ\97¬\82ê\82é\81B", "Your blood sometimes rushes to your muscles.");
+
+    if (creature_ptr->muta2 & MUT2_HP_TO_SP)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Í\8e\9e\81X\93ª\82É\8c\8c\82ª\82Ç\82Á\82Æ\97¬\82ê\82é\81B", "Your blood sometimes rushes to your head.");
+
+    if (creature_ptr->muta2 & MUT2_DISARM)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Í\82æ\82­\82Â\82Ü\82Ã\82¢\82Ä\95¨\82ð\97\8e\82Æ\82·\81B", "You occasionally stumble and drop things.");
+}
+
+/* todo FEAELESS \83t\83\89\83O\82à\8bL\8fq\82µ\82Ä\96â\91è\82È\82¢\82Æ\8ev\82í\82ê\82é */
+void set_mutation_info_3(player_type *creature_ptr, self_info_type *si_ptr)
+{
+    if (creature_ptr->muta3 == 0)
+        return;
+
+    if (creature_ptr->muta3 & MUT3_HYPER_STR)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Í\92´\90l\93I\82É\8b­\82¢\81B(\98r\97Í+4)", "You are superhumanly strong (+4 STR).");
+
+    if (creature_ptr->muta3 & MUT3_PUNY)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Í\8b\95\8eã\82¾\81B(\98r\97Í-4)", "You are puny (-4 STR).");
+
+    if (creature_ptr->muta3 & MUT3_HYPER_INT)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Ì\94]\82Í\90\91Ì\83R\83\93\83s\83\85\81[\83^\82¾\81B(\92m\94\\81\95\8c«\82³+4)", "Your brain is a living computer (+4 INT/WIS).");
+
+    if (creature_ptr->muta3 & MUT3_MORONIC)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Í\90¸\90_\94\96\8eã\82¾\81B(\92m\94\\81\95\8c«\82³-4)", "You are moronic (-4 INT/WIS).");
+
+    if (creature_ptr->muta3 & MUT3_RESILIENT)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Í\94ñ\8fí\82É\83^\83t\82¾\81B(\91Ï\8bv+4)", "You are very resilient (+4 CON).");
+
+    if (creature_ptr->muta3 & MUT3_XTRA_FAT)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Í\8bÉ\92[\82É\91¾\82Á\82Ä\82¢\82é\81B(\91Ï\8bv+2,\83X\83s\81[\83h-2)", "You are extremely fat (+2 CON, -2 speed).");
+
+    if (creature_ptr->muta3 & MUT3_ALBINO)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Í\83A\83\8b\83r\83m\82¾\81B(\91Ï\8bv-4)", "You are an albino (-4 CON).");
+
+    if (creature_ptr->muta3 & MUT3_FLESH_ROT)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Ì\93÷\91Ì\82Í\95\85\94s\82µ\82Ä\82¢\82é\81B(\91Ï\8bv-2,\96£\97Í-1)", "Your flesh is rotting (-2 CON, -1 CHR).");
+
+    if (creature_ptr->muta3 & MUT3_SILLY_VOI)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Ì\90º\82Í\8aÔ\94²\82¯\82È\83L\81[\83L\81[\90º\82¾\81B(\96£\97Í-4)", "Your voice is a silly squeak (-4 CHR).");
+
+    if (creature_ptr->muta3 & MUT3_BLANK_FAC)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Í\82Ì\82Á\82Ø\82ç\82Ú\82¤\82¾\81B(\96£\97Í-1)", "Your face is featureless (-1 CHR).");
+
+    if (creature_ptr->muta3 & MUT3_ILL_NORM)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Í\8c\89e\82É\95¢\82í\82ê\82Ä\82¢\82é\81B", "Your appearance is masked with illusion.");
+
+    if (creature_ptr->muta3 & MUT3_XTRA_EYES)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Í\97]\95ª\82É\93ñ\82Â\82Ì\96Ú\82ð\8e\9d\82Á\82Ä\82¢\82é\81B(\92T\8dõ+15)", "You have an extra pair of eyes (+15 search).");
+
+    if (creature_ptr->muta3 & MUT3_MAGIC_RES)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Í\96\82\96@\82Ö\82Ì\91Ï\90«\82ð\82à\82Á\82Ä\82¢\82é\81B", "You are resistant to magic.");
+
+    if (creature_ptr->muta3 & MUT3_XTRA_NOIS)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Í\95Ï\82È\89¹\82ð\94­\82µ\82Ä\82¢\82é\81B(\89B\96§-3)", "You make a lot of strange noise (-3 stealth).");
+
+    if (creature_ptr->muta3 & MUT3_INFRAVIS)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Í\91f\90°\82ç\82µ\82¢\90Ô\8aO\90ü\8e\8b\97Í\82ð\8e\9d\82Á\82Ä\82¢\82é\81B(+3)", "You have remarkable infravision (+3).");
+
+    if (creature_ptr->muta3 & MUT3_XTRA_LEGS)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Í\97]\95ª\82É\93ñ\96{\82Ì\91«\82ª\90\82¦\82Ä\82¢\82é\81B(\89Á\91¬+3)", "You have an extra pair of legs (+3 speed).");
+
+    if (creature_ptr->muta3 & MUT3_SHORT_LEG)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Ì\91«\82Í\92Z\82¢\93Ë\8bN\82¾\81B(\89Á\91¬-3)", "Your legs are short stubs (-3 speed).");
+
+    if (creature_ptr->muta3 & MUT3_ELEC_TOUC)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Ì\8c\8c\8aÇ\82É\82Í\93d\97¬\82ª\97¬\82ê\82Ä\82¢\82é\81B", "Electricity is running through your veins.");
+
+    if (creature_ptr->muta3 & MUT3_FIRE_BODY)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Ì\91Ì\82Í\89\8a\82É\82Â\82Â\82Ü\82ê\82Ä\82¢\82é\81B", "Your body is enveloped in flames.");
+
+    if (creature_ptr->muta3 & MUT3_WART_SKIN)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Ì\94§\82Í\83C\83{\82É\94í\82í\82ê\82Ä\82¢\82é\81B(\96£\97Í-2, AC+5)", "Your skin is covered with warts (-2 CHR, +5 AC).");
+
+    if (creature_ptr->muta3 & MUT3_SCALES)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Ì\94§\82Í\97Ø\82É\82È\82Á\82Ä\82¢\82é\81B(\96£\97Í-1, AC+10)", "Your skin has turned into scales (-1 CHR, +10 AC).");
+
+    if (creature_ptr->muta3 & MUT3_IRON_SKIN)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Ì\94§\82Í\93S\82Å\82Å\82«\82Ä\82¢\82é\81B(\8aí\97p-1, AC+25)", "Your skin is made of steel (-1 DEX, +25 AC).");
+
+    if (creature_ptr->muta3 & MUT3_WINGS)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Í\89H\82ð\8e\9d\82Á\82Ä\82¢\82é\81B", "You have wings.");
+
+    if (creature_ptr->muta3 & MUT3_FEARLESS) {
+        /* Unnecessary */
+    }
+
+    if (creature_ptr->muta3 & MUT3_REGEN) {
+        /* Unnecessary */
+    }
+
+    if (creature_ptr->muta3 & MUT3_ESP) {
+        /* Unnecessary */
+    }
+
+    if (creature_ptr->muta3 & MUT3_LIMBER)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Ì\91Ì\82Í\94ñ\8fí\82É\82µ\82È\82â\82©\82¾\81B(\8aí\97p+3)", "Your body is very limber (+3 DEX).");
+
+    if (creature_ptr->muta3 & MUT3_ARTHRITIS)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Í\82¢\82Â\82à\8aÖ\90ß\82É\92É\82Ý\82ð\8a´\82\82Ä\82¢\82é\81B(\8aí\97p-3)", "Your joints ache constantly (-3 DEX).");
+
+    if (creature_ptr->muta3 & MUT3_VULN_ELEM)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Í\8c³\91f\82Ì\8dU\8c\82\82É\8eã\82¢\81B", "You are susceptible to damage from the elements.");
+
+    if (creature_ptr->muta3 & MUT3_MOTION)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Ì\93®\8dì\82Í\90³\8am\82Å\97Í\8b­\82¢\81B(\89B\96§+1)", "Your movements are precise and forceful (+1 STL).");
+
+    if (have_good_luck(creature_ptr))
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Í\94\92\82¢\83I\81[\83\89\82É\82Â\82Â\82Ü\82ê\82Ä\82¢\82é\81B", "There is a white aura surrounding you.");
+
+    if (creature_ptr->muta3 & MUT3_BAD_LUCK)
+        si_ptr->info[si_ptr->line++] = _("\82 \82È\82½\82Í\8d\95\82¢\83I\81[\83\89\82É\82Â\82Â\82Ü\82ê\82Ä\82¢\82é\81B", "There is a black aura surrounding you.");
+}
diff --git a/src/player-info/mutation-info.h b/src/player-info/mutation-info.h
new file mode 100644 (file)
index 0000000..09dbfdf
--- /dev/null
@@ -0,0 +1,8 @@
+#pragma once
+
+#include "system/angband.h"
+
+typedef struct self_info_type self_info_type;
+void set_mutation_info_1(player_type *creature_ptr, self_info_type *si_ptr);
+void set_mutation_info_2(player_type *creature_ptr, self_info_type *si_ptr);
+void set_mutation_info_3(player_type *creature_ptr, self_info_type *si_ptr);
index b3e363b..64d8750 100644 (file)
@@ -22,6 +22,7 @@
 #include "object/object-flags.h"
 #include "player-info/avatar.h"
 #include "player-info/class-ability-info.h"
+#include "player-info/mutation-info.h"
 #include "player-info/race-ability-info.h"
 #include "player-info/self-info-util.h"
 #include "player/attack-defense-types.h"
@@ -208,309 +209,9 @@ void self_knowledge(player_type *creature_ptr)
         set_race_ability_info(creature_ptr, si_ptr);
 
     set_class_ability_info(creature_ptr, si_ptr);
-    if (creature_ptr->muta1) {
-        if (creature_ptr->muta1 & MUT1_SPIT_ACID) {
-            si_ptr->info[si_ptr->line++] = _("あなたは酸を吹きかけることができる。(ダメージ レベルX1)", "You can spit acid (dam lvl).");
-        }
-        if (creature_ptr->muta1 & MUT1_BR_FIRE) {
-            si_ptr->info[si_ptr->line++] = _("あなたは炎のブレスを吐くことができる。(ダメージ レベルX2)", "You can breathe fire (dam lvl * 2).");
-        }
-        if (creature_ptr->muta1 & MUT1_HYPN_GAZE) {
-            si_ptr->info[si_ptr->line++] = _("あなたの睨みは催眠効果をもつ。", "Your gaze is hypnotic.");
-        }
-        if (creature_ptr->muta1 & MUT1_TELEKINES) {
-            si_ptr->info[si_ptr->line++] = _("あなたは念動力をもっている。", "You are telekinetic.");
-        }
-        if (creature_ptr->muta1 & MUT1_VTELEPORT) {
-            si_ptr->info[si_ptr->line++] = _("あなたは自分の意思でテレポートできる。", "You can teleport at will.");
-        }
-        if (creature_ptr->muta1 & MUT1_MIND_BLST) {
-            si_ptr->info[si_ptr->line++] = _("あなたは精神攻撃を行える。(ダメージ 3~12d3)", "You can Mind Blast your enemies (3 to 12d3 dam).");
-        }
-        if (creature_ptr->muta1 & MUT1_RADIATION) {
-            si_ptr->info[si_ptr->line++]
-                = _("あなたは自分の意思で強い放射線を発生することができる。(ダメージ レベルX2)", "You can emit hard radiation at will (dam lvl * 2).");
-        }
-        if (creature_ptr->muta1 & MUT1_VAMPIRISM) {
-            si_ptr->info[si_ptr->line++] = _("あなたは吸血鬼のように敵から生命力を吸収することができる。(ダメージ レベルX2)",
-                "Like a vampire, you can drain life from a foe (dam lvl * 2).");
-        }
-        if (creature_ptr->muta1 & MUT1_SMELL_MET) {
-            si_ptr->info[si_ptr->line++] = _("あなたは近くにある貴金属をかぎ分けることができる。", "You can smell nearby precious metal.");
-        }
-        if (creature_ptr->muta1 & MUT1_SMELL_MON) {
-            si_ptr->info[si_ptr->line++] = _("あなたは近くのモンスターの存在をかぎ分けることができる。", "You can smell nearby monsters.");
-        }
-        if (creature_ptr->muta1 & MUT1_BLINK) {
-            si_ptr->info[si_ptr->line++] = _("あなたは短い距離をテレポートできる。", "You can teleport yourself short distances.");
-        }
-        if (creature_ptr->muta1 & MUT1_EAT_ROCK) {
-            si_ptr->info[si_ptr->line++] = _("あなたは硬い岩を食べることができる。", "You can consume solid rock.");
-        }
-        if (creature_ptr->muta1 & MUT1_SWAP_POS) {
-            si_ptr->info[si_ptr->line++] = _("あなたは他の者と場所を入れ替わることができる。", "You can switch locations with another being.");
-        }
-        if (creature_ptr->muta1 & MUT1_SHRIEK) {
-            si_ptr->info[si_ptr->line++]
-                = _("あなたは身の毛もよだつ叫び声を発することができる。(ダメージ レベルX2)", "You can emit a horrible shriek (dam 2 * lvl).");
-        }
-        if (creature_ptr->muta1 & MUT1_ILLUMINE) {
-            si_ptr->info[si_ptr->line++] = _("あなたは明るい光を放つことができる。", "You can emit bright light.");
-        }
-        if (creature_ptr->muta1 & MUT1_DET_CURSE) {
-            si_ptr->info[si_ptr->line++] = _("あなたは邪悪な魔法の危険を感じとることができる。", "You can feel the danger of evil magic.");
-        }
-        if (creature_ptr->muta1 & MUT1_BERSERK) {
-            si_ptr->info[si_ptr->line++] = _("あなたは自分の意思で狂乱戦闘状態になることができる。", "You can drive yourself into a berserk frenzy.");
-        }
-        if (creature_ptr->muta1 & MUT1_POLYMORPH) {
-            si_ptr->info[si_ptr->line++] = _("あなたは自分の意志で変化できる。", "You can polymorph yourself at will.");
-        }
-        if (creature_ptr->muta1 & MUT1_MIDAS_TCH) {
-            si_ptr->info[si_ptr->line++] = _("あなたは通常アイテムを金に変えることができる。", "You can turn ordinary items to gold.");
-        }
-        if (creature_ptr->muta1 & MUT1_GROW_MOLD) {
-            si_ptr->info[si_ptr->line++] = _("あなたは周囲にキノコを生やすことができる。", "You can cause mold to grow near you.");
-        }
-        if (creature_ptr->muta1 & MUT1_RESIST) {
-            si_ptr->info[si_ptr->line++] = _("あなたは元素の攻撃に対して身を硬くすることができる。", "You can harden yourself to the ravages of the elements.");
-        }
-        if (creature_ptr->muta1 & MUT1_EARTHQUAKE) {
-            si_ptr->info[si_ptr->line++] = _("あなたは周囲のダンジョンを崩壊させることができる。", "You can bring down the dungeon around your ears.");
-        }
-        if (creature_ptr->muta1 & MUT1_EAT_MAGIC) {
-            si_ptr->info[si_ptr->line++] = _("あなたは魔法のエネルギーを自分の物として使用できる。", "You can consume magic energy for your own use.");
-        }
-        if (creature_ptr->muta1 & MUT1_WEIGH_MAG) {
-            si_ptr->info[si_ptr->line++]
-                = _("あなたは自分に影響を与える魔法の力を感じることができる。", "You can feel the strength of the magics affecting you.");
-        }
-        if (creature_ptr->muta1 & MUT1_STERILITY) {
-            si_ptr->info[si_ptr->line++] = _("あなたは集団的生殖不能を起こすことができる。", "You can cause mass impotence.");
-        }
-        if (creature_ptr->muta1 & MUT1_HIT_AND_AWAY) {
-            si_ptr->info[si_ptr->line++] = _("あなたは攻撃した後身を守るため逃げることができる。", "You can run for your life after hitting something.");
-        }
-        if (creature_ptr->muta1 & MUT1_DAZZLE) {
-            si_ptr->info[si_ptr->line++] = _("あなたは混乱と盲目を引き起こす放射能を発生することができる。 ", "You can emit confusing, blinding radiation.");
-        }
-        if (creature_ptr->muta1 & MUT1_LASER_EYE) {
-            si_ptr->info[si_ptr->line++]
-                = _("あなたは目からレーザー光線を発することができる。(ダメージ レベルX2)", "Your eyes can fire laser beams (dam 2 * lvl).");
-        }
-        if (creature_ptr->muta1 & MUT1_RECALL) {
-            si_ptr->info[si_ptr->line++] = _("あなたは街とダンジョンの間を行き来することができる。", "You can travel between town and the depths.");
-        }
-        if (creature_ptr->muta1 & MUT1_BANISH) {
-            si_ptr->info[si_ptr->line++] = _("あなたは邪悪なモンスターを地獄に落とすことができる。", "You can send evil creatures directly to Hell.");
-        }
-        if (creature_ptr->muta1 & MUT1_COLD_TOUCH) {
-            si_ptr->info[si_ptr->line++]
-                = _("あなたは敵を触って凍らせることができる。(ダメージ レベルX3)", "You can freeze things with a touch (dam 3 * lvl).");
-        }
-        if (creature_ptr->muta1 & MUT1_LAUNCHER) {
-            si_ptr->info[si_ptr->line++] = _("あなたはアイテムを力強く投げることができる。", "You can hurl objects with great force.");
-        }
-    }
-
-    if (creature_ptr->muta2) {
-        if (creature_ptr->muta2 & MUT2_BERS_RAGE) {
-            si_ptr->info[si_ptr->line++] = _("あなたは狂戦士化の発作を起こす。", "You are subject to berserker fits.");
-        }
-        if (creature_ptr->muta2 & MUT2_COWARDICE) {
-            si_ptr->info[si_ptr->line++] = _("あなたは時々臆病になる。", "You are subject to cowardice.");
-        }
-        if (creature_ptr->muta2 & MUT2_RTELEPORT) {
-            si_ptr->info[si_ptr->line++] = _("あなたはランダムにテレポートする。", "You may randomly teleport.");
-        }
-        if (creature_ptr->muta2 & MUT2_ALCOHOL) {
-            si_ptr->info[si_ptr->line++] = _("あなたの体はアルコールを分泌する。", "Your body produces alcohol.");
-        }
-        if (creature_ptr->muta2 & MUT2_HALLU) {
-            si_ptr->info[si_ptr->line++] = _("あなたは幻覚を引き起こす精神錯乱に侵されている。", "You have a hallucinatory insanity.");
-        }
-        if (creature_ptr->muta2 & MUT2_FLATULENT) {
-            si_ptr->info[si_ptr->line++] = _("あなたは制御できない強烈な屁をこく。", "You are subject to uncontrollable flatulence.");
-        }
-        if (creature_ptr->muta2 & MUT2_PROD_MANA) {
-            si_ptr->info[si_ptr->line++] = _("あなたは制御不能な魔法のエネルギーを発している。", "You produce magical energy uncontrollably.");
-        }
-        if (creature_ptr->muta2 & MUT2_ATT_DEMON) {
-            si_ptr->info[si_ptr->line++] = _("あなたはデーモンを引きつける。", "You attract demons.");
-        }
-        if (creature_ptr->muta2 & MUT2_SCOR_TAIL) {
-            si_ptr->info[si_ptr->line++] = _("あなたはサソリの尻尾が生えている。(毒、ダメージ 3d7)", "You have a scorpion tail (poison, 3d7).");
-        }
-        if (creature_ptr->muta2 & MUT2_HORNS) {
-            si_ptr->info[si_ptr->line++] = _("あなたは角が生えている。(ダメージ 2d6)", "You have horns (dam. 2d6).");
-        }
-        if (creature_ptr->muta2 & MUT2_BEAK) {
-            si_ptr->info[si_ptr->line++] = _("あなたはクチバシが生えている。(ダメージ 2d4)", "You have a beak (dam. 2d4).");
-        }
-        if (creature_ptr->muta2 & MUT2_SPEED_FLUX) {
-            si_ptr->info[si_ptr->line++] = _("あなたはランダムに早く動いたり遅く動いたりする。", "You move faster or slower randomly.");
-        }
-        if (creature_ptr->muta2 & MUT2_BANISH_ALL) {
-            si_ptr->info[si_ptr->line++] = _("あなたは時々近くのモンスターを消滅させる。", "You sometimes cause nearby creatures to vanish.");
-        }
-        if (creature_ptr->muta2 & MUT2_EAT_LIGHT) {
-            si_ptr->info[si_ptr->line++] = _("あなたは時々周囲の光を吸収して栄養にする。", "You sometimes feed off of the light around you.");
-        }
-        if (creature_ptr->muta2 & MUT2_TRUNK) {
-            si_ptr->info[si_ptr->line++] = _("あなたは象のような鼻を持っている。(ダメージ 1d4)", "You have an elephantine trunk (dam 1d4).");
-        }
-        if (creature_ptr->muta2 & MUT2_ATT_ANIMAL) {
-            si_ptr->info[si_ptr->line++] = _("あなたは動物を引きつける。", "You attract animals.");
-        }
-        if (creature_ptr->muta2 & MUT2_TENTACLES) {
-            si_ptr->info[si_ptr->line++] = _("あなたは邪悪な触手を持っている。(ダメージ 2d5)", "You have evil looking tentacles (dam 2d5).");
-        }
-        if (creature_ptr->muta2 & MUT2_RAW_CHAOS) {
-            si_ptr->info[si_ptr->line++] = _("あなたはしばしば純カオスに包まれる。", "You occasionally are surrounded with raw chaos.");
-        }
-        if (creature_ptr->muta2 & MUT2_NORMALITY) {
-            si_ptr->info[si_ptr->line++] = _("あなたは変異していたが、回復してきている。", "You may be mutated, but you're recovering.");
-        }
-        if (creature_ptr->muta2 & MUT2_WRAITH) {
-            si_ptr->info[si_ptr->line++] = _("あなたの肉体は幽体化したり実体化したりする。", "You fade in and out of physical reality.");
-        }
-        if (creature_ptr->muta2 & MUT2_POLY_WOUND) {
-            si_ptr->info[si_ptr->line++] = _("あなたの健康はカオスの力に影響を受ける。", "Your health is subject to chaotic forces.");
-        }
-        if (creature_ptr->muta2 & MUT2_WASTING) {
-            si_ptr->info[si_ptr->line++] = _("あなたは衰弱する恐ろしい病気にかかっている。", "You have a horrible wasting disease.");
-        }
-        if (creature_ptr->muta2 & MUT2_ATT_DRAGON) {
-            si_ptr->info[si_ptr->line++] = _("あなたはドラゴンを引きつける。", "You attract dragons.");
-        }
-        if (creature_ptr->muta2 & MUT2_WEIRD_MIND) {
-            si_ptr->info[si_ptr->line++] = _("あなたの精神はランダムに拡大したり縮小したりしている。", "Your mind randomly expands and contracts.");
-        }
-        if (creature_ptr->muta2 & MUT2_NAUSEA) {
-            si_ptr->info[si_ptr->line++] = _("あなたの胃は非常に落ち着きがない。", "You have a seriously upset stomach.");
-        }
-        if (creature_ptr->muta2 & MUT2_CHAOS_GIFT) {
-            si_ptr->info[si_ptr->line++] = _("あなたはカオスの守護悪魔から褒美をうけとる。", "Chaos deities give you gifts.");
-        }
-        if (creature_ptr->muta2 & MUT2_WALK_SHAD) {
-            si_ptr->info[si_ptr->line++] = _("あなたはしばしば他の「影」に迷い込む。", "You occasionally stumble into other shadows.");
-        }
-        if (creature_ptr->muta2 & MUT2_WARNING) {
-            si_ptr->info[si_ptr->line++] = _("あなたは敵に関する警告を感じる。", "You receive warnings about your foes.");
-        }
-        if (creature_ptr->muta2 & MUT2_INVULN) {
-            si_ptr->info[si_ptr->line++] = _("あなたは時々負け知らずな気分になる。", "You occasionally feel invincible.");
-        }
-        if (creature_ptr->muta2 & MUT2_SP_TO_HP) {
-            si_ptr->info[si_ptr->line++] = _("あなたは時々血が筋肉にどっと流れる。", "Your blood sometimes rushes to your muscles.");
-        }
-        if (creature_ptr->muta2 & MUT2_HP_TO_SP) {
-            si_ptr->info[si_ptr->line++] = _("あなたは時々頭に血がどっと流れる。", "Your blood sometimes rushes to your head.");
-        }
-        if (creature_ptr->muta2 & MUT2_DISARM) {
-            si_ptr->info[si_ptr->line++] = _("あなたはよくつまづいて物を落とす。", "You occasionally stumble and drop things.");
-        }
-    }
-
-    if (creature_ptr->muta3) {
-        if (creature_ptr->muta3 & MUT3_HYPER_STR) {
-            si_ptr->info[si_ptr->line++] = _("あなたは超人的に強い。(腕力+4)", "You are superhumanly strong (+4 STR).");
-        }
-        if (creature_ptr->muta3 & MUT3_PUNY) {
-            si_ptr->info[si_ptr->line++] = _("あなたは虚弱だ。(腕力-4)", "You are puny (-4 STR).");
-        }
-        if (creature_ptr->muta3 & MUT3_HYPER_INT) {
-            si_ptr->info[si_ptr->line++] = _("あなたの脳は生体コンピュータだ。(知能&賢さ+4)", "Your brain is a living computer (+4 INT/WIS).");
-        }
-        if (creature_ptr->muta3 & MUT3_MORONIC) {
-            si_ptr->info[si_ptr->line++] = _("あなたは精神薄弱だ。(知能&賢さ-4)", "You are moronic (-4 INT/WIS).");
-        }
-        if (creature_ptr->muta3 & MUT3_RESILIENT) {
-            si_ptr->info[si_ptr->line++] = _("あなたは非常にタフだ。(耐久+4)", "You are very resilient (+4 CON).");
-        }
-        if (creature_ptr->muta3 & MUT3_XTRA_FAT) {
-            si_ptr->info[si_ptr->line++] = _("あなたは極端に太っている。(耐久+2,スピード-2)", "You are extremely fat (+2 CON, -2 speed).");
-        }
-        if (creature_ptr->muta3 & MUT3_ALBINO) {
-            si_ptr->info[si_ptr->line++] = _("あなたはアルビノだ。(耐久-4)", "You are an albino (-4 CON).");
-        }
-        if (creature_ptr->muta3 & MUT3_FLESH_ROT) {
-            si_ptr->info[si_ptr->line++] = _("あなたの肉体は腐敗している。(耐久-2,魅力-1)", "Your flesh is rotting (-2 CON, -1 CHR).");
-        }
-        if (creature_ptr->muta3 & MUT3_SILLY_VOI) {
-            si_ptr->info[si_ptr->line++] = _("あなたの声は間抜けなキーキー声だ。(魅力-4)", "Your voice is a silly squeak (-4 CHR).");
-        }
-        if (creature_ptr->muta3 & MUT3_BLANK_FAC) {
-            si_ptr->info[si_ptr->line++] = _("あなたはのっぺらぼうだ。(魅力-1)", "Your face is featureless (-1 CHR).");
-        }
-        if (creature_ptr->muta3 & MUT3_ILL_NORM) {
-            si_ptr->info[si_ptr->line++] = _("あなたは幻影に覆われている。", "Your appearance is masked with illusion.");
-        }
-        if (creature_ptr->muta3 & MUT3_XTRA_EYES) {
-            si_ptr->info[si_ptr->line++] = _("あなたは余分に二つの目を持っている。(探索+15)", "You have an extra pair of eyes (+15 search).");
-        }
-        if (creature_ptr->muta3 & MUT3_MAGIC_RES) {
-            si_ptr->info[si_ptr->line++] = _("あなたは魔法への耐性をもっている。", "You are resistant to magic.");
-        }
-        if (creature_ptr->muta3 & MUT3_XTRA_NOIS) {
-            si_ptr->info[si_ptr->line++] = _("あなたは変な音を発している。(隠密-3)", "You make a lot of strange noise (-3 stealth).");
-        }
-        if (creature_ptr->muta3 & MUT3_INFRAVIS) {
-            si_ptr->info[si_ptr->line++] = _("あなたは素晴らしい赤外線視力を持っている。(+3)", "You have remarkable infravision (+3).");
-        }
-        if (creature_ptr->muta3 & MUT3_XTRA_LEGS) {
-            si_ptr->info[si_ptr->line++] = _("あなたは余分に二本の足が生えている。(加速+3)", "You have an extra pair of legs (+3 speed).");
-        }
-        if (creature_ptr->muta3 & MUT3_SHORT_LEG) {
-            si_ptr->info[si_ptr->line++] = _("あなたの足は短い突起だ。(加速-3)", "Your legs are short stubs (-3 speed).");
-        }
-        if (creature_ptr->muta3 & MUT3_ELEC_TOUC) {
-            si_ptr->info[si_ptr->line++] = _("あなたの血管には電流が流れている。", "Electricity is running through your veins.");
-        }
-        if (creature_ptr->muta3 & MUT3_FIRE_BODY) {
-            si_ptr->info[si_ptr->line++] = _("あなたの体は炎につつまれている。", "Your body is enveloped in flames.");
-        }
-        if (creature_ptr->muta3 & MUT3_WART_SKIN) {
-            si_ptr->info[si_ptr->line++] = _("あなたの肌はイボに被われている。(魅力-2, AC+5)", "Your skin is covered with warts (-2 CHR, +5 AC).");
-        }
-        if (creature_ptr->muta3 & MUT3_SCALES) {
-            si_ptr->info[si_ptr->line++] = _("あなたの肌は鱗になっている。(魅力-1, AC+10)", "Your skin has turned into scales (-1 CHR, +10 AC).");
-        }
-        if (creature_ptr->muta3 & MUT3_IRON_SKIN) {
-            si_ptr->info[si_ptr->line++] = _("あなたの肌は鉄でできている。(器用-1, AC+25)", "Your skin is made of steel (-1 DEX, +25 AC).");
-        }
-        if (creature_ptr->muta3 & MUT3_WINGS) {
-            si_ptr->info[si_ptr->line++] = _("あなたは羽を持っている。", "You have wings.");
-        }
-        if (creature_ptr->muta3 & MUT3_FEARLESS) {
-            /* Unnecessary */
-        }
-        if (creature_ptr->muta3 & MUT3_REGEN) {
-            /* Unnecessary */
-        }
-        if (creature_ptr->muta3 & MUT3_ESP) {
-            /* Unnecessary */
-        }
-        if (creature_ptr->muta3 & MUT3_LIMBER) {
-            si_ptr->info[si_ptr->line++] = _("あなたの体は非常にしなやかだ。(器用+3)", "Your body is very limber (+3 DEX).");
-        }
-        if (creature_ptr->muta3 & MUT3_ARTHRITIS) {
-            si_ptr->info[si_ptr->line++] = _("あなたはいつも関節に痛みを感じている。(器用-3)", "Your joints ache constantly (-3 DEX).");
-        }
-        if (creature_ptr->muta3 & MUT3_VULN_ELEM) {
-            si_ptr->info[si_ptr->line++] = _("あなたは元素の攻撃に弱い。", "You are susceptible to damage from the elements.");
-        }
-        if (creature_ptr->muta3 & MUT3_MOTION) {
-            si_ptr->info[si_ptr->line++] = _("あなたの動作は正確で力強い。(隠密+1)", "Your movements are precise and forceful (+1 STL).");
-        }
-        if (have_good_luck(creature_ptr)) {
-            si_ptr->info[si_ptr->line++] = _("あなたは白いオーラにつつまれている。", "There is a white aura surrounding you.");
-        }
-        if (creature_ptr->muta3 & MUT3_BAD_LUCK) {
-            si_ptr->info[si_ptr->line++] = _("あなたは黒いオーラにつつまれている。", "There is a black aura surrounding you.");
-        }
-    }
-
+    set_mutation_info_1(creature_ptr, si_ptr);
+    set_mutation_info_2(creature_ptr, si_ptr);
+    set_mutation_info_3(creature_ptr, si_ptr);
     if (creature_ptr->blind) {
         si_ptr->info[si_ptr->line++] = _("あなたは目が見えない。", "You cannot see.");
     }