mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-08-19 02:04:39 +00:00
sam do not target twice same nuke (#270)
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
import { DefaultConfig } from "../../src/core/configuration/DefaultConfig";
|
||||
|
||||
export class TestConfig extends DefaultConfig {}
|
||||
export class TestConfig extends DefaultConfig {
|
||||
samHittingChance(): number {
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
+5
-2
@@ -15,9 +15,12 @@ export function constructionExecution(
|
||||
unit: UnitType,
|
||||
) {
|
||||
game.addExecution(new ConstructionExecution(playerID, game.ref(x, y), unit));
|
||||
// Init
|
||||
// Init exec
|
||||
game.executeNextTick();
|
||||
// Exec
|
||||
// Exec construction execution
|
||||
game.executeNextTick();
|
||||
// Add the execution related to the building
|
||||
game.executeNextTick();
|
||||
// First tick of the execution of the constructed structure/unit
|
||||
game.executeNextTick();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user