mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-19 12:15:05 +00:00
have buildings take time to construct
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
// }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user