Bearbeiten von „Modul:GetRecipes“
Aus Eco - Deutsches Wiki
Deine Änderungen werden angezeigt, sobald ein dazu berechtigter Benutzer sie akzeptiert hat. (Hilfe)
Die Bearbeitung kann rückgängig gemacht werden. Bitte prüfe den Vergleich unten, um sicherzustellen, dass du dies tun möchtest, und veröffentliche dann unten deine Änderungen, um die Bearbeitung rückgängig zu machen.
Aktuelle Version | Dein Text | ||
Zeile 55: | Zeile 55: | ||
end | end | ||
end | end | ||
local itemIngredients | local itemIngredients | ||
-- HACK Attempt to handle issue with tool recipes | -- HACK Attempt to handle issue with tool recipes | ||
Zeile 65: | Zeile 78: | ||
end | end | ||
if itemIngredients ~= nil then | if itemIngredients ~= nil then | ||
for _, itemIngredient in pairs(itemIngredients) do | for _, itemIngredient in pairs(itemIngredients) do | ||
if itemIngredient ~= '' then | if itemIngredient ~= '' then | ||
if recipeList[itemIngredient] ~= nil then | if recipeList[itemIngredient] ~= nil then | ||
table.insert(ingredients, recipeList[itemIngredient]) | table.insert(ingredients, recipeList[itemIngredient]) | ||
-- HACK: Skill books don't show us as a product of research pages, only the skill name. | -- HACK: Skill books don't show us as a product of research pages, only the skill name. | ||
elseif recipeList[itemIngredient .. ' Skill Book'] ~= nil then | elseif recipeList[itemIngredient .. ' Skill Book'] ~= nil then | ||
table.insert(ingredients, recipeList[itemIngredient .. ' Skill Book']) | table.insert(ingredients, recipeList[itemIngredient .. ' Skill Book']) | ||
end | end | ||
end | end | ||
end | end |