diff --git a/TODO.txt b/TODO.txt
index 214b2426d..6128271e8 100644
--- a/TODO.txt
+++ b/TODO.txt
@@ -111,6 +111,8 @@
--- v3 Release
+BUG: FakeHuman don't be enemy if don't share border
+BUG: when send boat only captures one pixel
* store cookies
* names dissapear on bottom of screen
diff --git a/src/client/index.html b/src/client/index.html
index bef070a57..937059434 100644
--- a/src/client/index.html
+++ b/src/client/index.html
@@ -10,7 +10,7 @@
OpenFront.io
-
(v0.3.8)
+
(v0.3.10)
diff --git a/src/core/configuration/DefaultConfig.ts b/src/core/configuration/DefaultConfig.ts
index f3fbc4231..4c314a7cb 100644
--- a/src/core/configuration/DefaultConfig.ts
+++ b/src/core/configuration/DefaultConfig.ts
@@ -20,7 +20,7 @@ export class DefaultConfig implements Config {
return 400
}
numFakeHumans(gameID: GameID): number {
- return simpleHash(gameID) % 5
+ return simpleHash(gameID) % 20
}
turnIntervalMs(): number {
return 100
@@ -53,10 +53,10 @@ export class DefaultConfig implements Config {
speed = mag
if (attacker.isPlayer() && defender.isPlayer()) {
- if (attacker.type() == PlayerType.Bot && defender.type() == PlayerType.FakeHuman) {
+ if (attacker.type() == PlayerType.Bot && (defender.type() == PlayerType.FakeHuman || defender.type() == PlayerType.Human)) {
mag *= 1.2
}
- if (attacker.type() == PlayerType.FakeHuman && defender.type() == PlayerType.Bot) {
+ if ((attacker.type() == PlayerType.FakeHuman || attacker.type() == PlayerType.Human) && defender.type() == PlayerType.Bot) {
mag *= .8
}
}
@@ -118,10 +118,10 @@ export class DefaultConfig implements Config {
// console.log(`to add ${toAdd}`)
if (player.type() == PlayerType.FakeHuman) {
- toAdd *= 1.1
+ toAdd *= 1.0
}
if (player.type() == PlayerType.Bot) {
- toAdd *= .8
+ toAdd *= .7
}
return Math.min(player.troops() + toAdd, max)
diff --git a/src/core/configuration/DevConfig.ts b/src/core/configuration/DevConfig.ts
index 34efdc2dd..3815b7ff0 100644
--- a/src/core/configuration/DevConfig.ts
+++ b/src/core/configuration/DevConfig.ts
@@ -17,6 +17,7 @@ export const devConfig = new class extends DefaultConfig {
numBots(): number {
return 400
}
+
// numFakeHumans(gameID: GameID): number {
// return 10
diff --git a/src/core/execution/BotExecution.ts b/src/core/execution/BotExecution.ts
index b75787ccf..c56eea2a3 100644
--- a/src/core/execution/BotExecution.ts
+++ b/src/core/execution/BotExecution.ts
@@ -62,7 +62,7 @@ export class BotExecution implements Execution {
const owner = toAttack.owner()
if (owner.isPlayer()) {
if (owner.type() == PlayerType.FakeHuman) {
- if (!this.random.chance(4)) {
+ if (!this.random.chance(2)) {
return
}
}