diff --git a/src/client/graphics/layers/NameLayer.ts b/src/client/graphics/layers/NameLayer.ts index 69bed1f34..741b095d2 100644 --- a/src/client/graphics/layers/NameLayer.ts +++ b/src/client/graphics/layers/NameLayer.ts @@ -9,13 +9,7 @@ import targetIcon from "../../../../resources/images/TargetIcon.svg"; import traitorIcon from "../../../../resources/images/TraitorIcon.svg"; import { PseudoRandom } from "../../../core/PseudoRandom"; import { Theme } from "../../../core/configuration/Config"; -import { - AllPlayers, - Cell, - nukeTypes, - PlayerType, - UnitType, -} from "../../../core/game/Game"; +import { AllPlayers, Cell, nukeTypes, UnitType } from "../../../core/game/Game"; import { GameView, PlayerView } from "../../../core/game/GameView"; import { createCanvas, renderNumber, renderTroops } from "../../Utils"; import { TransformHandler } from "../TransformHandler"; @@ -217,29 +211,29 @@ export class NameLayer implements Layer { troopsDiv.style.marginTop = "-5%"; element.appendChild(troopsDiv); - if (player.type() !== PlayerType.Bot) { - const shieldDiv = document.createElement("div"); - shieldDiv.classList.add("player-shield"); - shieldDiv.style.zIndex = "3"; - shieldDiv.style.marginTop = "-5%"; - shieldDiv.style.display = "flex"; - shieldDiv.style.alignItems = "center"; - shieldDiv.style.gap = "0px"; - const shieldImg = document.createElement("img"); - shieldImg.src = this.shieldIconImage.src; - shieldImg.style.width = "16px"; - shieldImg.style.height = "16px"; + // if (player.type() !== PlayerType.Bot) { + // const shieldDiv = document.createElement("div"); + // shieldDiv.classList.add("player-shield"); + // shieldDiv.style.zIndex = "3"; + // shieldDiv.style.marginTop = "-5%"; + // shieldDiv.style.display = "flex"; + // shieldDiv.style.alignItems = "center"; + // shieldDiv.style.gap = "0px"; + // const shieldImg = document.createElement("img"); + // shieldImg.src = this.shieldIconImage.src; + // shieldImg.style.width = "16px"; + // shieldImg.style.height = "16px"; - const shieldSpan = document.createElement("span"); - shieldSpan.textContent = "0"; - shieldSpan.style.color = "black"; - shieldSpan.style.fontSize = "10px"; - shieldSpan.style.marginTop = "-2px"; + // const shieldSpan = document.createElement("span"); + // shieldSpan.textContent = "0"; + // shieldSpan.style.color = "black"; + // shieldSpan.style.fontSize = "10px"; + // shieldSpan.style.marginTop = "-2px"; - shieldDiv.appendChild(shieldImg); - shieldDiv.appendChild(shieldSpan); - element.appendChild(shieldDiv); - } + // shieldDiv.appendChild(shieldImg); + // shieldDiv.appendChild(shieldSpan); + // element.appendChild(shieldDiv); + // } // Start off invisible so it doesn't flash at 0,0 element.style.display = "none"; diff --git a/src/core/execution/FakeHumanExecution.ts b/src/core/execution/FakeHumanExecution.ts index 4fa3ec7cd..6800d6f6f 100644 --- a/src/core/execution/FakeHumanExecution.ts +++ b/src/core/execution/FakeHumanExecution.ts @@ -54,8 +54,8 @@ export class FakeHumanExecution implements Execution { ); this.attackRate = this.random.nextInt(40, 80); this.attackTick = this.random.nextInt(0, this.attackRate); - this.triggerRatio = this.random.nextInt(60, 90) / 100; - this.reserveRatio = this.random.nextInt(30, 60) / 100; + this.triggerRatio = this.random.nextInt(70, 90) / 100; + this.reserveRatio = this.random.nextInt(50, 60) / 100; this.heckleEmoji = ["🤡", "😡"].map((e) => flattenedEmojiTable.indexOf(e)); }