• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revision73c6088713c51545b0abec4192b2111abccbbcf6 (tree)
Time2019-06-07 01:45:52
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

[Refactor] #37353 魔道具術師の定数定義を cmd-magiceat.h へ移動.

Change Summary

Incremental Difference

--- a/src/bldg.c
+++ b/src/bldg.c
@@ -18,6 +18,7 @@
1818
1919 #include "core.h"
2020 #include "cmd-dump.h"
21+#include "cmd-magiceat.h"
2122 #include "floor.h"
2223 #include "floor-events.h"
2324 #include "floor-save.h"
--- a/src/cmd-magiceat.c
+++ b/src/cmd-magiceat.c
@@ -60,6 +60,7 @@
6060 #include "cmd-usestaff.h"
6161 #include "cmd-zaprod.h"
6262 #include "cmd-zapwand.h"
63+#include "cmd-magiceat.h"
6364 #include "avatar.h"
6465 #include "player-status.h"
6566 #include "spells.h"
--- a/src/cmd-magiceat.h
+++ b/src/cmd-magiceat.h
@@ -1 +1,7 @@
1-extern bool do_cmd_magic_eater(bool only_browse, bool powerful);
1+#pragma once
2+
3+#define EATER_EXT 36
4+#define EATER_CHARGE 0x10000L
5+#define EATER_ROD_CHARGE 0x10L
6+
7+extern bool do_cmd_magic_eater(bool only_browse, bool powerful);
--- a/src/defines.h
+++ b/src/defines.h
@@ -138,12 +138,6 @@
138138 (player_can_see_bold((A)->fy, (A)->fx) && projectable(p_ptr->y, p_ptr->x, (A)->fy, (A)->fx)))))
139139
140140
141-#define EATER_EXT 36
142-#define EATER_CHARGE 0x10000L
143-#define EATER_ROD_CHARGE 0x10L
144-
145-
146-
147141 /* Maximum "Nazguls" number */
148142 #define MAX_NAZGUL_NUM 5
149143
--- a/src/files.c
+++ b/src/files.c
@@ -23,6 +23,7 @@
2323
2424 #include "bldg.h"
2525
26+#include "cmd-magiceat.h"
2627 #include "cmd-dump.h"
2728 #include "world.h"
2829 #include "player-race.h"
--- a/src/player-status.c
+++ b/src/player-status.c
@@ -40,6 +40,7 @@
4040 #include "world.h"
4141 #include "view-mainwindow.h"
4242 #include "files.h"
43+#include "cmd-magiceat.h"
4344
4445 /*!
4546 * @brief 能力値テーブル / Abbreviations of healthy stats
--- a/src/spells-status.c
+++ b/src/spells-status.c
@@ -2,6 +2,7 @@
22 #include "core.h"
33 #include "util.h"
44
5+#include "cmd-magiceat.h"
56 #include "avatar.h"
67 #include "floor.h"
78 #include "object-flavor.h"
Show on old repository browser