Skip to content
Merged
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 @@ -8,6 +8,7 @@ Date: ???
- New entity graphics for all updated fluid tanks. Huge thanks to JigSaW_3 for providing these!
- Rebalanced recipes for all py storage tanks.
- Upscaled all fluid tank item icons from 32p to 64p.
- Linearilized dependencies.
- Removed niobium pipes from hydrocyclone recipe. Resolves https://github.com/pyanodon/pybugreports/issues/851
---------------------------------------------------------------------------------------------------
Version: 3.0.19
Expand Down
20 changes: 20 additions & 0 deletions data-final-fixes.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
for f, _ in pairs(data.raw.fluid) do
for i, recipe_name in pairs {
"empty-" .. f .. "-canister",
"empty-" .. f .. "-barrel",
"fill-" .. f .. "-canister",
f .. "-barrel"
} do
local recipe = data.raw.recipe[recipe_name] and RECIPE(recipe_name)
if recipe ~= nil then
recipe:set_fields {hide_from_player_crafting = true, hide_from_stats = true}
-- This is backwards, I blame king
if recipe_name:match("^empty") then
recipe.category = "py-barreling"
else
recipe.category = "py-unbarreling"
end
end
end
end

require "prototypes/void-recipes/fluid-void"
require "prototypes/void-recipes/item-void"

Expand Down
19 changes: 3 additions & 16 deletions data-updates.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
require "prototypes/buildings/megadar"
--Tiles
require "prototypes/tiles/py-asphalt"
require "prototypes/tiles/py-limestone"
Expand All @@ -13,20 +14,6 @@ end

require "prototypes/updates/base-updates"

if mods["pycoalprocessing"] then
require "prototypes/updates/pycoalprocessing-updates"
require "prototypes/tiles/py-iron-oxide"
require "prototypes/tiles/py-nexelit"
end

if mods["pyfusionenergy"] then
require "prototypes/updates/pyfusionenergy-updates"
end

if mods["pyrawores"] then
require "prototypes/updates/pyrawores-updates"
end

if mods["pyalternativeenergy"] then
require "prototypes/updates/pyalternativeenergy-updates"
end
Expand All @@ -35,7 +22,7 @@ if mods.pyrawores then
RECIPE("accumulator-mk02"):replace_ingredient("copper-cable", "tinned-cable"):replace_ingredient("iron-plate", "stainless-steel")
end

for f, _ in pairs(data.raw.fluid) do
--[[for f, _ in pairs(data.raw.fluid) do
for i, recipe_name in pairs {
"empty-" .. f .. "-canister",
"empty-" .. f .. "-barrel",
Expand All @@ -53,7 +40,7 @@ for f, _ in pairs(data.raw.fluid) do
end
end
end
end
end]] --

if mods["valves"] then
data.raw.valve["valves-top_up"].next_upgrade = "py-underflow-valve"
Expand Down
7 changes: 0 additions & 7 deletions data.lua
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,10 @@ require "prototypes/buildings/valves/check-valve"
require "prototypes/buildings/valves/overflow-valve"
require "prototypes/buildings/valves/underflow-valve"

-- Armor
if mods["pycoalprocessing"] then
require "prototypes/equipment/armor-updates"
require "prototypes/equipment/portable-gasoline-generator"
end

--Other
require "prototypes/buildings/accumulator-mk01"
require "prototypes/buildings/accumulator-mk02"
require "prototypes/buildings/radar"
require "prototypes/buildings/megadar"
require "prototypes/buildings/barrel-machine"

require "prototypes/buildings/py-roboport-mk01"
Expand Down
2 changes: 0 additions & 2 deletions info.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
"base >= 2.0.48",
"pyindustrygraphics >= 4.0.0",
"~ pypostprocessing >= 3.0.35",
"? pycoalprocessing >= 1.0.6",
"? pyfusionenergy >= 1.0.3",
"! wret-beacon-rebalance-mod",
"! BigBags",
"! ResearchFog",
Expand Down
5 changes: 4 additions & 1 deletion prototypes/buildings/accumulator-mk01.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@ RECIPE {
results = {
{type = "item", name = "accumulator-mk01", amount = 1}
}
}:replace_ingredient("steel-plate", "nexelit-plate"):add_ingredient {type = "item", name = "niobium-plate", amount = 10}:add_unlock {"py-accumulator-mk01"}
}

