mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-23 18:25:31 +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);
|
||||
|
||||
Reference in New Issue
Block a user