diff options
author | Bardur Arantsson <bardur@scientician.net> | 2016-09-17 09:58:14 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2016-09-17 09:58:14 +0200 |
commit | 1e045ed09258e6c7fff63ef829759c6c8f06f441 (patch) | |
tree | 89a8737e5d33ccf2723a199efdf0aa8eb2d175e4 /src/skill_descriptor.hpp | |
parent | 86fba667d4aaf01b0efc47e26b8e482f13349038 (diff) |
Separate skill values from skill descriptions
Diffstat (limited to 'src/skill_descriptor.hpp')
-rw-r--r-- | src/skill_descriptor.hpp | 30 |
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 */ + +}; |