Added lists to mutations for better recipes (more forgiving).

This commit is contained in:
sarah committed 2026-09-07 15:22:42 +02:00
1 parent d6fa5572ed
commit d9bdd74b02
11 files changed
+2249 -21

No files matched your search

+34
View File
@@ -275,6 +275,40 @@ function GetAdminOverviewPatternPlantKeys(
}
for (const Cell of Row) {
if (
typeof Cell === "string"
) {
const ListMatch =
/^List:([1-9][0-9]*)$/.exec(
Cell
);
if (ListMatch !== null) {
const List =
Mutation.Lists?.[
Number(ListMatch[1]) - 1
];
for (
const Item
of List?.Items ?? []
) {
if (
Item?.Type === "Plant" &&
AdminOverviewPlants[
Item.Value
] !== undefined
) {
PlantKeys.add(
Item.Value
);
}
}
continue;
}
}
if (
typeof Cell === "string" &&
AdminOverviewPlants[