summaryrefslogtreecommitdiff
path: root/src/input
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-13 15:11:52 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-13 15:11:52 +0300
commitdff25ba3ef8724b4f26f978df27dec1e337ce23c (patch)
tree551e6347567274685513076252f2eb8ca8bdd923 /src/input
parentf5d2d18e9d965e8341ee806293c4d5eb4963a019 (diff)
downloadmanaverse-dff25ba3ef8724b4f26f978df27dec1e337ce23c.tar.gz
manaverse-dff25ba3ef8724b4f26f978df27dec1e337ce23c.tar.bz2
manaverse-dff25ba3ef8724b4f26f978df27dec1e337ce23c.tar.xz
manaverse-dff25ba3ef8724b4f26f978df27dec1e337ce23c.zip
Add chat command for move all except 1 items from inventory to storage.
New command: /invtostorageall1 INDEX Alias: /invstorageall1 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 2cbfe8ab1..044df1ab1 100644
--- a/src/input/inputaction.h
+++ b/src/input/inputaction.h
@@ -508,6 +508,7 @@ namespace InputAction
INV_TO_STORAGE,
INV_TO_STORAGE_10,
INV_TO_STORAGE_HALF,
+ INV_TO_STORAGE_ALL_1,
TOTAL
};
} // namespace InputAction
diff --git a/src/input/inputactionmap.h b/src/input/inputactionmap.h
index 03a199e38..f8427e397 100644
--- a/src/input/inputactionmap.h
+++ b/src/input/inputactionmap.h
@@ -4315,6 +4315,15 @@ static const InputActionData inputActionData[InputAction::TOTAL] = {
InputCondition::INGAME,
"invtostoragehalf|invstoragehalf",
true},
+ {"keyInvToStorageAll1",
+ InputType::UNKNOWN, InputAction::NO_VALUE,
+ InputType::UNKNOWN, InputAction::NO_VALUE,
+ Input::GRP_DEFAULT,
+ &Actions::invToStorageAll1,
+ InputAction::NO_VALUE, 50,
+ InputCondition::INGAME,
+ "invtostorageall1|invstorageall1",
+ true},
};
#endif // INPUT_INPUTACTIONMAP_H