bool gain_random_mutation(int choose_mut)
{
int attempts_left = 20;
- cptr muta_desc = "";
+ concptr muta_desc = "";
bool muta_chosen = FALSE;
BIT_FLAGS muta_which = 0;
BIT_FLAGS *muta_class = NULL;
bool lose_mutation(int choose_mut)
{
int attempts_left = 20;
- cptr muta_desc = "";
+ concptr muta_desc = "";
bool muta_chosen = FALSE;
BIT_FLAGS muta_which = 0;
BIT_FLAGS *muta_class = NULL;
void do_cmd_knowledge_mutations(void)
{
FILE *fff;
- char file_name[1024];
+ GAME_TEXT file_name[1024];
/* Open a new file */
fff = my_fopen_temp(file_name, 1024);
/* Dump the mutations to file */
if (fff) dump_mutations(fff);
-
- /* Close the file */
my_fclose(fff);
/* Display the file contents */
DIRECTION i;
for (i = 0; i < 8; i++)
{
- summon_specific(-1, p_ptr->y, p_ptr->x, lvl, SUMMON_MOLD, PM_FORCE_PET);
+ summon_specific(-1, p_ptr->y, p_ptr->x, lvl, SUMMON_MOLD, PM_FORCE_PET, '\0');
}
}
break;
break;
case MUT1_RECALL:
- if (!word_of_recall()) return FALSE;
+ if (!recall_player(p_ptr, randint0(21) + 15)) return FALSE;
break;
case MUT1_BANISH:
cave_type *c_ptr;
monster_type *m_ptr;
monster_race *r_ptr;
- if (!get_rep_dir2(&dir)) return FALSE;
+ if (!get_direction(&dir, FALSE, FALSE)) return FALSE;
y = p_ptr->y + ddy[dir];
x = p_ptr->x + ddx[dir];
c_ptr = &cave[y][x];
{
if (record_named_pet && is_pet(m_ptr) && m_ptr->nickname)
{
- char m_name[80];
+ GAME_TEXT m_name[MAX_NLEN];
monster_desc(m_name, m_ptr, MD_INDEF_VISIBLE);
do_cmd_write_nikki(NIKKI_NAMED_PET, RECORD_NAMED_PET_GENOCIDE, m_name);
}
{
POSITION x, y;
cave_type *c_ptr;
- if (!get_rep_dir2(&dir)) return FALSE;
+ if (!get_direction(&dir, FALSE, FALSE)) return FALSE;
y = p_ptr->y + ddy[dir];
x = p_ptr->x + ddx[dir];
c_ptr = &cave[y][x];