From 2a9f262e6db5906db445d465e500d7ba8c90fab3 Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 5 May 2021 09:44:50 -0400 Subject: Implemented additional commands --- src/rules.cc | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/rules.cc') 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 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; + } } -- cgit v1.2.3