OSDN Git Service

It's not currently used in hengband, but bring over the change to mouse event handlin...
[hengbandforosx/hengbandosx.git] / src / realm-craft.c
index a7946dd..196b105 100644 (file)
@@ -1,6 +1,11 @@
 #include "angband.h"
 #include "cmd-spell.h"
 #include "selfinfo.h"
+#include "projection.h"
+#include "spells-object.h"
+#include "spells-summon.h"
+#include "spells-status.h"
+#include "mutation.h"
 
 
 
@@ -68,7 +73,7 @@ concptr do_craft_spell(SPELL_IDX spell, BIT_FLAGS mode)
        case 3:
                if (name) return _("耐冷気", "Resist Cold");
                if (desc) return _("一定時間、冷気への耐性を得る。装備による耐性に累積する。",
-                       "Gives resistance to cold. This resistance can be added to which from equipment for more powerful resistance.");
+                       "Gives resistance to cold. This resistance can be added to that from equipment for more powerful resistance.");
 
                {
                        int base = 20;
@@ -85,7 +90,7 @@ concptr do_craft_spell(SPELL_IDX spell, BIT_FLAGS mode)
        case 4:
                if (name) return _("耐火炎", "Resist Fire");
                if (desc) return _("一定時間、炎への耐性を得る。装備による耐性に累積する。",
-                       "Gives resistance to fire. This resistance can be added to which from equipment for more powerful resistance.");
+                       "Gives resistance to fire. This resistance can be added to that from equipment for more powerful resistance.");
 
                {
                        int base = 20;
@@ -101,7 +106,7 @@ concptr do_craft_spell(SPELL_IDX spell, BIT_FLAGS mode)
 
        case 5:
                if (name) return _("士気高揚", "Heroism");
-               if (desc) return _("一定時間、ヒーロー気分になる。", "Removes fear, and gives bonus to hit and 10 more HP for a while.");
+               if (desc) return _("一定時間、ヒーロー気分になる。", "Removes fear. Gives a bonus to hit for a while. Heals you for 10 HP.");
 
                {
                        int base = 25;
@@ -118,7 +123,7 @@ concptr do_craft_spell(SPELL_IDX spell, BIT_FLAGS mode)
        case 6:
                if (name) return _("耐電撃", "Resist Lightning");
                if (desc) return _("一定時間、電撃への耐性を得る。装備による耐性に累積する。",
-                       "Gives resistance to electricity. This resistance can be added to which from equipment for more powerful resistance.");
+                       "Gives resistance to electricity. This resistance can be added to that from equipment for more powerful resistance.");
 
                {
                        int base = 20;
@@ -135,7 +140,7 @@ concptr do_craft_spell(SPELL_IDX spell, BIT_FLAGS mode)
        case 7:
                if (name) return _("耐酸", "Resist Acid");
                if (desc) return _("一定時間、酸への耐性を得る。装備による耐性に累積する。",
-                       "Gives resistance to acid. This resistance can be added to which from equipment for more powerful resistance.");
+                       "Gives resistance to acid. This resistance can be added to that from equipment for more powerful resistance.");
 
                {
                        int base = 20;
@@ -177,7 +182,7 @@ concptr do_craft_spell(SPELL_IDX spell, BIT_FLAGS mode)
        case 10:
                if (name) return _("耐毒", "Resist Poison");
                if (desc) return _("一定時間、毒への耐性を得る。装備による耐性に累積する。",
-                       "Gives resistance to poison. This resistance can be added to which from equipment for more powerful resistance.");
+                       "Gives resistance to poison. This resistance can be added to that from equipment for more powerful resistance.");
 
                {
                        int base = 20;
@@ -193,7 +198,7 @@ concptr do_craft_spell(SPELL_IDX spell, BIT_FLAGS mode)
 
        case 11:
                if (name) return _("狂戦士化", "Berserk");
-               if (desc) return _("狂戦士化し、恐怖を除去する。", "Gives bonus to hit and HP, immunity to fear for a while. But decreases AC.");
+               if (desc) return _("狂戦士化し、恐怖を除去する。", "Gives bonus to hit and HP, immunity to fear for a while. But decreases AC.");
 
                {
                        int base = 25;
@@ -239,7 +244,7 @@ concptr do_craft_spell(SPELL_IDX spell, BIT_FLAGS mode)
 
        case 14:
                if (name) return _("癒し", "Cure");
-               if (desc) return _("毒、朦朧状態、負傷を全快させ、幻覚を直す。", "Heals poison, stun, cut and hallucination completely.");
+               if (desc) return _("毒、朦朧状態、負傷を全快させ、幻覚を直す。", "Completely heals poisons, cuts, hallucination and being stunned.");
 
                {
                        if (cast)
@@ -252,7 +257,7 @@ concptr do_craft_spell(SPELL_IDX spell, BIT_FLAGS mode)
        case 15:
                if (name) return _("魔法剣", "Mana Branding");
                if (desc) return _("一定時間、武器に冷気、炎、電撃、酸、毒のいずれかの属性をつける。武器を持たないと使えない。",
-                       "Makes current weapon some elemental branded. You must wield weapons.");
+                       "Causes current weapon to temporarily do additional damage from cold, fire, lightning, acid or poison. You must be wielding one or more weapons.");
 
                {
                        int base = plev / 2;
@@ -285,7 +290,7 @@ concptr do_craft_spell(SPELL_IDX spell, BIT_FLAGS mode)
 
        case 17:
                if (name) return _("肌石化", "Stone Skin");
-               if (desc) return _("一定時間、ACを上昇させる。", "Gives bonus to AC for a while.");
+               if (desc) return _("一定時間、ACを上昇させる。", "Gives bonus to AC for a while.");
 
                {
                        int base = 30;
@@ -303,7 +308,7 @@ concptr do_craft_spell(SPELL_IDX spell, BIT_FLAGS mode)
        case 18:
                if (name) return _("全耐性", "Resistance");
                if (desc) return _("一定時間、酸、電撃、炎、冷気、毒に対する耐性を得る。装備による耐性に累積する。",
-                       "Gives resistance to fire, cold, electricity, acid and poison for a while. These resistances can be added to which from equipment for more powerful resistances.");
+                       "Gives resistance to fire, cold, electricity, acid and poison for a while. These resistances can be added to those from equipment for more powerful resistances.");
 
                {
                        int base = 20;
@@ -475,26 +480,7 @@ concptr do_craft_spell(SPELL_IDX spell, BIT_FLAGS mode)
                if (name) return _("人間トランプ", "Living Trump");
                if (desc) return _("ランダムにテレポートする突然変異か、自分の意思でテレポートする突然変異が身につく。",
                        "Gives mutation which makes you teleport randomly or makes you able to teleport at will.");
-
-               {
-                       if (cast)
-                       {
-                               int mutation;
-
-                               if (one_in_(7))
-                                       /* Teleport control */
-                                       mutation = 12;
-                               else
-                                       /* Random teleportation (uncontrolled) */
-                                       mutation = 77;
-
-                               /* Gain the mutation */
-                               if (gain_random_mutation(mutation))
-                               {
-                                       msg_print(_("あなたは生きているカードに変わった。", "You have turned into a Living Trump."));
-                               }
-                       }
-               }
+               if (cast) become_living_trump(p_ptr);
                break;
 
        case 31: