mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-02 04:08:11 +00:00
log cell clicked
This commit is contained in:
@@ -145,6 +145,7 @@ export class ClientGame {
|
||||
if (!this.gs.isOnMap(cell)) {
|
||||
return
|
||||
}
|
||||
console.log(`clicked cell ${cell}`)
|
||||
const tile = this.gs.tile(cell)
|
||||
if (tile.isLand() && !tile.hasOwner() && this.gs.inSpawnPhase()) {
|
||||
this.eventBus.emit(new SendSpawnIntentEvent(cell))
|
||||
|
||||
@@ -127,9 +127,6 @@ export class GameImpl implements MutableGame {
|
||||
if (this._ticks % 100 == 0) {
|
||||
let hash = 1;
|
||||
this._players.forEach(p => {
|
||||
if (p.type() == PlayerType.Human) {
|
||||
console.log(`${p.toString()}`)
|
||||
}
|
||||
hash += p.hash()
|
||||
})
|
||||
console.log(`tick ${this._ticks}: hash ${hash}`)
|
||||
|
||||
Reference in New Issue
Block a user