From c8a270e51dc22f39ed048ab1cc609e6e456df58f Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Sun, 7 Jun 2015 17:49:09 +0200 Subject: Split types.h into separate header for each type --- src/random_spell.hpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/random_spell.hpp (limited to 'src/random_spell.hpp') diff --git a/src/random_spell.hpp b/src/random_spell.hpp new file mode 100644 index 00000000..01b5ba5e --- /dev/null +++ b/src/random_spell.hpp @@ -0,0 +1,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? */ +}; -- cgit v1.2.3