diff options
author | Your Name <you@example.com> | 2021-05-01 15:10:54 -0400 |
---|---|---|
committer | Your Name <you@example.com> | 2021-05-01 15:10:54 -0400 |
commit | 7b5d1e3d46e94262a9c0fd3a01ab4685aea9d12d (patch) | |
tree | d9b808542216f71dbab053ad23145903e96c6401 /src/rules.cc | |
parent | 5a813a75412ac9b8fadb90c9abd46dd95aee8e9b (diff) | |
download | dmtool-7b5d1e3d46e94262a9c0fd3a01ab4685aea9d12d.tar.gz dmtool-7b5d1e3d46e94262a9c0fd3a01ab4685aea9d12d.tar.bz2 dmtool-7b5d1e3d46e94262a9c0fd3a01ab4685aea9d12d.zip |
Added bash completion, amongst others
Diffstat (limited to 'src/rules.cc')
-rw-r--r-- | src/rules.cc | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/rules.cc b/src/rules.cc new file mode 100644 index 0000000..a9ca395 --- /dev/null +++ b/src/rules.cc @@ -0,0 +1,33 @@ +#include "rules.h" + +namespace rules { + const std::map<std::string, std::string> Ability::abilities { + {"str", "Strength"}, + {"dex", "Dexterity"}, + {"con", "Constitution"}, + {"int", "Intelligence"}, + {"wis", "Wisdom"}, + {"cha", "Charisma"} + }; + + const std::map<std::string, std::string> Skill::skill2ability { + {"Athletics", "str"}, + {"Acrobatics", "dex"}, + {"Sleight of Hand", "dex"}, + {"Stealth", "dex"}, + {"Arcana", "int"}, + {"History", "int"}, + {"Investigation", "int"}, + {"Nature", "int"}, + {"Religion", "int"}, + {"Animal Handling", "wis"}, + {"Insight", "wis"}, + {"Medicine", "wis"}, + {"Perception", "wis"}, + {"Survival", "wis"}, + {"Deception", "cha"}, + {"Intimidation", "cha"}, + {"Performance", "cha"}, + {"Persuasion", "cha"} + }; +} |