Skip to content

Commit

Permalink
Fix Milk mess (#278)
Browse files Browse the repository at this point in the history
Co-authored-by: Zachary Picco <[email protected]>
  • Loading branch information
DrNjitram and notnotmelon authored Nov 20, 2024
1 parent 842cd1d commit ef43f10
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 42 deletions.
7 changes: 6 additions & 1 deletion changelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
---------------------------------------------------------------------------------------------------
Version: 3.0.25
Version: 3.0.27
Date: ????
Changes:
- Fixed milk barreling recipes did not work. https://github.com/pyanodon/pyalienlife/pull/278
---------------------------------------------------------------------------------------------------
Version: 3.0.26
Date: 2024-11-20
Changes:
- Removed the server administrator requirement when selecting turd upgrades.
Expand Down
47 changes: 6 additions & 41 deletions data-updates.lua
Original file line number Diff line number Diff line change
Expand Up @@ -193,47 +193,12 @@ require "prototypes.module_restrictions"
----------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------

--remove steel barrel based milk
data.raw.item["milk-barrel"] = nil
RECIPE("milk-barrel"):remove_unlock("fluid-handling")
data.raw.recipe["milk-barrel"] = nil

--RECIPES UPDATES

--Updating base milk barrel with icons. replacing base recipes with py copies to use the right barrel

RECIPE {
type = "recipe",
name = "fill-milk-barrel",
category = "py-barreling",
enabled = false,
energy_required = 1,
ingredients = {
{type = "item", name = "empty-barrel-milk", amount = 1},
{type = "fluid", name = "milk", amount = 50},
},
results = {
{type = "item", name = "barrel-milk", amount = 1},
},
}:remove_unlock("fluid-handling"):add_unlock("korlex")

RECIPE {
type = "recipe",
name = "empty-milk-barrel",
category = "py-unbarreling",
enabled = false,
energy_required = 1,
ingredients = {
{type = "item", name = "barrel-milk", amount = 1},
},
results = {
{type = "item", name = "empty-barrel-milk", amount = 1},
{type = "fluid", name = "milk", amount = 50},
},
main_product = "milk",
icon = "__pyalienlifegraphics__/graphics/icons/empty-barrel-milk-recipe.png",
icon_size = 64,
}:remove_unlock("fluid-handling"):add_unlock("korlex")
--Fix up the milk barrel recipes with new ingredients and icons
RECIPE("milk-barrel"):remove_unlock("fluid-handling"):add_unlock("korlex"):replace_ingredient("barrel", "empty-barrel-milk"):set_fields {results = {{type = "item", name = "barrel-milk", amount = 1}}}
RECIPE("milk-barrel").icons = {{icon = "__pyalienlifegraphics__/graphics/icons/barrel-milk.png",icon_size = 64}}
RECIPE("empty-milk-barrel"):remove_unlock("fluid-handling"):add_unlock("korlex"):replace_ingredient("milk-barrel", "barrel-milk"):set_fields {results = {{type = "item", name = "empty-barrel-milk", amount = 1},{type = "fluid", name = "milk", amount = 50}}}
RECIPE("empty-milk-barrel").icons = {{icon = "__pyalienlifegraphics__/graphics/icons/empty-barrel-milk-recipe.png",icon_size = 64}}


--copy`s of combustion recipes with biomass
for _, recipe in pairs(data.raw.recipe) do
Expand Down

0 comments on commit ef43f10

Please sign in to comment.