have buildings take time to construct

This commit is contained in:
Evan
2025-02-08 13:53:58 -08:00
parent 0487509c03
commit 1594a45dac
13 changed files with 216 additions and 82 deletions
+9
View File
@@ -109,6 +109,7 @@ export class DefaultConfig implements Config {
Math.pow(2, p.units(UnitType.Port).length) * 250_000
),
territoryBound: true,
constructionDuration: 2 * 10,
};
case UnitType.AtomBomb:
return {
@@ -139,6 +140,7 @@ export class DefaultConfig implements Config {
return {
cost: () => 1_000_000,
territoryBound: true,
constructionDuration: 10 * 10,
};
case UnitType.DefensePost:
return {
@@ -148,6 +150,7 @@ export class DefaultConfig implements Config {
(p.units(UnitType.DefensePost).length + 1) * 50_000
),
territoryBound: true,
constructionDuration: 5 * 10,
};
case UnitType.City:
return {
@@ -157,6 +160,12 @@ export class DefaultConfig implements Config {
Math.pow(2, p.units(UnitType.City).length) * 125_000
),
territoryBound: true,
constructionDuration: 2 * 10,
};
case UnitType.Construction:
return {
cost: () => 0,
territoryBound: true,
};
default:
assertNever(type);
+6 -6
View File
@@ -45,10 +45,10 @@ export class DevConfig extends DefaultConfig {
// return 5000
// }
// numBots(): number {
// return 0;
// }
// spawnNPCs(): boolean {
// return false;
// }
// numBots(): number {
// return 0;
// }
// spawnNPCs(): boolean {
// return false;
// }
}