From 7b5d1e3d46e94262a9c0fd3a01ab4685aea9d12d Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 1 May 2021 15:10:54 -0400 Subject: Added bash completion, amongst others --- src/rules.cc | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 src/rules.cc (limited to 'src/rules.cc') 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 Ability::abilities { + {"str", "Strength"}, + {"dex", "Dexterity"}, + {"con", "Constitution"}, + {"int", "Intelligence"}, + {"wis", "Wisdom"}, + {"cha", "Charisma"} + }; + + const std::map 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"} + }; +} -- cgit v1.2.3