turn off directed expansion because its not workign right

This commit is contained in:
evanpelle
2024-08-14 19:59:55 -07:00
parent f17d1d9816
commit 88aac34d7e
2 changed files with 5 additions and 1 deletions
+2 -1
View File
@@ -16,8 +16,9 @@
* attacks cancel out DONE 8/13/2024
* upload and start server DONE 8/13/2024
* fix multiplayer DONE 8/14/2024
* fix server resource leak
* fix server resource leak DONE 8/14/2024
* balance attacks/expansions better
* delete players when territories too small
* better algorithm for name render placement
* make boats larger
* have boats not get close to shore
+3
View File
@@ -25,6 +25,9 @@ export class AttackExecution implements Execution {
init(mg: MutableGame, ticks: number) {
// TODO: remove this and fix directed expansion.
this.targetCell = null
this._owner = mg.player(this._ownerID)
this.target = this.targetID == null ? mg.terraNullius() : mg.player(this.targetID)
this.troops = Math.min(this._owner.troops(), this.troops)