From f7716c7d42abf9706c6570cefc8bf7ca21245799 Mon Sep 17 00:00:00 2001
From: FloPinguin <25036848+FloPinguin@users.noreply.github.com>
Date: Thu, 23 Apr 2026 00:59:42 +0200
Subject: [PATCH] =?UTF-8?q?Little=20Console=20Cleanup=20=F0=9F=A7=B9=20(#3?=
=?UTF-8?q?741)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
## Description:
Fixes these console warnings from bots:
Removes some spammy logs, they dont seem to be helpful?
## Please complete the following:
- [X] I have added screenshots for all UI updates
- [X] I process any text displayed to the user through translateText()
and I've added it to the en.json file
- [X] I have added relevant tests to the test directory
- [X] I confirm I have thoroughly tested these changes and take full
responsibility for any bugs introduced
## Please put your Discord username so you can be contacted if a bug or
regression is found:
FloPinguin
---
src/client/graphics/layers/RailroadView.ts | 1 -
src/core/execution/NukeExecution.ts | 1 -
src/core/execution/SAMLauncherExecution.ts | 3 ---
src/core/execution/utils/AiAttackBehavior.ts | 4 +++-
4 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/src/client/graphics/layers/RailroadView.ts b/src/client/graphics/layers/RailroadView.ts
index e4802fc94..2f690965d 100644
--- a/src/client/graphics/layers/RailroadView.ts
+++ b/src/client/graphics/layers/RailroadView.ts
@@ -106,7 +106,6 @@ export function computeDirection(
if (dx1 === 1 && dx2 === 0 && dy2 === 1) return RailType.BOTTOM_LEFT;
if (dx1 === -1 && dx2 === 0 && dy2 === 1) return RailType.BOTTOM_RIGHT;
}
- console.warn(`Invalid rail segment: ${dx1}:${dy1}, ${dx2}:${dy2}`);
return RailType.VERTICAL;
}
diff --git a/src/core/execution/NukeExecution.ts b/src/core/execution/NukeExecution.ts
index 89d755831..6e3e779f4 100644
--- a/src/core/execution/NukeExecution.ts
+++ b/src/core/execution/NukeExecution.ts
@@ -229,7 +229,6 @@ export class NukeExecution implements Execution {
// make the nuke unactive if it was intercepted
if (!this.nuke.isActive()) {
- console.log(`Nuke destroyed before reaching target`);
this.active = false;
return;
}
diff --git a/src/core/execution/SAMLauncherExecution.ts b/src/core/execution/SAMLauncherExecution.ts
index 7d8faefff..21a3e26de 100644
--- a/src/core/execution/SAMLauncherExecution.ts
+++ b/src/core/execution/SAMLauncherExecution.ts
@@ -304,9 +304,6 @@ export class SAMLauncherExecution implements Execution {
let target: Target | null = null;
if (mirvWarheadTargets.length === 0) {
target = this.targetingSystem.getSingleTarget(ticks);
- if (target !== null) {
- console.log("Target acquired");
- }
}
// target is already filtered to exclude nukes targeted by other SAMs
diff --git a/src/core/execution/utils/AiAttackBehavior.ts b/src/core/execution/utils/AiAttackBehavior.ts
index 738fe6893..4d45b3fe8 100644
--- a/src/core/execution/utils/AiAttackBehavior.ts
+++ b/src/core/execution/utils/AiAttackBehavior.ts
@@ -379,8 +379,10 @@ export class AiAttackBehavior {
}
findIncomingAttackPlayer(): Player | null {
+ let incomingAttacks = this.player
+ .incomingAttacks()
+ .filter((attack) => !this.player.isFriendly(attack.attacker()));
// Ignore bot attacks if we are not a bot.
- let incomingAttacks = this.player.incomingAttacks();
if (this.player.type() !== PlayerType.Bot) {
incomingAttacks = incomingAttacks.filter(
(attack) => attack.attacker().type() !== PlayerType.Bot,