From 52b91a1aca6640b1797a63afc8a9e9a778b0964a Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 25 Dec 2021 16:52:34 -0500 Subject: Added capability to cause two npcs to attack each other --- src/cmd.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/cmd.h') diff --git a/src/cmd.h b/src/cmd.h index b5d3d72..41973ad 100644 --- a/src/cmd.h +++ b/src/cmd.h @@ -19,6 +19,7 @@ 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 reset(std::vector args); std::string set(std::vector args); std::string add(std::vector args); @@ -36,4 +37,7 @@ namespace cmd { // Not idempotent: only do once! std::filesystem::path getTruePath(std::filesystem::path virtPath); std::vector getVirtDirs(void); + + // Helper functions + std::string formatRoll(std::string name, std::string type, int rolled, int bonus); } -- cgit v1.2.3