<ClInclude Include="..\..\src\info-reader\random-grid-effect-types.h" />\r
<ClInclude Include="..\..\src\info-reader\skill-reader.h" />\r
<ClInclude Include="..\..\src\info-reader\vault-reader.h" />\r
+ <ClInclude Include="..\..\src\object-enchant\trg-types.h" />\r
<ClInclude Include="..\..\src\perception\identification.h" />\r
<ClInclude Include="..\..\src\player-attack\attack-chaos-effect.h" />\r
<ClInclude Include="..\..\src\combat\attack-criticality.h" />\r
<ClInclude Include="..\..\src\core\visuals-reseter.h">
<Filter>core</Filter>
</ClInclude>
+ <ClInclude Include="..\..\src\object-enchant\trg-types.h">
+ <Filter>object-enchant</Filter>
+ </ClInclude>
</ItemGroup>
<ItemGroup>
<None Include="..\..\src\wall.bmp" />
object-enchant/object-curse.c object-enchant/object-curse.h \
object-enchant/object-ego.c object-enchant/object-ego.h \
object-enchant/tr-types.h object-enchant/trc-types.h \
+ object-enchant/trg-types.h \
object-enchant/item-apply-magic.h object-enchant/item-feeling.h \
object-enchant/old-ego-extra-values.h object-enchant/special-object-flags.h \
\
#include "monster/monster.h"
#include "object-enchant/artifact.h"
#include "object-enchant/item-apply-magic.h"
+#include "object-enchant/trg-types.h"
#include "object/object-generator.h"
#include "player/player-personalities-table.h"
#include "player/player-status.h"
#include "object-enchant/artifact.h"
#include "object-enchant/item-apply-magic.h"
#include "object-enchant/object-ego.h"
+#include "object-enchant/trg-types.h"
#include "object/object-generator.h"
#include "object/object-kind-hook.h"
#include "object/object-kind.h"
#include "info-reader/random-grid-effect-types.h"
#include "io/tokenizer.h"
#include "object-enchant/artifact.h"
+#include "object-enchant/trg-types.h"
#include "object/object-kind-hook.h"
#include "system/system-variables.h"
#include "io/files-util.h"
#include "object-enchant/artifact.h"
#include "object-enchant/item-feeling.h"
-#include "perception/object-perception.h"
#include "object-enchant/object-curse.h"
-#include "object/object-flavor.h"
#include "object-enchant/special-object-flags.h"
#include "object-enchant/tr-types.h"
#include "object-enchant/trc-types.h"
+#include "object/object-flavor.h"
+#include "object/object1.h"
+#include "perception/object-perception.h"
#include "player/player-damage.h"
#include "player/player-effects.h"
#include "player/player-move.h"
#include "object-enchant/old-ego-extra-values.h" // TODO v1.5.0以前のセーブファイルをロードする処理を分離する.
#include "object-enchant/tr-types.h"
#include "object-enchant/trc-types.h"
+#include "object-enchant/trg-types.h"
#include "object/object-generator.h"
#include "object/object-hook.h"
#include "object/object-kind-hook.h"
#include "object-enchant/object-ego.h"
#include "object-enchant/special-object-flags.h"
#include "object-enchant/trc-types.h"
+#include "object-enchant/trg-types.h"
#include "object/object-hook.h"
#include "object/object-kind.h"
#include "sv-definition/sv-armor-types.h"
#include "object-enchant/object-boost.h"
#include "object-enchant/object-curse.h"
#include "object-enchant/object-ego.h"
+#include "object-enchant/trg-types.h"
#include "object/object-flavor.h"
#include "object/object-generator.h"
#include "object/object-hook.h"
#include "system/angband.h"
#include "cmd-item/cmd-activate.h"
-typedef struct artifact_type artifact_type;
-
/*!
* @struct artifact_type
* @brief 固定アーティファクト情報の構造体 / Artifact structure.
* the save-file only writes "cur_num" to the savefile.
* "max_num" is always "1" (if that artifact "exists")
*/
-struct artifact_type
-{
+typedef struct artifact_type {
STR_OFFSET name; /*!< アーティファクト名(headerオフセット参照) / Name (offset) */
STR_OFFSET text; /*!< アーティファクト解説(headerオフセット参照) / Text (offset) */
BIT_FLAGS flags[TR_FLAG_SIZE]; /*! アイテムフラグ / Artifact Flags */
- #define TRG_INSTA_ART 0x00000001L /* Item must be an artifact */
- #define TRG_QUESTITEM 0x00000002L /* quest level item -KMW- */
- #define TRG_XTRA_POWER 0x00000004L /* Extra power */
- #define TRG_ONE_SUSTAIN 0x00000008L /* One sustain */
- #define TRG_XTRA_RES_OR_POWER 0x00000010L /* Extra resistance or power */
- #define TRG_XTRA_H_RES 0x00000020L /* Extra high resistance */
- #define TRG_XTRA_E_RES 0x00000040L /* Extra element resistance */
- #define TRG_XTRA_L_RES 0x00000080L /* Extra lordly resistance */
- #define TRG_XTRA_D_RES 0x00000100L /* Extra dragon resistance */
- #define TRG_XTRA_RES 0x00000200L /* Extra resistance */
- #define TRG_CURSED 0x00000400L /* Item is Cursed */
- #define TRG_HEAVY_CURSE 0x00000800L /* Item is Heavily Cursed */
- #define TRG_PERMA_CURSE 0x00001000L /* Item is Perma Cursed */
- #define TRG_RANDOM_CURSE0 0x00002000L /* Item is Random Cursed */
- #define TRG_RANDOM_CURSE1 0x00004000L /* Item is Random Cursed */
- #define TRG_RANDOM_CURSE2 0x00008000L /* Item is Random Cursed */
- #define TRG_XTRA_DICE 0x00010000L /* Extra dice */
- #define TRG_POWERFUL 0x00020000L /* Item has good value even if Cursed */
BIT_FLAGS gen_flags; /*! アイテム生成フラグ / flags for generate */
DEPTH level; /*! 基本生成階 / Artifact level */
FLOOR_IDX floor_id; /*! アイテムを落としたフロアのID / Leaved on this location last time */
byte act_idx; /*! 発動能力ID / Activative ability index */
-};
+} artifact_type;
extern artifact_type *a_info;
extern char *a_name;
--- /dev/null
+#pragma once
+
+typedef enum trg_type {
+ TRG_INSTA_ART = 0x00000001L, /* Item must be an artifact */
+ TRG_QUESTITEM = 0x00000002L, /* quest level item -KMW- */
+ TRG_XTRA_POWER = 0x00000004L, /* Extra power */
+ TRG_ONE_SUSTAIN = 0x00000008L, /* One sustain */
+ TRG_XTRA_RES_OR_POWER = 0x00000010L, /* Extra resistance or power */
+ TRG_XTRA_H_RES = 0x00000020L, /* Extra high resistance */
+ TRG_XTRA_E_RES = 0x00000040L, /* Extra element resistance */
+ TRG_XTRA_L_RES = 0x00000080L, /* Extra lordly resistance */
+ TRG_XTRA_D_RES = 0x00000100L, /* Extra dragon resistance */
+ TRG_XTRA_RES = 0x00000200L, /* Extra resistance */
+ TRG_CURSED = 0x00000400L, /* Item is Cursed */
+ TRG_HEAVY_CURSE = 0x00000800L, /* Item is Heavily Cursed */
+ TRG_PERMA_CURSE = 0x00001000L, /* Item is Perma Cursed */
+ TRG_RANDOM_CURSE0 = 0x00002000L, /* Item is Random Cursed */
+ TRG_RANDOM_CURSE1 = 0x00004000L, /* Item is Random Cursed */
+ TRG_RANDOM_CURSE2 = 0x00008000L, /* Item is Random Cursed */
+ TRG_XTRA_DICE = 0x00010000L, /* Extra dice */
+ TRG_POWERFUL = 0x00020000L, /* Item has good value even if Cursed */
+} trg_type;
#include "object-enchant/object-ego.h"
#include "object-enchant/special-object-flags.h"
#include "object-enchant/tr-types.h"
+#include "object-enchant/trg-types.h"
#include "object/object-hook.h"
#include "object/object-kind.h"
#include "object/object1.h"
#include "object/object-generator.h"
-#include "object-enchant/artifact.h"
#include "object-enchant/object-curse.h"
-#include "object/object-kind.h"
#include "object-enchant/special-object-flags.h"
#include "object-enchant/trc-types.h"
+#include "object-enchant/trg-types.h"
+#include "object/object-kind.h"
/*!
* @brief オブジェクトを初期化する
#include "object-enchant/item-feeling.h"
#include "object-enchant/special-object-flags.h"
#include "object-enchant/tr-types.h"
+#include "object-enchant/trg-types.h"
#include "object/object-kind.h"
#include "object/object1.h"
#include "perception/object-perception.h"
/*!
- * @file object1.c
* @brief オブジェクトの実装 / Object code, part 1
* @date 2014/01/10
* @author
#include "perception/object-perception.h"
#include "io/write-diary.h"
-#include "object-enchant/artifact.h"
#include "object-enchant/item-feeling.h"
+#include "object-enchant/special-object-flags.h"
+#include "object-enchant/trg-types.h"
#include "object/object-flavor.h"
#include "object/object-generator.h"
#include "object/object-hook.h" // 暫定、このファイルへ引っ越す.
#include "object/object-kind.h"
-#include "object-enchant/special-object-flags.h"
/*!
* @brief オブジェクトを鑑定済にする /
#include "birth/birth-body-spec.h"
#include "birth/birth-stat.h"
#include "birth/character-builder.h"
-#include "cmd-io/cmd-dump.h"
#include "cmd-building/cmd-building.h"
+#include "cmd-io/cmd-dump.h"
#include "combat/snipe.h"
#include "core/stuff-handler.h"
#include "dungeon/quest.h"
#include "mutation/mutation.h"
#include "object-enchant/artifact.h"
#include "object-enchant/item-feeling.h"
-#include "perception/object-perception.h"
#include "object-enchant/object-ego.h"
+#include "object-enchant/special-object-flags.h"
+#include "object-enchant/trg-types.h"
#include "object/object-generator.h"
#include "object/object-hook.h"
#include "object/object-kind.h"
#include "object/object-value-calc.h"
#include "object/object-value.h"
-#include "object-enchant/special-object-flags.h"
-#include "sv-definition/sv-armor-types.h"
-#include "sv-definition/sv-protector-types.h"
-#include "sv-definition/sv-weapon-types.h"
+#include "perception/object-perception.h"
#include "player/avatar.h"
#include "player/player-class.h"
#include "player/player-damage.h"
#include "spell-kind/spells-floor.h"
#include "spell-realm/spells-hex.h"
#include "spell/spells-status.h"
+#include "sv-definition/sv-armor-types.h"
+#include "sv-definition/sv-protector-types.h"
+#include "sv-definition/sv-weapon-types.h"
#include "term/term-color-types.h"
#include "util/util.h"
#include "view/display-main-window.h"
#include "object-enchant/special-object-flags.h"
#include "object-enchant/tr-types.h"
#include "object-enchant/trc-types.h"
+#include "object-enchant/trg-types.h"
#include "object/item-use-flags.h"
#include "object/object-flavor.h"
#include "object/object-generator.h"
#include "cmd-io/cmd-save.h"
#include "cmd/cmd-draw.h"
#include "core/stuff-handler.h"
-#include "info-reader/fixed-map-parser.h"
#include "dungeon/dungeon.h"
#include "dungeon/quest.h"
#include "floor/floor-object.h"
#include "floor/floor-save.h"
#include "floor/floor.h"
#include "grid/grid.h"
+#include "info-reader/fixed-map-parser.h"
#include "inventory/inventory-object.h"
#include "inventory/player-inventory.h"
#include "io/files-util.h"
#include "object-enchant/apply-magic.h"
#include "object-enchant/artifact.h"
#include "object-enchant/item-apply-magic.h"
+#include "object-enchant/trc-types.h"
+#include "object-enchant/trg-types.h"
#include "object/item-use-flags.h"
-#include "object/object1.h"
-#include "perception/object-perception.h"
#include "object/object-flavor.h"
#include "object/object-generator.h"
#include "object/object-hook.h"
#include "object/object-kind.h"
#include "object/object-value.h"
-#include "object-enchant/trc-types.h"
+#include "object/object1.h"
+#include "perception/object-perception.h"
#include "player/patron.h"
#include "player/player-class.h"
#include "player/player-effects.h"
#include "player/selfinfo.h"
#include "spell-kind/spells-detection.h"
#include "spell-kind/spells-floor.h"
-#include "spell/spells-object.h"
#include "spell-kind/spells-sight.h"
+#include "spell-kind/spells-teleport.h"
+#include "spell-kind/spells-world.h"
+#include "spell/spells-object.h"
#include "spell/spells-status.h"
#include "spell/spells-summon.h"
-#include "spell-kind/spells-teleport.h"
#include "spell/spells-util.h"
-#include "spell-kind/spells-world.h"
#include "spell/spells3.h"
#include "system/angband-version.h"
#include "term/term-color-types.h"
#include "object-enchant/special-object-flags.h"
#include "object-enchant/tr-types.h"
#include "object-enchant/trc-types.h"
+#include "object-enchant/trg-types.h"
#include "object/object-flavor.h"
#include "object/object-generator.h"
#include "object/object-kind-hook.h"