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

#include "h-basic.h"
#include <string>

/**
 * A structure to describe the random spells of the Power Mages
 */
struct random_spell
{
	s16b mana = 0;                 /* Mana cost */
	s16b fail = 0;                 /* Failure rate */
	u32b proj_flags = 0;           /* Project function flags */
	byte GF = 0;                   /* Type of the projection */
	byte radius = 0;
	byte dam_sides = 0;
	byte dam_dice = 0;
	byte level = 0;                /* Level needed */
	bool untried = true;           /* Is the spell was tried? */
};