Skip to content

Commit

Permalink
nerf shafts
Browse files Browse the repository at this point in the history
  • Loading branch information
przemo1232 committed Jan 19, 2025
1 parent abe05f1 commit 95344fb
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions prototypes/updates/hot-air.lua
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,14 @@ local function hotairrecipes(extra_recipes)

-- to prod or not to prod
allow_productivity = false
if string.find(recipe.name, "casting") then
data.raw.recipe[recipe.name] = nil -- can be hidden instead if it causes issues
allow_productivity = true
table.remove(data.raw.technology[unlock].effects, effect_index)
for _, ingredient in pairs(recipe.ingredients) do
if ingredient.name == "mold" then
allow_productivity = true
break
end
end
if allow_productivity then
data.raw.recipe[recipe.name].hidden = true
else
recipe:multiply_result_amount(result, 1.25)
end
Expand Down

0 comments on commit 95344fb

Please sign in to comment.