aboutsummaryrefslogtreecommitdiff
path: root/src/rules.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/rules.cc')
-rw-r--r--src/rules.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/rules.cc b/src/rules.cc
index 15dcb34..96d9a51 100644
--- a/src/rules.cc
+++ b/src/rules.cc
@@ -31,6 +31,12 @@ namespace rules {
{"Persuasion", "cha"}
};
+ const std::map<std::string, std::string> Qualifier::negative2positive {
+ {"nonmagical", "magical"},
+ {"non-silvered", "silvered"},
+ {"non-adamantine", "adamantine"}
+ };
+
std::ostream& operator<<(std::ostream& os, const Ability& a) {
os << std::string(a);
return os;
@@ -40,4 +46,9 @@ namespace rules {
os << std::string(s);
return os;
}
+
+ std::ostream& operator<<(std::ostream& os, const Qualifier& q) {
+ os << std::string(q);
+ return os;
+ }
}