summaryrefslogtreecommitdiff
path: root/src/actions
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-26 23:39:49 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-26 23:39:49 +0300
commit8314a1808ff96ec8990c4d9055cad41c05f07dc2 (patch)
treed541d529516c9624e921d9ad6b5ec418cd69c33f /src/actions
parent9f39b5c84d0b244e093380e5ad7d53c2a21d2f34 (diff)
downloadmv-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.cpp6
-rw-r--r--src/actions/commands.h1
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