remove name, rebalance income

This commit is contained in:
evanpelle
2024-09-06 15:49:54 -07:00
parent 31a7ef393d
commit 0f37fc0c31
4 changed files with 18 additions and 12 deletions
+5 -1
View File
@@ -85,7 +85,11 @@ export class DefaultConfig implements Config {
let max = Math.sqrt(player.numTilesOwned()) * 3000 + 50000
max = Math.min(max, 1_000_000)
let toAdd = 10 + (player.troops() + Math.sqrt(player.troops() * player.numTilesOwned())) / 150
let toAdd = 10 + (player.troops() + Math.sqrt(player.troops() * player.numTilesOwned())) / 100
const ratio = 1 - (player.troops() / max)
toAdd *= ratio
// console.log(`to add ${toAdd}`)
return Math.min(player.troops() + toAdd, max)
}