summaryrefslogtreecommitdiff
path: root/src/spellbinder.hpp
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2016-09-17 09:58:14 +0200
committerBardur Arantsson <bardur@scientician.net>2016-09-17 09:58:14 +0200
commit2ec260320655504b88f8042d4b24e3e7910846a7 (patch)
tree35caeac1f630c5f452d3478deda76a60f406d673 /src/spellbinder.hpp
parent76b3632d13bbf57c6354bc10f67ea849f1d47279 (diff)
Split out spellbinder fields from player_type
Diffstat (limited to 'src/spellbinder.hpp')
-rw-r--r--src/spellbinder.hpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/spellbinder.hpp b/src/spellbinder.hpp
new file mode 100644
index 00000000..1f5cdd99
--- /dev/null
+++ b/src/spellbinder.hpp
@@ -0,0 +1,25 @@
+#pragma once
+
+#include "h-basic.h"
+
+/**
+ * Spellbinder state
+ */
+struct spellbinder {
+
+ /**
+ * Number of bound spells.
+ */
+ byte num = 0;
+
+ /**
+ * Bound spells.
+ */
+ u32b spells[4] = { 0 };
+
+ /**
+ * Trigger condition.
+ */
+ byte trigger = 0;
+
+};