diff options
Diffstat (limited to 'src/actions/commands.cpp')
-rw-r--r-- | src/actions/commands.cpp | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/actions/commands.cpp b/src/actions/commands.cpp index 114144477..b57883841 100644 --- a/src/actions/commands.cpp +++ b/src/actions/commands.cpp @@ -1154,4 +1154,40 @@ impHandler(npcClipboard) return false; } +impHandler(addPickup) +{ + if (actorManager) + { + actorManager->addPickupItem(event.args); + if (socialWindow) + socialWindow->updatePickupFilter(); + return true; + } + return false; +} + +impHandler(removePickup) +{ + if (actorManager) + { + actorManager->removePickupItem(event.args); + if (socialWindow) + socialWindow->updatePickupFilter(); + return true; + } + return false; +} + +impHandler(ignorePickup) +{ + if (actorManager) + { + actorManager->addIgnorePickupItem(event.args); + if (socialWindow) + socialWindow->updatePickupFilter(); + return true; + } + return false; +} + } // namespace Actions |