diff options
author | Your Name <you@example.com> | 2022-01-16 21:32:01 -0500 |
---|---|---|
committer | Your Name <you@example.com> | 2022-01-16 21:32:01 -0500 |
commit | d0e356d09e30a11c1e072415a5088f829d5c0a04 (patch) | |
tree | 1e64d37b9b424cd74c30ad4c8225828c7a76874e /src/rules.cc | |
parent | 3f78a7e1647ba94129236bd2bf4fc855c109628a (diff) | |
download | dmtool-d0e356d09e30a11c1e072415a5088f829d5c0a04.tar.gz dmtool-d0e356d09e30a11c1e072415a5088f829d5c0a04.tar.bz2 dmtool-d0e356d09e30a11c1e072415a5088f829d5c0a04.zip |
Worked on features
Diffstat (limited to 'src/rules.cc')
-rw-r--r-- | src/rules.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/rules.cc b/src/rules.cc index 96d9a51..900d023 100644 --- a/src/rules.cc +++ b/src/rules.cc @@ -37,6 +37,8 @@ namespace rules { {"non-adamantine", "adamantine"} }; + const std::set<std::string> Condition::conditions {"blinded", "charmed", "deafened", "frightened", "grappled", "incapacitated", "invisible", "paralyzed", "petrified", "poisoned", "prone", "restrained", "stunned", "unconscious", "exhausted1", "exhausted2", "exhausted3", "exhausted4", "exhausted5", "exhausted6"}; + std::ostream& operator<<(std::ostream& os, const Ability& a) { os << std::string(a); return os; @@ -51,4 +53,9 @@ namespace rules { os << std::string(q); return os; } + + std::ostream& operator<<(std::ostream& os, const Condition& c) { + os << std::string(c); + return os; + } } |