From 055f549dbd64ffc53b98c2a11038d635b480204c Mon Sep 17 00:00:00 2001 From: avirar Date: Thu, 3 Oct 2024 12:41:44 +1000 Subject: [PATCH] Update ChatCommandHandlerStrategy.cpp Added OpenItem chat command handling --- src/strategy/generic/ChatCommandHandlerStrategy.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/strategy/generic/ChatCommandHandlerStrategy.cpp b/src/strategy/generic/ChatCommandHandlerStrategy.cpp index 58db48f5..e88ac5bb 100644 --- a/src/strategy/generic/ChatCommandHandlerStrategy.cpp +++ b/src/strategy/generic/ChatCommandHandlerStrategy.cpp @@ -92,6 +92,8 @@ void ChatCommandHandlerStrategy::InitTriggers(std::vector& trigger new TriggerNode("dps", NextAction::array(0, new NextAction("tell estimated dps", relevance), NULL))); triggers.push_back( new TriggerNode("disperse", NextAction::array(0, new NextAction("disperse set", relevance), NULL))); + triggers.push_back( + new TriggerNode("open items", NextAction::array(0, new NextAction("open items", relevance), nullptr))); } ChatCommandHandlerStrategy::ChatCommandHandlerStrategy(PlayerbotAI* botAI) : PassTroughStrategy(botAI) @@ -164,4 +166,5 @@ ChatCommandHandlerStrategy::ChatCommandHandlerStrategy(PlayerbotAI* botAI) : Pas supported.push_back("rtsc"); supported.push_back("drink"); supported.push_back("calc"); + supported.push_back("open items"); }