summaryrefslogtreecommitdiff
path: root/src/random_spell.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/random_spell.hpp')
-rw-r--r--src/random_spell.hpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/random_spell.hpp b/src/random_spell.hpp
new file mode 100644
index 00000000..f02b9848
--- /dev/null
+++ b/src/random_spell.hpp
@@ -0,0 +1,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? */
+};