diff options
author | Bardur Arantsson <bardur@scientician.net> | 2015-06-07 17:49:09 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2015-06-07 17:49:09 +0200 |
commit | c8a270e51dc22f39ed048ab1cc609e6e456df58f (patch) | |
tree | 6d6a7d2338abdbecbb1351e2c9cbf9b08b42b6bc /src/skill_type.hpp | |
parent | dcb193fabc7af4776bdf0d31045f6801fa18000e (diff) |
Split types.h into separate header for each type
Diffstat (limited to 'src/skill_type.hpp')
-rw-r--r-- | src/skill_type.hpp | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/src/skill_type.hpp b/src/skill_type.hpp new file mode 100644 index 00000000..c6de1dc1 --- /dev/null +++ b/src/skill_type.hpp @@ -0,0 +1,37 @@ +#pragma once + +#include "h-basic.h" +#include "skills_defs.hpp" + +/** + * Skill descriptors and 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 */ +}; |