OSDN Git Service

Merge pull request #3532 from sikabane-works/release/3.0.0.87-alpha
[hengbandforosx/hengbandosx.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 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 };
18
19 extern const magic_type technic_info[NUM_TECHNIC][32];