summaryrefslogtreecommitdiff
path: root/src/skill_descriptor.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
commit1e045ed09258e6c7fff63ef829759c6c8f06f441 (patch)
tree89a8737e5d33ccf2723a199efdf0aa8eb2d175e4 /src/skill_descriptor.hpp
parent86fba667d4aaf01b0efc47e26b8e482f13349038 (diff)
Separate skill values from skill descriptions
Diffstat (limited to 'src/skill_descriptor.hpp')
-rw-r--r--src/skill_descriptor.hpp30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/skill_descriptor.hpp b/src/skill_descriptor.hpp
new file mode 100644
index 00000000..687597da
--- /dev/null
+++ b/src/skill_descriptor.hpp
@@ -0,0 +1,30 @@
+#pragma once
+
+#include "skill_descriptor_fwd.hpp"
+
+#include "h-basic.h"
+#include "skill_flag_set.hpp"
+#include "skills_defs.hpp"
+
+/**
+ * Skill descriptor.
+ */
+struct skill_descriptor {
+
+ const char *name = nullptr; /* Name */
+ char *desc = nullptr; /* Description */
+
+ const char *action_desc = nullptr; /* Action Description */
+
+ s16b action_mkey = 0; /* Action do to */
+
+ s16b action[MAX_SKILLS] = { 0 }; /* List of actions against other skills */
+
+ s16b father = 0; /* Father in the skill tree */
+ s16b order = 0; /* Order in the tree */
+
+ byte random_gain_chance = 100; /* Chance to gain from Lost Sword quest; if applicable */
+
+ skill_flag_set flags; /* Skill flags */
+
+};