OSDN Git Service

[Refactor] #39963 Separated spells-common.c.h from spells1.c/spells.h
[hengband/hengband.git] / src / spell / spells-common.h
1 #pragma once
2
3 /*
4  * The "name" of spell 'N' is stored as spell_names[X][N],
5  * where X is 0 for mage-spells and 1 for priest-spells.
6  */
7 typedef struct
8 {
9         PLAYER_LEVEL slevel;    /* Required level (to learn) */
10         MANA_POINT smana;               /* Required mana (to cast) */
11         PERCENTAGE sfail;               /* Minimum chance of failure */
12         EXP sexp;                               /* Encoded experience bonus */
13 } magic_type;
14
15 extern const magic_type technic_info[NUM_TECHNIC][32];