updates
This commit is contained in:
parent
bce801f48b
commit
7f46bdeb25
10 changed files with 83 additions and 63 deletions
|
|
@ -12,6 +12,30 @@ util.get_setting = util.me.get_setting
|
|||
util.titanium_plate = ""
|
||||
util.titanium_processing = ""
|
||||
|
||||
local item_sounds_helper = [[
|
||||
local item_sounds = require('__base__.prototypes.item_sounds')
|
||||
|
||||
inventory_move_sound = item_sounds.wire_inventory_move,
|
||||
pick_sound = item_sounds.wire_inventory_pickup,
|
||||
drop_sound = item_sounds.wire_inventory_move,
|
||||
|
||||
inventory_move_sound = item_sounds.metal_small_inventory_move,
|
||||
pick_sound = item_sounds.metal_small_inventory_pickup,
|
||||
drop_sound = item_sounds.metal_small_inventory_move,
|
||||
|
||||
inventory_move_sound = item_sounds.resource_inventory_move,
|
||||
pick_sound = item_sounds.resource_inventory_pickup,
|
||||
drop_sound = item_sounds.resource_inventory_move,
|
||||
|
||||
inventory_move_sound = item_sounds.brick_inventory_move,
|
||||
pick_sound = item_sounds.brick_inventory_pickup,
|
||||
drop_sound = item_sounds.brick_inventory_move,
|
||||
|
||||
inventory_move_sound = item_sounds.sulfur_inventory_move,
|
||||
pick_sound = item_sounds.resource_inventory_pickup,
|
||||
drop_sound = item_sounds.sulfur_inventory_move,
|
||||
]]
|
||||
|
||||
util.A = {{"automation-science-pack", 1}}
|
||||
util.AL = {{"automation-science-pack", 1}, {"logistic-science-pack", 1}}
|
||||
util.ALC = {{"automation-science-pack", 1}, {"logistic-science-pack", 1}, {"chemical-science-pack", 1}}
|
||||
|
|
@ -1839,11 +1863,7 @@ end
|
|||
|
||||
-- Save recycling metadata that is later removed by quality mod. Call near end of data.lua
|
||||
function util.prepare_recycling_helper()
|
||||
if mods.quality then
|
||||
for _, recipe in pairs(data.raw.recipe) do
|
||||
recipe.auto_recycle_helper = recipe.auto_recycle
|
||||
end
|
||||
end
|
||||
-- DEPRECATED
|
||||
end
|
||||
|
||||
-- Recalculate recycling recipes, call near end of data-updates.lua, after calling
|
||||
|
|
@ -1852,7 +1872,6 @@ function util.redo_recycling()
|
|||
if mods.quality then
|
||||
local recycling = require("__quality__.prototypes.recycling")
|
||||
for _, recipe in pairs(data.raw.recipe) do
|
||||
recipe.auto_recycle = recipe.auto_recycle_helper -- keeping this outside conditional to improve fidelity across multiple mods
|
||||
if recipe.redo_recycling then
|
||||
recycling.generate_recycling_recipe(recipe)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue