Skip to content

Commit

Permalink
compat: The glass productivity tech now boost AAI glass by 10% per ti…
Browse files Browse the repository at this point in the history
…er if that mod is present.
  • Loading branch information
notnotmelon committed Jan 14, 2025
1 parent f469081 commit b269e7d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion compat/aai-industry.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ if not mods["aai-industry"] then return end
data.raw.recipe["motor"].category = "maraxsis-hydro-plant-or-assembling"
data.raw.recipe["electric-motor"].category = "maraxsis-hydro-plant-or-assembling"

data.raw.item["maraxsis-glass-panes"].localised_name = {"item-name.maraxsis-reinforced-glass"}
data.raw.item["maraxsis-glass-panes"].localised_name = {"item-name.maraxsis-reinforced-glass"}
8 changes: 8 additions & 0 deletions prototypes/technology/glass.lua
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,14 @@ data:extend {{
upgrade = true
}}

if data.raw.recipe["glass"] or mods["aai-industry"] then
table.insert(data.raw.technology["maraxsis-glass-productivity"].effects, 1, {
type = "change-recipe-productivity",
recipe = "glass",
change = 0.1
})
end

data:extend {{
type = "recipe",
name = "maraxsis-limestone-processing",
Expand Down

0 comments on commit b269e7d

Please sign in to comment.