3 #include "system/angband.h"
4 #include "object/tval-types.h"
5 #include "spell/technic-info-table.h"
6 #include "player/player-status.h"
7 #include "player/player-classes-table.h"
10 * 職業ごとの選択可能な魔法領域現在の所 bitrh.c でのみ使用。
11 * Possible realms that can be chosen currently used only by birth.c.
15 #define CH_SORCERY 0x02
16 #define CH_NATURE 0x04
20 #define CH_ARCANE 0x40
21 #define CH_ENCHANT 0x80
22 #define CH_DAEMON 0x100
23 #define CH_CRUSADE 0x200
25 #define CH_MUSIC 0x08000 /* This is 16th bit */
26 #define CH_HISSATSU 0x10000
27 #define CH_HEX 0x20000
29 #define IS_WIZARD_CLASS(C) \
30 ((C)->pclass == CLASS_MAGE || (C)->pclass == CLASS_HIGH_MAGE || (C)->pclass == CLASS_SORCERER || \
31 (C)->pclass == CLASS_MAGIC_EATER || (C)->pclass == CLASS_BLUE_MAGE)
34 * Information about the player's "magic"
36 * Note that a player with a "spell_book" of "zero" is illiterate.
39 typedef struct player_magic player_magic;
43 tval_type spell_book; /* Tval of spell books (if any) */
44 int spell_xtra; /* Something for later */
46 int spell_stat; /* Stat for spells (if any) */
47 int spell_type; /* Spell type (mage/priest) */
49 int spell_first; /* Level of first spell */
50 int spell_weight; /* Weight that hurts spells */
52 magic_type info[MAX_MAGIC][32]; /* The available spells */
55 extern player_magic *m_info;
56 extern const player_magic *mp_ptr;
62 typedef struct player_class player_class;
66 concptr title; /* Type of class */
69 concptr E_title; /* 英語職業 */
71 s16b c_adj[6]; /* Class stat modifier */
73 s16b c_dis; /* class disarming */
74 s16b c_dev; /* class magic devices */
75 s16b c_sav; /* class saving throws */
76 s16b c_stl; /* class stealth */
77 s16b c_srh; /* class searching ability */
78 s16b c_fos; /* class searching frequency */
79 s16b c_thn; /* class to hit (normal) */
80 s16b c_thb; /* class to hit (bows) */
82 s16b x_dis; /* extra disarming */
83 s16b x_dev; /* extra magic devices */
84 s16b x_sav; /* extra saving throws */
85 s16b x_stl; /* extra stealth */
86 s16b x_srh; /* extra searching ability */
87 s16b x_fos; /* extra searching frequency */
88 s16b x_thn; /* extra to hit (normal) */
89 s16b x_thb; /* extra to hit (bows) */
91 s16b c_mhp; /* Class hit-dice adjustment */
92 s16b c_exp; /* Class experience factor */
94 byte pet_upkeep_div; /* Pet upkeep divider */
97 extern const player_class *cp_ptr;
98 extern const player_class class_info[MAX_CLASS];
100 extern const s32b realm_choices1[];
101 extern const s32b realm_choices2[];
102 extern const concptr player_title[MAX_CLASS][10];