#include "cmd-pet.h"
#include "monsterrace-hook.h"
#include "monster-status.h"
+#include "projection.h"
+#include "monster.h"
+#include "spells-summon.h"
+#include "quest.h"
#define HORDE_NOGOOD 0x01 /*!< (未実装フラグ)HORDE生成でGOODなモンスターの生成を禁止する? */
#define HORDE_NOEVIL 0x02 /*!< (未実装フラグ)HORDE生成でEVILなモンスターの生成を禁止する? */
/* Monster is gone */
cave[y][x].m_idx = 0;
-
- /* Delete objects */
for (this_o_idx = m_ptr->hold_o_idx; this_o_idx; this_o_idx = next_o_idx)
{
object_type *o_ptr;
static IDX initial_r_appearance(MONRACE_IDX r_idx)
{
int attempts = 1000;
-
IDX ap_r_idx;
DEPTH min = MIN(base_level-5, 50);
+ if (p_ptr->pseikaku == SEIKAKU_CHARGEMAN)
+ {
+ if (base_level == 0 || one_in_(5)) return MON_ALIEN_JURAL;
+ }
+
if (!(r_info[r_idx].flags7 & RF7_TANUKI))
return r_idx;
#define MON_SCAT_MAXD 10 /*!< mon_scatter()関数によるモンスター配置で許される中心からの最大距離 */
/*!
- * @brief モンスター1体を目標地点に可能ながり近い位置に生成する / improved version of scatter() for place monster
+ * @brief モンスター1体を目標地点に可能な限り近い位置に生成する / improved version of scatter() for place monster
* @param r_idx 生成モンスター種族
* @param yp 結果生成位置y座標
* @param xp 結果生成位置x座標
*/
static bool mon_scatter(MONRACE_IDX r_idx, POSITION *yp, POSITION *xp, POSITION y, POSITION x, POSITION max_dist)
{
- int place_x[MON_SCAT_MAXD];
- int place_y[MON_SCAT_MAXD];
+ POSITION place_x[MON_SCAT_MAXD];
+ POSITION place_y[MON_SCAT_MAXD];
int num[MON_SCAT_MAXD];
int i;
- int nx, ny;
+ POSITION nx, ny;
if (max_dist >= MON_SCAT_MAXD)
return FALSE;
/* Require empty grids */
if (!cave_empty_bold2(ny, nx)) continue;
-
- /* Prepare allocation table */
get_mon_num_prep(place_monster_can_escort, get_monster_hook2(ny, nx));
/* Pick a random race */
bool place_monster(POSITION y, POSITION x, BIT_FLAGS mode)
{
MONRACE_IDX r_idx;
-
- /* Prepare allocation table */
get_mon_num_prep(get_monster_hook(), get_monster_hook2(y, x));
/* Pick a monster */
int attempts = 1000;
POSITION cy = y;
POSITION cx = x;
-
- /* Prepare allocation table */
get_mon_num_prep(get_monster_hook(), get_monster_hook2(y, x));
while (--attempts)
summon_kin_type = symbol;
summon_unique_okay = (mode & PM_ALLOW_UNIQUE) ? TRUE : FALSE;
-
- /* Prepare allocation table */
get_mon_num_prep(summon_specific_okay, get_monster_hook2(y, x));
/* Pick a monster, using the level calculation */