diff options
author | Bardur Arantsson <bardur@scientician.net> | 2016-10-05 18:45:08 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2016-10-05 18:49:37 +0200 |
commit | 765e1a3dc7abce3a849b8d1f124ada7a6984154a (patch) | |
tree | 0a4530d2091f05b70638f2eb833ae9b7238e4927 /src/skill_descriptor.hpp | |
parent | 5869c5622e4345ffd50e0713d188f2d283b61caa (diff) |
Move s_{info,descriptors} to Game/GameEdtiData
Diffstat (limited to 'src/skill_descriptor.hpp')
-rw-r--r-- | src/skill_descriptor.hpp | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/src/skill_descriptor.hpp b/src/skill_descriptor.hpp index 687597da..8d9de004 100644 --- a/src/skill_descriptor.hpp +++ b/src/skill_descriptor.hpp @@ -1,24 +1,31 @@ #pragma once -#include "skill_descriptor_fwd.hpp" - #include "h-basic.h" #include "skill_flag_set.hpp" #include "skills_defs.hpp" +#include <vector> +#include <tuple> + /** * Skill descriptor. */ struct skill_descriptor { - const char *name = nullptr; /* Name */ - char *desc = nullptr; /* Description */ - - const char *action_desc = nullptr; /* Action Description */ + std::string name; /* Name */ + std::string desc; /* Description */ + std::string action_desc; /* Action Description */ s16b action_mkey = 0; /* Action do to */ - s16b action[MAX_SKILLS] = { 0 }; /* List of actions against other skills */ + std::vector<std::size_t> excludes; /* List of skills that this skill excludes; + any skill points assigned completely nullify + the listed skills */ + + std::vector<std::tuple<std::size_t, int>> increases; + /* List of skills the this skill increases, + along with the modifier that gets applied. + The first tuple element is the skill index. */ s16b father = 0; /* Father in the skill tree */ s16b order = 0; /* Order in the tree */ |