summaryrefslogtreecommitdiff
path: root/src/ability_type.hpp
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2015-03-22 19:32:29 +0100
committerBardur Arantsson <bardur@scientician.net>2015-03-22 19:32:29 +0100
commit7d5abc9c35e080555d1841234497ad1b06528f3a (patch)
treea08ab2dde275a37b8ecd52e86c21fdd85274f9da /src/ability_type.hpp
parent5d2af4a03a953e3891dae144076f8416faa5d8fd (diff)
Split struct ability_type into separate header file
Diffstat (limited to 'src/ability_type.hpp')
-rw-r--r--src/ability_type.hpp27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/ability_type.hpp b/src/ability_type.hpp
new file mode 100644
index 00000000..ea8a921d
--- /dev/null
+++ b/src/ability_type.hpp
@@ -0,0 +1,27 @@
+#pragma once
+
+#include "h-basic.h"
+
+/**
+ * Abilities.
+ */
+struct ability_type
+{
+ const char *name; /* Name */
+ char *desc; /* Description */
+
+ const char *action_desc; /* Action Description */
+
+ s16b action_mkey; /* Action do to */
+
+ s16b cost; /* Skill points cost */
+
+ bool_ acquired; /* Do the player actualylg ot it ? */
+
+ /* Prereqs */
+ s16b skills[10]; /* List of prereq skills(10 max) */
+ s16b skill_levels[10]; /* List of prereq skills(10 max) */
+ s16b stat[6]; /* List of prereq stats */
+ s16b need_abilities[10]; /* List of prereq abilities(10 max) */
+ s16b forbid_abilities[10]; /* List of forbidden abilities(10 max) */
+};