*/
#include "angband.h"
-#include "floor.h"
#include "selfinfo.h"
#include "patron.h"
#include "mutation.h"
#include "spells-floor.h"
#include "object-hook.h"
+#include "monster-status.h"
+
+#include "floor.h"
+#include "floor-save.h"
#ifdef ALLOW_WIZARD
{
/* Extract */
tmp_int = atoi(tmp_val);
-
- /* Paranoia */
if (tmp_int < 1) tmp_int = 1;
if (tmp_int > 99) tmp_int = 99;
p_ptr->dungeon_idx = tmp_dungeon_type;
}
-
- /* Paranoia */
if (command_arg < d_info[p_ptr->dungeon_idx].mindepth) command_arg = 0;
if (command_arg > d_info[p_ptr->dungeon_idx].maxdepth) command_arg = (COMMAND_ARG)d_info[p_ptr->dungeon_idx].maxdepth;
* and create a first saved floor
*/
prepare_change_floor_mode(CFM_FIRST_FLOOR);
-
- /* Leaving */
p_ptr->leaving = TRUE;
}
for (i = 1; i < m_max; i++)
{
monster_type *m_ptr = ¤t_floor_ptr->m_list[i];
-
- /* Paranoia -- Skip dead monsters */
- if (!m_ptr->r_idx) continue;
+ if (!monster_is_valid(m_ptr)) continue;
/* Skip the mount */
if (i == p_ptr->riding) continue;
for (i = 1; i < m_max; i++)
{
monster_type *m_ptr = ¤t_floor_ptr->m_list[i];
-
- /* Paranoia -- Skip dead monsters */
- if (!m_ptr->r_idx) continue;
+ if (!monster_is_valid(m_ptr)) continue;
/* Skip the mount */
if (i == p_ptr->riding) continue;
note_spot(y, x);
lite_spot(y, x);
-
- /* Update some things */
p_ptr->update |= (PU_FLOW);
prev_feat = tmp_feat;
/* Free the "exist" array (2-dimension) */
C_KILL(*exist, NUM_O_BIT * NUM_O_SET, int);
C_KILL(exist, NUM_O_SET, int *);
-
- /* Close it */
my_fclose(fff);
msg_format(_("オプションbit使用状況をファイル %s に書き出しました。", "Option bits usage dump saved to file %s."), buf);
/* Mutation */
case 'M':
- (void)gain_random_mutation(command_arg);
+ (void)gain_mutation(p_ptr, command_arg);
break;
/* Reset Class */
creature_ptr->oldpy = 33;
creature_ptr->oldpx = 131;
}
-
- /* Leaving */
creature_ptr->wild_mode = FALSE;
creature_ptr->leaving = TRUE;