OSDN Git Service

[Refactor] #37353 コメント整理 / Refactor comments.
[hengband/hengband.git] / src / spells-summon.c
index b911fa2..53cb422 100644 (file)
@@ -1,15 +1,15 @@
-#include "angband.h"\r
+#include "angband.h"\r
 \r
 /*!\r
-* @brief \83g\83\89\83\93\83v\96\82\96@\93Æ\8e©\82Ì\8f¢\8a«\8f\88\97\9d\82ð\8ds\82¤ / Handle summoning and failure of trump spells\r
-* @param num summon_specific()\8aÖ\90\94\82ð\8cÄ\82Ñ\8fo\82·\89ñ\90\94\r
-* @param pet \83y\83b\83g\89»\82Æ\82µ\82Ä\8f¢\8a«\82³\82ê\82é\82©\94Û\82©\r
-* @param y \8f¢\8a«\88Ê\92u\82Ìy\8dÀ\95W\r
-* @param x \8f¢\8a«\88Ê\92u\82Ìx\8dÀ\95W\r
-* @param lev \8f¢\8a«\83\8c\83x\83\8b\r
-* @param type \8f¢\8a«\8fð\8c\8fID\r
-* @param mode \83\82\83\93\83X\83^\81[\90\90¬\8fð\8c\8f\83t\83\89\83O\r
-* @return \83\82\83\93\83X\83^\81[\82ª\81i\93G\91Î\82à\8aÜ\82ß\82Ä\81j\8f¢\8aÒ\82³\82ê\82½\82È\82ç\82ÎTRUE\82ð\95Ô\82·\81B\r
+* @brief トランプ魔法独自の召喚処理を行う / Handle summoning and failure of trump spells\r
+* @param num summon_specific()関数を呼び出す回数\r
+* @param pet ペット化として召喚されるか否か\r
+* @param y 召喚位置のy座標\r
+* @param x 召喚位置のx座標\r
+* @param lev 召喚レベル\r
+* @param type 召喚条件ID\r
+* @param mode モンスター生成条件フラグ\r
+* @return モンスターが(敵対も含めて)召還されたならばTRUEを返す。\r
 */\r
 bool trump_summoning(int num, bool pet, POSITION y, POSITION x, DEPTH lev, int type, BIT_FLAGS mode)\r
 {\r
@@ -55,18 +55,43 @@ bool trump_summoning(int num, bool pet, POSITION y, POSITION x, DEPTH lev, int t
 \r
        if (!success)\r
        {\r
-               msg_print(_("\92N\82à\82 \82È\82½\82Ì\83J\81[\83h\82Ì\8cÄ\82Ñ\90º\82É\93\9a\82¦\82È\82¢\81B", "Nobody answers to your Trump call."));\r
+               msg_print(_("誰もあなたのカードの呼び声に答えない。", "Nobody answers to your Trump call."));\r
        }\r
 \r
        return success;\r
 }\r
 \r
 \r
+bool cast_summon_demon(int power)\r
+{\r
+       u32b flg = 0L;\r
+       bool pet = !one_in_(3);\r
+\r
+       if (pet) flg |= PM_FORCE_PET;\r
+       else flg |= PM_NO_PET;\r
+       if (!(pet && (p_ptr->lev < 50))) flg |= PM_ALLOW_GROUP;\r
+\r
+       if (summon_specific((pet ? -1 : 0), p_ptr->y, p_ptr->x, power, SUMMON_DEMON, flg))\r
+       {\r
+               msg_print(_("硫黄の悪臭が充満した。", "The area fills with a stench of sulphur and brimstone."));\r
+               if (pet)\r
+               {\r
+                       msg_print(_("「ご用でございますか、ご主人様」", "'What is thy bidding... Master?'"));\r
+               }\r
+               else\r
+               {\r
+                       msg_print(_("「卑しき者よ、我は汝の下僕にあらず! お前の魂を頂くぞ!」",\r
+                               "'NON SERVIAM! Wretch! I shall feast on thy mortal soul!'"));\r
+               }\r
+       }\r
+       return TRUE;\r
+}\r
+\r
 \r
 /*!\r
-* @brief \88«\96\82\97Ì\88æ\82Ì\83O\83\8c\81[\83^\81[\83f\81[\83\82\83\93\8f¢\8a«\82É\97\98\97p\89Â\94\\82È\8e\80\91Ì\82©\82Ç\82¤\82©\82ð\95Ô\82·\81B / An "item_tester_hook" for offer\r
-* @param o_ptr \83I\83u\83W\83F\83N\83g\8d\\91¢\91Ì\82Ì\8eQ\8fÆ\83|\83C\83\93\83^\r
-* @return \90¶æÑ\82É\8eg\97p\89Â\94\\82È\8e\80\91Ì\82È\82ç\82ÎTRUE\82ð\95Ô\82·\81B\r
+* @brief 悪魔領域のグレーターデーモン召喚に利用可能な死体かどうかを返す。 / An "item_tester_hook" for offer\r
+* @param o_ptr オブジェクト構造体の参照ポインタ\r
+* @return 生贄に使用可能な死体ならばTRUEを返す。\r
 */\r
 bool item_tester_offer(object_type *o_ptr)\r
 {\r
@@ -81,8 +106,8 @@ bool item_tester_offer(object_type *o_ptr)
 }\r
 \r
 /*!\r
-* @brief \88«\96\82\97Ì\88æ\82Ì\83O\83\8c\81[\83^\81[\83f\81[\83\82\83\93\8f¢\8a«\82ð\8f\88\97\9d\82·\82é / Daemon spell Summon Greater Demon\r
-* @return \8f\88\97\9d\82ð\8eÀ\8ds\82µ\82½\82È\82ç\82ÎTRUE\82ð\95Ô\82·\81B\r
+* @brief 悪魔領域のグレーターデーモン召喚を処理する / Daemon spell Summon Greater Demon\r
+* @return 処理を実行したならばTRUEを返す。\r
 */\r
 bool cast_summon_greater_demon(void)\r
 {\r
@@ -93,8 +118,8 @@ bool cast_summon_greater_demon(void)
        object_type *o_ptr;\r
 \r
        item_tester_hook = item_tester_offer;\r
-       q = _("\82Ç\82Ì\8e\80\91Ì\82ð\95ù\82°\82Ü\82·\82©? ", "Sacrifice which corpse? ");\r
-       s = _("\95ù\82°\82ç\82ê\82é\8e\80\91Ì\82ð\8e\9d\82Á\82Ä\82¢\82È\82¢\81B", "You have nothing to scrifice.");\r
+       q = _("どの死体を捧げますか? ", "Sacrifice which corpse? ");\r
+       s = _("捧げられる死体を持っていない。", "You have nothing to scrifice.");\r
        if (!get_item(&item, q, s, (USE_INVEN | USE_FLOOR))) return FALSE;\r
 \r
        /* Get the item (in the pack) */\r
@@ -113,8 +138,8 @@ bool cast_summon_greater_demon(void)
 \r
        if (summon_specific(-1, p_ptr->y, p_ptr->x, summon_lev, SUMMON_HI_DEMON, (PM_ALLOW_GROUP | PM_FORCE_PET)))\r
        {\r
-               msg_print(_("\97°\89©\82Ì\88«\8fL\82ª\8f[\96\9e\82µ\82½\81B", "The area fills with a stench of sulphur and brimstone."));\r
-               msg_print(_("\81u\82²\97p\82Å\82²\82´\82¢\82Ü\82·\82©\81A\82²\8eå\90l\97l\81v", "'What is thy bidding... Master?'"));\r
+               msg_print(_("硫黄の悪臭が充満した。", "The area fills with a stench of sulphur and brimstone."));\r
+               msg_print(_("「ご用でございますか、ご主人様」", "'What is thy bidding... Master?'"));\r
 \r
                /* Decrease the item (from the pack) */\r
                if (item >= 0)\r
@@ -134,7 +159,7 @@ bool cast_summon_greater_demon(void)
        }\r
        else\r
        {\r
-               msg_print(_("\88«\96\82\82Í\8c»\82ê\82È\82©\82Á\82½\81B", "No Greater Demon arrive."));\r
+               msg_print(_("悪魔は現れなかった。", "No Greater Demon arrive."));\r
        }\r
 \r
        return TRUE;\r