diff options
author | Your Name <you@example.com> | 2021-05-05 09:44:50 -0400 |
---|---|---|
committer | Your Name <you@example.com> | 2021-05-05 09:44:50 -0400 |
commit | 2a9f262e6db5906db445d465e500d7ba8c90fab3 (patch) | |
tree | 34f850754b0c9114ede9d7b2bb8da90dffddc4fe /src/rules.cc | |
parent | 8614137f7f32f2c9f3c11419110cd70dd7f3b505 (diff) | |
download | dmtool-2a9f262e6db5906db445d465e500d7ba8c90fab3.tar.gz dmtool-2a9f262e6db5906db445d465e500d7ba8c90fab3.tar.bz2 dmtool-2a9f262e6db5906db445d465e500d7ba8c90fab3.zip |
Implemented additional commands
Diffstat (limited to 'src/rules.cc')
-rw-r--r-- | src/rules.cc | 11 |
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; + } } |