Skip to content

Commit

Permalink
UPS Friendly Nixie Tubes Compat (#64)
Browse files Browse the repository at this point in the history
* UPS Friendly Nixie Tubes Compat

Adds compatibility with UPS Friendly Nixie Tubes

* Update changelog.txt
  • Loading branch information
Erkigmo authored Dec 5, 2024
1 parent 4b798f7 commit 04b51c3
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 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.19
Date: ?
Changes:
- Adjusted autorecipes check for barrels. Affects Arqad Nest 3, 4 and Vonix Eggs 2, 3.
- Added compatibility with UPS Friendly Nixie Tubes.
---------------------------------------------------------------------------------------------------
Version: 3.0.18
Date: 2024-11-29
Expand Down
17 changes: 17 additions & 0 deletions prototypes/functions/compatibility.lua
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,23 @@ if mods["pushbutton"] then
RECIPE("pushbutton"):remove_ingredient("advanced-circuit")
end

if mods["UPSFriendlyNixieTubeDisplay"] then
TECHNOLOGY("classic-nixie-tubes"):remove_pack("logistic-science-pack")
TECHNOLOGY("reinforced-nixie-tubes"):remove_pack("logistic-science-pack")

TECHNOLOGY("classic-nixie-tubes"):add_pack("py-science-pack-1")
TECHNOLOGY("reinforced-nixie-tubes"):add_pack("py-science-pack-1")

RECIPE("classic-nixie-tube"):replace_ingredient("electronic-circuit", "battery-mk01")
RECIPE("classic-nixie-tube"):replace_ingredient("iron-plate", "electronic-circuit")

RECIPE("reinforced-nixie-tube"):replace_ingredient("steel-plate", "intermetallics")
RECIPE("small-reinforced-nixie-tube"):replace_ingredient("steel-plate", "intermetallics")

RECIPE("reinforced-nixie-tube"):replace_ingredient("iron-stick", "duralumin")
RECIPE("small-reinforced-nixie-tube"):replace_ingredient("iron-stick", "duralumin")
end

if mods["subspace_storage"] then
for item_name, item_data in pairs(data.raw.item) do
if item_data.subgroup == "subspace_storage-interactor" then
Expand Down

0 comments on commit 04b51c3

Please sign in to comment.