From 27eb9b788665bd1bfdb3f2efb5a5b879a401a72f Mon Sep 17 00:00:00 2001 From: Deskull Date: Sun, 22 Apr 2018 01:00:47 +0900 Subject: [PATCH] =?utf8?q?[implement]=20#37674=20(2.2.1.5)=20REFLECT?= =?utf8?q?=E5=8A=B9=E6=9E=9C=E9=9F=B3=E3=82=92=E6=96=B0=E8=A6=8F=E5=AE=9A?= =?utf8?q?=E7=BE=A9=E3=80=82HIT=5FWALL=E5=8A=B9=E6=9E=9C=E9=9F=B3=E3=82=92?= =?utf8?q?=E8=B5=B0=E3=82=8B=E6=99=82=E3=81=AB=E3=82=82=E6=8C=87=E5=AE=9A?= =?utf8?q?=E3=80=82HIT=5FWALL=E3=81=AB=E9=AD=94=E7=8E=8B=E9=AD=82=E3=81=AE?= =?utf8?q?=E5=8A=B9=E6=9E=9C=E9=9F=B3=E6=8C=87=E5=AE=9A=E3=82=92=E8=BF=BD?= =?utf8?q?=E5=8A=A0=E3=80=82=20/=20Define=20REFLECT=20sound.=20Set=20HIT?= =?utf8?q?=5FWALL=20sound=20on=20running.=20Set=20a=20sound=20of=20Maoudam?= =?utf8?q?ashii=20to=20HIT=5FWALL=20effect=20on=20sound.cfg.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- lib/xtra/sound/sound.cfg | 5 +++-- src/cmd1.c | 2 ++ src/defines.h | 3 ++- src/variable.c | 1 + 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/lib/xtra/sound/sound.cfg b/lib/xtra/sound/sound.cfg index f6582b065..2acde1562 100644 --- a/lib/xtra/sound/sound.cfg +++ b/lib/xtra/sound/sound.cfg @@ -26,7 +26,7 @@ quaff = zap = walk = tpother = -hitwall = +hitwall = se_maoudamashii_battle07.wav eat = eat.wav store1 = money.wav store2 = money.wav @@ -77,4 +77,5 @@ show = unused = explode = glass = - +summon = +reflect = diff --git a/src/cmd1.c b/src/cmd1.c index f93ee1774..ee3358e66 100644 --- a/src/cmd1.c +++ b/src/cmd1.c @@ -4117,6 +4117,8 @@ void run_step(int dir) /* Hack -- do not start silly run */ if (see_wall(dir, p_ptr->y, p_ptr->x)) { + sound(SOUND_HITWALL); + /* Message */ msg_print(_("その方向には走れません。", "You cannot run in that direction.")); diff --git a/src/defines.h b/src/defines.h index 1c466fb88..572924961 100644 --- a/src/defines.h +++ b/src/defines.h @@ -4537,11 +4537,12 @@ extern int PlayerUID; #define SOUND_UNUSED 63 /*!< (no sound for gaze attacks) */ #define SOUND_EXPLODE 64 /*!< Something (or somebody) explodes */ #define SOUND_GLASS 65 /*!< A glass feature was crashed */ +#define SOUND_REFLECT 66 /*!< A bolt was reflected */ /* * Mega-Hack -- maximum known sounds */ -#define SOUND_MAX 66 /*!< 効果音定義の最大数 */ +#define SOUND_MAX 67 /*!< 効果音定義の最大数 */ #define MAX_VIRTUE 18 /*!< 徳定義の最大数 */ diff --git a/src/variable.c b/src/variable.c index 6cbbd83c1..596d5085f 100644 --- a/src/variable.c +++ b/src/variable.c @@ -652,6 +652,7 @@ const cptr angband_sound_name[SOUND_MAX] = "unused", "explode", "glass", + "reflect", }; /* -- 2.11.0