/*!
 * @brief 突然変異の一覧を出力する
 * @date 2020/04/24
 * @author Hourier
 */

#include "system/angband.h"
#include "knowledge/knowledge-mutations.h"
#include "io-dump/dump-util.h"
#include "core/show-file.h"
#include "io/mutations-dump.h"

/*!
 * @brief 突然変異表示コマンドの実装 / List mutations we have...
 * @return なし
 */
void do_cmd_knowledge_mutations(player_type *creature_ptr)
{
	FILE *fff = NULL;
	GAME_TEXT file_name[FILE_NAME_SIZE];
	if (!open_temporary_file(&fff, file_name)) return;

	dump_mutations(creature_ptr, fff);
	my_fclose(fff);

	show_file(creature_ptr, TRUE, file_name, _("突然変異", "Mutations"), 0, 0);
	fd_kill(file_name);
}
