From 38e33d8756a5b652965be8ada478b5c4238b857c Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 18 May 2021 16:26:49 -0400 Subject: Added spellcasting command --- 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 3c5d3a1..f4fe19c 100644 --- a/src/dmtool.cc +++ b/src/dmtool.cc @@ -11,6 +11,7 @@ const std::map> nargs({ {"attacks", {1}}, {"damage", {2, 3}}, {"heal", {2}}, + {"spellcasting", {2, 3, 4}}, }); void checkArgs(std::string cmd, std::vector args) { @@ -69,6 +70,7 @@ int main(int argc, char *argv[]) { else if(cmd == "add") std::cout << cmd::add(args); else if(cmd == "del") std::cout << cmd::del(args); else if(cmd == "edit") std::cout << cmd::edit(args); + else if(cmd == "spellcasting") std::cout << cmd::spellcasting(args); else if(cmd == "help") std::cout << cmd::usage(exename); else std::cout << cmd::list(argsOrig); } catch(std::exception& e) { -- cgit v1.2.3