se fixes, updates

This commit is contained in:
Brevven 2021-08-05 13:39:09 -07:00
parent bc823ac823
commit 2147e2db0d
5 changed files with 20 additions and 10 deletions

View file

@ -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
Date: 2021-07-26
Changes:

View file

@ -34,7 +34,7 @@ end
-- Add a prerequisite to a given technology
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.prerequisites then
table.insert(technology.prerequisites, prerequisite)
@ -46,7 +46,7 @@ end
-- Remove a prerequisite from a given technology
function util.remove_prerequisite(technology_name, prerequisite)
technology = data.raw.technology[technology_name]
local technology = data.raw.technology[technology_name]
local index = -1
if technology and data.raw.technology[prerequisite] then
for i, prereq in pairs(technology.prerequisites) do
@ -63,7 +63,7 @@ end
-- Add an effect to a given technology
function util.add_effect(technology_name, effect)
technology = data.raw.technology[technology_name]
local technology = data.raw.technology[technology_name]
if technology then
table.insert(technology.effects, effect)
end
@ -71,7 +71,7 @@ end
-- Set technology 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
technology.unit.ingredients = ingredients
end
@ -363,7 +363,7 @@ end
function add_to_ingredient(recipe, it, amount)
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
ingredient.amount = ingredient.amount + amount
return

View file

@ -1,6 +1,6 @@
{
"name": "bzlead",
"version": "0.5.7",
"version": "0.5.8",
"factorio_version": "1.1",
"title": "Lead",
"author": "Brevven",

View file

@ -40,17 +40,19 @@ if mods["space-exploration"] then
type = "recipe",
name = "lead-smelting-vulcanite",
category = "smelting",
subgroup = "plates",
order = "d[lead-plate]",
energy_required = 48,
energy_required = 24,
enabled = false,
always_show_made_in = true,
allow_as_intermediate = false,
ingredients = {
{name = "lead-ore", amount = 20},
{name = "lead-ore", amount = 8},
{name = "se-vulcanite-block", amount = 1},
},
results = {
{name = util.me.lead_plate, amount = 6},
{name = util.me.lead_plate, amount = 10},
{name = "copper-ore", amount=2},
},
icons =
{

View file

@ -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-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_to_product("se-experimental-alloys-data", "se-experimental-alloys-data", 1)