aboutsummaryrefslogtreecommitdiff
path: root/src/rules.h
blob: c1cc6e1b863ba1c1429b3bc888c04ef1ec9d3368 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#pragma once
#include <vector>
#include <map>

using namespace std;

namespace rules {

    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}
                     }}
    };

}