mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-30 21:42:05 +00:00
ports increase in price, NPC attack more frequently, tradeship destroyed if dst port destroyed or captured
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
import { PlayerInfo, UnitInfo, UnitType } from "../game/Game";
|
||||
import { Player, PlayerInfo, UnitInfo, UnitType } from "../game/Game";
|
||||
import { DefaultConfig } from "./DefaultConfig";
|
||||
|
||||
export const devConfig = new class extends DefaultConfig {
|
||||
unitInfo(type: UnitType): UnitInfo {
|
||||
const info = super.unitInfo(type)
|
||||
info.cost = 0
|
||||
const oldCost = info.cost
|
||||
info.cost = (p: Player) => oldCost(p) / 100
|
||||
return info
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user