#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"} }; std::ostream& operator<<(std::ostream& os, const Ability& a) { os << std::string(a); return os; } std::ostream& operator<<(std::ostream& os, const Skill& s) { os << std::string(s); return os; } }