Combat Policy: Tactical Completed

- Added Normal / Reverse Button

Tactical targets the strongest threat, while Reverse targets the weakest ones
This commit is contained in:
Kam committed 2024-03-13 20:02:38 -04:00
1 parent d8f320f79c
commit b17d95edde
4 files changed
+19 -3

No files matched your search

@@ -572,7 +572,7 @@ public abstract class EntityNPCInterface extends EntityCreature implements IEnti
}
break;
case Tactical:
if (attackingEntity != getAttackTarget() && combatHandler.shouldSwitchTactically(getAttackTarget(), attackingEntity)) {
if (attackingEntity != getAttackTarget() && combatHandler.shouldSwitchTactically(getAttackTarget(), attackingEntity, ai.tacticalChance > 50)) {
setAttackTarget(attackingEntity);
}
break;