ports increase in price, NPC attack more frequently, tradeship destroyed if dst port destroyed or captured

This commit is contained in:
Evan
2024-11-24 21:03:09 -08:00
parent 5431aff30c
commit 0b062179ac
10 changed files with 35 additions and 52 deletions
+1 -1
View File
@@ -86,7 +86,7 @@ export class PortExecution implements Execution {
const portConnections = Array.from(this.portPaths.keys())
if (portConnections.length > 0 && this.random.chance(250 * this.player().units(UnitType.Port).length)) {
if (portConnections.length > 0 && this.random.chance(250)) {
const port = this.random.randElement(portConnections)
const path = this.portPaths.get(port)
if (path != null) {