From ec9b95230ef0a58307983daf9d09bcb358e5b6c6 Mon Sep 17 00:00:00 2001 From: Deskull Date: Sun, 10 Aug 2014 19:42:26 +0900 Subject: [PATCH] Fix Doxygen warnings. --- src/mspells4.c | 16 ++++++++-------- src/spells1.c | 27 +++++++++++++++++---------- 2 files changed, 25 insertions(+), 18 deletions(-) diff --git a/src/mspells4.c b/src/mspells4.c index 22eb4c000..2378bbccf 100644 --- a/src/mspells4.c +++ b/src/mspells4.c @@ -2794,7 +2794,7 @@ void spell_RF6_S_KIN(int y, int x, int m_idx, int t_idx, int TARGET_TYPE) * @param y 対象の地点のy座標 * @param x 対象の地点のx座標 * @param m_idx 呪文を唱えるモンスターID -* @param m_idx 呪文を受けるモンスターID +* @param t_idx 呪文を受けるモンスターID。プレイヤーの場合はdummyで0とする。 * @param TARGET_TYPE プレイヤーを対象とする場合MONSTER_TO_PLAYER、モンスターを対象とする場合MONSTER_TO_MONSTER * @return 召喚したモンスターの数を返す。 */ @@ -2911,7 +2911,7 @@ void spell_RF6_S_MONSTERS(int y, int x, int m_idx, int t_idx, int TARGET_TYPE) * @param y 対象の地点のy座標 * @param x 対象の地点のx座標 * @param m_idx 呪文を唱えるモンスターID -* @param m_idx 呪文を受けるモンスターID +* @param t_idx 呪文を受けるモンスターID。プレイヤーの場合はdummyで0とする。 * @param TARGET_TYPE プレイヤーを対象とする場合MONSTER_TO_PLAYER、モンスターを対象とする場合MONSTER_TO_MONSTER * @return 召喚したモンスターの数を返す。 */ @@ -2981,7 +2981,7 @@ void spell_RF6_S_SPIDER(int y, int x, int m_idx, int t_idx, int TARGET_TYPE) * @param y 対象の地点のy座標 * @param x 対象の地点のx座標 * @param m_idx 呪文を唱えるモンスターID -* @param m_idx 呪文を受けるモンスターID +* @param t_idx 呪文を受けるモンスターID。プレイヤーの場合はdummyで0とする。 * @param TARGET_TYPE プレイヤーを対象とする場合MONSTER_TO_PLAYER、モンスターを対象とする場合MONSTER_TO_MONSTER * @return 召喚したモンスターの数を返す。 */ @@ -3051,7 +3051,7 @@ void spell_RF6_S_HYDRA(int y, int x, int m_idx, int t_idx, int TARGET_TYPE) * @param y 対象の地点のy座標 * @param x 対象の地点のx座標 * @param m_idx 呪文を唱えるモンスターID -* @param m_idx 呪文を受けるモンスターID +* @param t_idx 呪文を受けるモンスターID。プレイヤーの場合はdummyで0とする。 * @param TARGET_TYPE プレイヤーを対象とする場合MONSTER_TO_PLAYER、モンスターを対象とする場合MONSTER_TO_MONSTER * @return 召喚したモンスターの数を返す。 */ @@ -3101,7 +3101,7 @@ void spell_RF6_S_ANGEL(int y, int x, int m_idx, int t_idx, int TARGET_TYPE) * @param y 対象の地点のy座標 * @param x 対象の地点のx座標 * @param m_idx 呪文を唱えるモンスターID -* @param m_idx 呪文を受けるモンスターID +* @param t_idx 呪文を受けるモンスターID。プレイヤーの場合はdummyで0とする。 * @param TARGET_TYPE プレイヤーを対象とする場合MONSTER_TO_PLAYER、モンスターを対象とする場合MONSTER_TO_MONSTER * @return 召喚したモンスターの数を返す。 */ @@ -3171,7 +3171,7 @@ void spell_RF6_S_UNDEAD(int y, int x, int m_idx, int t_idx, int TARGET_TYPE) * @param y 対象の地点のy座標 * @param x 対象の地点のx座標 * @param m_idx 呪文を唱えるモンスターID -* @param m_idx 呪文を受けるモンスターID +* @param t_idx 呪文を受けるモンスターID。プレイヤーの場合はdummyで0とする。 * @param TARGET_TYPE プレイヤーを対象とする場合MONSTER_TO_PLAYER、モンスターを対象とする場合MONSTER_TO_MONSTER * @return 召喚したモンスターの数を返す。 */ @@ -3359,7 +3359,7 @@ void spell_RF6_S_HI_DRAGON(int y, int x, int m_idx, int t_idx, int TARGET_TYPE) * @param y 対象の地点のy座標 * @param x 対象の地点のx座標 * @param m_idx 呪文を唱えるモンスターID -* @param m_idx 呪文を受けるモンスターID +* @param t_idx 呪文を受けるモンスターID。プレイヤーの場合はdummyで0とする。 * @param TARGET_TYPE プレイヤーを対象とする場合MONSTER_TO_PLAYER、モンスターを対象とする場合MONSTER_TO_MONSTER * @return 召喚したモンスターの数を返す。 */ @@ -3561,7 +3561,7 @@ int monspell_to_player(int SPELL_NUM, int y, int x, int m_idx) * @param y 対象の地点のy座標 * @param x 対象の地点のx座標 * @param m_idx 呪文を唱えるモンスターID -* @param m_idx 呪文を受けるモンスターID +* @param t_idx 呪文を受けるモンスターID。プレイヤーの場合はdummyで0とする。 * @return 攻撃呪文のダメージ、または召喚したモンスターの数を返す。その他の場合0。以降の処理を中断するなら-1を返す。 */ int monspell_to_monster(int SPELL_NUM, int y, int x, int m_idx, int t_idx) diff --git a/src/spells1.c b/src/spells1.c index 651e5463e..77e8c47c4 100644 --- a/src/spells1.c +++ b/src/spells1.c @@ -1536,28 +1536,32 @@ static bool project_o(int who, int r, int y, int x, int dam, int typ) * (polymorph and teleport being the obvious ones), a default damage, which * is modified as needed based on various properties, and finally a "damage * type" (see below). - * + * + *
  * Note that this routine can handle "no damage" attacks (like teleport) by
  * taking a "zero" damage, and can even take "parameters" to attacks (like
  * confuse) by accepting a "damage", using it to calculate the effect, and
  * then setting the damage to zero.  Note that the "damage" parameter is
  * divided by the radius, so monsters not at the "epicenter" will not take
  * as much damage (or whatever)...
