extern void update_smart_learn(MONSTER_IDX m_idx, int what);
extern void choose_new_monster(MONSTER_IDX m_idx, bool born, MONRACE_IDX r_idx);
extern byte get_mspeed(monster_race *r_ptr);
-extern bool player_place(POSITION y, POSITION x);
extern void monster_drop_carried_objects(monster_type *m_ptr);
/* object1.c */
#include "trap.h"
#include "monster.h"
#include "quest.h"
+#include "player-status.h"
int dun_tun_rnd;
int dun_tun_chg;
*/
bool multiply_monster(MONSTER_IDX m_idx, bool clone, BIT_FLAGS mode)
{
- monster_type *m_ptr = &m_list[m_idx];
-
+ monster_type *m_ptr = &m_list[m_idx];
POSITION y, x;
if (!mon_scatter(m_ptr->r_idx, &y, &x, m_ptr->fy, m_ptr->fx, 1))
/*!
- * @brief プレイヤーを指定座標に配置する / Place the player in the dungeon XXX XXX
- * @param x 配置先X座標
- * @param y 配置先Y座標
- * @return 配置に成功したらTRUE
- */
-bool player_place(POSITION y, POSITION x)
-{
- /* Paranoia XXX XXX */
- if (grid_array[y][x].m_idx != 0) return FALSE;
-
- /* Save player location */
- p_ptr->y = y;
- p_ptr->x = x;
-
- /* Success */
- return TRUE;
-}
-
-
-/*!
* @brief モンスターが盗みや拾いで確保していたアイテムを全てドロップさせる / Drop all items carried by a monster
* @param m_ptr モンスター参照ポインタ
* @return なし
{
creature_ptr->energy_use = 0;
}
+
+/*!
+ * @brief プレイヤーを指定座標に配置する / Place the player in the dungeon XXX XXX
+ * @param x 配置先X座標
+ * @param y 配置先Y座標
+ * @return 配置に成功したらTRUE
+ */
+bool player_place(POSITION y, POSITION x)
+{
+ /* Paranoia XXX XXX */
+ if (grid_array[y][x].m_idx != 0) return FALSE;
+
+ /* Save player location */
+ p_ptr->y = y;
+ p_ptr->x = x;
+
+ /* Success */
+ return TRUE;
+}
extern bool player_has_no_spellbooks(void);
extern void take_turn(player_type *creature_ptr, PERCENTAGE need_cost);
-extern void free_turn(player_type *creature_ptr);
\ No newline at end of file
+extern void free_turn(player_type *creature_ptr);
+
+extern bool player_place(POSITION y, POSITION x);