From f7b7425eee1f3c62ef068e3da73f961edd228d7e Mon Sep 17 00:00:00 2001 From: Brevven Date: Thu, 20 May 2021 02:56:04 -0700 Subject: [PATCH] weapons, some mining stuff --- changelog.txt | 7 +++++++ info.json | 5 +++-- tungsten-recipe-updates.lua | 40 +++++++++++++++++++++++++++++++++++++ 3 files changed, 50 insertions(+), 2 deletions(-) diff --git a/changelog.txt b/changelog.txt index af1785d..6119bb1 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,4 +1,11 @@ --------------------------------------------------------------------------------------------------- +Version: 0.0.5 +Date: 2021-05-18 + Features: + - Compatibility: Orbital Ion Cannon, Weapon Pack, More Ammo, Rampant Arsenal + - Partial compatibility: Asteroid mining (mining module recipes only, asteroids coming later) + - Partial compatibility: VortiK's Deep Core Mining (drill recipes only, mining coming later) +--------------------------------------------------------------------------------------------------- Version: 0.0.4 Date: 2021-05-18 Features: diff --git a/info.json b/info.json index 3980f8c..8ddf845 100644 --- a/info.json +++ b/info.json @@ -1,6 +1,6 @@ { "name": "bztungsten", - "version": "0.0.4", + "version": "0.0.5", "factorio_version": "1.1", "title": "Tungsten", "author": "Brevven", @@ -11,7 +11,8 @@ "? space-exploration", "? Krastorio2", "? deadlock-beltboxes-loaders", - "? DeadlockCrating" + "? DeadlockCrating", + "? bzlead" ], "description": "Adds tungsten ore (wolframite), tungsten plates, tungsten carbide and rocket engine nozzles to the base game.\n\nAvailable after green science, tungsten and the various intermediates are used throughout the vanilla game. Compatible with Space Exploration and Krastorio 2, as well as several other mods. More compatibility forthcoming." } diff --git a/tungsten-recipe-updates.lua b/tungsten-recipe-updates.lua index 0b67c6a..0ce0f89 100644 --- a/tungsten-recipe-updates.lua +++ b/tungsten-recipe-updates.lua @@ -155,3 +155,43 @@ if mods["aai-industry"]then util.add_ingredient("area-mining-drill", "tungsten-carbide", 8) end +if mods["WeaponPack"] then + util.replace_ingredient("5,56x45", "iron-plate", "tungsten-plate") + util.replace_ingredient("5,45x39", "iron-plate", "tungsten-plate") + util.replace_ingredient("7,62x51", "iron-plate", "tungsten-plate") + util.replace_ingredient("5,7 × 28", "iron-plate", "tungsten-plate") + util.replace_ingredient("12gauge", "iron-plate", "tungsten-plate") + util.replace_ingredient("45acp", "iron-plate", "tungsten-plate") +end + +if mods["More_Ammo"] then + util.replace_ingredient("acid-ammo-recipe", "iron-plate", "tungsten-plate") + util.replace_ingredient("fire-ammo-recipe", "iron-plate", "tungsten-plate") + util.replace_ingredient("fmj-ammo-recipe", "iron-plate", "tungsten-plate") + util.replace_ingredient("he-ammo-recipe", "iron-plate", "tungsten-plate") +end +-- rampant arsenal +util.add_ingredient("suppression-cannon-item-rampant-arsenal", "tungsten-plate", 30) + +util.add_ingredient("orbital-ion-cannon", "rocket-engine-nozzle", 12) + +-- vortik's deep core mining +util.add_ingredient("vtk-deepcore-mining-moho", "tungsten-carbide", 10) +util.add_ingredient("vtk-deepcore-mining-drone", "tungsten-carbide", 1) +util.add_ingredient("vtk-deepcore-mining-drill", "tungsten-carbide", 20) +util.add_ingredient("vtk-deepcore-mining-drill-advanced", "tungsten-carbide", 50) + + +-- Asteroid mining +function startswith(s, start) + return string.sub(s, 1, string.len(start))==start +end + +if mods["Asteroid_Mining"] then + for i, recipe in pairs(data.raw.recipe) do + if startswith(recipe.name, "miner-module") then + util.add_ingredient(recipe.name, "tungsten-carbide", 20) + util.add_ingredient(recipe.name, "rocket-engine-nozzle", 12) + end + end +end