if mods.pycoalprocessing then
RECIPE("accumulator-mk01"):replace_ingredient_unsafe("steel-plate", "nexelit-plate"):add_ingredient_unsafe {type = "item", name = "niobium-plate", amount = 10}:add_unlock {"py-accumulator-mk01"}
end

ITEM {
type = "item",
Expand Down
10 changes: 9 additions & 1 deletion prototypes/buildings/accumulator-mk02.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,15 @@ RECIPE {
results = {
{type = "item", name = "accumulator-mk02", amount = 1}
}
}:replace_ingredient("steel-plate", "nexelit-plate"):add_ingredient {type = "item", name = "optical-fiber", amount = 30}:add_unlock("py-accumulator-mk02")
}

if mods.pycoalprocessing then
RECIPE("accumulator-mk02"):replace_ingredient_unsafe("steel-plate", "nexelit-plate"):add_ingredient_unsafe {type = "item", name = "optical-fiber", amount = 30}:add_unlock("py-accumulator-mk02")
end

if mods.pyrawores then
RECIPE("accumulator-mk02"):add_ingredient_unsafe {type = "fluid", name = "liquid-nitrogen", amount = 50}
end

ITEM {
type = "item",
Expand Down
4 changes: 2 additions & 2 deletions prototypes/buildings/megadar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ RECIPE {
{type = "item", name = "megadar", amount = 1}
},
enabled = false
}:add_unlock("radars-mk02")
}:add_unlock("radars-mk02"):replace_ingredient("steel-plate", "nexelit-plate"):add_ingredient {type = "item", name = "niobium-plate", amount = 10}

if mods["pycoalprocessing"] then
RECIPE("megadar"):replace_ingredient("steel-plate", "nexelit-plate"):add_ingredient {type = "item", name = "niobium-plate", amount = 10}
--RECIPE("megadar"):replace_ingredient("steel-plate", "nexelit-plate"):add_ingredient {type = "item", name = "niobium-plate", amount = 10}
end

ITEM {
Expand Down
6 changes: 5 additions & 1 deletion prototypes/buildings/py-roboport-construction-mk03.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ RECIPE {
results = {
{type = "item", name = "py-ze-mk03", amount = 1}
}
}:add_unlock("py-accumulator-mk03"):add_ingredient {type = "item", name = "niobium-plate", amount = 10}:add_ingredient {type = "item", name = "nexelit-plate", amount = 20}
}:add_unlock("py-accumulator-mk03")

if mods.pycoalprocessing then
RECIPE("py-ze-mk03"):add_ingredient_unsafe {type = "item", name = "niobium-plate", amount = 10}:add_ingredient_unsafe {type = "item", name = "nexelit-plate", amount = 20}
end

ITEM {
type = "item",
Expand Down
6 changes: 5 additions & 1 deletion prototypes/buildings/py-roboport-construction-mk04.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ RECIPE {
results = {
{type = "item", name = "py-ze-mk04", amount = 1}
}
}:add_ingredient {type = "item", name = "nbfe-alloy", amount = 10}:add_ingredient {type = "item", name = "kevlar", amount = 30}
}

if mods.pycoalprocessing then
RECIPE("py-ze-mk04"):add_ingredient_unsafe {type = "item", name = "nbfe-alloy", amount = 10}:add_ingredient_unsafe {type = "item", name = "kevlar", amount = 30}
end

