diff options
author | Your Name <you@example.com> | 2021-05-18 16:26:49 -0400 |
---|---|---|
committer | Your Name <you@example.com> | 2021-05-18 16:26:49 -0400 |
commit | 38e33d8756a5b652965be8ada478b5c4238b857c (patch) | |
tree | d4e3b166103c4c0cc8d3a4ed963333a2982bb366 /src/dmtool.cc | |
parent | e044fc4255aa64ef1dbc3d20ed87ed6e2f61a6bd (diff) | |
download | dmtool-38e33d8756a5b652965be8ada478b5c4238b857c.tar.gz dmtool-38e33d8756a5b652965be8ada478b5c4238b857c.tar.bz2 dmtool-38e33d8756a5b652965be8ada478b5c4238b857c.zip |
Added spellcasting command
Diffstat (limited to 'src/dmtool.cc')
-rw-r--r-- | src/dmtool.cc | 2 |
1 files changed, 2 insertions, 0 deletions
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<std::string, std::vector<int>> nargs({ {"attacks", {1}}, {"damage", {2, 3}}, {"heal", {2}}, + {"spellcasting", {2, 3, 4}}, }); void checkArgs(std::string cmd, std::vector<std::string> 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) { |