Rewrote scaling, moving away from cmangos solutions

This commit is contained in:
bash
2024-10-13 22:05:39 +00:00
parent 651c5cdfb0
commit 62aef235d1
8 changed files with 90 additions and 113 deletions

View File

@@ -547,9 +547,9 @@ public:
bool HasPlayerNearby(float range = sPlayerbotAIConfig->reactDistance);
bool HasManyPlayersNearby(uint32 trigerrValue = 20, float range = sPlayerbotAIConfig->sightDistance);
ActivePiorityType GetPriorityType(ActivityType activityType);
std::pair<uint32, uint32> GetPriorityBracket(ActivePiorityType type);
bool AllowActive(ActivityType activityType);
bool AllowActivity(ActivityType activityType = ALL_ACTIVITY, bool checkNow = false);
uint32 SmartScaleActivity(ActivePiorityType type, uint32 botActiveAlonePerc);
// Check if player is safe to use.
bool IsSafe(Player* player);