From b002d846243676990503aa0fa7c220e8a8e66de2 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 13 Dec 2014 15:00:41 +0300 Subject: Add chat command for move half items from inventory to storage. New command: /invtostoragehalf INDEX Alias: /invstoragehalf INDEX --- src/input/inputaction.h | 1 + src/input/inputactionmap.h | 9 +++++++++ 2 files changed, 10 insertions(+) (limited to 'src/input') diff --git a/src/input/inputaction.h b/src/input/inputaction.h index 774053226..2cbfe8ab1 100644 --- a/src/input/inputaction.h +++ b/src/input/inputaction.h @@ -507,6 +507,7 @@ namespace InputAction USE_INV, INV_TO_STORAGE, INV_TO_STORAGE_10, + INV_TO_STORAGE_HALF, TOTAL }; } // namespace InputAction diff --git a/src/input/inputactionmap.h b/src/input/inputactionmap.h index 794fcb97d..03a199e38 100644 --- a/src/input/inputactionmap.h +++ b/src/input/inputactionmap.h @@ -4306,6 +4306,15 @@ static const InputActionData inputActionData[InputAction::TOTAL] = { InputCondition::INGAME, "invtostorage10|invstorage10", true}, + {"keyInvToStorageHalf", + InputType::UNKNOWN, InputAction::NO_VALUE, + InputType::UNKNOWN, InputAction::NO_VALUE, + Input::GRP_DEFAULT, + &Actions::invToStorageHalf, + InputAction::NO_VALUE, 50, + InputCondition::INGAME, + "invtostoragehalf|invstoragehalf", + true}, }; #endif // INPUT_INPUTACTIONMAP_H -- cgit v1.2.3-60-g2f50