From a9282d87999ebb4c4429409a73fe8328115dbabc Mon Sep 17 00:00:00 2001 From: Hourier Date: Sat, 30 May 2020 21:17:28 +0900 Subject: [PATCH] [Refactor] #40416 Renamed describe_attack_method() to describe_melee_method() --- src/combat/melee-switcher.c | 2 +- src/combat/melee-switcher.h | 2 +- src/combat/monster-attack-monster.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/combat/melee-switcher.c b/src/combat/melee-switcher.c index 88e4314c3..f392c79de 100644 --- a/src/combat/melee-switcher.c +++ b/src/combat/melee-switcher.c @@ -10,7 +10,7 @@ #include "player/player-move.h" #include "spell/spells-floor.h" -void describe_attack_method(player_type *subject_ptr, mam_type *mam_ptr) +void describe_melee_method(player_type *subject_ptr, mam_type *mam_ptr) { switch (mam_ptr->method) { case RBM_HIT: { diff --git a/src/combat/melee-switcher.h b/src/combat/melee-switcher.h index 070875bf3..ba6fea0fc 100644 --- a/src/combat/melee-switcher.h +++ b/src/combat/melee-switcher.h @@ -10,6 +10,6 @@ typedef enum be_type { BLOW_EFFECT_TYPE_HEAL = 3, } be_type; -void describe_attack_method(player_type *subject_ptr, mam_type *mam_ptr); +void describe_melee_method(player_type *subject_ptr, mam_type *mam_ptr); void decide_monster_attack_effect(player_type *subject_ptr, mam_type *mam_ptr); void describe_monster_missed_monster(player_type *subject_ptr, mam_type *mam_ptr); diff --git a/src/combat/monster-attack-monster.c b/src/combat/monster-attack-monster.c index c9c2bf355..08c43ddf8 100644 --- a/src/combat/monster-attack-monster.c +++ b/src/combat/monster-attack-monster.c @@ -206,7 +206,7 @@ static void process_melee(player_type *subject_ptr, mam_type *mam_ptr) (void)set_monster_csleep(subject_ptr, mam_ptr->t_idx, 0); redraw_health_bar(subject_ptr, mam_ptr); - describe_attack_method(subject_ptr, mam_ptr); + describe_melee_method(subject_ptr, mam_ptr); describe_silly_melee(mam_ptr); mam_ptr->obvious = TRUE; mam_ptr->damage = damroll(mam_ptr->d_dice, mam_ptr->d_side); -- 2.11.0