From 4825eb0b1c940f17925eb70fc0155abd4443d4f2 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 12 Dec 2014 23:14:56 +0300 Subject: Add chat command for drop all items in stack with given id. New chat command: /dropitemall ID --- 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 e46935ea2..9d2e64993 100644 --- a/src/input/inputaction.h +++ b/src/input/inputaction.h @@ -501,6 +501,7 @@ namespace InputAction NAVIGATE_TO, CAMERA_MOVE, DROP_ITEM, + DROP_ITEM_ALL, TOTAL }; } // namespace InputAction diff --git a/src/input/inputactionmap.h b/src/input/inputactionmap.h index 8515dad5b..3b0854cfc 100644 --- a/src/input/inputactionmap.h +++ b/src/input/inputactionmap.h @@ -4252,6 +4252,15 @@ static const InputActionData inputActionData[InputAction::TOTAL] = { InputCondition::INGAME, "dropitem", true}, + {"keyDropItemAll", + InputType::UNKNOWN, InputAction::NO_VALUE, + InputType::UNKNOWN, InputAction::NO_VALUE, + Input::GRP_DEFAULT, + &Actions::dropItemIdAll, + InputAction::NO_VALUE, 50, + InputCondition::INGAME, + "dropitemall", + true}, }; #endif // INPUT_INPUTACTIONMAP_H -- cgit v1.2.3-70-g09d2