Tweaked a few bot things...

This commit is contained in:
Uleat 2019-12-09 22:01:50 -05:00
parent e306e9ad0c
commit ab35c3ed90
2 changed files with 9 additions and 8 deletions

View File

@ -2456,8 +2456,7 @@ void Bot::SetHoldMode() {
} }
// AI Processing for the Bot object // AI Processing for the Bot object
void Bot::AI_Process()
{
constexpr float MAX_CASTER_DISTANCE[PLAYER_CLASS_COUNT] = { constexpr float MAX_CASTER_DISTANCE[PLAYER_CLASS_COUNT] = {
0, (34 * 34), (24 * 24), (28 * 28), (26 * 26), (42 * 42), 0, 0, 0, (38 * 38), (54 * 54), (48 * 48), (52 * 52), (50 * 50), (30 * 30), 0 0, (34 * 34), (24 * 24), (28 * 28), (26 * 26), (42 * 42), 0, 0, 0, (38 * 38), (54 * 54), (48 * 48), (52 * 52), (50 * 50), (30 * 30), 0
// W C P R S D M B R S N W M E B B // W C P R S D M B R S N W M E B B
@ -2465,6 +2464,8 @@ void Bot::AI_Process()
// R R L G D U K D G M C Z G C T R // R R L G D U K D G M C Z G C T R
}; };
void Bot::AI_Process()
{
#define TEST_COMBATANTS() if (!GetTarget() || GetAppearance() == eaDead) { return; } #define TEST_COMBATANTS() if (!GetTarget() || GetAppearance() == eaDead) { return; }
#define PULLING_BOT (GetPullingFlag() || GetReturningFlag()) #define PULLING_BOT (GetPullingFlag() || GetReturningFlag())
#define NOT_PULLING_BOT (!GetPullingFlag() && !GetReturningFlag()) #define NOT_PULLING_BOT (!GetPullingFlag() && !GetReturningFlag())

View File

@ -3227,7 +3227,7 @@ void bot_command_follow(Client *c, const Seperator *sep)
if (!optional_arg.compare("chain")) { if (!optional_arg.compare("chain")) {
auto chain_count = helper_bot_follow_option_chain(c); auto chain_count = helper_bot_follow_option_chain(c);
c->Message(m_action, "%i of your bot%s are now chain following", chain_count, (chain_count == 1 ? "" : "s")); c->Message(m_action, "%i of your bots %s now chain following you", chain_count, (chain_count == 1 ? "is" : "are"));
return; return;
} }