diff options
author | Your Name <you@example.com> | 2021-04-19 13:46:14 -0400 |
---|---|---|
committer | Your Name <you@example.com> | 2021-04-19 13:46:14 -0400 |
commit | 2cae1aa33f80ce0844fb54a84ce103146a7fe7ad (patch) | |
tree | 26945223a2672c5a80975a7b1998622da6edcc28 /src/rules.h | |
parent | 4618763c0e3a723bf4bb43c7b9edbce87240e0af (diff) | |
download | dmtool-2cae1aa33f80ce0844fb54a84ce103146a7fe7ad.tar.gz dmtool-2cae1aa33f80ce0844fb54a84ce103146a7fe7ad.tar.bz2 dmtool-2cae1aa33f80ce0844fb54a84ce103146a7fe7ad.zip |
Started earnest work on cli
Diffstat (limited to 'src/rules.h')
-rw-r--r-- | src/rules.h | 88 |
1 files changed, 46 insertions, 42 deletions
diff --git a/src/rules.h b/src/rules.h index d61b176..c1cc6e1 100644 --- a/src/rules.h +++ b/src/rules.h @@ -4,50 +4,54 @@ using namespace std; -static vector<string> abilities {"str", "dex", "con", "int", "wis", "cha"}; +namespace rules { -static map<string, string> skill2ability { + 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"} -}; + {"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 { + 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} + {"padded", 11}, + {"leather", 11}, + {"studded leather", 12} }}, - {"misc", { - {"shield", 2}, - {"ring of protection", 1} - }} -}; + {"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} + }} + }; + +} |