Convert PlayerbotsXPRate to RandomBotXPRate (#1313)

This commit is contained in:
Yunfan Li
2025-05-19 01:34:17 +08:00
committed by GitHub
parent e1a8bd66c5
commit c5b185455c
5 changed files with 14 additions and 12 deletions

View File

@@ -40,15 +40,15 @@ bool XpGainAction::Execute(Event event)
BroadcastHelper::BroadcastKill(botAI, bot, creature);
}
// playerbotsXPrate is now implemented in OnPlayerGiveXP script
// if (!sRandomPlayerbotMgr->IsRandomBot(bot) || sPlayerbotAIConfig->playerbotsXPrate == 1)
// randomBotXPRate is now implemented in OnPlayerGiveXP script
// if (!sRandomPlayerbotMgr->IsRandomBot(bot) || sPlayerbotAIConfig->randomBotXPRate == 1)
// return true;
// Unit* victim = nullptr;
// if (guid)
// victim = botAI->GetUnit(guid);
// xpgain = xpgain * (sPlayerbotAIConfig->playerbotsXPrate - 1);
// xpgain = xpgain * (sPlayerbotAIConfig->randomBotXPRate - 1);
// GiveXP(xpgain, victim);
return true;