summaryrefslogtreecommitdiff
path: root/src/input
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-13 14:16:17 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-13 14:16:17 +0300
commit4729d390af864d7f4614ca76ab74dc2cd7e7c1ae (patch)
treec165aacdf9eb15ea2156d1ccd1b2572f38a3f9b3 /src/input
parentd4c3c93c3829c26860841eaf169ba9801bf3760b (diff)
downloadmv-4729d390af864d7f4614ca76ab74dc2cd7e7c1ae.tar.gz
mv-4729d390af864d7f4614ca76ab74dc2cd7e7c1ae.tar.bz2
mv-4729d390af864d7f4614ca76ab74dc2cd7e7c1ae.tar.xz
mv-4729d390af864d7f4614ca76ab74dc2cd7e7c1ae.zip
Add chat command for move item from inventory to storage.
New command: /invtostorage INDEX Alias: /invstorage INDEX
Diffstat (limited to 'src/input')
-rw-r--r--src/input/inputaction.h1
-rw-r--r--src/input/inputactionmap.h9
2 files changed, 10 insertions, 0 deletions
diff --git a/src/input/inputaction.h b/src/input/inputaction.h
index 12f989a07..dc63508d3 100644
--- a/src/input/inputaction.h
+++ b/src/input/inputaction.h
@@ -505,6 +505,7 @@ namespace InputAction
DROP_INV,
DROP_INV_ALL,
USE_INV,
+ INV_TO_STORAGE,
TOTAL
};
} // namespace InputAction
diff --git a/src/input/inputactionmap.h b/src/input/inputactionmap.h
index b27b9755a..b23032728 100644
--- a/src/input/inputactionmap.h
+++ b/src/input/inputactionmap.h
@@ -4288,6 +4288,15 @@ static const InputActionData inputActionData[InputAction::TOTAL] = {
InputCondition::INGAME,
"useinv",
true},
+ {"keyInvToStorage",
+ InputType::UNKNOWN, InputAction::NO_VALUE,
+ InputType::UNKNOWN, InputAction::NO_VALUE,
+ Input::GRP_DEFAULT,
+ &Actions::invToStorage,
+ InputAction::NO_VALUE, 50,
+ InputCondition::INGAME,
+ "invtostorage|invstorage",
+ true},
};
#endif // INPUT_INPUTACTIONMAP_H