From b87cdd04cf0809d8beff7781f9ca6ccbf76efd63 Mon Sep 17 00:00:00 2001 From: 1brucben <1benjbruce@gmail.com> Date: Tue, 6 May 2025 01:15:49 +0200 Subject: [PATCH] finish merge --- src/core/execution/FakeHumanExecution.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/core/execution/FakeHumanExecution.ts b/src/core/execution/FakeHumanExecution.ts index bcdd19dd0..59f6dd87e 100644 --- a/src/core/execution/FakeHumanExecution.ts +++ b/src/core/execution/FakeHumanExecution.ts @@ -17,7 +17,12 @@ import { import { euclDistFN, manhattanDistFN, TileRef } from "../game/GameMap"; import { PseudoRandom } from "../PseudoRandom"; import { GameID } from "../Schemas"; -import { calculateBoundingBox, simpleHash, within } from "../Util"; +import { + calculateBoundingBox, + flattenedEmojiTable, + simpleHash, + within, +} from "../Util"; import { ConstructionExecution } from "./ConstructionExecution"; import { EmojiExecution } from "./EmojiExecution"; import { NukeExecution } from "./NukeExecution"; @@ -68,6 +73,9 @@ export class FakeHumanExecution implements Execution { this.attackTick = this.random.nextInt(0, this.attackRate); this.triggerRatio = this.random.nextInt(60, 90) / 100; this.reserveRatio = this.random.nextInt(40, 60) / 100; + + this.heckleEmoji = ["🤡", "😡"].map((e) => flattenedEmojiTable.indexOf(e)); + this.dogpileEmoji = flattenedEmojiTable.indexOf("🖕"); } init(mg: Game) {