diff options
author | Your Name <you@example.com> | 2021-04-13 15:14:34 -0400 |
---|---|---|
committer | Your Name <you@example.com> | 2021-04-13 15:14:34 -0400 |
commit | 2ab51e507d620c4479e07ca0ec47d22c8c66bc90 (patch) | |
tree | 90906ecb043c01034280c767b83a88eb6df6956f /src/rules.h | |
download | dmtool-2ab51e507d620c4479e07ca0ec47d22c8c66bc90.tar.gz dmtool-2ab51e507d620c4479e07ca0ec47d22c8c66bc90.tar.bz2 dmtool-2ab51e507d620c4479e07ca0ec47d22c8c66bc90.zip |
Initial commit
Diffstat (limited to 'src/rules.h')
-rw-r--r-- | src/rules.h | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/src/rules.h b/src/rules.h new file mode 100644 index 0000000..d61b176 --- /dev/null +++ b/src/rules.h @@ -0,0 +1,53 @@ +#pragma once +#include <vector> +#include <map> + +using namespace std; + +static vector<string> abilities {"str", "dex", "con", "int", "wis", "cha"}; + +static map<string, string> 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"} +}; + +static map<string, map<string, int>> armor { + {"light", { + {"padded", 11}, + {"leather", 11}, + {"studded leather", 12} + }}, + {"medium", { + {"hide", 12}, + {"chain shirt", 13}, + {"scale mail", 14}, + {"breastplate", 14}, + {"half plate", 15} + }}, + {"heavy", { + {"ring mail", 14}, + {"chain mail", 16}, + {"splint", 17}, + {"plate", 18} + }}, + {"misc", { + {"shield", 2}, + {"ring of protection", 1} + }} +}; |