Skip to content

Commit

Permalink
Migrated the internal name of the "railway-mk01" technology to "railw…
Browse files Browse the repository at this point in the history
…ay". Resolves pyanodon/pybugreports#453
  • Loading branch information
notnotmelon committed Jan 22, 2025
1 parent 2fe666d commit 0a04677
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
1 change: 1 addition & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Version: 3.0.24
Date: ?
Changes:
- Migrated the internal name of the "vacuum-tube-electronics" technology to "electronics". Resolves https://github.com/pyanodon/pybugreports/issues/453
- Migrated the internal name of the "railway-mk01" technology to "railway". Resolves https://github.com/pyanodon/pybugreports/issues/453
---------------------------------------------------------------------------------------------------
Version: 3.0.23
Date: 2025-1-20
Expand Down
11 changes: 5 additions & 6 deletions prototypes/functions/compatibility.lua
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ if mods["pyindustry"] then

if mods["railloader"] then
TECHNOLOGY("railloader"):remove_pack("logistic-science-pack")
data.raw.technology["railloader"].prerequisites = {"railway-mk01"}
end

if mods["train-pubsub"] then
Expand Down Expand Up @@ -274,7 +273,7 @@ if mods["yi_railway"] and mods["pyindustry"] then
recipe.energy_required = data.raw.recipe["locomotive"].energy_required
recipe.ingredients = data.raw.recipe["locomotive"].ingredients -- I know what this does and I don't care

RECIPE(recipe_name):add_unlock("railway-mk01")
RECIPE(recipe_name):add_unlock("railway")

local resultname = recipe.results[1]["name"]
local loco = data.raw.locomotive["locomotive"]
Expand Down Expand Up @@ -322,7 +321,7 @@ if mods["yi_railway"] and mods["pyindustry"] then
recipe.energy_required = data.raw.recipe["cargo-wagon"].energy_required
recipe.ingredients = data.raw.recipe["cargo-wagon"].ingredients

RECIPE(recipe_name):add_unlock("railway-mk01")
RECIPE(recipe_name):add_unlock("railway")

local resultname = recipe.results[1]["name"]
local wagon = data.raw["cargo-wagon"]["cargo-wagon"]
Expand All @@ -341,7 +340,7 @@ if mods["yi_railway"] and mods["pyindustry"] then
recipe.energy_required = data.raw.recipe["fluid-wagon"].energy_required
recipe.ingredients = data.raw.recipe["fluid-wagon"].ingredients

RECIPE(recipe_name):add_unlock("railway-mk01")
RECIPE(recipe_name):add_unlock("railway")

local resultname = recipe.results[1]["name"]
local wagon = data.raw["fluid-wagon"]["fluid-wagon"]
Expand Down Expand Up @@ -523,8 +522,8 @@ end

if mods["RenaiTransportation"] then
if mods["pyindustry"] then
TECHNOLOGY("RTFlyingFreight"):remove_prereq("railway"):remove_prereq("concrete"):add_prereq("railway-mk01")
TECHNOLOGY("RTImpactTech"):remove_prereq("railway"):remove_prereq("concrete"):add_prereq("railway-mk01")
TECHNOLOGY("RTFlyingFreight"):remove_prereq("concrete")
TECHNOLOGY("RTImpactTech"):remove_prereq("concrete")
end

if mods["pycoalprocessing"] then
Expand Down

0 comments on commit 0a04677

Please sign in to comment.