OSDN Git Service

[Refactor] #40416 Renamed describe_attack_method() to describe_melee_method()
authorHourier <hourier@users.sourceforge.jp>
Sat, 30 May 2020 12:17:28 +0000 (21:17 +0900)
committerHourier <hourier@users.sourceforge.jp>
Sat, 30 May 2020 12:17:28 +0000 (21:17 +0900)
src/combat/melee-switcher.c
src/combat/melee-switcher.h
src/combat/monster-attack-monster.c

index 88e4314..f392c79 100644 (file)
@@ -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: {
index 070875b..ba6fea0 100644 (file)
@@ -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);
index c9c2bf3..08c43dd 100644 (file)
@@ -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);