fix(combat-ai): wander only as often as the movement row's WanderChance

An enemy moved every time its wander timer ran out. The MovementAIComponent
rows give a percent chance (90 or 100) to move each time; enemies with no
row (survival and instance enemies, bosses, behavior spawns) get 0 and now
only move to fight and to return.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Aaron Kimbrell
2026-10-02 08:01:11 -05:00
parent 1068fe904d
commit 3a79286666
2 changed files with 5 additions and 1 deletions

View File

@@ -41,7 +41,7 @@ struct MovementAIInfo {
float wanderSpeed{};
/**
* This is only used for the emotes
* The percent chance to move each time the wander timer runs out
*/
float wanderChance{};