OSDN Git Service

[Refactor] #37353 型の置換。 / Type replacement.
[hengband/hengband.git] / src / shoot.c
index fa365fa..a1866a4 100644 (file)
@@ -1,18 +1,19 @@
-#include "angband.h"
+#include "angband.h"
 
 /*!
-* @brief \83v\83\8c\83C\83\84\81[\82©\82ç\83\82\83\93\83X\83^\81[\82Ö\82Ì\8eË\8c\82\96½\92\86\94»\92è /
+* @brief プレイヤーからモンスターへの射撃命中判定 /
 * Determine if the player "hits" a monster (normal combat).
-* @param chance \8aî\96{\96½\92\86\92l
-* @param m_ptr \83\82\83\93\83X\83^\81[\82Ì\8d\\91¢\91Ì\8eQ\8fÆ\83|\83C\83\93\83^
-* @param vis \96Ú\95W\82ð\8e\8b\8aE\82É\95ß\82ç\82¦\82Ä\82¢\82é\82È\82ç\82ÎTRUE\82ð\8ew\92è
-* @param o_name \83\81\83b\83Z\81[\83W\95\\8e¦\8e\9e\82Ì\83\82\83\93\83X\83^\81[\96¼
-* @return \96½\92\86\82Æ\94»\92è\82³\82ê\82½\8fê\8d\87TRUE\82ð\95Ô\82·
+* @param chance 基本命中値
+* @param m_ptr モンスターの構造体参照ポインタ
+* @param vis 目標を視界に捕らえているならばTRUEを指定
+* @param o_name メッセージ表示時のモンスター名
+* @return 命中と判定された場合TRUEを返す
 * @note Always miss 5%, always hit 5%, otherwise random.
 */
 bool test_hit_fire(int chance, monster_type *m_ptr, int vis, char* o_name)
 {
-       int k, ac;
+       int k;
+       ARMOUR_CLASS ac;
        monster_race *r_ptr = &r_info[m_ptr->r_idx];
 
        /* Percentile dice */
@@ -52,7 +53,7 @@ bool test_hit_fire(int chance, monster_type *m_ptr, int vis, char* o_name)
 
                        /* Extract monster name */
                        monster_desc(m_name, m_ptr, 0);
-                       msg_format(_("%s\82Í%s\82ð\8ea\82è\8eÌ\82Ä\82½\81I", "%s cuts down %s!"), m_name, o_name);
+                       msg_format(_("%sは%sを斬り捨てた!", "%s cuts down %s!"), m_name, o_name);
                }
                return (FALSE);
        }
@@ -65,15 +66,15 @@ bool test_hit_fire(int chance, monster_type *m_ptr, int vis, char* o_name)
 
 
 /*!
-* @brief \83v\83\8c\83C\83\84\81[\82©\82ç\83\82\83\93\83X\83^\81[\82Ö\82Ì\8eË\8c\82\83N\83\8a\83e\83B\83J\83\8b\94»\92è /
+* @brief プレイヤーからモンスターへの射撃クリティカル判定 /
 * Critical hits (from objects thrown by player) Factor in item weight, total plusses, and player level.
-* @param weight \96î\92e\82Ì\8fd\97Ê
-* @param plus_ammo \96î\92e\82Ì\96½\92\86\8fC\90³
-* @param plus_bow \8b|\82Ì\96½\92\86\8fC\90³
-* @param dam \8c»\8dÝ\8eZ\8fo\92\86\82Ì\83_\83\81\81[\83W\92l
-* @return \83N\83\8a\83e\83B\83J\83\8b\8fC\90³\82ª\93ü\82Á\82½\83_\83\81\81[\83W\92l
+* @param weight 矢弾の重量
+* @param plus_ammo 矢弾の命中修正
+* @param plus_bow 弓の命中修正
+* @param dam 現在算出中のダメージ値
+* @return クリティカル修正が入ったダメージ値
 */
-HIT_POINT critical_shot(int weight, int plus_ammo, int plus_bow, HIT_POINT dam)
+HIT_POINT critical_shot(WEIGHT weight, int plus_ammo, int plus_bow, HIT_POINT dam)
 {
        int i, k;
        object_type *j_ptr = &inventory[INVEN_BOW];
@@ -101,17 +102,17 @@ HIT_POINT critical_shot(int weight, int plus_ammo, int plus_bow, HIT_POINT dam)
 
                if (k < 900)
                {
-                       msg_print(_("\8eè\82²\82½\82¦\82ª\82 \82Á\82½\81I", "It was a good hit!"));
+                       msg_print(_("手ごたえがあった!", "It was a good hit!"));
                        dam += (dam / 2);
                }
                else if (k < 1350)
                {
-                       msg_print(_("\82©\82È\82è\82Ì\8eè\82²\82½\82¦\82ª\82 \82Á\82½\81I", "It was a great hit!"));
+                       msg_print(_("かなりの手ごたえがあった!", "It was a great hit!"));
                        dam *= 2;
                }
                else
                {
-                       msg_print(_("\89ï\90S\82Ì\88ê\8c\82\82¾\81I", "It was a superb hit!"));
+                       msg_print(_("会心の一撃だ!", "It was a superb hit!"));
                        dam *= 3;
                }
        }