From 5d2ad5f1c9f98ae003bd5a224958a8969bffb9cb Mon Sep 17 00:00:00 2001 From: Hourier Date: Sat, 27 Jun 2020 12:07:43 +0900 Subject: [PATCH] [Refactor] #37353 Adjusted inclusion relationship in combat/; notes: unified English and Japanese in martial-arts-table.c incidentally --- src/combat/attack-power-table.c | 3 +- src/combat/attack-power-table.h | 2 ++ src/combat/hallucination-attacks-table.c | 3 +- src/combat/hallucination-attacks-table.h | 2 ++ src/combat/martial-arts-table.c | 58 ++++++++++---------------------- src/combat/martial-arts-table.h | 2 ++ 6 files changed, 26 insertions(+), 44 deletions(-) diff --git a/src/combat/attack-power-table.c b/src/combat/attack-power-table.c index 5a4983ec8..06642f570 100644 --- a/src/combat/attack-power-table.c +++ b/src/combat/attack-power-table.c @@ -1,5 +1,4 @@ -#include "system/angband.h" -#include "combat/attack-power-table.h" +#include "combat/attack-power-table.h" /*! * @brief 修行僧のターンダメージ算出テーブル diff --git a/src/combat/attack-power-table.h b/src/combat/attack-power-table.h index 8a918756f..864e98fc9 100644 --- a/src/combat/attack-power-table.h +++ b/src/combat/attack-power-table.h @@ -1,5 +1,7 @@ #pragma once +#include "system/angband.h" + #define MAX_ADJ_STR 38 #define MAX_ADJ_DEX 39 diff --git a/src/combat/hallucination-attacks-table.c b/src/combat/hallucination-attacks-table.c index c517d8d55..fc44cd76f 100644 --- a/src/combat/hallucination-attacks-table.c +++ b/src/combat/hallucination-attacks-table.c @@ -1,5 +1,4 @@ -#include "system/angband.h" -#include "combat/hallucination-attacks-table.h" +#include "combat/hallucination-attacks-table.h" /*! * @brief 幻覚時の打撃記述テーブル / Weird melee attack types when hallucinating diff --git a/src/combat/hallucination-attacks-table.h b/src/combat/hallucination-attacks-table.h index dac5891e9..622181df7 100644 --- a/src/combat/hallucination-attacks-table.h +++ b/src/combat/hallucination-attacks-table.h @@ -1,5 +1,7 @@ #pragma once +#include "system/angband.h" + // 幻覚時のジョークメッセージ最大数 / Hallucination stuff. #define MAX_SILLY_ATTACK _(41, 29) diff --git a/src/combat/martial-arts-table.c b/src/combat/martial-arts-table.c index 57454c84f..e487081d9 100644 --- a/src/combat/martial-arts-table.c +++ b/src/combat/martial-arts-table.c @@ -1,45 +1,23 @@ -#include "system/angband.h" -#include "combat/martial-arts-table.h" +#include "combat/martial-arts-table.h" /*! * @brief マーシャルアーツ打撃テーブル */ const martial_arts ma_blows[MAX_MA] = { -#ifdef JP - { "%sを殴った。", 1, 0, 1, 5, 0 }, - { "%sを蹴った。", 2, 0, 1, 7, 0 }, - { "%sに正拳突きをくらわした。", 3, 0, 1, 9, 0 }, - { "%sに膝蹴りをくらわした。", 5, 5, 2, 4, MA_KNEE }, - { "%sに肘打ちをくらわした。", 7, 5, 1, 12, 0 }, - { "%sに体当りした。", 9, 10, 2, 6, 0 }, - { "%sを蹴った。", 11, 10, 3, 6, MA_SLOW }, - { "%sにアッパーをくらわした。", 13, 12, 5, 5, 6 }, - { "%sに二段蹴りをくらわした。", 16, 15, 5, 6, 8 }, - { "%sに猫爪撃をくらわした。", 20, 20, 5, 8, 0 }, - { "%sに跳空脚をくらわした。", 24, 25, 6, 8, 10 }, - { "%sに鷲爪襲をくらわした。", 28, 25, 7, 9, 0 }, - { "%sに回し蹴りをくらわした。", 32, 30, 8, 10, 10 }, - { "%sに鉄拳撃をくらわした。", 35, 35, 8, 11, 10 }, - { "%sに飛空脚をくらわした。", 39, 35, 8, 12, 12 }, - { "%sに昇龍拳をくらわした。", 43, 35, 9, 12, 16 }, - { "%sに石破天驚拳をくらわした。", 48, 40, 10, 13, 18 }, -#else - { "You punch %s.", 1, 0, 1, 4, 0 }, - { "You kick %s.", 2, 0, 1, 6, 0 }, - { "You strike %s.", 3, 0, 1, 7, 0 }, - { "You hit %s with your knee.", 5, 5, 2, 3, MA_KNEE }, - { "You hit %s with your elbow.", 7, 5, 1, 8, 0 }, - { "You butt %s.", 9, 10, 2, 5, 0 }, - { "You kick %s.", 11, 10, 3, 4, MA_SLOW }, - { "You uppercut %s.", 13, 12, 4, 4, 6 }, - { "You double-kick %s.", 16, 15, 5, 4, 8 }, - { "You hit %s with a Cat's Claw.", 20, 20, 5, 5, 0 }, - { "You hit %s with a jump kick.", 25, 25, 5, 6, 10 }, - { "You hit %s with an Eagle's Claw.", 29, 25, 6, 6, 0 }, - { "You hit %s with a circle kick.", 33, 30, 6, 8, 10 }, - { "You hit %s with an Iron Fist.", 37, 35, 8, 8, 10 }, - { "You hit %s with a flying kick.", 41, 35, 8, 10, 12 }, - { "You hit %s with a Dragon Fist.", 45, 35, 10, 10, 16 }, - { "You hit %s with a Crushing Blow.", 48, 35, 10, 12, 18 }, -#endif - + { _("%sを殴った。", "You punch %s."), 1, 0, 1, _(5, 4), 0 }, + { _("%sを蹴った。", "You kick %s."), 2, 0, 1, _(7, 6), 0 }, + { _("%sに正拳突きをくらわした。", "You strike %s."), 3, 0, 1, _(9, 7), 0 }, + { _("%sに膝蹴りをくらわした。", "You hit %s with your knee."), 5, 5, 2, _(4, 3), MA_KNEE }, + { _("%sに肘打ちをくらわした。", "You hit %s with your elbow."), 7, 5, 1, _(12, 8), 0 }, + { _("%sに体当りした。", "You butt %s."), 9, 10, 2, _(6, 5), 0 }, + { _("%sを蹴った。", "You kick %s."), 11, 10, 3, _(6, 4), MA_SLOW }, + { _("%sにアッパーをくらわした。", "You uppercut %s."), 13, 12, _(5, 4), _(5, 4), 6 }, + { _("%sに二段蹴りをくらわした。", "You double-kick %s."), 16, 15, 5, _(6, 4), 8 }, + { _("%sに猫爪撃をくらわした。", "You hit %s with a Cat's Claw."), 20, 20, 5, _(8, 5), 0 }, + { _("%sに跳空脚をくらわした。", "You hit %s with a jump kick."), _(24, 25), 25, _(6, 5), _(8, 6), 10 }, + { _("%sに鷲爪襲をくらわした。", "You hit %s with an Eagle's Claw."), _(28, 29), 25, _(7, 6), _(9, 6), 0 }, + { _("%sに回し蹴りをくらわした。", "You hit %s with a circle kick."), _(32, 33), 30, _(8, 6), _(10, 8), 10 }, + { _("%sに鉄拳撃をくらわした。", "You hit %s with an Iron Fist."), _(35, 37), 35, 8, _(11, 8), 10 }, + { _("%sに飛空脚をくらわした。", "You hit %s with a flying kick."), _(39, 41), 35, 8, _(12, 10), 12 }, + { _("%sに昇龍拳をくらわした。", "You hit %s with a Dragon Fist."), _(43, 45), 35, _(9, 10), _(12, 10), 16 }, + { _("%sに石破天驚拳をくらわした。", "You hit %s with a Crushing Blow."), 48, _(40, 35), 10, _(13, 12), 18 }, }; diff --git a/src/combat/martial-arts-table.h b/src/combat/martial-arts-table.h index 88874e905..793546b45 100644 --- a/src/combat/martial-arts-table.h +++ b/src/combat/martial-arts-table.h @@ -1,5 +1,7 @@ #pragma once +#include "system/angband.h" + #define MAX_MA 17 /*!< 修行僧マーシャルアーツの技数 / Monk martial arts... */ #define MA_KNEE 1 /*!< 金的効果ID */ #define MA_SLOW 2 /*!< 膝蹴り効果ID */ -- 2.11.0