summaryrefslogtreecommitdiff
path: root/src/skill_type.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/skill_type.hpp')
-rw-r--r--src/skill_type.hpp49
1 files changed, 22 insertions, 27 deletions
diff --git a/src/skill_type.hpp b/src/skill_type.hpp
index c6de1dc1..c26d8649 100644
--- a/src/skill_type.hpp
+++ b/src/skill_type.hpp
@@ -1,37 +1,32 @@
#pragma once
#include "h-basic.h"
+#include "skill_flag_set.hpp"
#include "skills_defs.hpp"
+#include "skill_descriptor.hpp"
/**
- * Skill descriptors and runtime data.
+ * Skill runtime data.
*/
struct skill_type
{
- const char *name; /* Name */
- char *desc; /* Description */
-
- const char *action_desc; /* Action Description */
-
- s16b action_mkey; /* Action do to */
-
- s32b i_value; /* Actual value */
- s32b i_mod; /* Modifier(1 skill point = modifier skill) */
-
- s32b value; /* Actual value */
- s32b mod; /* Modifier(1 skill point = modifier skill) */
- s16b rate; /* Modifier decreasing rate */
-
- u32b uses; /* Number of times used */
-
- s16b action[MAX_SKILLS]; /* List of actions against other skills */
-
- s16b father; /* Father in the skill tree */
- bool_ dev; /* Is the branch developped ? */
- s16b order; /* Order in the tree */
- bool_ hidden; /* Innactive */
-
- byte random_gain_chance; /* random gain chance, still needs the flag */
-
- u32b flags1; /* Skill flags */
+ /**
+ * Current value.
+ */
+ s32b value = 0;
+
+ /**
+ * Current modifier, i.e. how much value 1 skill point gives.
+ */
+ s32b mod = 0;
+
+ /**
+ * Is the branch developed?
+ */
+ bool dev = false;
+
+ /**
+ * Is the skill hidden?
+ */
+ bool hidden = false;
};