another adjustment

This commit is contained in:
1brucben
2025-04-18 04:34:55 +02:00
parent 3ccc2dba3f
commit 97fa91769a
2 changed files with 7 additions and 8 deletions
+4 -6
View File
@@ -483,8 +483,8 @@ export class DefaultConfig implements Config {
defenderdensity ** 0.6 *
within(defender.troops() / attackTroops, 0.3, 10) ** 0.5 *
speed,
10,
600,
8,
480,
),
};
} else {
@@ -504,11 +504,9 @@ export class DefaultConfig implements Config {
numAdjacentTilesWithEnemy: number,
): number {
if (defender.isPlayer()) {
return (
10 * numAdjacentTilesWithEnemy //increase to increase attack speed across-the-board
);
return 8 * numAdjacentTilesWithEnemy;
} else {
return 10 * numAdjacentTilesWithEnemy;
return 8 * numAdjacentTilesWithEnemy;
}
}
+3 -2
View File
@@ -292,12 +292,13 @@ export class AttackExecution implements Execution {
mag = 1;
break;
case TerrainType.Highland:
mag = 1.5;
mag = Math.random() < 0.4 ? 1 : 1.5;
break;
case TerrainType.Mountain:
mag = 2;
mag = Math.random() < 0.4 ? 1 : 2;
break;
}
this.toConquer.enqueue(
new TileContainer(
neighbor,