OSDN Git Service

Merge remote-tracking branch 'remotes/origin/feature/Relocate-score-server' into...
[hengband/hengband.git] / src / realm / realm-names-table.h
1 #pragma once
2
3 #include "system/angband.h"
4 #include "realm/realm-types.h"
5
6 #define VALID_REALM        (MAX_REALM + MAX_MAGIC - MIN_TECHNIC + 1)
7
8 #define is_magic(A) ((((A) > REALM_NONE) && ((A) < MAX_MAGIC + 1)) ? TRUE : FALSE)
9 #define tval2realm(A) ((A) - TV_LIFE_BOOK + 1)
10 #define technic2magic(A)      (is_magic(A) ? (A) : (A) - MIN_TECHNIC + 1 + MAX_MAGIC)
11 #define is_good_realm(REALM)   ((REALM) == REALM_LIFE || (REALM) == REALM_CRUSADE)
12
13 extern const concptr realm_names[];
14 #ifdef JP
15 extern const concptr E_realm_names[];
16 #endif