aboutsummaryrefslogtreecommitdiff
path: root/src/rules.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/rules.cc')
-rw-r--r--src/rules.cc33
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"}
+ };
+}