• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

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

Log Message

[Refactor] #37353 TRG_* を artifact.h へ移動.

Change Summary

Incremental Difference

--- a/src/artifact.h
+++ b/src/artifact.h
@@ -36,6 +36,24 @@ struct artifact_type
3636
3737 BIT_FLAGS flags[TR_FLAG_SIZE]; /*! アイテムフラグ / Artifact Flags */
3838
39+ #define TRG_INSTA_ART 0x00000001L /* Item must be an artifact */
40+ #define TRG_QUESTITEM 0x00000002L /* quest level item -KMW- */
41+ #define TRG_XTRA_POWER 0x00000004L /* Extra power */
42+ #define TRG_ONE_SUSTAIN 0x00000008L /* One sustain */
43+ #define TRG_XTRA_RES_OR_POWER 0x00000010L /* Extra resistance or power */
44+ #define TRG_XTRA_H_RES 0x00000020L /* Extra high resistance */
45+ #define TRG_XTRA_E_RES 0x00000040L /* Extra element resistance */
46+ #define TRG_XTRA_L_RES 0x00000080L /* Extra lordly resistance */
47+ #define TRG_XTRA_D_RES 0x00000100L /* Extra dragon resistance */
48+ #define TRG_XTRA_RES 0x00000200L /* Extra resistance */
49+ #define TRG_CURSED 0x00000400L /* Item is Cursed */
50+ #define TRG_HEAVY_CURSE 0x00000800L /* Item is Heavily Cursed */
51+ #define TRG_PERMA_CURSE 0x00001000L /* Item is Perma Cursed */
52+ #define TRG_RANDOM_CURSE0 0x00002000L /* Item is Random Cursed */
53+ #define TRG_RANDOM_CURSE1 0x00004000L /* Item is Random Cursed */
54+ #define TRG_RANDOM_CURSE2 0x00008000L /* Item is Random Cursed */
55+ #define TRG_XTRA_DICE 0x00010000L /* Extra dice */
56+ #define TRG_POWERFUL 0x00020000L /* Item has good value even if Cursed */
3957 BIT_FLAGS gen_flags; /*! アイテム生成フラグ / flags for generate */
4058
4159 DEPTH level; /*! 基本生成階 / Artifact level */
--- a/src/defines.h
+++ b/src/defines.h
@@ -357,29 +357,6 @@
357357
358358
359359
360-
361-#define TRG_INSTA_ART 0x00000001L /* Item must be an artifact */
362-#define TRG_QUESTITEM 0x00000002L /* quest level item -KMW- */
363-#define TRG_XTRA_POWER 0x00000004L /* Extra power */
364-#define TRG_ONE_SUSTAIN 0x00000008L /* One sustain */
365-#define TRG_XTRA_RES_OR_POWER 0x00000010L /* Extra resistance or power */
366-#define TRG_XTRA_H_RES 0x00000020L /* Extra high resistance */
367-#define TRG_XTRA_E_RES 0x00000040L /* Extra element resistance */
368-#define TRG_XTRA_L_RES 0x00000080L /* Extra lordly resistance */
369-#define TRG_XTRA_D_RES 0x00000100L /* Extra dragon resistance */
370-#define TRG_XTRA_RES 0x00000200L /* Extra resistance */
371-#define TRG_CURSED 0x00000400L /* Item is Cursed */
372-#define TRG_HEAVY_CURSE 0x00000800L /* Item is Heavily Cursed */
373-#define TRG_PERMA_CURSE 0x00001000L /* Item is Perma Cursed */
374-#define TRG_RANDOM_CURSE0 0x00002000L /* Item is Random Cursed */
375-#define TRG_RANDOM_CURSE1 0x00004000L /* Item is Random Cursed */
376-#define TRG_RANDOM_CURSE2 0x00008000L /* Item is Random Cursed */
377-#define TRG_XTRA_DICE 0x00010000L /* Extra dice */
378-#define TRG_POWERFUL 0x00020000L /* Item has good value even if Cursed */
379-
380-
381-#define MAX_CURSE 18
382-
383360 #define TRC_CURSED 0x00000001L
384361 #define TRC_HEAVY_CURSE 0x00000002L
385362 #define TRC_PERMA_CURSE 0x00000004L
@@ -402,6 +379,7 @@
402379 #define TRC_DRAIN_HP 0x00080000L
403380 #define TRC_DRAIN_MANA 0x00100000L
404381 #define TRC_CALL_UNDEAD 0x00200000L
382+#define MAX_CURSE 18
405383
406384 #define TRC_TELEPORT_SELF 0x00000001L
407385 #define TRC_CHAINSWORD 0x00000002L
--- a/src/object.h
+++ b/src/object.h
@@ -175,7 +175,6 @@
175175 #define TR_FLAG_MAX 138
176176 #define TR_FLAG_SIZE 5
177177
178-
179178 typedef struct object_type object_type;
180179
181180 struct object_type
Show on old repository browser