OSDN Git Service

[Refactor] #37353 呪術領域用のマクロを realm-hex.h へ移動.
[hengband/hengband.git] / src / realm-hex.h
index 459aef6..8c8f4ba 100644 (file)
@@ -2,7 +2,18 @@
  * @file realm-hex.h
  */
 
- /* 1st book */
+ /* Hex */
+#define hex_spelling_any() \
+       ((p_ptr->realm1 == REALM_HEX) && (p_ptr->magic_num1[0]))
+#define hex_spelling(X) \
+       ((p_ptr->realm1 == REALM_HEX) && (p_ptr->magic_num1[0] & (1L << (X))))
+#define CASTING_HEX_FLAGS(P_PTR) ((P_PTR)->magic_num1[0])
+#define CASTING_HEX_NUM(P_PTR) ((P_PTR)->magic_num2[0])
+#define HEX_REVENGE_POWER(P_PTR) ((P_PTR)->magic_num1[2])
+#define HEX_REVENGE_TURN(P_PTR) ((P_PTR)->magic_num2[2])
+#define HEX_REVENGE_TYPE(P_PTR) ((P_PTR)->magic_num2[1])
+
+/* 1st book */
 #define HEX_BLESS             0
 #define HEX_CURE_LIGHT        1
 #define HEX_DEMON_AURA        2