r_ptr = &r_info[r_idx];
if (!(r_ptr->flags1 & RF1_UNIQUE)) continue;
-
if (r_ptr->flags1 & RF1_QUESTOR) continue;
-
if (r_ptr->rarity > 100) continue;
-
if (r_ptr->flags7 & RF7_FRIENDLY) continue;
-
if (r_ptr->flags7 & RF7_AQUATIC) continue;
-
if (r_ptr->flags8 & RF8_WILD_ONLY) continue;
-
if (no_questor_or_bounty_uniques(r_idx)) continue;
/*
if (r_ptr->level > (q_ptr->level + (q_ptr->level / 20))) break;
}
- q_ptr->r_idx = (s16b)r_idx;
+ q_ptr->r_idx = r_idx;
}
/*!
}
- sprintf(cur, "%c%c%s", '*', p2, _("ランダム", "Random");
+ sprintf(cur, "%c%c%s", '*', p2, _("ランダム", "Random"));
/* Choose */
k = -1;
#include "floor-events.h"
#include "object-curse.h"
#include "store.h"
+#include "monster-hook.h"
static bool load = TRUE; /*!<ロード処理中の分岐フラグ*/
static int wild_regen = 20; /*!<広域マップ移動時の自然回復処理カウンタ(広域マップ1マス毎に20回処理を基本とする)*/
extern bool monster_can_enter(POSITION y, POSITION x, monster_race *r_ptr, u16b mode);
extern bool are_enemies(monster_type *m_ptr1, monster_type *m_ptr2);
extern bool monster_has_hostile_align(monster_type *m_ptr, int pa_good, int pa_evil, monster_race *r_ptr);
-extern bool monster_living(monster_race *r_ptr);
-extern bool no_questor_or_bounty_uniques(MONRACE_IDX r_idx);
extern void dice_to_string(int base_damage, int dice_num, int dice_side, int dice_mult, int dice_div, char* msg);
*/
#include "angband.h"
+#include "monster-hook.h"
#define TECHNIC_HISSATSU (REALM_HISSATSU - MIN_TECHNIC)
#include "angband.h"
#include "cmd-pet.h"
#include "player-damage.h"
+#include "monster-hook.h"
for (i = 0; dark_elf_list[i]; i++) if (r_idx == dark_elf_list[i]) return TRUE;
return FALSE;
}
+
+
+
+/*!
+ * @brief モンスターが生命体かどうかを返す
+ * Is the monster "alive"?
+ * @param r_ptr 判定するモンスターの種族情報構造体参照ポインタ
+ * @return 生命体ならばTRUEを返す
+ * @details
+ * Used to determine the message to print for a killed monster.
+ * ("dies", "destroyed")
+ */
+bool monster_living(monster_race *r_ptr)
+{
+ /* Non-living, undead, or demon */
+ if (r_ptr->flags3 & (RF3_DEMON | RF3_UNDEAD | RF3_NONLIVING))
+ return FALSE;
+ else
+ return TRUE;
+}
+
+/*!
+ * @brief モンスターが特殊能力上、賞金首から排除する必要があるかどうかを返す。
+ * Is the monster "alive"? / Is this monster declined to be questor or bounty?
+ * @param r_idx モンスターの種族ID
+ * @return 賞金首に加えられないならばTRUEを返す
+ * @details
+ * 実質バーノール=ルパート用。
+ */
+bool no_questor_or_bounty_uniques(MONRACE_IDX r_idx)
+{
+ switch (r_idx)
+ {
+ /*
+ * Decline them to be questor or bounty because they use
+ * special motion "split and combine"
+ */
+ case MON_BANORLUPART:
+ case MON_BANOR:
+ case MON_LUPART:
+ return TRUE;
+ default:
+ return FALSE;
+ }
+}
extern bool vault_aux_cthulhu(MONRACE_IDX r_idx);\r
extern bool vault_aux_dark_elf(MONRACE_IDX r_idx);\r
\r
+extern bool monster_living(monster_race *r_ptr);\r
+extern bool no_questor_or_bounty_uniques(MONRACE_IDX r_idx);\r
#include "angband.h"
#include "cmd-pet.h"
+#include "monster-hook.h"
/*!
/* Non-hostile alignment */
return FALSE;
}
-
-
-/*!
- * @brief モンスターが生命体かどうかを返す
- * Is the monster "alive"?
- * @param r_ptr 判定するモンスターの種族情報構造体参照ポインタ
- * @return 生命体ならばTRUEを返す
- * @details
- * Used to determine the message to print for a killed monster.
- * ("dies", "destroyed")
- */
-bool monster_living(monster_race *r_ptr)
-{
- /* Non-living, undead, or demon */
- if (r_ptr->flags3 & (RF3_DEMON | RF3_UNDEAD | RF3_NONLIVING))
- return FALSE;
- else
- return TRUE;
-}
-
-
-/*!
- * @brief モンスターが特殊能力上、賞金首から排除する必要があるかどうかを返す。
- * Is the monster "alive"? / Is this monster declined to be questor or bounty?
- * @param r_idx モンスターの種族ID
- * @return 賞金首に加えられないならばTRUEを返す
- * @details
- * 実質バーノール=ルパート用。
- */
-bool no_questor_or_bounty_uniques(MONRACE_IDX r_idx)
-{
- switch (r_idx)
- {
- /*
- * Decline them to be questor or bounty because they use
- * special motion "split and combine"
- */
- case MON_BANORLUPART:
- case MON_BANOR:
- case MON_LUPART:
- return TRUE;
- default:
- return FALSE;
- }
-}
#include "angband.h"
#include "cmd-spell.h"
+#include "monster-hook.h"
/*!
* @brief 剣術の各処理を行う
#include "trap.h"
#include "object-curse.h"
#include "player-damage.h"
+#include "monster-hook.h"
static int rakubadam_m; /*!< 振り落とされた際のダメージ量 */
#include "angband.h"
#include "grid.h"
#include "trap.h"
+#include "monster-hook.h"
/*!
#include "angband.h"
#include "cmd-pet.h"
#include "object-curse.h"
+#include "monster-hook.h"
#define REWARD_CHANCE 10