Skip to content

Commit

Permalink
AI chat: Added correct expansion names for prompts
Browse files Browse the repository at this point in the history
  • Loading branch information
mostlikely4r committed Nov 18, 2024
1 parent fc5ef00 commit 1a8fbe5
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion playerbot/strategy/actions/SayAction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,15 @@ void ChatReplyAction::ChatReplyDo(Player* bot, uint32 type, uint32 guid1, uint32
placeholders["<bot class>"] = ai->GetChatHelper()->formatClass(bot->getClass());
placeholders["<bot race>"] = ai->GetChatHelper()->formatRace(bot->getRace());
placeholders["<player name>"] = player->GetName();
placeholders["<expansion name>"] = "Wrath of the Lichking";
#ifdef MANGOSBOT_ZERO
placeholders["<expansion name>"] = "Vanilla";
#endif
#ifdef MANGOSBOT_ONE
placeholders["<expansion name>"] = "The Burning Crusade";
#endif
#ifdef MANGOSBOT_TWO
placeholders["<expansion name>"] = "Wrath of the Lich King";
#endif
placeholders["<player message>"] = msg;

std::map<std::string, std::string> jsonFill;
Expand Down

0 comments on commit 1a8fbe5

Please sign in to comment.