OSDN Git Service

[Refactor] rbm_type を enum class 化しつつ RaceBlowMethodType に改名。
[hengbandforosx/hengbandosx.git] / src / mspell / mspell-damage-calculator.cpp
index 4fff768..e2d5558 100644 (file)
@@ -420,10 +420,10 @@ void monspell_shoot_dice(monster_race *r_ptr, int *dd, int *ds)
     int n = 0; /* Number of blows */
     const int max_blows = 4;
     for (int m = 0; m < max_blows; m++) {
-        if (r_ptr->blow[m].method != RBM_NONE)
+        if (r_ptr->blow[m].method != RaceBlowMethodType::NONE)
             n++; /* Count blows */
 
-        if (r_ptr->blow[m].method == RBM_SHOOT) {
+        if (r_ptr->blow[m].method == RaceBlowMethodType::SHOOT) {
             p = m; /* Remember position */
             break;
         }