mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-11 02:04:18 +00:00
give Battleships & Destroyers health, make shells more frequent & larger
This commit is contained in:
@@ -53,22 +53,25 @@ export abstract class DefaultConfig implements Config {
|
||||
case UnitType.TransportShip:
|
||||
return {
|
||||
cost: () => 0,
|
||||
territoryBound: false
|
||||
territoryBound: false,
|
||||
}
|
||||
case UnitType.Destroyer:
|
||||
return {
|
||||
cost: (p: Player) => (p.units(UnitType.Destroyer).length + 1) * 250_000,
|
||||
territoryBound: false
|
||||
territoryBound: false,
|
||||
maxHealth: 1000,
|
||||
}
|
||||
case UnitType.Battleship:
|
||||
return {
|
||||
cost: (p: Player) => (p.units(UnitType.Battleship).length + 1) * 500_000,
|
||||
territoryBound: false
|
||||
territoryBound: false,
|
||||
maxHealth: 5000
|
||||
}
|
||||
case UnitType.Shell:
|
||||
return {
|
||||
cost: () => 0,
|
||||
territoryBound: false
|
||||
territoryBound: false,
|
||||
damage: 250
|
||||
}
|
||||
case UnitType.Port:
|
||||
return {
|
||||
|
||||
@@ -16,7 +16,7 @@ export const devConfig = new class extends DefaultConfig {
|
||||
return 95
|
||||
}
|
||||
numSpawnPhaseTurns(gameType: GameType): number {
|
||||
return gameType == GameType.Singleplayer ? 40 : 100
|
||||
return gameType == GameType.Singleplayer ? 40 : 200
|
||||
// return 100
|
||||
}
|
||||
gameCreationRate(): number {
|
||||
|
||||
Reference in New Issue
Block a user