mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-20 18:10:02 +01:00
Compare commits
2 Commits
e693b208be
...
f874d2c79e
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f874d2c79e | ||
|
|
5a4acbe36c |
@ -57,7 +57,7 @@ void LoadListString(std::string const value, T& list)
|
|||||||
|
|
||||||
bool PlayerbotAIConfig::Initialize()
|
bool PlayerbotAIConfig::Initialize()
|
||||||
{
|
{
|
||||||
LOG_INFO("server.loading", "Initializing mod-playerbots, based on AI Playerbots by ike and the original Playerbots by blueboy");
|
LOG_INFO("server.loading", "Initializing mod-playerbots, based on AI Playerbots by ike3 and the original Playerbots by blueboy");
|
||||||
|
|
||||||
enabled = sConfigMgr->GetOption<bool>("AiPlayerbot.Enabled", true);
|
enabled = sConfigMgr->GetOption<bool>("AiPlayerbot.Enabled", true);
|
||||||
if (!enabled)
|
if (!enabled)
|
||||||
|
|||||||
@ -102,7 +102,7 @@ std::vector<CreatureData const*> BgMastersValue::Calculate()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return std::move(bmGuids);
|
return bmGuids;
|
||||||
}
|
}
|
||||||
|
|
||||||
CreatureData const* BgMasterValue::Calculate()
|
CreatureData const* BgMasterValue::Calculate()
|
||||||
@ -120,7 +120,7 @@ CreatureData const* BgMasterValue::NearestBm(bool allowDead)
|
|||||||
|
|
||||||
std::vector<CreatureData const*> bmPairs = AI_VALUE2(std::vector<CreatureData const*>, "bg masters", qualifier);
|
std::vector<CreatureData const*> bmPairs = AI_VALUE2(std::vector<CreatureData const*>, "bg masters", qualifier);
|
||||||
|
|
||||||
float rDist;
|
float rDist = 0.0f;
|
||||||
CreatureData const* rbmPair = nullptr;
|
CreatureData const* rbmPair = nullptr;
|
||||||
|
|
||||||
for (auto& bmPair : bmPairs)
|
for (auto& bmPair : bmPairs)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user