Skip to content

Commit

Permalink
Merge pull request liyunfan1223#463 from liyunfan1223/rewrite-equip-s…
Browse files Browse the repository at this point in the history
…core2

Rewrite item score calculation for gear initialization
  • Loading branch information
liyunfan1223 authored Aug 11, 2024
2 parents b847417 + 32d2ac5 commit fa7bcba
Show file tree
Hide file tree
Showing 17 changed files with 1,526 additions and 1,149 deletions.
8 changes: 4 additions & 4 deletions conf/playerbots.conf.dist
Original file line number Diff line number Diff line change
Expand Up @@ -519,13 +519,13 @@ AiPlayerbot.MinEnchantingBotLevel = 60

# Enable expansion limitation for enchants - ie: level <= 60 bot only uses enchants
# available in vanilla, level <= 70 bot only uses enchants available in TBC)
# Default: 0
AiPlayerbot.LimitEnchantExpansion = 0
# Default: 1
AiPlayerbot.LimitEnchantExpansion = 1

# Enable expansion limitation for gear - ie: level <= 60 bot only uses gear
# available in vanilla, level <= 70 bot only uses gear available in TBC)
# Default: 0
AiPlayerbot.LimitGearExpansion = 0
# Default: 1
AiPlayerbot.LimitGearExpansion = 1

# Change random bot has lower gear
AiPlayerbot.RandomGearLoweringChance = 0
Expand Down
4 changes: 2 additions & 2 deletions src/PlayerbotAI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1677,7 +1677,7 @@ bool PlayerbotAI::IsTank(Player* player)
switch (player->getClass())
{
case CLASS_DEATH_KNIGHT:
if (tab == DEATHKNIGT_TAB_BLOOD)
if (tab == DEATHKNIGHT_TAB_BLOOD)
{
return true;
}
Expand Down Expand Up @@ -1781,7 +1781,7 @@ bool PlayerbotAI::IsDps(Player* player)
}
break;
case CLASS_DEATH_KNIGHT:
if (tab != DEATHKNIGT_TAB_BLOOD)
if (tab != DEATHKNIGHT_TAB_BLOOD)
{
return true;
}
Expand Down
8 changes: 4 additions & 4 deletions src/PlayerbotAI.h
Original file line number Diff line number Diff line change
Expand Up @@ -233,11 +233,11 @@ enum PRIEST_TABS
PRIEST_TAB_SHADOW,
};

enum DEATHKNIGT_TABS
enum DEATHKNIGHT_TABS
{
DEATHKNIGT_TAB_BLOOD,
DEATHKNIGT_TAB_FROST,
DEATHKNIGT_TAB_UNHOLY,
DEATHKNIGHT_TAB_BLOOD,
DEATHKNIGHT_TAB_FROST,
DEATHKNIGHT_TAB_UNHOLY,
};

enum DRUID_TABS
Expand Down
4 changes: 2 additions & 2 deletions src/PlayerbotAIConfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -343,8 +343,8 @@ bool PlayerbotAIConfig::Initialize()
randombotsWalkingRPG = sConfigMgr->GetOption<bool>("AiPlayerbot.RandombotsWalkingRPG", false);
randombotsWalkingRPGInDoors = sConfigMgr->GetOption<bool>("AiPlayerbot.RandombotsWalkingRPG.InDoors", false);
minEnchantingBotLevel = sConfigMgr->GetOption<int32>("AiPlayerbot.MinEnchantingBotLevel", 60);
limitEnchantExpansion = sConfigMgr->GetOption<int32>("AiPlayerbot.LimitEnchantExpansion", 0);
limitGearExpansion = sConfigMgr->GetOption<int32>("AiPlayerbot.LimitGearExpansion", 0);
limitEnchantExpansion = sConfigMgr->GetOption<int32>("AiPlayerbot.LimitEnchantExpansion", 1);
limitGearExpansion = sConfigMgr->GetOption<int32>("AiPlayerbot.LimitGearExpansion", 1);
randombotStartingLevel = sConfigMgr->GetOption<int32>("AiPlayerbot.RandombotStartingLevel", 5);
enableRotation = sConfigMgr->GetOption<bool>("AiPlayerbot.EnableRotation", false);
rotationPoolSize = sConfigMgr->GetOption<int32>("AiPlayerbot.RotationPoolSize", 500);
Expand Down
Loading

0 comments on commit fa7bcba

Please sign in to comment.