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/dmtool.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/dmtool.cc') diff --git a/src/dmtool.cc b/src/dmtool.cc index 90f7813..e84630b 100644 --- a/src/dmtool.cc +++ b/src/dmtool.cc @@ -9,6 +9,7 @@ const std::map> nargs({ {"cp", {2}}, {"mv", {2}}, {"attacks", {1}}, + {"attack", {3}}, {"damage", {2, 3}}, {"heal", {2}}, {"spellcasting", {2, 3, 4}}, @@ -64,6 +65,7 @@ int main(int argc, char *argv[]) { else if(cmd == "rm") std::cout << cmd::rm(args); else if(cmd == "attacks") std::cout << cmd::attacks(args); else if(cmd == "roll") std::cout << cmd::roll(args); + else if(cmd == "attack") std::cout << cmd::attack(args, flags); else if(cmd == "damage") std::cout << cmd::damage(args, flags); else if(cmd == "heal") std::cout << cmd::heal(args); else if(cmd == "reset") std::cout << cmd::reset(args); -- cgit v1.2.3