mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-13 00:58:33 +00:00
Convert PlayerbotsXPRate to RandomBotXPRate (#1313)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user