give Battleships & Destroyers health, make shells more frequent & larger

This commit is contained in:
Evan
2024-12-20 16:43:24 -08:00
parent 17d75324f8
commit 5307285d8b
11 changed files with 96 additions and 33 deletions
+7 -4
View File
@@ -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 {
+1 -1
View File
@@ -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 {