From e226202e32a173706593bf1ae94315619f713f8a Mon Sep 17 00:00:00 2001 From: Brevven Date: Sun, 14 Mar 2021 23:29:17 -0700 Subject: [PATCH] no need to double validate --- changelog.txt | 7 ++++++- lead-recipe-updates.lua | 33 ++++++++++----------------------- 2 files changed, 16 insertions(+), 24 deletions(-) diff --git a/changelog.txt b/changelog.txt index cd3e1cb..ad0cd0b 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,6 +1,11 @@ --------------------------------------------------------------------------------------------------- +Version: 0.3.4 +Date: 2021-03-14 + Features: + - Modular turret mount recipes +--------------------------------------------------------------------------------------------------- Version: 0.3.3 -Date: 2021-03-11 +Date: 2021-03-12 Features: - VTK Cannon Turret recipes - Vanilla Flamethrower and Artillery Turret recipes diff --git a/lead-recipe-updates.lua b/lead-recipe-updates.lua index 3539e6a..f448d85 100644 --- a/lead-recipe-updates.lua +++ b/lead-recipe-updates.lua @@ -49,29 +49,16 @@ if mods["eve-weaponry"] then util.replace_ingredient("small-carbonized-lead", "iron-plate", "lead-plate") end -if data.raw.recipe["zinfinite_buffer_fluid_tank1"] then - util.replace_some_ingredient("zinfinite_buffer_fluid_tank1", "iron-plate", "lead-plate", 1000) -end -if data.raw.recipe["storage-tank2"] then - util.add_ingredient("storage-tank2", "lead-plate", 32) -end +-- Other one-offs +util.replace_some_ingredient("zinfinite_buffer_fluid_tank1", "iron-plate", "lead-plate", 1000) +util.add_ingredient("storage-tank2", "lead-plate", 32) +util.add_ingredient("advanced-substation", "lead-plate", 20) +util.add_ingredient("substation-2", "lead-plate", 20) +util.add_ingredient("advanced-accumulator", "lead-plate", 16) -if data.raw.recipe["advanced-substation"] then - util.add_ingredient("advanced-substation", "lead-plate", 20) -end +util.add_ingredient("vtk-cannon-turret", "lead-plate", 20) +util.add_ingredient("vtk-cannon-turret-heavy", "lead-plate", 30) -if data.raw.recipe["substation-2"] then - util.add_ingredient("advanced-substation", "lead-plate", 20) -end - -if data.raw.recipe["advanced-accumulator"] then - util.add_ingredient("advanced-accumulator", "lead-plate", 16) -end - -if data.raw.recipe["vtk-cannon-turret"] then - util.add_ingredient("vtk-cannon-turret", "lead-plate", 20) -end -if data.raw.recipe["vtk-cannon-turret-heavy"] then - util.add_ingredient("vtk-cannon-turret-heavy", "lead-plate", 30) -end +util.add_ingredient("w93-modular-turret-base", "lead-plate", 8) +util.add_ingredient("w93-modular-turret2-base", "lead-plate", 4)