aboutsummaryrefslogtreecommitdiff
path: root/src/dmtool.cc
diff options
context:
space:
mode:
authorYour Name <you@example.com>2021-12-25 16:52:34 -0500
committerYour Name <you@example.com>2021-12-25 16:52:34 -0500
commit52b91a1aca6640b1797a63afc8a9e9a778b0964a (patch)
tree0cfb8ebe6a0a511607b3acc6c67228b796cd9c90 /src/dmtool.cc
parentd8d1056af0383f0ef67c6d70d1594bcb430d7281 (diff)
downloaddmtool-52b91a1aca6640b1797a63afc8a9e9a778b0964a.tar.gz
dmtool-52b91a1aca6640b1797a63afc8a9e9a778b0964a.tar.bz2
dmtool-52b91a1aca6640b1797a63afc8a9e9a778b0964a.zip
Added capability to cause two npcs to attack each other
Diffstat (limited to 'src/dmtool.cc')
-rw-r--r--src/dmtool.cc2
1 files changed, 2 insertions, 0 deletions
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<std::string, std::vector<int>> 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);