Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Date: ???
- TECHNOLOGY:remove_prereq() will always fail if self.prerequesites is empty or nil
- Added TECHNOLOGY:replace_prereq(old, new)
- Updated py.global_prerequisite_replacer to use TECHNOLOGY:replace_prereq()
- Add compatibility patch for Teleportation Equipment mod
---------------------------------------------------------------------------------------------------
Version: 3.0.41
Date: 2025-12-28
Expand Down
1 change: 1 addition & 0 deletions prototypes/functions/compatibility.lua
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ require("compatibility.robot-recall")
require("compatibility.rocket-silo-construction")
require("compatibility.shuttle-train-refresh")
require("compatibility.teleporters")
require("compatibility.teleportation-equipment")
require("compatibility.train-pubsub")
require("compatibility.train-upgrader")
require("compatibility.trainfactory")
Expand Down
19 changes: 19 additions & 0 deletions prototypes/functions/compatibility/teleportation-equipment.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
if mods["TeleportationEquipment"] then

TECHNOLOGY("teleportation-equipment"):remove_prereq("solar-panel-equipment"):add_prereq("modular-armor")

if mods["pyalternativeenergy"] then
RECIPE("teleportation-equipment")
:replace_ingredient("battery-mk01", "nexelit-battery")
:replace_ingredient("advanced-circuit", "electronics-mk02")
:replace_ingredient("iron-plate", "crmoni")
:add_ingredient({ type = "item", name = "controler-mk02", amount = 1})
:add_ingredient({ type = "item", name = "mirror-mk01", amount = 6})
:add_ingredient({ type = "item", name = "self-assembly-monolayer", amount = 25 })
:add_ingredient({ type = "item", name = "small-parts-02", amount = 30 })
end

if mods["pyalienlife"] then
TECHNOLOGY("teleportation-equipment"):add_pack("py-science-pack-2"):add_pack("chemical-science-pack")
end
end