Rewrite bot texts

This commit is contained in:
郑佩茹
2022-09-26 17:20:59 -06:00
parent 660fd2a0c1
commit b2821d7f3a
18 changed files with 1163 additions and 320 deletions

View File

@@ -6,6 +6,7 @@
#include "Event.h"
#include "Playerbots.h"
#include "ServerFacade.h"
#include "PlayerbotTextMgr.h"
std::map<std::string, uint32> EmoteActionBase::emotes;
std::map<std::string, uint32> EmoteActionBase::textEmotes;
@@ -778,7 +779,7 @@ bool EmoteAction::isUseful()
return false;
time_t lastEmote = AI_VALUE2(time_t, "last emote", qualifier);
return (time(nullptr) - lastEmote) >= sPlayerbotAIConfig->repeatDelay / 1000;
return time(nullptr) >= lastEmote;
}
bool TalkAction::Execute(Event event)