mirror of
https://git.srhtnin.garden/sarah/srhtnin.github.io.git
synced 2026-10-14 02:38:12 +02:00
Added lists to mutations for better recipes (more forgiving).
This commit is contained in:
1 parent
d6fa5572ed
commit
d9bdd74b02
11 files changed
+2249
-21
No files matched your search
@@ -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[
|
||||
|
||||
Reference in new issue
Block a user