8 #define REALM_SORCERY 2
13 #define REALM_ARCANE 7
15 #define REALM_DAEMON 9
16 #define REALM_CRUSADE 10
18 #define MIN_TECHNIC 16
19 #define REALM_MUSIC 16
20 #define REALM_HISSATSU 17
24 #define VALID_REALM (MAX_REALM + MAX_MAGIC - MIN_TECHNIC + 1)
25 #define NUM_TECHNIC (MAX_REALM - MIN_TECHNIC + 1)
27 #define is_magic(A) ((((A) > REALM_NONE) && ((A) < MAX_MAGIC + 1)) ? TRUE : FALSE)
28 #define tval2realm(A) ((A) - TV_LIFE_BOOK + 1)
29 #define technic2magic(A) (is_magic(A) ? (A) : (A) - MIN_TECHNIC + 1 + MAX_MAGIC)
30 #define is_good_realm(REALM) ((REALM) == REALM_LIFE || (REALM) == REALM_CRUSADE)
32 extern const concptr realm_names[];
34 extern const concptr E_realm_names[];