• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revisione043da5d4b2dcb333c92488c7fcb76a2c6210438 (tree)
Time2019-05-03 01:36:52
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

[Refactor] #37353 AM_* を object.h へ移動.

Change Summary

Incremental Difference

--- a/src/defines.h
+++ b/src/defines.h
@@ -2219,16 +2219,6 @@
22192219
22202220
22212221
2222-/*
2223- * Bit flags for apply_magic() (etc)
2224- */
2225-#define AM_NO_FIXED_ART 0x00000001 /* Don't allow roll for fixed artifacts */
2226-#define AM_GOOD 0x00000002 /* Generate good items */
2227-#define AM_GREAT 0x00000004 /* Generate great items */
2228-#define AM_SPECIAL 0x00000008 /* Generate artifacts (for debug mode only) */
2229-#define AM_CURSED 0x00000010 /* Generate cursed/worthless items */
2230-
2231-
22322222 /*** Monster blow constants ***/
22332223
22342224
--- a/src/object.h
+++ b/src/object.h
@@ -111,7 +111,17 @@ extern IDX lookup_kind(OBJECT_TYPE_VALUE tval, OBJECT_SUBTYPE_VALUE sval);
111111 extern void object_wipe(object_type *o_ptr);
112112 extern void object_prep(object_type *o_ptr, KIND_OBJECT_IDX k_idx);
113113 extern void object_copy(object_type *o_ptr, object_type *j_ptr);
114+
115+/*
116+ * Bit flags for apply_magic() (etc)
117+ */
118+#define AM_NO_FIXED_ART 0x00000001 /* Don't allow roll for fixed artifacts */
119+#define AM_GOOD 0x00000002 /* Generate good items */
120+#define AM_GREAT 0x00000004 /* Generate great items */
121+#define AM_SPECIAL 0x00000008 /* Generate artifacts (for debug mode only) */
122+#define AM_CURSED 0x00000010 /* Generate cursed/worthless items */
114123 extern void apply_magic(object_type *o_ptr, DEPTH lev, BIT_FLAGS mode);
124+
115125 extern bool make_object(object_type *j_ptr, BIT_FLAGS mode);
116126 extern void place_object(POSITION y, POSITION x, BIT_FLAGS mode);
117127 extern bool make_gold(object_type *j_ptr);
Show on old repository browser