- *
+ * 
  * Note that "polymorph" is dangerous, since a failure in "place_monster()"'
  * may result in a dereference of an invalid pointer.  XXX XXX XXX
- *
+ * 
+ *
+ * 
+ *
  * Various messages are produced, and damage is applied.
- *
+ * 
+ *
  * Just "casting" a substance (i.e. plasma) does not make you immune, you must
  * actually be "made" of that substance, or "breathe" big balls of it.
- *
  * We assume that "Plasma" monsters, and "Plasma" breathers, are immune
  * to plasma.
- *
  * We assume "Nether" is an evil, necromantic force, so it doesn't hurt undead,
  * and hurts evil less.  If can breath nether, then it resists it as well.
- *
+ * 
+ *
  * Damage reductions use the following formulas:
  *   Note that "dam = dam * 6 / (randint1(6) + 6);"
  *     gives avg damage of .655, ranging from .858 to .500
@@ -1569,15 +1573,18 @@ static bool project_o(int who, int r, int y, int x, int dam, int typ)
  *     gives avg damage of .327, ranging from .427 to .250
  *   Note that "dam = dam * 2 / (randint1(6) + 6);"
  *     gives something simple.
- *
+ * 
+ *
  * In this function, "result" messages are postponed until the end, where
  * the "note" string is appended to the monster name, if not NULL.  So,
  * to make a spell have "no effect" just set "note" to NULL.  You should
  * also set "notice" to FALSE, or the player will learn what the spell does.
- *
+ * 
+ *
  * We attempt to return "TRUE" if the player saw anything "useful" happen.
+ * "flg" was added.
+ * 
*/ -/* "flg" was added. */ static bool project_m(int who, int r, int y, int x, int dam, int typ, int flg, bool see_s_msg) { int tmp; -- 2.11.0