ITEM {
type = "item",
Expand Down
1 change: 1 addition & 0 deletions prototypes/equipment/armor-updates.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
--DEPRECIATED--
data:extend {{
name = "light-armor-equipment-grid",
type = "equipment-grid",
Expand Down
1 change: 1 addition & 0 deletions prototypes/equipment/portable-gasoline-generator.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
--DEPRECIATED--
data:extend {{
type = "generator-equipment",
name = "portable-gasoline-generator",
Expand Down
12 changes: 10 additions & 2 deletions prototypes/pipes/niobium-pipes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,11 @@ RECIPE {
results = {
{type = "item", name = "niobium-pipe", amount = 2}
}
}:add_unlock {"py-storage-tanks"}:replace_ingredient("copper-plate", "niobium-plate")
}:add_unlock {"py-storage-tanks"}

if mods.pycoalprocessing then
RECIPE("niobium-pipe"):replace_ingredient_unsafe("copper-plate", "niobium-plate")
end

ITEM {
type = "item",
Expand All @@ -329,7 +333,11 @@ RECIPE {
results = {
{type = "item", name = "niobium-pipe-to-ground", amount = 2}
}
}:add_unlock {"py-storage-tanks"}:replace_ingredient("copper-plate", "niobium-plate")
}:add_unlock {"py-storage-tanks"}

if mods.pycoalprocessing then
RECIPE("niobium-pipe-to-ground"):replace_ingredient_unsafe("copper-plate", "niobium-plate")
end

ITEM {
type = "item",
Expand Down
4 changes: 3 additions & 1 deletion prototypes/robots/py-logistic-robot-mk01.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ local cargo_bot =
{type = "item", name = "py-logistic-robot-mk01", amount = 1}
}
}:add_ingredient {type = "fluid", name = "fish-oil", amount = 50}
cargo_bot:replace_ingredient("copper-plate", {type = "item", name = "nichrome", amount = 2}):replace_ingredient("iron-plate", "niobium-plate")
cargo_bot:add_unlock {"logistic-robotics"}
if mods.pycoalprocessing then
cargo_bot:replace_ingredient_unsafe("copper-plate", {type = "item", name = "nichrome", amount = 2}):replace_ingredient_unsafe("iron-plate", "niobium-plate")
end

local bot_item = ITEM {
type = "item",
Expand Down
5 changes: 3 additions & 2 deletions prototypes/tiles/py-iron-oxide.lua
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
--DEPRECIATED--
RECIPE {
type = "recipe",
name = "py-iron-oxide",
category = "hpf",
enabled = false,
ingredients = {
{type = "item", name = "iron-oxide", amount = 4},
{type = "item", name = "pipe", amount = 1},
{type = "item", name = "iron-oxide", amount = 4},
{type = "item", name = "pipe", amount = 1},
{type = "fluid", name = "muddy-sludge", amount = 20}
},
results = {
Expand Down
1 change: 1 addition & 0 deletions prototypes/tiles/py-nexelit.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
--DEPRECIATED--
RECIPE {
type = "recipe",
name = "py-nexelit",
Expand Down
1 change: 1 addition & 0 deletions prototypes/updates/pycoalprocessing-updates.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
--DEPRECIATED
-- RECIPE UPDATES --
if not mods["pyrawores"] then
RECIPE("automated-factory-mk01"):replace_ingredient("advanced-circuit", "electronic-circuit"):remove_unlock("advanced-circuit"):add_unlock("fast-inserter")
Expand Down
1 change: 1 addition & 0 deletions prototypes/updates/pyfusionenergy-updates.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
--DEPRECIATED
-- TECH CHANGES

-- RECIPE UNLOCKS
Expand Down
7 changes: 4 additions & 3 deletions prototypes/updates/pyrawores-updates.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
RECIPE("accumulator-mk02"):add_ingredient {type = "fluid", name = "liquid-nitrogen", amount = 50}
RECIPE("ball-mill-mk01"):add_ingredient {type = "item", name = "py-asphalt", amount = 50}
RECIPE("py-heat-exchanger"):replace_ingredient("stone-brick", "py-asphalt")
--DEPRECIATED--
--RECIPE("accumulator-mk02"):add_ingredient {type = "fluid", name = "liquid-nitrogen", amount = 50}
--RECIPE("ball-mill-mk01"):add_ingredient {type = "item", name = "py-asphalt", amount = 50}
--RECIPE("py-heat-exchanger"):replace_ingredient("stone-brick", "py-asphalt")
6 changes: 5 additions & 1 deletion prototypes/wall/wood-fence.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ RECIPE {
results = {
{type = "item", name = "wood-fence", amount = 1}
}
}:add_unlock("py-asphalt"):replace_ingredient("wood", "treated-wood")
}:add_unlock("py-asphalt")

if mods.pycoalprocessing then
RECIPE("wood-fence"):replace_ingredient_unsafe("wood", "treated-wood")
end

ITEM {
type = "item",
Expand Down