diff options
Diffstat (limited to 'src/actions/commands.cpp')
-rw-r--r-- | src/actions/commands.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/actions/commands.cpp b/src/actions/commands.cpp index bb174cb07..78a0df060 100644 --- a/src/actions/commands.cpp +++ b/src/actions/commands.cpp @@ -686,4 +686,18 @@ impHandler(hack) return true; } +impHandler0(debugSpawn) +{ + int cnt = atoi(event.args.c_str()); + if (cnt < 1) + cnt = 1; + const int half = cnt / 2; + for (int x = -half; x < cnt - half; x ++) + { + for (int y = -half; y < cnt - half; y ++) + actorManager->cloneBeing(localPlayer, x, y, cnt); + } + return true; +} + } // namespace Actions |