MCPcopy
hub / github.com/FreezingMoon/AncientBeast / getCounterTargetingModifier

Function getCounterTargetingModifier

src/bots/Gumble.ts:450–471  ·  view source on GitHub ↗
(_attacker, target)

Source from the content-addressed store, hash-verified

448 },
449
450 getCounterTargetingModifier(_attacker, target) {
451 const healthRatio = target.health / target.stats.health;
452 let score = 40;
453
454 if (target.abilities[ABILITY.GOOEY_BODY]?.isUpgraded?.()) {
455 score += 110;
456 }
457
458 if (healthRatio < 0.5) {
459 score += 160;
460 }
461
462 if (healthRatio < 0.25) {
463 score += 220;
464 }
465
466 if (healthRatio > 0.8) {
467 score -= 70;
468 }
469
470 return score;
471 },
472
473 getProximityPenalty(_mover, enemy) {
474 const healthRatio = enemy.health / enemy.stats.health;

Callers 5

impaler.tsFile · 0.50
gumble.tsFile · 0.50
cycloper.tsFile · 0.50
stomper.tsFile · 0.50
vehemoth.tsFile · 0.50

Calls 1

isUpgradedMethod · 0.80

Tested by

no test coverage detected