From 3f78a7e1647ba94129236bd2bf4fc855c109628a Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 3 Jan 2022 16:25:45 -0500 Subject: Added command to force a saving throw --- src/cmd.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/cmd.h') diff --git a/src/cmd.h b/src/cmd.h index 41973ad..978f6db 100644 --- a/src/cmd.h +++ b/src/cmd.h @@ -1,7 +1,9 @@ #pragma once #include +#include #include #include +#include "rules.h" namespace cmd { // Corresponds to commands @@ -18,8 +20,9 @@ namespace cmd { // Manipulators std::string heal(std::vector args); - std::string damage(std::vector args, std::vector flags); - std::string attack(std::vector args, std::vector flags); + std::string damage(std::vector args, std::map flags); + std::string attack(std::vector args, std::map flags); + std::string save(std::vector args, std::map flags); std::string reset(std::vector args); std::string set(std::vector args); std::string add(std::vector args); @@ -40,4 +43,5 @@ namespace cmd { // Helper functions std::string formatRoll(std::string name, std::string type, int rolled, int bonus); + std::vector parseQualifiers(std::map flags); } -- cgit v1.2.3