OSDN Git Service

Merge pull request #41491 (taotao/hengband/fix-impure_calc_num_blow into develop).
[hengband/hengband.git] / src / spell / technic-info-table.h
1 #pragma once
2
3 #include "realm/realm-types.h"
4 #include "system/angband.h"
5
6 #define NUM_TECHNIC (MAX_REALM - MIN_TECHNIC + 1)
7
8 /*
9  * The "name" of spell 'N' is stored as spell_names[X][N],
10  * where X is 0 for mage-spells and 1 for priest-spells.
11  */
12 typedef struct magic_type {
13         PLAYER_LEVEL slevel;    /* Required level (to learn) */
14         MANA_POINT smana;               /* Required mana (to cast) */
15         PERCENTAGE sfail;               /* Minimum chance of failure */
16         EXP sexp;                               /* Encoded experience bonus */
17 } magic_type;
18
19 extern const magic_type technic_info[NUM_TECHNIC][32];