mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 09:50:43 +00:00
fix boat trail bug
This commit is contained in:
@@ -53,6 +53,8 @@ export class TerritoryRenderer {
|
||||
|
||||
boatEvent(event: BoatEvent) {
|
||||
bfs(event.oldTile, dist(event.oldTile, 3)).forEach(t => {
|
||||
// this.clearCell(t.cell())
|
||||
// this.paintCell(t.cell(), new Colord({r: 0, g: 0, b: 0}), 200)
|
||||
this.paintTerritory(t)
|
||||
})
|
||||
if (event.boat.isActive()) {
|
||||
@@ -78,6 +80,7 @@ export class TerritoryRenderer {
|
||||
paintTerritory(tile: Tile) {
|
||||
if (!tile.hasOwner()) {
|
||||
this.clearCell(tile.cell())
|
||||
return
|
||||
}
|
||||
if (tile.isBorder()) {
|
||||
this.paintCell(
|
||||
|
||||
@@ -3,7 +3,7 @@ import {DefaultConfig} from "./DefaultConfig";
|
||||
|
||||
export const devConfig = new class extends DefaultConfig {
|
||||
numSpawnPhaseTurns(): number {
|
||||
return 60
|
||||
return 40
|
||||
}
|
||||
gameCreationRate(): number {
|
||||
return 3 * 1000
|
||||
|
||||
Reference in New Issue
Block a user