diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-08-26 23:39:49 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-08-26 23:39:49 +0300 |
commit | 8314a1808ff96ec8990c4d9055cad41c05f07dc2 (patch) | |
tree | d541d529516c9624e921d9ad6b5ec418cd69c33f /src/actions | |
parent | 9f39b5c84d0b244e093380e5ad7d53c2a21d2f34 (diff) | |
download | mv-8314a1808ff96ec8990c4d9055cad41c05f07dc2.tar.gz mv-8314a1808ff96ec8990c4d9055cad41c05f07dc2.tar.bz2 mv-8314a1808ff96ec8990c4d9055cad41c05f07dc2.tar.xz mv-8314a1808ff96ec8990c4d9055cad41c05f07dc2.zip |
Move chat command /setdrop into actions.
Diffstat (limited to 'src/actions')
-rw-r--r-- | src/actions/commands.cpp | 6 | ||||
-rw-r--r-- | src/actions/commands.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/actions/commands.cpp b/src/actions/commands.cpp index 80e7493da..018cca54a 100644 --- a/src/actions/commands.cpp +++ b/src/actions/commands.cpp @@ -524,4 +524,10 @@ impHandler(addIgnoreAttack) return true; } +impHandler(setDrop) +{ + GameModifiers::setQuickDropCounter(atoi(event.args.c_str())); + return true; +} + } // namespace Actions diff --git a/src/actions/commands.h b/src/actions/commands.h index 8b02a7322..b171e49e2 100644 --- a/src/actions/commands.h +++ b/src/actions/commands.h @@ -55,6 +55,7 @@ namespace Actions decHandler(addAttack); decHandler(removeAttack); decHandler(addIgnoreAttack); + decHandler(setDrop); } // namespace Actions #undef decHandler |