se fixes, updates
This commit is contained in:
parent
bc823ac823
commit
2147e2db0d
5 changed files with 20 additions and 10 deletions
|
|
@ -1,4 +1,10 @@
|
||||||
---------------------------------------------------------------------------------------------------
|
---------------------------------------------------------------------------------------------------
|
||||||
|
Version: 0.5.8
|
||||||
|
Date: 2021-08-05
|
||||||
|
Changes:
|
||||||
|
- SE Vulcanite lead recipe balanced
|
||||||
|
- SE meteor defense recipes updated
|
||||||
|
---------------------------------------------------------------------------------------------------
|
||||||
Version: 0.5.7
|
Version: 0.5.7
|
||||||
Date: 2021-07-26
|
Date: 2021-07-26
|
||||||
Changes:
|
Changes:
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "bzlead",
|
"name": "bzlead",
|
||||||
"version": "0.5.7",
|
"version": "0.5.8",
|
||||||
"factorio_version": "1.1",
|
"factorio_version": "1.1",
|
||||||
"title": "Lead",
|
"title": "Lead",
|
||||||
"author": "Brevven",
|
"author": "Brevven",
|
||||||
|
|
|
||||||
|
|
@ -40,17 +40,19 @@ if mods["space-exploration"] then
|
||||||
type = "recipe",
|
type = "recipe",
|
||||||
name = "lead-smelting-vulcanite",
|
name = "lead-smelting-vulcanite",
|
||||||
category = "smelting",
|
category = "smelting",
|
||||||
|
subgroup = "plates",
|
||||||
order = "d[lead-plate]",
|
order = "d[lead-plate]",
|
||||||
energy_required = 48,
|
energy_required = 24,
|
||||||
enabled = false,
|
enabled = false,
|
||||||
always_show_made_in = true,
|
always_show_made_in = true,
|
||||||
allow_as_intermediate = false,
|
allow_as_intermediate = false,
|
||||||
ingredients = {
|
ingredients = {
|
||||||
{name = "lead-ore", amount = 20},
|
{name = "lead-ore", amount = 8},
|
||||||
{name = "se-vulcanite-block", amount = 1},
|
{name = "se-vulcanite-block", amount = 1},
|
||||||
},
|
},
|
||||||
results = {
|
results = {
|
||||||
{name = util.me.lead_plate, amount = 6},
|
{name = util.me.lead_plate, amount = 10},
|
||||||
|
{name = "copper-ore", amount=2},
|
||||||
},
|
},
|
||||||
icons =
|
icons =
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,9 @@ util.add_ingredient("industrial-furnace", "lead-plate", 16) -- AAII
|
||||||
|
|
||||||
util.add_ingredient("se-material-testing-pack", "lead-plate", 1)
|
util.add_ingredient("se-material-testing-pack", "lead-plate", 1)
|
||||||
util.add_ingredient("se-space-radiation-laboratory", "lead-plate", 100)
|
util.add_ingredient("se-space-radiation-laboratory", "lead-plate", 100)
|
||||||
util.add_ingredient("se-delivery-cannon", "lead-plate", 20)
|
util.add_ingredient("se-delivery-cannon", "lead-plate", 16)
|
||||||
|
util.add_ingredient("se-meteor-point-defence", "lead-plate", 16)
|
||||||
|
util.add_ingredient("se-meteor-defence", "lead-plate", 64)
|
||||||
|
|
||||||
util.add_ingredient("se-experimental-alloys-data", "lead-plate", 1)
|
util.add_ingredient("se-experimental-alloys-data", "lead-plate", 1)
|
||||||
util.add_to_product("se-experimental-alloys-data", "se-experimental-alloys-data", 1)
|
util.add_to_product("se-experimental-alloys-data", "se-experimental-alloys-data", 1)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue