summaryrefslogtreecommitdiff
path: root/src/random_spell.hpp
blob: 01b5ba5e19a8952e6b8b9b89a3bcd40a1c6a14fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#pragma once

#include "h-basic.h"

/**
 * A structure to describe the random spells of the Power Mages
 */
struct random_spell
{
	char desc[30];          /* Desc of the spell */
	char name[30];          /* Name of the spell */
	s16b mana;              /* Mana cost */
	s16b fail;              /* Failure rate */
	u32b proj_flags;        /* Project function flags */
	byte GF;                /* Type of the projection */
	byte radius;
	byte dam_sides;
	byte dam_dice;
	byte level;             /* Level needed */
	bool_ untried;           /* Is the spell was tried? */
};