Skip to content

Commit

Permalink
Resource usage rebalance
Browse files Browse the repository at this point in the history
Increase stone, lead, uranium usage. Decrease copper usage.
  • Loading branch information
tburrows13 committed May 18, 2023
1 parent deb1d01 commit faa7b98
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 8 deletions.
4 changes: 2 additions & 2 deletions prototypes/cobalt.lua
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,8 @@ data:extend{
},
results = {
{type = "fluid", name = "water", amount = 20, catalyst_amount = 20},
{type = "item", name = "lead-ore", amount_min = 10, amount_max = 20},
{type = "item", name = "titanium-ore", amount_min = 10, amount_max = 20},
{type = "item", name = "lead-ore", amount_min = 0, amount_max = 8},
{type = "item", name = "titanium-ore", amount_min = 0, amount_max = 4},
},
},
{
Expand Down
6 changes: 3 additions & 3 deletions prototypes/nodule.lua
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ data:extend{
results = {
{name = "iron-ore", amount_min = 40, amount_max = 50},
{name = "copper-ore", amount_min = 0, amount_max = 8},
{name = "stone", amount_min = 0, amount_max = 16},
{name = "stone", amount_min = 0, amount_max = 4},
{name = "ff-ferrous-nodule", amount_min = 0, amount_max = 6},
},
},
Expand Down Expand Up @@ -79,7 +79,7 @@ data:extend{
results = {
{name = "copper-ore", amount_min = 40, amount_max = 50},
{name = "iron-ore", amount_min = 0, amount_max = 8},
{name = "stone", amount_min = 0, amount_max = 16},
{name = "stone", amount_min = 0, amount_max = 4},
{name = "ff-cupric-nodule", amount_min = 0, amount_max = 6},
},
},
Expand Down Expand Up @@ -122,7 +122,7 @@ data:extend{
{name = "ff-cobalt-ore", amount_min = 40, amount_max = 50},
{name = "iron-ore", amount_min = 0, amount_max = 8},
{name = "copper-ore", amount_min = 0, amount_max = 8},
{name = "stone", amount_min = 0, amount_max = 16},
{name = "stone", amount_min = 0, amount_max = 4},
{name = "ff-cobalt-crust", amount_min = 0, amount_max = 10},
},
},
Expand Down
9 changes: 7 additions & 2 deletions prototypes/recipe-updates.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
local util = require "__FreightForwarding__/prototypes/data-util"
local bzutil = require "__bzlead__/data-util"

-- Set recipes fro poles touched by BZ & AAI
-- Set recipes for poles touched by BZ & AAI
bzutil.set_ingredient("big-electric-pole", "lead-plate", 10) -- From 2
bzutil.set_ingredient("big-electric-pole", "steel-plate", 2) -- From 5
bzutil.set_ingredient("substation", "lead-plate", 10) -- From 2
Expand All @@ -13,7 +13,12 @@ bzutil.remove_ingredient("gun-turret", "lead-plate")
bzutil.set_ingredient("gun-turret", "iron-plate", 20)
bzutil.replace_ingredient("firearm-magazine", "lead-plate", "iron-plate")
bzutil.remove_ingredient("piercing-rounds-magazine", "firearm-magazine")
bzutil.add_ingredient("piercing-rounds-magazine", "lead-plate", 4)
bzutil.add_ingredient("piercing-rounds-magazine", "lead-plate", 5)

-- Increase lead costs for overall usage balance
bzutil.set_ingredient("sulfuric-acid", "lead-plate", 3) -- From 1
bzutil.set_ingredient("battery", "lead-plate", 2) -- From 1
bzutil.set_ingredient("electric-furnace", "lead-plate", 10) -- From 4

-- Revert bztitanium's changes to hovercrafts
bzutil.replace_ingredient("hcraft-recipe", "titanium-plate", "steel-plate")
Expand Down
8 changes: 7 additions & 1 deletion prototypes/recipe.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,15 @@ local bzutil = require("__bzlead__/data-util")
util.remove_prerequisite("railway", "engine")
util.add_prerequisite("railway", "ic-containerization-1")

-- Increase stone consumption for overall usage balance
bzutil.set_ingredient("rail", "stone", 4) -- From 1
bzutil.set_ingredient("electric-furnace", "stone-brick", 20) -- From 10

bzutil.set_ingredient("low-density-structure", "copper-plate", 10) -- From 20

-- Rails are now used in transport science, so swap them out for uranium
bzutil.remove_ingredient("production-science-pack", "rail")
bzutil.add_ingredient("production-science-pack", "uranium-238", 2)
bzutil.add_ingredient("production-science-pack", "uranium-238", 3)

util.remove_prerequisite("production-science-pack", "railway")
util.add_prerequisite("production-science-pack", "uranium-processing")
Expand Down

0 comments on commit faa7b98

Please sign in to comment.