• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revision3bac3ef947de477c478bd1e165f045f0ed3faa33 (tree)
Time2019-06-01 13:10:48
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

[Refactor] #37353 REALM1_BOOK, REALM2_BOOK を player-status.h へ移動.

Change Summary

Incremental Difference

--- a/src/defines.h
+++ b/src/defines.h
@@ -165,12 +165,6 @@
165165
166166
167167 /*
168- * Magic-books for the realms
169- */
170-#define REALM1_BOOK (p_ptr->realm1 + TV_LIFE_BOOK - 1)
171-#define REALM2_BOOK (p_ptr->realm2 + TV_LIFE_BOOK - 1)
172-
173-/*
174168 * Maximum number of "normal" pack slots, and the index of the "overflow"
175169 * slot, which can hold an item, but only temporarily, since it causes the
176170 * pack to "overflow", dropping the "last" item onto the ground. Since this
--- a/src/player-status.h
+++ b/src/player-status.h
@@ -26,6 +26,12 @@
2626 #define MAGIC_FAIL_5PERCENT 0x0002
2727 #define MAGIC_GAIN_EXP 0x0004
2828
29+ /*
30+ * Magic-books for the realms
31+ */
32+#define REALM1_BOOK (p_ptr->realm1 + TV_LIFE_BOOK - 1)
33+#define REALM2_BOOK (p_ptr->realm2 + TV_LIFE_BOOK - 1)
34+
2935 extern const concptr stat_names[6];
3036 extern const concptr stat_names_reduced[6];
3137
Show on old repository browser