OSDN Git Service

spell_in_between()を削除
authorSlimebreath6078 <slimebreath6078@yahoo.co.jp>
Sat, 5 Aug 2023 18:58:28 +0000 (03:58 +0900)
committerSlimebreath6078 <slimebreath6078@yahoo.co.jp>
Sun, 6 Aug 2023 07:53:14 +0000 (16:53 +0900)
src/mspell/mspell-selector.cpp

index feb9f32..3c7c4ef 100644 (file)
 #include "world/world.h"
 
 /*!
- * @brief 指定したID値が指定した範囲内のIDかどうかを返す
- *
- * enum値に対して範囲で判定するのはあまり好ましくないが、歴史的経緯により仕方がない
- *
- * @param spell 判定対象のID
- * @param start 範囲の開始ID
- * @param end 範囲の終了ID(このIDも含む)
- * @return IDが start <= spell <= end なら true、そうでなければ false
- */
-static bool spell_in_between(MonsterAbilityType spell, MonsterAbilityType start, MonsterAbilityType end)
-{
-    auto spell_int = enum2i(spell);
-    return enum2i(start) <= spell_int && spell_int <= enum2i(end);
-}
-
-/*!
  * @brief ID値が攻撃魔法のIDかどうかを返す /
  * Return TRUE if a spell is good for hurting the player (directly).
  * @param spell 判定対象のID