mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-18 23:33:12 +09:00
Add "recycler" as builtin mod for 2.1
This commit is contained in:
1 file changed
+19
-1
@@ -396,7 +396,7 @@ export default class ModPack {
|
|||||||
|
|
||||||
/** Array of default mod packs which should exist on a newly installed cluster */
|
/** Array of default mod packs which should exist on a newly installed cluster */
|
||||||
static defaultModPacks = [
|
static defaultModPacks = [
|
||||||
...(["0.17", "0.18", "1.0", "1.1", "2.0"] as const)
|
...(["0.17", "0.18", "1.0", "1.1", "2.0", "2.1"] as const)
|
||||||
.map(version => this.fromJSON({
|
.map(version => this.fromJSON({
|
||||||
name: `Base Game ${version}`,
|
name: `Base Game ${version}`,
|
||||||
description: `Factorio ${version} with no extra mods.`,
|
description: `Factorio ${version} with no extra mods.`,
|
||||||
@@ -413,6 +413,18 @@ export default class ModPack {
|
|||||||
{ name: "space-age", enabled: true, version: normaliseFullVersion(version) },
|
{ name: "space-age", enabled: true, version: normaliseFullVersion(version) },
|
||||||
],
|
],
|
||||||
} as any)),
|
} as any)),
|
||||||
|
...(["2.1"] as const)
|
||||||
|
.map(version => this.fromJSON({
|
||||||
|
name: `Space Age ${version}`,
|
||||||
|
description: `Factorio ${version} with Space Age expansion.`,
|
||||||
|
factorio_version: version,
|
||||||
|
mods: [
|
||||||
|
{ name: "elevated-rails", enabled: true, version: normaliseFullVersion(version) },
|
||||||
|
{ name: "quality", enabled: true, version: normaliseFullVersion(version) },
|
||||||
|
{ name: "space-age", enabled: true, version: normaliseFullVersion(version) },
|
||||||
|
{ name: "recycler", enabled: true, version: normaliseFullVersion(version) },
|
||||||
|
],
|
||||||
|
} as any)),
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -437,6 +449,12 @@ export default class ModPack {
|
|||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (integerVersion >= integerPartialVersion("2.1")) {
|
||||||
|
defaultMods = defaultMods.concat([
|
||||||
|
{ name: "recycler", enabled: false, version: factorioVersion },
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
||||||
return defaultMods;
|
return defaultMods;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user