up
This commit is contained in:
parent
79afbfedb0
commit
c9ac4c7195
1 changed files with 2 additions and 2 deletions
|
|
@ -559,7 +559,7 @@ function util.get_ingredient_amount(recipe_name, ingredient_name)
|
||||||
if ingredient.name == ingredient_name then return ingredient.amount end
|
if ingredient.name == ingredient_name then return ingredient.amount end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
return 1
|
return 0
|
||||||
end
|
end
|
||||||
return 0
|
return 0
|
||||||
end
|
end
|
||||||
|
|
@ -1257,7 +1257,7 @@ function remove_prior_unlocks(tech, recipe)
|
||||||
util.remove_recipe_effect(tech, recipe)
|
util.remove_recipe_effect(tech, recipe)
|
||||||
if technology.prerequisites then
|
if technology.prerequisites then
|
||||||
for i, prerequisite in pairs(technology.prerequisites) do
|
for i, prerequisite in pairs(technology.prerequisites) do
|
||||||
log("BZZZ removing prior unlocks for " .. recipe .. " from " .. tech ..", checking " .. prerequisite) -- Handy Debug :|
|
-- log("BZZZ removing prior unlocks for " .. recipe .. " from " .. tech ..", checking " .. prerequisite) -- Handy Debug :|
|
||||||
remove_prior_unlocks(prerequisite, recipe)
|
remove_prior_unlocks(prerequisite, recipe)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue