Skip to content

Commit

Permalink
NPCBots: Make bots cost always step 10 levels instead of 0-40 levels …
Browse files Browse the repository at this point in the history
…range only
  • Loading branch information
trickerer committed Mar 18, 2024
1 parent f7bf682 commit 1b45871
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/game/AI/NpcBots/botmgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1797,7 +1797,7 @@ uint32 BotMgr::GetNpcBotCost(uint8 level, uint8 botclass)
level < 20 ? _npcBotsCost / 100 : //1 gold
level < 30 ? _npcBotsCost / 20 : //5 gold
level < 40 ? _npcBotsCost / 5 : //20 gold
(_npcBotsCost * level) / DEFAULT_MAX_LEVEL; //50 - 100 gold
(_npcBotsCost * (level - (level % 10))) / DEFAULT_MAX_LEVEL; //50 - 100 gold

switch (botclass)
{
Expand Down

0 comments on commit 1b45871

Please sign in to comment.