mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-13 00:58:33 +00:00
Food cheat fixes (#1594)
* - Fixed bug with InitFood and food cheat - Fixed food cheat description in config * - Fixed bug with initself command
This commit is contained in:
@@ -492,7 +492,7 @@ AiPlayerbot.AutoGearQualityLimit = 3
|
|||||||
AiPlayerbot.AutoGearScoreLimit = 0
|
AiPlayerbot.AutoGearScoreLimit = 0
|
||||||
|
|
||||||
# Enable/Disable cheats for bots
|
# Enable/Disable cheats for bots
|
||||||
# "food" (bots use cheat when eat or drink)
|
# "food" (bots eat or drink without using food or drinks from their inventory)
|
||||||
# "gold" (bots have infinite gold)
|
# "gold" (bots have infinite gold)
|
||||||
# "health" (bots have infinite health)
|
# "health" (bots have infinite health)
|
||||||
# "mana" (bots have infinite mana)
|
# "mana" (bots have infinite mana)
|
||||||
|
|||||||
@@ -3244,7 +3244,7 @@ std::vector<uint32> PlayerbotFactory::GetCurrentGemsCount()
|
|||||||
|
|
||||||
void PlayerbotFactory::InitFood()
|
void PlayerbotFactory::InitFood()
|
||||||
{
|
{
|
||||||
if (!botAI->HasCheat(BotCheatMask::food))
|
if (botAI && botAI->HasCheat(BotCheatMask::food))
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user