• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

変愚蛮怒のメインリポジトリです


Commit MetaInfo

Revision16121383350249a92f5caf04d5a767d2247694b4 (tree)
Time2019-07-01 00:09:01
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

[Refactor] #38997 do_cmd_knowledge_mutations() に player_type * 引数を追加.

Change Summary

Incremental Difference

--- a/src/cmd-dump.c
+++ b/src/cmd-dump.c
@@ -7081,7 +7081,7 @@ void do_cmd_knowledge(void)
70817081 do_cmd_knowledge_stat();
70827082 break;
70837083 case 'b': /* Mutations */
7084- do_cmd_knowledge_mutations();
7084+ do_cmd_knowledge_mutations(p_ptr);
70857085 break;
70867086 case 'c': /* weapon-exp */
70877087 do_cmd_knowledge_weapon_exp();
--- a/src/files.c
+++ b/src/files.c
@@ -4085,7 +4085,7 @@ void display_player(int mode)
40854085
40864086 else if (mode == 4)
40874087 {
4088- do_cmd_knowledge_mutations();
4088+ do_cmd_knowledge_mutations(p_ptr);
40894089 }
40904090 }
40914091
--- a/src/mutation.c
+++ b/src/mutation.c
@@ -2020,7 +2020,7 @@ void dump_mutations(player_type *creature_ptr, FILE *OutFile)
20202020 * @brief 突然変異表示コマンドの実装 / List mutations we have...
20212021 * @return なし
20222022 */
2023-void do_cmd_knowledge_mutations(void)
2023+void do_cmd_knowledge_mutations(player_type *creature_ptr)
20242024 {
20252025 FILE *fff;
20262026 GAME_TEXT file_name[1024];
@@ -2029,7 +2029,7 @@ void do_cmd_knowledge_mutations(void)
20292029 fff = my_fopen_temp(file_name, 1024);
20302030
20312031 /* Dump the mutations to file */
2032- if (fff) dump_mutations(p_ptr, fff);
2032+ if (fff) dump_mutations(creature_ptr, fff);
20332033 my_fclose(fff);
20342034
20352035 /* Display the file contents */
--- a/src/mutation.h
+++ b/src/mutation.h
@@ -3,7 +3,7 @@ extern bool gain_mutation(player_type *creature_ptr, MUTATION_IDX choose_mut);
33 extern bool lose_mutation(player_type *creature_ptr, MUTATION_IDX choose_mut);
44 extern void lose_all_mutations(player_type *creature_ptr);
55 extern void dump_mutations(player_type *creature_ptr, FILE *OutFile);
6-extern void do_cmd_knowledge_mutations(void);
6+extern void do_cmd_knowledge_mutations(player_type *creature_ptr);
77 extern int calc_mutant_regenerate_mod(player_type *creature_ptr);
88 extern bool mutation_power_aux(player_type *creature_ptr, int power);
99 extern void become_living_trump(player_type *creature_ptr);
Show on old repository browser