OSDN Git Service

[Refactor] #37353 ENCH_* 定義を spells.h へ移動.
authordeskull <deskull@users.sourceforge.jp>
Sat, 25 May 2019 11:02:55 +0000 (20:02 +0900)
committerdeskull <deskull@users.sourceforge.jp>
Sat, 25 May 2019 11:02:55 +0000 (20:02 +0900)
src/defines.h
src/spells.h

index 3c41cdf..0b312c5 100644 (file)
 #define PROJECT_WHO_UNCTRL_POWER -1 /*!< 魔法効果の自然発生要因: 名状し難い力の解放 */
 #define PROJECT_WHO_GLASS_SHARDS -2 /*!< 魔法効果の自然発生要因: 破壊されたガラス地形の破片 */
 
-
-/*
- * Bit flags for the "enchant()" function
- */
-#define ENCH_TOHIT      0x01 /*!< 装備強化処理: 命中強化 / Enchant to hit */
-#define ENCH_TODAM      0x02 /*!< 装備強化処理: ダメージ強化 / Enchant to damage */
-#define ENCH_TOAC       0x04 /*!< 装備強化処理: AC強化 / Enchant to AC */
-#define ENCH_FORCE      0x08 /*!< 装備強化処理: 無条件に成功させる / Force enchantment */
-
 /*
  * target_set用関数の利用用途フラグ / Bit flags for the "target_set" function
  */
index dfd812f..7038c2a 100644 (file)
@@ -299,8 +299,17 @@ extern void identify_pack(void);
 extern int remove_curse(void);
 extern int remove_all_curse(void);
 extern bool alchemy(void);
+
+/*
+ * Bit flags for the "enchant()" function
+ */
+#define ENCH_TOHIT      0x01 /*!< 装備強化処理: 命中強化 / Enchant to hit */
+#define ENCH_TODAM      0x02 /*!< 装備強化処理: ダメージ強化 / Enchant to damage */
+#define ENCH_TOAC       0x04 /*!< 装備強化処理: AC強化 / Enchant to AC */
+#define ENCH_FORCE      0x08 /*!< 装備強化処理: 無条件に成功させる / Force enchantment */
 extern bool enchant(object_type *o_ptr, int n, int eflag);
 extern bool enchant_spell(HIT_PROB num_hit, HIT_POINT num_dam, ARMOUR_CLASS num_ac);
+
 extern bool artifact_scroll(void);
 extern bool ident_spell(bool only_equip);
 extern bool mundane_spell(bool only_equip);