OSDN Git Service

[Refactor] #2141 monster_race *r_ptrの宣言をautoに差し替えた
[hengbandforosx/hengbandosx.git] / src / knowledge / knowledge-mutations.cpp
1 /*!
2  * @brief 突然変異の一覧を出力する
3  * @date 2020/04/24
4  * @author Hourier
5  */
6
7 #include "knowledge/knowledge-mutations.h"
8 #include "core/show-file.h"
9 #include "io-dump/dump-util.h"
10 #include "io/mutations-dump.h"
11 #include "util/angband-files.h"
12
13 /*!
14  * @brief 突然変異表示コマンドの実装 / List mutations we have...
15  */
16 void do_cmd_knowledge_mutations(PlayerType *player_ptr)
17 {
18     FILE *fff = nullptr;
19     GAME_TEXT file_name[FILE_NAME_SIZE];
20     if (!open_temporary_file(&fff, file_name))
21         return;
22
23     dump_mutations(player_ptr, fff);
24     angband_fclose(fff);
25
26     show_file(player_ptr, true, file_name, _("突然変異", "Mutations"), 0, 0);
27     fd_kill(file_name);
28 }