OSDN Git Service

[Refactor] #37353 ウィザードモードフラグ を player_type 構造体から world_type 構造体へ移動.
[hengband/hengband.git] / src / realm.h
1 #pragma once
2
3 /*
4  * Magic realms
5  */
6 #define REALM_NONE         0
7 #define REALM_LIFE         1
8 #define REALM_SORCERY      2
9 #define REALM_NATURE       3
10 #define REALM_CHAOS        4
11 #define REALM_DEATH        5
12 #define REALM_TRUMP        6
13 #define REALM_ARCANE       7
14 #define REALM_CRAFT        8
15 #define REALM_DAEMON       9
16 #define REALM_CRUSADE      10
17 #define MAX_MAGIC          10
18 #define MIN_TECHNIC        16
19 #define REALM_MUSIC        16
20 #define REALM_HISSATSU     17
21 #define REALM_HEX          18
22 #define MAX_REALM          18
23
24 #define VALID_REALM        (MAX_REALM + MAX_MAGIC - MIN_TECHNIC + 1)
25 #define NUM_TECHNIC        (MAX_REALM - MIN_TECHNIC + 1)
26
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)
31
32 extern const concptr realm_names[];
33 #ifdef JP
34 extern const concptr E_realm_names[];
35 #endif