OSDN Git Service

[Refactor] #38997 Added player_type* argument to sort.c/h
[hengband/hengband.git] / src / knowledge / knowledge-mutations.c
1 /*!
2  * @brief 突然変異の一覧を出力する
3  * @date 2020/04/24
4  * @author Hourier
5  */
6
7 #include "core/show-file.h"
8 #include "knowledge/knowledge-mutations.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  * @return なし
16  */
17 void do_cmd_knowledge_mutations(player_type *creature_ptr)
18 {
19         FILE *fff = NULL;
20         GAME_TEXT file_name[FILE_NAME_SIZE];
21         if (!open_temporary_file(&fff, file_name)) return;
22
23         dump_mutations(creature_ptr, fff);
24         angband_fclose(fff);
25
26         show_file(creature_ptr, TRUE, file_name, _("突然変異", "Mutations"), 0, 0);
27         fd_kill(file_name);
28 }