fixes
This commit is contained in:
parent
3ff19b37ca
commit
0b79489607
4 changed files with 38 additions and 5 deletions
|
|
@ -1,4 +1,15 @@
|
||||||
---------------------------------------------------------------------------------------------------
|
---------------------------------------------------------------------------------------------------
|
||||||
|
Version: 0.12.7
|
||||||
|
Date: 2021-10-11
|
||||||
|
Fixes:
|
||||||
|
- SE: Balance core mining
|
||||||
|
- SE: Landfill recipe
|
||||||
|
---------------------------------------------------------------------------------------------------
|
||||||
|
Version: 0.12.6
|
||||||
|
Date: 2021-08-13
|
||||||
|
Fixes:
|
||||||
|
- SE: LDS no longer uses steel.
|
||||||
|
---------------------------------------------------------------------------------------------------
|
||||||
Version: 0.12.5
|
Version: 0.12.5
|
||||||
Date: 2021-07-28
|
Date: 2021-07-28
|
||||||
Fixes:
|
Fixes:
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@ end
|
||||||
|
|
||||||
-- Add a prerequisite to a given technology
|
-- Add a prerequisite to a given technology
|
||||||
function util.add_prerequisite(technology_name, prerequisite)
|
function util.add_prerequisite(technology_name, prerequisite)
|
||||||
technology = data.raw.technology[technology_name]
|
local technology = data.raw.technology[technology_name]
|
||||||
if technology and data.raw.technology[prerequisite] then
|
if technology and data.raw.technology[prerequisite] then
|
||||||
if technology.prerequisites then
|
if technology.prerequisites then
|
||||||
table.insert(technology.prerequisites, prerequisite)
|
table.insert(technology.prerequisites, prerequisite)
|
||||||
|
|
@ -46,7 +46,7 @@ end
|
||||||
|
|
||||||
-- Remove a prerequisite from a given technology
|
-- Remove a prerequisite from a given technology
|
||||||
function util.remove_prerequisite(technology_name, prerequisite)
|
function util.remove_prerequisite(technology_name, prerequisite)
|
||||||
technology = data.raw.technology[technology_name]
|
local technology = data.raw.technology[technology_name]
|
||||||
local index = -1
|
local index = -1
|
||||||
if technology and data.raw.technology[prerequisite] then
|
if technology and data.raw.technology[prerequisite] then
|
||||||
for i, prereq in pairs(technology.prerequisites) do
|
for i, prereq in pairs(technology.prerequisites) do
|
||||||
|
|
@ -63,7 +63,7 @@ end
|
||||||
|
|
||||||
-- Add an effect to a given technology
|
-- Add an effect to a given technology
|
||||||
function util.add_effect(technology_name, effect)
|
function util.add_effect(technology_name, effect)
|
||||||
technology = data.raw.technology[technology_name]
|
local technology = data.raw.technology[technology_name]
|
||||||
if technology then
|
if technology then
|
||||||
table.insert(technology.effects, effect)
|
table.insert(technology.effects, effect)
|
||||||
end
|
end
|
||||||
|
|
@ -71,7 +71,7 @@ end
|
||||||
|
|
||||||
-- Set technology ingredients
|
-- Set technology ingredients
|
||||||
function util.set_tech_recipe(technology_name, ingredients)
|
function util.set_tech_recipe(technology_name, ingredients)
|
||||||
technology = data.raw.technology[technology_name]
|
local technology = data.raw.technology[technology_name]
|
||||||
if technology then
|
if technology then
|
||||||
technology.unit.ingredients = ingredients
|
technology.unit.ingredients = ingredients
|
||||||
end
|
end
|
||||||
|
|
@ -363,7 +363,7 @@ end
|
||||||
|
|
||||||
function add_to_ingredient(recipe, it, amount)
|
function add_to_ingredient(recipe, it, amount)
|
||||||
if recipe ~= nil and recipe.ingredients ~= nil then
|
if recipe ~= nil and recipe.ingredients ~= nil then
|
||||||
for i, ingredient in pairs(recipe.ingredients) do
|
for i, ingredient in pairs(recipe.ingredients) do
|
||||||
if ingredient.name == it then
|
if ingredient.name == it then
|
||||||
ingredient.amount = ingredient.amount + amount
|
ingredient.amount = ingredient.amount + amount
|
||||||
return
|
return
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,9 @@ if data.raw.recipe["se-space-pipe"] then
|
||||||
-- Organization
|
-- Organization
|
||||||
data.raw.item[util.me.titanium_plate].subgroup = "plates"
|
data.raw.item[util.me.titanium_plate].subgroup = "plates"
|
||||||
|
|
||||||
|
-- core mining balancing
|
||||||
|
util.add_to_product("se-core-fragment-omni", "titanium-ore", -2)
|
||||||
|
|
||||||
-- deadlock loaders for SE -- mods["deadlock-beltboxes-loaders"]
|
-- deadlock loaders for SE -- mods["deadlock-beltboxes-loaders"]
|
||||||
if mods["Deadlock-SE-bridge"] then
|
if mods["Deadlock-SE-bridge"] then
|
||||||
if data.raw.recipe["se-space-transport-belt-loader"] then
|
if data.raw.recipe["se-space-transport-belt-loader"] then
|
||||||
|
|
@ -15,4 +18,5 @@ if data.raw.recipe["se-space-pipe"] then
|
||||||
util.replace_ingredient("se-space-transport-belt-beltbox", "steel-plate", util.me.titanium_plate)
|
util.replace_ingredient("se-space-transport-belt-beltbox", "steel-plate", util.me.titanium_plate)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
util.remove_ingredient("low-density-structure", "steel-plate")
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,25 @@ local util = require("__bztitanium__.data-util");
|
||||||
if mods["space-exploration"] then
|
if mods["space-exploration"] then
|
||||||
se_delivery_cannon_recipes["titanium-ore"] = {name= "titanium-ore"}
|
se_delivery_cannon_recipes["titanium-ore"] = {name= "titanium-ore"}
|
||||||
se_delivery_cannon_recipes[util.me.titanium_plate] = {name= util.me.titanium_plate}
|
se_delivery_cannon_recipes[util.me.titanium_plate] = {name= util.me.titanium_plate}
|
||||||
|
|
||||||
|
data:extend({
|
||||||
|
{
|
||||||
|
type = "recipe",
|
||||||
|
icons = {
|
||||||
|
{ icon = "__base__/graphics/icons/landfill.png", icon_size = 64, icon_mipmaps = 3 },
|
||||||
|
{ icon = "__bztitanium__/graphics/icons/titanium-ore.png", icon_size = 64, scale = 0.25},
|
||||||
|
},
|
||||||
|
name = "landfill-titanium-ore",
|
||||||
|
category = "hard-recycling",
|
||||||
|
order = "z-b-titanium",
|
||||||
|
subgroup = "terrain",
|
||||||
|
result = "landfill",
|
||||||
|
ingredients = {{"titanium-ore", 50}},
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
if mods["Krastorio2"] then
|
if mods["Krastorio2"] then
|
||||||
|
|
||||||
data:extend({
|
data:extend({
|
||||||
{
|
{
|
||||||
type = "recipe",
|
type = "recipe",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue