Restructure repository

This commit is contained in:
Simon Brodtmann 2025-10-19 15:45:31 +02:00
parent a76870aed7
commit 7966b7191a
106 changed files with 0 additions and 38 deletions

20
bztungsten2/LICENSE.md Normal file
View file

@ -0,0 +1,20 @@
The MIT License (MIT)
Copyright (c) 2021 Brevven
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

View file

@ -0,0 +1,245 @@
local futil = require("util");
local util = require("__bztungsten__.data-util");
if util.me.get_setting("bztungsten-advanced-carbon-furnace") == "yes" and not mods.Krastorio2 and not mods.bzfoundry2 then
log("Using advanced carbon furnace")
data:extend({
{
type = "item",
name = "advanced-carbon-furnace",
icons = {{
icon = "__base__/graphics/icons/steel-furnace.png",
icon_size = 64, icon_mipmaps = 4,
tint = {a = 1, r = .55, g = .6, b = .6},
}},
subgroup = "smelting-machine",
order = "c[advanced-carbon-furnace]",
place_result = "advanced-carbon-furnace",
stack_size = 50,
},
{
type = "recipe",
name = "advanced-carbon-furnace",
ingredients = {{type="item", name="steel-furnace", amount=2}, {type="item", name="stone-brick", amount=5}, {type="item", name="tungsten-plate", amount=5}},
results = {{type="item", name="advanced-carbon-furnace", amount=1}},
energy_required = 6,
enabled = false,
},
{
type = "technology",
name = "advanced-carbon-furnace",
icons = {{
icon = "__base__/graphics/technology/advanced-material-processing.png",
icon_size = 256, icon_mipmaps = 4,
tint = {a = 1, r = .55, g = .6, b = .6},
}},
effects =
{
{
type = "unlock-recipe",
recipe = "advanced-carbon-furnace",
},
},
unit =
{
count = 500,
ingredients =
{
{"automation-science-pack", 1},
{"logistic-science-pack", 1},
{"chemical-science-pack", 1},
{"production-science-pack", 1},
},
time = 30,
},
prerequisites = {"advanced-material-processing-2", "productivity-module-3"},
order = "b-b"
},
{
type = "furnace",
name = "advanced-carbon-furnace",
icon = "__base__/graphics/icons/steel-furnace.png",
icon_size = 64, icon_mipmaps = 4,
flags = {"placeable-neutral", "placeable-player", "player-creation"},
minable = {mining_time = 0.2, result = "advanced-carbon-furnace"},
max_health = 300,
corpse = "steel-furnace-remnants",
dying_explosion = "steel-furnace-explosion",
vehicle_impact_sound = data.raw.furnace["steel-furnace"].vehicle_impact_sound,
open_sound = data.raw.furnace["steel-furnace"].machine_open,
close_sound = data.raw.furnace["steel-furnace"].machine_close,
working_sound =
{
sound =
{
{
filename = "__base__/sound/steel-furnace.ogg",
volume = 0.46
}
},
max_sounds_per_type = 4,
audible_distance_modifier = 0.37,
fade_in_ticks = 4,
fade_out_ticks = 20
},
resistances =
{
{
type = "fire",
percent = 100
}
},
collision_box = {{-0.7, -0.7}, {0.7, 0.7}},
selection_box = {{-0.8, -1}, {0.8, 1}},
damaged_trigger_effect = data.raw.furnace["steel-furnace"].hit_effects,
crafting_categories = {}, -- added later
result_inventory_size = 1,
energy_usage = "720kW",
crafting_speed = 8,
base_productivity = 0.3,
source_inventory_size = 1,
energy_source =
{
type = "burner",
fuel_categories = {"chemical"},
effectivity = 1,
emissions_per_minute = {["pollution"] = 4},
fuel_inventory_size = 1,
light_flicker =
{
color = {0,0,0},
minimum_intensity = 0.6,
maximum_intensity = 0.95
},
smoke =
{
{
name = "smoke",
frequency = 10,
position = {0.7, -1.2},
starting_vertical_speed = 0.08,
starting_frame_deviation = 60
}
}
},
animation =
{
layers =
{
{
filename = "__base__/graphics/entity/steel-furnace/steel-furnace.png",
priority = "high",
width = 171,
height = 174,
frame_count = 1,
shift = futil.by_pixel(-1.25, 2),
scale = 0.5,
tint = {a = 1, r = .55, g = .6, b = .6},
},
{
filename = "__base__/graphics/entity/steel-furnace/steel-furnace-shadow.png",
priority = "high",
width = 277,
height = 85,
frame_count = 1,
draw_as_shadow = true,
shift = futil.by_pixel(39.25, 11.25),
scale = 0.5
}
}
},
working_visualisations =
{
{
draw_as_light = true,
fadeout = true,
effect = "flicker",
animation =
{
animation_speed = 0.25,
filename = "__base__/graphics/entity/steel-furnace/steel-furnace-fire.png",
priority = "high",
line_length = 8,
width = 57,
height = 81,
frame_count = 48,
direction_count = 1,
shift = futil.by_pixel(-0.75, 5.75),
scale = 0.5
},
},
{
fadeout = true,
draw_as_light = true,
effect = "flicker",
animation =
{
filename = "__base__/graphics/entity/steel-furnace/steel-furnace-glow.png",
priority = "high",
width = 60,
height = 43,
frame_count = 1,
shift = {0.03125, 0.640625},
blend_mode = "additive"
}
},
{
fadeout = true,
draw_as_light = true,
effect = "flicker",
animation =
{
filename = "__base__/graphics/entity/steel-furnace/steel-furnace-working.png",
priority = "high",
line_length = 1,
width = 128,
height = 150,
frame_count = 1,
direction_count = 1,
shift = futil.by_pixel(0, -5),
blend_mode = "additive",
scale = 0.5,
}
},
{
draw_as_light = true,
draw_as_sprite = false,
fadeout = true,
effect = "flicker",
animation =
{
filename = "__base__/graphics/entity/steel-furnace/steel-furnace-ground-light.png",
priority = "high",
line_length = 1,
draw_as_sprite = false,
width = 152,
height = 126,
frame_count = 1,
direction_count = 1,
shift = futil.by_pixel(1, 48),
blend_mode = "additive",
scale = 0.5,
},
},
},
fast_replaceable_group = "furnace",
water_reflection =
{
pictures =
{
filename = "__base__/graphics/entity/steel-furnace/steel-furnace-reflection.png",
priority = "extra-high",
width = 20,
height = 24,
shift = futil.by_pixel(0, 45),
tint = {a = 1, r = .55, g = .6, b = .6},
variation_count = 1,
scale = 5
},
rotate = false,
orientation_to_variation = false
}
},
})
end

450
bztungsten2/changelog.txt Normal file
View file

@ -0,0 +1,450 @@
---------------------------------------------------------------------------------------------------
Version: 0.7.13
Date: 2024-03-18
Fixes:
- Fix soft lock when used with both Omnimatter and Krastorio 2
---------------------------------------------------------------------------------------------------
Version: 0.7.12
Date: 2023-12-22
Fixes:
- Fix a softlock when used with Bob's MCI (bobplates) thanks to KiwiHawk
Localization:
- ja updates thanks to Sakuro
---------------------------------------------------------------------------------------------------
Version: 0.7.11
Date: 2023-04-10
Fixes:
- Double furnace: fixed to work with double furnace again (broken in 7.10)
Changes:
- Trees will spawn less often on resources.
- SE: Update ore and core fragments subgroup
- SE+K2: Matter deconversion requires stabilizer now
---------------------------------------------------------------------------------------------------
Version: 0.7.10
Date: 2023-03-25
Fixes:
- Compatibility improvements with James' oil processing buildings, etc.
---------------------------------------------------------------------------------------------------
Version: 0.7.9
Date: 2023-03-06
Features:
- K2: Add setting to choose between default mineral water and water for mining fluid
---------------------------------------------------------------------------------------------------
Version: 0.7.8
Date: 2023-02-12
Changes:
- Crafting efficiency improvements, thanks to nihilistzsche
- SE: Optional tungsten powder for sintering can use productivity modules
---------------------------------------------------------------------------------------------------
Version: 0.7.7
Date: 2023-01-17
Features:
- (Beta) Crafting Efficiency compatibility
Localization:
- ru updates thanks to CV514
---------------------------------------------------------------------------------------------------
Version: 0.7.6
Date: 2022-12-24
Fixes:
- Prod mod compatibility with K2+GDIW etc
- Fix mod load error with AAI-Industry + Bob Metals + Tungsten
Localization:
- de updates thanks to NathanU
- ja updates thanks to Sakuro
- zh thanks to sunnytan53
Changes:
- SE ingot in delivery cannon
---------------------------------------------------------------------------------------------------
Version: 0.7.5
Date: 2022-11-20
Fixes:
- K2: Compatibility fix for 1.3.7+
---------------------------------------------------------------------------------------------------
Version: 0.7.4
Date: 2022-08-17
Fixes:
- SE: Disable matter recipes at start
---------------------------------------------------------------------------------------------------
Version: 0.7.3
Date: 2022-08-16
Features:
- Support for SE matter fusion and SE+K2 matter liberation
---------------------------------------------------------------------------------------------------
Version: 0.7.2
Date: 2022-08-13
Changes:
- AAI: Oil processing now depends on tungsten processing. Added new pumpjack tech to enable
pumpjacks prior to other oil processing recipes.
- Some minor modded recipe updates
---------------------------------------------------------------------------------------------------
Version: 0.7.1
Date: 2022-08-10
Fixes:
- Compatibility - fix tech deadlock with MoreScience
---------------------------------------------------------------------------------------------------
Version: 0.7.0
Date: 2022-08-09
Features:
- New optional intermediate: Copper tungsten, replaces tungsten plate in some recipes.
If not unlocked on settings change, use "TungstenRecipes" (no slashes) command.
- Space Exploration: New option to use tungsten powder instead of molten tungsten.
- A few basic recipe tweaks for 248k
Changes:
- Rocketry now defaults to not requiring military science packs. Option still exists for now.
- General balance: Tungsten plates required for piercing ammunition reduced.
- General balance: Tungsten ingredients required for oil refinery & chemical plant increased.
- General balance: For some mod loadouts, steel no longer required for assembling machine 2
- SE+K2 balance: When using Space Exploration 0.6 & Krastorio 2, speed modules are now removed
from rocket science (rocket tech cards), but many more rocket engine nozzles are used.
This slightly balances the jump in complexity from chemical to rocket science.
Speed modules are still used later in optimization science.
---------------------------------------------------------------------------------------------------
Version: 0.6.6
Date: 2021-08-02
Changes:
- Asteroid Mining support
---------------------------------------------------------------------------------------------------
Version: 0.6.5
Date: 2021-07-10
Changes:
- Support Double Furnace mod
Localization:
- ru locale updates thanks to Pergamum663
---------------------------------------------------------------------------------------------------
Version: 0.6.4
Date: 2021-07-03
Fixes:
- Prod modules for molten
---------------------------------------------------------------------------------------------------
Version: 0.6.3
Date: 2021-07-02
Fixes:
- SE K2 subgroup cleanup
---------------------------------------------------------------------------------------------------
Version: 0.6.2
Date: 2021-07-02
Changes:
- SE Update smelting unlock
---------------------------------------------------------------------------------------------------
Version: 0.6.1
Date: 2022-07-01
Changes:
- SE: minor tech tree tweaks
---------------------------------------------------------------------------------------------------
Version: 0.6.0
Date: 2022-07-01
Changes:
- Compatible with Space Exploration 0.6
---------------------------------------------------------------------------------------------------
Version: 0.5.8
Date: 2022-02-22
Localization:
- ko localization updates thanks to x2605
---------------------------------------------------------------------------------------------------
Version: 0.5.7
Date: 2022-02-12
Localization:
- ja localization updates thanks to Sakuro
---------------------------------------------------------------------------------------------------
Version: 0.5.6
Date: 2022-02-09
Features:
- New setting to enable starting Wolframite in vanilla. (K2 still has by default)
- Expensive recipe settings now work when K2 enabled
---------------------------------------------------------------------------------------------------
Version: 0.5.5
Date: 2022-02-02
Changes:
- More minor compatibility tweaks
---------------------------------------------------------------------------------------------------
Version: 0.5.4
Date: 2022-01-24
Changes:
- King Jo's vehicles recipe tweaks
- K2: Filter dirty water recipe quantity
---------------------------------------------------------------------------------------------------
Version: 0.5.3
Date: 2022-01-16
Changes:
- Minor compatibility updates
---------------------------------------------------------------------------------------------------
Version: 0.5.2
Date: 2022-01-10
Changes:
- Advanced carbon furnace disabled if Foundry mod is enabled.
- Minor english text changes
---------------------------------------------------------------------------------------------------
Version: 0.5.1
Date: 2022-01-06
Localization:
- pl l10n updates thanks to S3BA
---------------------------------------------------------------------------------------------------
Version: 0.5.0
Date: 2022-01-03
Changes:
- Rocket engine nozzle recipe is set as 2 plates here and later modified in other mods.
Localization:
- JA l10n updates
- AAI Vehicles
---------------------------------------------------------------------------------------------------
Version: 0.4.2
Date: 2021-12-30
Changes:
- SE Void probe recipe
- Graphite compatibility
---------------------------------------------------------------------------------------------------
Version: 0.4.1
Date: 2021-12-05
Changes:
- Cargo Ships compatibility
---------------------------------------------------------------------------------------------------
Version: 0.4.0
Date: 2021-11-06
Changes:
- K2: Beta compatibility
---------------------------------------------------------------------------------------------------
Version: 0.3.8
Date: 2021-10-11
Fixes:
- SE: Balance core mining
- SE: Landfill recipe
---------------------------------------------------------------------------------------------------
Version: 0.3.7
Date: 2021-07-31
Features:
- Space solar panel compatibility
- Junk Train compatibility
---------------------------------------------------------------------------------------------------
Version: 0.3.6
Date: 2021-07-26
Changes:
- SE: Experimental alloys data recipe
- Minor refactor
---------------------------------------------------------------------------------------------------
Version: 0.3.5
Date: 2021-07-25
Features:
- Schall's compatibility (some recipes)
---------------------------------------------------------------------------------------------------
Version: 0.3.4
Date: 2021-07-21
Features:
- True Nukes compatibility
---------------------------------------------------------------------------------------------------
Version: 0.3.3
Date: 2021-07-21
Changes:
- AAI/SE: Tungsten carbide coal recipe improved.
- Foundry+AAI/SE: Tungsten carbide coal recipe removed.
---------------------------------------------------------------------------------------------------
Version: 0.3.2
Date: 2021-07-10
Features:
- Fluid amount settings
Localization:
- German locale fixes, thanks to Yokmp
---------------------------------------------------------------------------------------------------
Version: 0.3.1
Date: 2021-07-06
Localization:
- German locale fixes, thanks to Yokmp
---------------------------------------------------------------------------------------------------
Version: 0.3.0
Date: 2021-07-06
Features:
- Bob's MCI (bobplates) compatibility. If you use bob's library without bobplates, you might
Need to re-research tungsten processing. Nothing else should change.
- Useful equipment compatibility
---------------------------------------------------------------------------------------------------
Version: 0.2.8
Date: 2021-07-05
Localization:
- German locale, thanks to Yokmp
---------------------------------------------------------------------------------------------------
Version: 0.2.7
Date: 2021-07-04
Features:
- Rocket silo construction, One more tier compatibility
---------------------------------------------------------------------------------------------------
Version: 0.2.6
Date: 2021-07-01
Features:
- Strange matter compatibility
---------------------------------------------------------------------------------------------------
Version: 0.2.5
Date: 2021-06-29
Features:
- Realistic Fusion Power compatibility
---------------------------------------------------------------------------------------------------
Version: 0.2.4
Date: 2021-06-26
Changes:
- Flamethrower weapon recipe
Features:
- More compat incl. omega drill 2, plutonium energy
---------------------------------------------------------------------------------------------------
Version: 0.2.3
Date: 2021-06-17
Features:
- More compat incl. bob's machines, mining, etc
---------------------------------------------------------------------------------------------------
Version: 0.2.2
Date: 2021-06-16
Localization:
- Polish locale, thanks to TheoMarque
- Ja locale update, thanks to Sakuro
---------------------------------------------------------------------------------------------------
Version: 0.2.1
Date: 2021-06-16
Changes:
- Tweak to electric-furnace recipe
---------------------------------------------------------------------------------------------------
Version: 0.2.0
Date: 2021-06-16
Features:
- Recipe bypass setting
Changes:
- When K2 is enabled, add wolframite to starting area
---------------------------------------------------------------------------------------------------
Version: 0.1.5
Date: 2021-06-15
Fixes:
- Fix K2 Issue when more realistic weapons is off, and more general duplicate fix.
---------------------------------------------------------------------------------------------------
Version: 0.1.4
Date: 2021-06-15
Features:
- FE+ compatibility
---------------------------------------------------------------------------------------------------
Version: 0.1.3
Date: 2021-06-15
Fixes:
- Fix load cycle error with SE+K2+Bobs Lib+Tungsten
- Try to prevent another potential issue with possible duplicate ingredients.
---------------------------------------------------------------------------------------------------
Version: 0.1.2
Date: 2021-06-14
Features:
- Rampant Industry compatibility
- More Endgame Combat recipes
- Realistic Reactors
---------------------------------------------------------------------------------------------------
Version: 0.1.1
Date: 2021-06-13
Features:
- Nuclear fuel compatibility
---------------------------------------------------------------------------------------------------
Version: 0.1.0
Date: 2021-06-06
Features:
- Menu simulation
Fixes:
- Delivery cannon recipes
Changes:
- Nuclear fuel uses tungsten (e.g. tungsten urania)
- Now in beta
---------------------------------------------------------------------------------------------------
Version: 0.0.16
Date: 2021-05-30
Localization:
- ja localization thanks to Sakuro
Changes:
- Ensure radar is not gated behind optics
---------------------------------------------------------------------------------------------------
Version: 0.0.15
Date: 2021-05-27
Changes:
- Tweaked tungsten plate and tungsten carbide recipes
Features:
- 5dims tungsten carbide recipe
---------------------------------------------------------------------------------------------------
Version: 0.0.14
Date: 2021-05-26
Features:
- Additional turrets compatibility
- 5dims compatibility
Changes:
- Decrease icon file size a bit
---------------------------------------------------------------------------------------------------
Version: 0.0.13
Date: 2021-05-24
Changes:
- Minor tweak to thumbnail
Features:
- King Jo's compatibility
---------------------------------------------------------------------------------------------------
Version: 0.0.12
Date: 2021-05-24
Features:
- Zombie's compatibility, nuclear furnace, mega furnace, mundas
---------------------------------------------------------------------------------------------------
Version: 0.0.11
Date: 2021-05-23
Features:
- New thumbnail
Fixes:
- Fix for mixed icons issue introduced in 0.0.10
---------------------------------------------------------------------------------------------------
Version: 0.0.10
Date: 2021-05-22
Features:
- New icon for plate
---------------------------------------------------------------------------------------------------
Version: 0.0.9
Date: 2021-05-21
Features:
- Compatibility with Geothermal, FastFurnaces, TA Miners
Changes:
- Wolframite patches are wider (same overall richness)
---------------------------------------------------------------------------------------------------
Version: 0.0.8
Date: 2021-05-20
Changes:
- Heat pipes now require tungsten plate
- AAI, if K2 not enabled, coal recipe for tungsten carbide
Features:
- Compatibility: superheater, expanded rocket payloads (recipes only)
---------------------------------------------------------------------------------------------------
Version: 0.0.7
Date: 2021-05-20
Features:
- Optional advanced carbon furnace for megabase tungsten carbide production
Changes:
- Wolframite is richer, farther from the start (no change within 1000 tiles)
Fixes:
- Aircraft afterburner recipe
---------------------------------------------------------------------------------------------------
Version: 0.0.6
Date: 2021-05-19
Features:
- Compatibility - Most mining drill mods.
---------------------------------------------------------------------------------------------------
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
Localization:
- ru localization, thanks to Spectrus1702
---------------------------------------------------------------------------------------------------
Version: 0.0.3
Date: 2021-05-17
Fixes:
- K2: Fix icon for enriched tungsten smelting
---------------------------------------------------------------------------------------------------
Version: 0.0.2
Date: 2021-05-17
Changes:
- Removed extranous k2 tech.
Features:
- Support Larger Lamps
---------------------------------------------------------------------------------------------------
Version: 0.0.1
Date: 2021-05-16
Features:
- Tungsten added to game.
- Compatible with space exploration, krastorio2, deadlock stacking/crating, etc.

View file

@ -0,0 +1,19 @@
local util = require("__bztungsten__.data-util");
if mods["248k-Redux"] then
local cuw = util.me.cuw() and "cuw" or "tungsten-plate"
util.add_ingredient("fu_ingot_recipe", cuw, 20)
util.add_ingredient("fu_plasma_recipe", cuw, 40)
util.add_ingredient("fi_crafter_recipe", cuw, 40)
util.add_ingredient("fi_solid_reactor_recipe", cuw, 200)
util.add_ingredient("fu_tokamak_reactor_recipe", cuw, 200)
util.add_ingredient("fu_stelar_reactor_recipe", cuw, 200)
util.replace_ingredient("fu_drill_recipe", util.titanium_plate, "tungsten-carbide")
util.replace_ingredient("fu_drill_recipe", "fi_materials_titan", "tungsten-carbide")
util.add_ingredient("fi_crusher_recipe", "tungsten-carbide", 10)
-- Only modify if CuW is used
util.add_ingredient("fi_modules_base_recipe", "cuw", 1)
end

View file

@ -0,0 +1,35 @@
local util = require("data-util");
if mods["crafting-efficiency-2"] then
local eff_data = {
}
for i, recipe in pairs(util.me.recipes) do
-- add remaining recipes with direct items to find the icons
if data.raw.recipe[recipe] and (data.raw.item[recipe] or data.raw.fluid[recipe])
and not eff_data[recipe] then
local research_level = 1
if not data.raw.recipe[recipe].enabled then
for tech, tbl in pairs(data.raw.technology) do
for _, effect in pairs(tbl.effects or {}) do
if effect.type == "unlock-recipe" and effect.recipe == recipe then
research_level = math.min(#tbl.unit.ingredients, 6)
end
end
end
end
eff_data[recipe] = {
max = 15,
icon = util.get_item_or_fluid_icon(recipe),
crafting = { efficiency = 10 },
research = { level = research_level },
}
end
end
for recipe, d in pairs(eff_data) do
log("Adding "..recipe.." crafting efficiency")
d.name = recipe:gsub("^%l", string.upper).." efficiency"
CE_Add_Recipe(d, recipe)
end
end

View file

@ -0,0 +1,86 @@
local me = require("me")
local util = {}
util.me = me
function decode(data)
if type(data) == "string" then return data end
local str = {}
for i = 2, #data do
str[i-1] = decode(data[i])
end
return table.concat(str, "")
end
function util.get_list()
local p = game.item_prototypes[me.name.."-list"]
if p then
data = p.localised_description
return decode(data)
end
end
function util.force_enable_recipe(event, recipe_name)
if game.players[event.player_index].force.recipes[recipe_name] then
game.players[event.player_index].force.recipes[recipe_name].enabled=true
end
end
function util.warptorio2_expansion_helper()
if script.active_mods["warptorio2_expansion"] then
function check_container_for_items(container,items)
local has_all =true
for k=1,#items do
if container.get_item_count(items[k].name)<items[k].count then has_all=false break end
end
return has_all
end
function remove_items_from_container(container,items)
for k=1,#items do
container.remove_item(items[k])
end
end
script.on_nth_tick(60, function (event)
if global.done then return end
local fix_items={
{name='iron-plate',count=100},
{name='iron-gear-wheel',count=100},
{name='repair-pack',count=50},
}
local entities = {}
for i=1,100 do
if game.surfaces[i] then
local lentities= game.surfaces[i].find_entities_filtered{area = {{-100, -100}, {100, 100}}, name = "wpe_broken_lab"}
for j, entity in pairs(lentities) do
table.insert(entities, entity)
end
end
end
if #entities == 0 then
if global.checking then
-- The lab has already been fixed
global.done = true
else
-- Check that the lab doesn't reappear due to a warp
global.checking = true
end
return
end
if check_container_for_items(entities[1],fix_items) then
remove_items_from_container(entities[1],fix_items)
local lab = entities[1].surface.create_entity({name='wpe_repaired_lab', position=entities[1].position, force = game.forces.player})
lab.destructible=false
lab.minable=false
entities[1].destroy()
global.done = true
end
end)
end
end
return util

10
bztungsten2/control.lua Normal file
View file

@ -0,0 +1,10 @@
local util = require("control-util")
script.on_event( defines.events.on_console_chat, function(event)
-- refresh recipes, in case of settings change
if event.message and event.message == "TungstenRecipes" and (not event.player_index or not game.players[event.player_index] or game.players[event.player_index].admin) then
util.force_enable_recipe(event, "cuw")
util.force_enable_recipe(event, "double-tungsten")
end
end)

View file

@ -0,0 +1,60 @@
require("modules")
require("tungsten-recipe-final-stacking")
require("tungsten-recipe-final-rrr")
-- require("tungsten-recipe-final-5d")
local util = require("__bztungsten__.data-util");
-- Only burners can make tungsten carbide in vanilla
for i, entity in pairs(data.raw.furnace) do
if entity.energy_source.type == "burner" then
if entity.name == "advanced-carbon-furnace" then
table.insert(entity.crafting_categories, "smelting-carbon")
end
for j, category in pairs(entity.crafting_categories) do
if category == "smelting" or category == "double-smelting" then
if entity.name == "double-steel-furnace" then
table.insert(entity.crafting_categories, "double-smelting-carbon")
else
table.insert(entity.crafting_categories, "smelting-carbon")
end
end
end
end
end
if mods["space-exploration"] then
-- core mining balancing
util.add_to_product("se-core-fragment-omni", "tungsten-ore", -3)
if util.se6() then
util.add_prerequisite("rocket-silo", "rocketry")
end
end
-- SE + K2: Keep radar at red science level
util.remove_prerequisite("kr-radar", "optics")
util.add_prerequisite("kr-radar", "electricity")
-- SE don't gate tungsten
util.remove_prerequisite("tungsten-processing", "se-material-science-pack-1")
-- One more tier
util.add_ingredient("omt-electric-mining-drill", "tungsten-carbide", 10)
-- Junk Trains, no optics:
util.remove_prerequisite("automated-scrap-rail-transportation", "optics")
util.remove_ingredient("train-stop-scrap", "small-lamp")
util.remove_ingredient("rail-signal-scrap", "small-lamp")
util.remove_ingredient("rail-chain-signal-scrap", "small-lamp")
if mods["aai-industry"] and mods.bobplates then
util.remove_prerequisite("oil-processing", "tungsten-processing")
util.add_prerequisite("oil-processing", "bz-tungsten-processing")
end

View file

@ -0,0 +1,28 @@
require("tungsten-recipe-updates")
require("tungsten-matter")
require("omni")
require("map-gen-preset-updates")
require("tungsten-recipe-5d")
require("strange-matter")
require("compatibility/248k")
require("compatibility/crafting-efficiency")
local util = require("data-util");
if mods["aai-industry"] then
util.add_prerequisite("pumpjack", "tinned-cable")
util.add_prerequisite("oil-processing", "pumpjack")
util.add_prerequisite("oil-processing", "tungsten-processing")
util.remove_recipe_effect("oil-processing", "pumpjack")
end
if mods.Asteroid_Mining then
require("__Asteroid_Mining__.scripts.addmodule")
amfunc.addtype("tungsten-ore", {a = 0,r = 0.55,g = 0.60,b = 0.5})
end
if mods.Krastorio2 then
util.remove_prerequisite("kr-fluids-chemistry", "engine")
end
require("modules")

1275
bztungsten2/data-util.lua Normal file

File diff suppressed because it is too large Load diff

8
bztungsten2/data.lua Normal file
View file

@ -0,0 +1,8 @@
require("tungsten-ore")
require("tungsten-ore-particle")
require("tungsten-recipe")
require("tungsten-enriched") -- Enriched for Krastorio 2
require("tungsten-recipe-se") -- Space Exploration special recipes (depends on K2 if present)
require("tungsten-compressed")
require("advanced-carbon-furnace")
require("tungsten-sim") -- menu simulation

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 812 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 711 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 572 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 627 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 239 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 215 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 202 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 203 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 93 KiB

20
bztungsten2/info.json Normal file
View file

@ -0,0 +1,20 @@
{
"name": "bztungsten",
"version": "0.7.13",
"factorio_version": "2.0",
"title": "Tungsten",
"author": "Brevven",
"contact": "",
"homepage": "",
"dependencies": [
"base >= 2.0",
"? space-exploration",
"? Krastorio2",
"? deadlock-beltboxes-loaders",
"? DeadlockCrating",
"? bztitanium",
"? bzlead"
],
"description": "Adds tungsten ore (wolframite), tungsten plates, tungsten carbide and rocket engine nozzles to the base game.\n\nCompatible with RSO, Space Exploration, Krastorio 2, and several other mods. A standalone piece of BZ Mods."
}

View file

@ -0,0 +1,65 @@
[item-name]
tungsten=Wolfram
tungsten-ore=__ITEM__tungsten__it
tungsten-dust=__ITEM__tungsten__staub
tungsten-powder=__ITEM__tungsten__pulver
tungsten-plate=__ITEM__tungsten__platte
tungsten-ingot=__ITEM__tungsten__barren
tungsten-carbide=__ITEM__tungsten__carbid
rocket-engine-nozzle=Raketentriebwerksdüse
enriched-tungsten=Angereichertes __ITEM__tungsten__
tungsten-chest=__ITEM__tungsten__kiste
compressed-tungsten-ore=Gepresstes __ITEM__tungsten-ore__
advanced-carbon-furnace=Fortschrittlicher Kohlenstoffofen
cuw=Wolfram-Kupfer
[item-description]
tungsten-ore=Kann zu __ITEM__tungsten-plate__n geschmolzen werden.
enriched-tungsten=Kann effizient zu __ITEM__tungsten-plate__n geschmolzen werden.
advanced-carbon-furnace=Schnelle und effiziente __ITEM__tungsten-carbide__herstellung. Verbraucht eine Menge Brennstoff.
[entity-name]
tungsten-ore=__ITEM__tungsten-ore__
tungsten-chest=__ITEM__tungsten-chest__
advanced-carbon-furnace=__ITEM__advanced-carbon-furnace__
[fluid-name]
molten-tungsten=Geschmolzenes __ITEM__tungsten__
[entity-description]
advanced-carbon-furnace=Schnelle und effiziente __ITEM__tungsten-carbide__herstellung. Verbraucht eine Menge Brennstoff.
[autoplace-control-names]
tungsten-ore=[item=tungsten-ore] __ITEM__tungsten-ore__
[technology-name]
tungsten-processing=__ITEM__tungsten__verarbeitung
bz-tungsten-processing=Grundlegende __ITEM__tungsten__verarbeitung
enriched-tungsten=Angereichertes __ITEM__tungsten__
tungsten-matter-processing=__ITEM__tungsten__umwandlung
advanced-carbon-furnace=__ITEM__advanced-carbon-furnace__
[technology-description]
enriched-tungsten=Reichere __ITEM__tungsten-ore__ an, veredele es mit Ammoniak [fluid=ammonia] und Wasser [fluid=water] und erhöhe die Reichhaltigkeit.\n Erzeugt verunreinigtes Wasser [fluid=dirty-water] als Nebenprodukt.
[recipe-name]
enriched-tungsten=__ITEM__enriched-tungsten__
tungsten-plate=__ITEM__tungsten-plate__
smelt-compressed-tungsten-ore=__ITEM__tungsten-plate__
tungsten-dust=__ITEM__tungsten-dust__
dirty-water-filtration-tungsten=Filtere verunreinigtes Wasser [item=tungsten-ore]
[recipe-description]
enriched-tungsten=Reichere __ITEM__tungsten-ore__ an, veredele es mit Ammoniak [fluid=ammonia] und Wasser [fluid=water] und erhöhe die Reichhaltigkeit.\n Erzeugt verunreinigtes Wasser [fluid=dirty-water] als Nebenprodukt.
dirty-water-filtration-tungsten=Filtere verunreinigtes Wasser um __ITEM__tungsten-ore__ [item=tungsten-ore] und __ITEM__stone__ [item=stone] (wahrscheinlich) zu erhalten.
[mod-setting-name]
bztungsten-recipe-bypass=Umgehe Rezepte
bztungsten-avoid-military=Militärische Wissenschaftspakete ignorieren
bztungsten-advanced-carbon-furnace=Nutze den fortschrittlichen Kohlenstoffofen
[mod-setting-description]
bztungsten-recipe-bypass=Ignoriere diese Rezepte (Komma-getrennte Liste).
bztungsten-avoid-military=Wenn 'ja', wird die Rakete keine militärischen Wissenschaftspakete benötigen.
bztungsten-advanced-carbon-furnace=Ein Ofen um __ITEM__tungsten-carbide__ schnell zu schmelzen. Für große Fabriken gedacht.

View file

@ -0,0 +1,85 @@
[entity-name]
tungsten-ore=Wolframite
tungsten-chest=Tungsten chest
advanced-carbon-furnace=__ITEM__advanced-carbon-furnace__
[entity-description]
advanced-carbon-furnace=For making tungsten carbide quickly and efficiently. Burns a lot of fuel.
[autoplace-control-names]
tungsten-ore=[item=tungsten-ore] Wolframite
[item-name]
tungsten-ore=Wolframite
tungsten-powder=Tungsten powder
tungsten-dust=Tungsten dust
tungsten-plate=Tungsten plate
tungsten-ingot=Tungsten ingot
tungsten-carbide=Tungsten carbide
rocket-engine-nozzle=Rocket engine nozzle
enriched-tungsten=Enriched tungsten
tungsten-chest=Tungsten chest
compressed-tungsten-ore=Compressed tungsten ore
advanced-carbon-furnace=Advanced carbon furnace
cuw=Copper tungsten
[item-description]
tungsten-ore=Can be smelted into tungsten plates
enriched-tungsten=Can be efficiently smelted into tungsten plates
advanced-carbon-furnace=For making tungsten carbide quickly and efficiently. Burns a lot of fuel.
cuw=CuW composite
[fluid-name]
molten-tungsten=Molten tungsten
[technology-name]
tungsten-processing=Tungsten processing
bz-tungsten-processing=Basic tungsten processing
enriched-tungsten=Enriched tungsten
tungsten-matter-processing=Tungsten conversion
advanced-carbon-furnace=__ITEM__advanced-carbon-furnace__
pumpjack=__ENTITY__pumpjack__
[technology-description]
enriched-tungsten=Enrich tungsten ore, purifying with ammonia [fluid=ammonia] and water [fluid=water], improving the final yield. Produce dirty water [fluid=dirty-water] as a byproduct.
[recipe-name]
enriched-tungsten=__ITEM__enriched-tungsten__
tungsten-plate=__ITEM__tungsten-plate__
smelt-compressed-tungsten-ore=__ITEM__tungsten-plate__
tungsten-dust=__ITEM__tungsten-dust__
dirty-water-filtration-tungsten=Filter dirty water [item=tungsten-ore]
[recipe-description]
enriched-tungsten=Enrich tungsten ore, purifying with ammonia [fluid=ammonia] and water [fluid=water], improving the final yield. Produce dirty water [fluid=dirty-water] as a byproduct.
dirty-water-filtration-tungsten=Filter dirty water, giving wolframite [item=tungsten-ore] and stone [item=stone] (probabilistically).
# Settings
[mod-setting-name]
bztungsten-recipe-bypass=Bypass recipes
bztungsten-avoid-military=Avoid military science pack
bztungsten-advanced-carbon-furnace=Enable the advanced carbon furnace
bztungsten-mining-fluid-amount=Mining fluid amount
bztungsten-mining-fluid-amount-k2=Mining fluid amount for Krastorio2
bztungsten-mining-fluid-k2=Mining fluid for Krastorio2
bztungsten-starting-patch=Starting wolframite patch
bztungsten-more-intermediates=Enable more intermediates
bztungsten-se-sintering=SE: Sinter powdered tungsten instead of casting
[mod-setting-description]
bztungsten-recipe-bypass=Skip modifying these recipes (comma-separated list).
bztungsten-avoid-military=If 'yes', rocketry will no longer require military science, allowing research of rocket engine nozzles for saves not using military.
bztungsten-advanced-carbon-furnace=A furnace to smelt tungsten carbide quickly. Meant only for very large factories.
bztungsten-mining-fluid-amount=Amount of fluid (water) needed to mine, default 10. Note, this is displayed as 1/10th the value in some parts of the game.
bztungsten-mining-fluid-amount-k2=Mining fluid amount for Krastorio2, default 1. Note, this is displayed as 1/10th the value in some parts of the game.
bztungsten-starting-patch=Whether a new game should have a starting wolframite patch. Disabled by default in vanilla, AAI, etc.
bztungsten-se-sintering=Due to the high melting point of tungsten, instead of creating molten tungsten and casting it, create tungsten powder and sinter it (still in a casting machine).
bztungsten-mining-fluid-k2=Fluid used to mine wolframite, [color=cyan]mineral water is recommended.[/color]
[string-mod-setting]
bztungsten-more-intermediates-no=No
bztungsten-more-intermediates-cuw=Yes: __ITEM__cuw__
bztungsten-mining-fluid-k2-mineral-water=Mineral water [color=blue]Recommended![/color]
bztungsten-mining-fluid-k2-water=Water

View file

@ -0,0 +1,88 @@
[entity-name]
tungsten-ore=狼重石
tungsten-chest=タングステン製チェスト
advanced-carbon-furnace=__ITEM__advanced-carbon-furnace__
[entity-description]
advanced-carbon-furnace=高速かつ効率的に炭化タングステンを生成できます。燃料を大量に消費します。
[autoplace-control-names]
tungsten-ore=[item=tungsten-ore] 狼重石
[item-name]
tungsten-ore=狼重石
tungsten-powder=タングステン粉末
tungsten-dust=Tungsten dust
tungsten-plate=タングステン板
tungsten-ingot=タングステンインゴット
tungsten-carbide=炭化タングステン
rocket-engine-nozzle=ロケットエンジンノズル
enriched-tungsten=純化タングステン
tungsten-chest=タングステン製チェスト
compressed-tungsten-ore=Compressed tungsten ore
advanced-carbon-furnace=強化炭素炉
cuw=銅タングステン
[item-description]
tungsten-ore=製錬してタングステン板を得ることができます
enriched-tungsten=製錬して効率的にタングステン板を得ることができます
advanced-carbon-furnace=高速かつ効率的に炭化タングステンを生成できます。燃料を大量に消費します。
cuw=銅タングステン複合材
[fluid-name]
molten-tungsten=溶融タングステン
[technology-name]
tungsten-processing=タングステン処理
bz-tungsten-processing=基本的なタングステン処理
enriched-tungsten=タングステン純化
tungsten-matter-processing=タングステン変換
advanced-carbon-furnace=__ITEM__advanced-carbon-furnace__
pumpjack=__ENTITY__pumpjack__
[technology-description]
enriched-tungsten=狼重石をアンモニア[fluid=ammonia] と水で[fluid=water] 処理し、収量を改善します。副産物として汚水[fluid=dirty-water] を生産します。
[recipe-name]
enriched-tungsten=__ITEM__enriched-tungsten__
tungsten-plate=__ITEM__tungsten-plate__
smelt-compressed-tungsten-ore=__ITEM__tungsten-plate__
tungsten-dust=__ITEM__tungsten-dust__
dirty-water-filtration-tungsten=汚水をろ過[item=tungsten-ore]
[recipe-description]
enriched-tungsten=狼重石をアンモニア[fluid=ammonia] と水で[fluid=water] 処理し、収量を改善します。副産物として汚水[fluid=dirty-water] を生産します。
dirty-water-filtration-tungsten=汚水をろ過し、狼重石[item=tungsten-ore] と石[item=stone] を確率的に生産します。
# Settings
[mod-setting-name]
bztungsten-recipe-bypass=改変しないレシピ
bztungsten-avoid-military=軍事研究を不要にする
bztungsten-advanced-carbon-furnace=強化炭素炉を有効にする
bztungsten-mining-fluid-amount=掘削に使用する流体の必要量
bztungsten-mining-fluid-amount-k2=掘削に使用する流体の必要量(Krastorio 2)
bztungsten-mining-fluid-k2=掘削に使用する流体(Krastorio 2)
bztungsten-starting-patch=スタートエリアに狼重石鉱床
bztungsten-more-intermediates=中間生産物を追加
bztungsten-se-sintering=SE:鋳造の代わりにタングステン粉末を焼結
[mod-setting-description]
bztungsten-recipe-bypass=指定したレシピの改変を行わない (コンマ区切り)。
bztungsten-avoid-military=「はい」の場合、ロケット工学に軍事研究が不要となります。
bztungsten-advanced-carbon-furnace=炭化タングステンを高速精錬する炉。極めて大規模な工場向け。
bztungsten-mining-fluid-amount=掘削に使用する流体 (水) の必要量。デフォルト: 10。註: ゲーム内ではこの値の十分の一の数値として表示される箇所があります。
bztungsten-mining-fluid-amount-k2=Krastorio 2で掘削に使用する流体の必要量。デフォルト: 1。註: ゲーム内ではこの値の十分の一の数値として表示される箇所があります。
bztungsten-starting-patch=新たなゲームでスタートエリアに狼重石鉱床あり。バニラ・AAIなどではデフォルトで無効。
bztungsten-se-sintering=タングステンは融点が高いため、溶融タングステンから鋳造する代わりにタングステン粉末を焼結します。
[string-mod-setting]
bztungsten-more-intermediates-no=いいえ
bztungsten-more-intermediates-cuw=はい: __ITEM__cuw__
bztungsten-avoid-military-yes=はい
bztungsten-avoid-military-no=いいえ
bztungsten-advanced-carbon-furnace-yes=はい
bztungsten-advanced-carbon-furnace-no=いいえ
bztungsten-mining-fluid-k2-mineral-water=__FLUID__mineral-water__
bztungsten-mining-fluid-k2-water=__FLUID__water__

View file

@ -0,0 +1,66 @@
[entity-name]
tungsten-ore=울프라마이트
tungsten-chest=텅스텐 상자
advanced-carbon-furnace=__ITEM__advanced-carbon-furnace__
[entity-description]
advanced-carbon-furnace=신속하고 효율적으로 텅스텐 탄화물을 만들기 위한 것입니다. 연료를 많이 소모합니다.
[autoplace-control-names]
tungsten-ore=[item=tungsten-ore] 울프라마이트
[item-name]
tungsten-ore=울프라마이트
tungsten-dust=텅스텐 분진
tungsten-plate=텅스텐 판
tungsten-carbide=텅스텐 탄화물
rocket-engine-nozzle=로켓 엔진 노즐
enriched-tungsten=농축 텅스텐
tungsten-chest=텅스텐 상자
compressed-tungsten-ore=압축 텅스텐 광석
advanced-carbon-furnace=고급 탄소 용해로
[item-description]
tungsten-ore=텅스텐 판으로 제련할 수 있음
enriched-tungsten=텅스텐 판으로 효율적으로 제련할 수 있음
advanced-carbon-furnace=신속하고 효율적으로 텅스텐 탄화물을 만들기 위한 것입니다. 연료를 많이 소모합니다.
[technology-name]
tungsten-processing=텅스텐 가공
bz-tungsten-processing=기본 텅스텐 가공
enriched-tungsten=농축 텅스텐
tungsten-matter-processing=텅스텐 변환
advanced-carbon-furnace=__ITEM__advanced-carbon-furnace__
[technology-description]
enriched-tungsten=텅스텐 광석을 농축하여 암모니아 [fluid=ammonia] 및 물 [fluid=water]로 정제하여 최종 산출량을 향상시킵니다. 부산물로 더러운 물 [fluid=dirty-water]을 생산합니다.
[recipe-name]
enriched-tungsten=__ITEM__enriched-tungsten__
tungsten-plate=__ITEM__tungsten-plate__
smelt-compressed-tungsten-ore=__ITEM__tungsten-plate__
tungsten-dust=__ITEM__tungsten-dust__
dirty-water-filtration-tungsten=더러운 물 여과 [item=tungsten-ore]
[recipe-description]
enriched-tungsten=텅스텐 광석을 농축하여 암모니아 [fluid=ammonia] 및 물 [fluid=water]로 정제하여 최종 산출량을 향상시킵니다. 부산물로 더러운 물 [fluid=dirty-water]을 생산합니다.
dirty-water-filtration-tungsten=더러운 물을 여과하여 울프라마이트 [item=tungsten-ore]와 돌 [item=stone](확률적)을 생성합니다.
# 설정
[mod-setting-name]
bztungsten-recipe-bypass=우회 제작법
bztungsten-avoid-military=군사 과학 팩 거부
bztungsten-advanced-carbon-furnace=고급 탄소 용해로 활성화
bztungsten-mining-fluid-amount=채굴 유체 양
bztungsten-mining-fluid-amount-k2=Krastorio2에서 채굴 유체 양
bztungsten-starting-patch=울프라마이트 패치 시작
[mod-setting-description]
bztungsten-recipe-bypass=이러한 제작법 수정을 건너뜁니다(콤마로 구분된 목록).
bztungsten-avoid-military=만약 '예'이면, 로켓 공학은 더 이상 군사 과학을 필요로 하지 않을 것이며, 군을 사용하지 않는 것을 절약하기 위해 로켓 엔진 노즐을 연구할 수 있게 될 것입니다.
bztungsten-advanced-carbon-furnace=텅스텐 탄화물을 빠르게 녹이는 용광로. 아주 큰 공장들만을 위해 의미가 있습니다.
bztungsten-mining-fluid-amount=채굴에 필요한 유체(물)의 양(기본값 10). 참고로, 이것은 게임의 일부 부분에서 값의 10분의 1로 표시됩니다.
bztungsten-mining-fluid-amount-k2=Krastorio2의 채굴에 필요한 유체의 양(기본값 1). 참고로, 이것은 게임의 일부 부분에서 값의 10분의 1로 표시됩니다.
bztungsten-starting-patch=새 게임에 시작 울프라마이트 패치가 있어야 하는지 여부. 바닐라, AAI 등에서 기본적으로 비활성화됩니다.

View file

@ -0,0 +1,64 @@
[entity-name]
tungsten-ore=Ruda wolframitu
tungsten-chest=Skrzynia wolframowa
advanced-carbon-furnace=__ITEM__advanced-carbon-furnace__
[entity-description]
advanced-carbon-furnace=Szybkie i wydajne wytwarzanie węglika wolframu. Spala dużo paliwa.
[autoplace-control-names]
tungsten-ore=[item=tungsten-ore] Ruda wolframitu
[item-name]
tungsten-ore=Ruda wolframitu
tungsten-dust=Pył wolframowy
tungsten-plate=Płytka wolframowa
tungsten-carbide=Weglik wolframu
rocket-engine-nozzle=Dysza silnika rakietowego
enriched-tungsten=Wzbogacony wolfram
tungsten-chest=Skrzynia wolframowa
compressed-tungsten-ore=Skompresowana ruda wolframu
advanced-carbon-furnace=Zaawansowany piec węglowy
[item-description]
tungsten-ore=Może być wytopiony w płytki wolframowe
enriched-tungsten=Może być wydajniej wytopiony w płytki wolframowe
advanced-carbon-furnace=Szybkie i wydajne wytwarzanie węglika wolframu. Spala dużo paliwa.
[technology-name]
tungsten-processing=Przetwórstwo wolframu
bz-tungsten-processing=Przetwórstwo wolframu
enriched-tungsten=Wzbogacony wolfram
tungsten-matter-processing=Konwersja wolframu
advanced-carbon-furnace=__ITEM__advanced-carbon-furnace__
[technology-description]
enriched-tungsten=Wzbogacanie rudy wolframu, oczyszczanie amoniakiem [fluid=ammonia] i wodą [fluid=water], poprawiając końcową wydajność. Jako produkt uboczny pozostają ścieki [fluid=dirty-water]
[recipe-name]
enriched-tungsten=__ITEM__enriched-tungsten__
tungsten-plate=__ITEM__tungsten-plate__
smelt-compressed-tungsten-ore=__ITEM__tungsten-plate__
tungsten-dust=__ITEM__tungsten-dust__
dirty-water-filtration-tungsten=Filtrowanie ścieków poflotacyjnych pozwala odzyskać rudę wolframitu [item=tungsten-ore]
[recipe-description]
enriched-tungsten=Wzbogacanie rudy wolframu, oczyszczanie amoniakiem [fluid=ammonia] i wodą [fluid=water], poprawiając końcową wydajność. Jako produkt uboczny pozostają ścieki [fluid=dirty-water]
dirty-water-filtration-tungsten=Filtrowanie ścieków poflotacyjnych pozwala odzyskać rudę wolframitu [item=tungsten-ore] oraz kamień [item=stone] (proporcjonalnie).
# Settings
[mod-setting-name]
bztungsten-recipe-bypass=Ominięcie receptur
bztungsten-avoid-military=Unikaj militarnego pakietu naukowego
bztungsten-advanced-carbon-furnace=Włącz zaawansowany piec węglowy
bztungsten-mining-fluid-amount=Ilość płynu kopalnianego
bztungsten-mining-fluid-amount-k2=Ilość płynu kopalnianego dla Krastorio2
[mod-setting-description]
bztungsten-recipe-bypass=Pomiń modyfikację tych receptur (lista oddzielona przecinkami).
bztungsten-avoid-military=Jeśli 'tak', rakiety nie będą już wymagały nauk wojskowych.
bztungsten-advanced-carbon-furnace=Specjalny piec węglowy do wytwarzania ogromych ilosci węglika wolframu. Przeznaczony dla naprawdę dużych fabryk.
bztungsten-mining-fluid-amount=Ilość płynu (wody) potrzebnego do wydobycia, domyślnie 10. Uwaga, w niektórych częściach gry jest to wyświetlane jako 1/10 wartości.
bztungsten-mining-fluid-amount-k2=Ilość płynu kopalnianego dla Krastorio2, domyślnie 1. Uwaga, wartość ta jest wyświetlana jako 1/10 wartości w niektórych częściach gry.

View file

@ -0,0 +1,81 @@
[entity-name]
tungsten-ore=Вольфрамовая руда
tungsten-chest=Вольфрамовый сундук
advanced-carbon-furnace=__ITEM__advanced-carbon-furnace__
[entity-description]
advanced-carbon-furnace=Быстрое и эффективное производство карбида вольфрама. Сжигает много топлива.
[autoplace-control-names]
tungsten-ore=[item=tungsten-ore] Вольфрамовая руда
[item-name]
tungsten-ore=Вольфрамовая руда
tungsten-powder=Вольфрамовый порошок
tungsten-dust=Вольфрамовая пыль
tungsten-plate=Вольфрамовая плита
tungsten-ingot=Вольфрамовый слиток
tungsten-carbide=Карбид вольфрама
rocket-engine-nozzle=Сопло ракетного двигателя
enriched-tungsten=Обогащенный вольфрам
tungsten-chest=Вольфрамовый сундук
compressed-tungsten-ore=Прессованная вольфрамовая руда
advanced-carbon-furnace=Усовершенствованная углеродная печь
cuw=Вольфрамо-медный псевдосплав
[item-description]
tungsten-ore=Может быть переплавлен в вольфрамовые плиты.
enriched-tungsten=Может быть эффективно переплавлен в вольфрамовые плиты.
advanced-carbon-furnace=Быстрое и эффективное производство карбида вольфрама. Сжигает много топлива.
cuw=Вольфрамо-медный псевдосплав
[fluid-name]
molten-tungsten=Расплавленный вольфрамит
[technology-name]
tungsten-processing=Обработка вольфрама
bz-tungsten-processing=Обработка вольфрама
enriched-tungsten=Обогащенный вольфрам
tungsten-matter-processing=Преобразование вольфрама в материю
advanced-carbon-furnace=__ITEM__advanced-carbon-furnace__
pumpjack=__ENTITY__pumpjack__
[technology-description]
enriched-tungsten=Обогащает вольфрамовую руду, при помощи очистки аммиаком [fluid=ammonia] и водой [fluid=water], повышая качество выходной продукции. Производит грязную воду [fluid=dirty-water] как побочный продукт.
[recipe-name]
enriched-tungsten=__ITEM__enriched-tungsten__
tungsten-plate=__ITEM__tungsten-plate__
smelt-compressed-tungsten-ore=__ITEM__tungsten-plate__
tungsten-dust=__ITEM__tungsten-dust__
dirty-water-filtration-tungsten=Фильтрация грязной воды [item=tungsten-ore]
[recipe-description]
enriched-tungsten=Обогащает вольфрамовую руду, при помощи очистки аммиаком [fluid=ammonia] и водой [fluid=water], повышая качество выходной продукции. Производит грязную воду [fluid=dirty-water] как побочный продукт.
dirty-water-filtration-tungsten=Отфильтровывает из грязной воды вольфрамовую руду [item=tungsten-ore] и камень [item=stone].
# Settings
[mod-setting-name]
bztungsten-recipe-bypass=Обходные рецепты
bztungsten-avoid-military=Избегать военный исследовательский пакет
bztungsten-advanced-carbon-furnace=Включить усовершенствованную углеродную печь
bztungsten-mining-fluid-amount=Количество жидкости для добычи
bztungsten-mining-fluid-amount-k2=Количество жидкости для добычи в Krastorio2
bztungsten-starting-patch=Начальное месторождение вольфрама
bztungsten-more-intermediates=Включить больше промежуточных продуктов
bztungsten-se-sintering=SE: порошковая формовка вольфрама вместо литья
[mod-setting-description]
bztungsten-recipe-bypass=Пропустить изменение этих рецептов (список, разделенный запятыми).
bztungsten-avoid-military=Если "да", ракетостроение больше не будет требовать военного исследовательского пакета.
bztungsten-advanced-carbon-furnace=Печь для быстрой выплавки карбида вольфрама. Предназначена только для очень крупных фабрик.
bztungsten-mining-fluid-amount=Количество жидкости (воды), необходимое для добычи, по умолчанию 10. Обратите внимание, что в некоторых частях игры это значение отображается как 1/10 часть.
bztungsten-mining-fluid-amount-k2=Количество жидкости для добычи в Krastorio2, по умолчанию 1. Обратите внимание, что в некоторых частях игры это значение отображается как 1/10 часть.
bztungsten-starting-patch=Должна ли новая игра иметь начальное месторождение вольфрама. Отключен по умолчанию в базовой игре, AAI и т.д.
bztungsten-se-sintering=Из-за высокой температуры плавления вольфрама вместо того, чтобы создавать расплавленный вольфрам и отливать его, создаётся вольфрамовый порошок, который будет запекаться (всё ещё в литейной машине).
[string-mod-setting]
bztungsten-more-intermediates-no=Нет
bztungsten-more-intermediates-cuw=Да: __ITEM__cuw__

View file

@ -0,0 +1,89 @@
[entity-name]
tungsten-ore=钨矿
tungsten-chest=钨制箱
advanced-carbon-furnace=__ITEM__advanced-carbon-furnace__
[entity-description]
advanced-carbon-furnace=用于快速并高效地制作碳化钨。需要大量燃料。
[autoplace-control-names]
tungsten-ore=[item=tungsten-ore]钨矿
[item-name]
tungsten-ore=钨矿
tungsten-powder=钨砂
tungsten-dust=钨粉尘
tungsten-plate=钨板
tungsten-ingot=钨锭
tungsten-carbide=碳化钨
rocket-engine-nozzle=火箭发动机喷管
enriched-tungsten=富化钨矿
tungsten-chest=钨制箱
compressed-tungsten-ore=压缩钨矿
advanced-carbon-furnace=进阶碳素炉
cuw=铜钨合金
[item-description]
tungsten-ore=可以冶炼成钨板。
enriched-tungsten=可以高效的冶炼成钨板。
advanced-carbon-furnace=用于快速并高效地制作碳化钨。需要大量燃料。
cuw=铜钨复合材料。
[fluid-name]
molten-tungsten=熔融钨桨
[technology-name]
tungsten-processing=钨处理
bz-tungsten-processing=基本钨处理
enriched-tungsten=富化钨矿
tungsten-matter-processing=钨转换
advanced-carbon-furnace=__ITEM__advanced-carbon-furnace__
pumpjack=__ENTITY__pumpjack__
[technology-description]
enriched-tungsten=使用氨气[fluid=ammonia]和水[fluid=water]提纯使钨矿富集,提高最终的产量。产出脏水[fluid=dirty-water]为副产品。
[recipe-name]
enriched-tungsten=__ITEM__enriched-tungsten__
tungsten-plate=__ITEM__tungsten-plate__
smelt-compressed-tungsten-ore=__ITEM__tungsten-plate__
tungsten-dust=__ITEM__tungsten-dust__
dirty-water-filtration-tungsten=过滤脏水[item=tungsten-ore]
[recipe-description]
enriched-tungsten=使用氨气[fluid=ammonia]和水[fluid=water]提纯使钨矿富集,提高最终的产量。产出脏水[fluid=dirty-water]为副产品。
dirty-water-filtration-tungsten=过滤脏水,概率获得钨矿[item=tungsten-ore]和石矿[item=stone]。
# Settings
[mod-setting-name]
bztungsten-recipe-bypass=跳过合成
bztungsten-avoid-military=火箭不需要军备科技包
bztungsten-advanced-carbon-furnace=启用进阶碳素炉
bztungsten-mining-fluid-amount=开采钨矿所使用的流体数量
bztungsten-mining-fluid-amount-k2=K2开采钨矿所使用的流体数量
bztungsten-starting-patch=起始区域启用钨矿
bztungsten-more-intermediates=启用更多中间产品
bztungsten-se-sintering=(太空探索)使用钨砂代替熔融钨桨
[mod-setting-description]
bztungsten-recipe-bypass=跳过修改这些合成(用逗号分开)。
bztungsten-avoid-military=开启后,火箭将不再需要军备科技包,从而使未开启军备科技包的存档可以研究火箭发动机喷管。
bztungsten-advanced-carbon-furnace=可以快速冶炼碳化钨的熔炉,适用于极大型工厂。
bztungsten-mining-fluid-amount=开采钨矿所使用的流体(水)数量,默认值 10游戏中有时候会以1/10的数值显示。
bztungsten-mining-fluid-amount-k2=在和K2游玩时开采钨矿所使用的流体数量默认值 1。游戏中有时候会以1/10的数值显示。
bztungsten-starting-patch=新游戏中是否在起始区域加入钨矿,默认原版禁用。
bztungsten-se-sintering=由于钨的熔点很高,不应该通过熔融钨桨来铸造,而是通过钨砂烧结成型(还是在铸造机)。
[string-mod-setting]
bztungsten-more-intermediates-no=不启用
bztungsten-more-intermediates-cuw=启用:铜钨合金
bztungsten-avoid-military-yes=启用
bztungsten-avoid-military-no=不启用
bztungsten-advanced-carbon-furnace-yes=启用
bztungsten-advanced-carbon-furnace-no=不启用
bztungsten-starting-patch-yes=启用
bztungsten-starting-patch-no=不启用
[mod-name]
bztungsten=BZ-钨

View file

@ -0,0 +1,14 @@
local base_ore = "iron-ore"
if mods["angelssmelting"] then
base_ore = "angels-ore1"
end
if data.raw["map-gen-presets"] and data.raw["map-gen-presets"].default then
for name, preset in pairs(data.raw["map-gen-presets"].default) do
if type(preset) == "table" and
preset.basic_settings and
preset.basic_settings.autoplace_controls and
preset.basic_settings.autoplace_controls[base_ore] then
preset.basic_settings.autoplace_controls["tungsten-ore"] = preset.basic_settings.autoplace_controls[base_ore]
end
end
end

73
bztungsten2/me.lua Normal file
View file

@ -0,0 +1,73 @@
local me = {}
me.name = "bztungsten"
me.tungsten_ore = "tungsten-ore"
me.tungsten_plate = "tungsten-plate"
me.tungsten_carbide_recipe = "tungsten-carbide"
me.recipes = {me.tungsten_plate, me.tungsten_carbide_recipe, "rocket-engine-nozzle",
"enriched-tungsten-plate",
"enriched-tungsten",
"tungsten-smelting-vulcanite",
"molten-tungsten", "tungsten-powder",
"enriched-tungsten-smelting-vulcanite",
"tungsten-carbide-coal",}
me.tungsten_processing = "tungsten-processing"
if mods and mods.bobplates then
me.tungsten_processing = "bz-tungsten-processing"
me.tungsten_carbide_recipe = "bz-tungsten-carbide"
end
function me.cuw()
if me.get_setting("bz-all-intermediates") then return true end
return me.get_setting("bztungsten-more-intermediates") == "cuw"
end
function me.sinter()
return me.get_setting("bztungsten-se-sintering")
end
function me.starting_patch()
return mods["Krastorio2"] or me.get_setting("bztungsten-starting-patch")
end
function me.fluid()
if mods["Krastorio2"] then
return me.get_setting("bztungsten-mining-fluid-k2")
end
return "water"
end
function me.fluid_amount()
if mods["Krastorio2"] then
local amt = me.get_setting("bztungsten-mining-fluid-amount-k2")
return amt and amt or 1
end
local amt = me.get_setting("bztungsten-mining-fluid-amount")
return amt and amt or 10
end
function me.get_setting(name)
if settings.startup[name] == nil then
return nil
end
return settings.startup[name].value
end
me.bypass = {}
if me.get_setting(me.name.."-recipe-bypass") then
for recipe in string.gmatch(me.get_setting(me.name.."-recipe-bypass"), '[^",%s]+') do
me.bypass[recipe] = true
end
end
function me.add_modified(name)
if me.get_setting(me.name.."-list") then
table.insert(me.list, name)
end
end
return me

Binary file not shown.

9
bztungsten2/modules.lua Normal file
View file

@ -0,0 +1,9 @@
-- Enable prod modules for all tungsten plate and ore recipes
local util = require("data-util");
for i, recipe in pairs(util.me.recipes) do
if data.raw.recipe[recipe] then
data.raw.recipe[recipe].allow_productivity = true
end
end

3
bztungsten2/omni.lua Normal file
View file

@ -0,0 +1,3 @@
if omni and omni.matter then
omni.matter.add_resource("tungsten-ore", omni.matter.get_ore_tier("iron-ore"))
end

View file

@ -0,0 +1,13 @@
-- WARNING WARNING WARNING
-- This file will be overwritten in mod zipfiles, edit bzlib/settings-util.lua
-- WARNING WARNING WARNING
local util = {}
function util.set_default_value(t, name, default)
if data.raw[t] and data.raw[t][name] then
data.raw[t][name].default_value = default
end
end
return util

89
bztungsten2/settings.lua Normal file
View file

@ -0,0 +1,89 @@
data:extend({
{
type = "string-setting",
name = "bztungsten-recipe-bypass",
setting_type = "startup",
default_value = "",
allow_blank = true,
order = "aba",
},
{
type = "string-setting",
name = "bztungsten-more-intermediates",
setting_type = "startup",
default_value = "no",
allowed_values = {"cuw", "no"},
order = "aca",
},
{
type = "string-setting",
name = "bztungsten-avoid-military",
setting_type = "startup",
default_value = "yes",
allowed_values = {"yes", "no"},
order = "ada",
},
{
type = "string-setting",
name = "bztungsten-advanced-carbon-furnace",
setting_type = "startup",
default_value = "no",
allowed_values = {"yes", "no"},
hidden = not not (mods.Krastorio2 or mods.bzfoundry2),
order = "aea",
},
})
if mods.Krastorio2 then
data:extend({
{
type = "string-setting",
name = "bztungsten-mining-fluid-k2",
setting_type = "startup",
default_value = "kr-mineral-water",
allowed_values = {"kr-mineral-water", "water"},
order = "aga",
},
{
type = "int-setting",
name = "bztungsten-mining-fluid-amount-k2",
setting_type = "startup",
default_value = 1,
minimum_value = 1,
maximum_value = 1000,
order = "agb",
},
})
else
data:extend({
{
type = "bool-setting",
name = "bztungsten-starting-patch",
setting_type = "startup",
default_value = false,
hidden = not not mods.Krastorio2,
order = "afa",
},
{
type = "int-setting",
name = "bztungsten-mining-fluid-amount",
setting_type = "startup",
default_value = 10,
minimum_value = 1,
maximum_value = 1000,
order = "aga",
},
})
end
if mods["space-exploration"] and string.sub(mods["space-exploration"], 1, 3) >= "0.6" then
data:extend({
{
type = "bool-setting",
name = "bztungsten-se-sintering",
setting_type = "startup",
default_value = false,
order = "acm",
}
})
end

View file

@ -0,0 +1,49 @@
local util = require("__bztungsten__.data-util");
local ore = "tungsten-ore"
local ore_icon = "__bztungsten__/graphics/icons/tungsten-ore.png"
if mods["StrangeMatter"] then
data:extend({
{
type = "recipe",
name = ore.."-synthesis",
icons = {
{ icon = ore_icon, icon_size = 64 },
{ icon = "__StrangeMatter__/graphics/icons/fluid/matter.png", icon_size = 32, scale=0.5, shift= {-8, -8}},
},
enabled = false,
energy_required = 1,
ingredients = {{type="fluid", name="strange-matter", amount = 2}},
results = {{type="item", name=ore, amount=1}},
category = "crafting-with-fluid",
subgroup = "synthesis",
},
{
type = "technology",
name = ore.."-synthesis",
icons = {
{ icon = "__StrangeMatter__/graphics/icons/fluid/matter.png", icon_size = 32, shift= {-6, 0}},
{ icon = ore_icon, icon_size = 64, scale=0.25, shift={8, 8}},
},
prerequisites = {"stone-synthesis"},
effects = {
{
type = "unlock-recipe",
recipe = ore.."-synthesis",
},
},
unit = {
count = 800,
time = 30,
ingredients = {
{"automation-science-pack", 1},
{"logistic-science-pack", 1},
{"chemical-science-pack", 1},
{"production-science-pack", 1},
}
}
}
})
end

BIN
bztungsten2/thumbnail.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

View file

@ -0,0 +1,32 @@
if simpleCompress then
if simpleCompress.ores then
simpleCompress.currentSubgroup = "intermediate-product"
if data.raw.item["tungsten-ore"] then
SimpleCompress_AddTintedItem("tungsten-ore", "ore4-tungsten", "ore", {r=0.90, g=0.90, b=0.75})
SimpleCompress_UnlockOreTechAndRecipe("tungsten-ore")
end
end
if simpleCompress.plates then
simpleCompress.currentSubgroup = "intermediate-product"
if data.raw.item["tungsten-plate"] then
SimpleCompress_AddTintedItem("tungsten-plate", "plates4-tungsten", "plate3", {r=0.90, g=0.90, b=0.75})
SimpleCompress_UnlockPlateTechAndRecipe("tungsten-plate")
local tungstenRecipe = data.raw.recipe["decompress-tungsten-plate"]
tungstenRecipe.order = "d[tungsten-plate]"
end
end
if simpleCompress.smelting then
if data.raw.item["tungsten-plate"] and data.raw.item["tungsten-plate"] then
SimpleCompress_AddSmeltingRecipe("tungsten-ore", "tungsten-plate")
SimpleCompress_UnlockOreSmeltingTech("tungsten-ore")
local tungstenRecipe = data.raw.recipe["smelt-compressed-tungsten-ore"]
tungstenRecipe.results = {
{type="item", name = "tungsten-plate", amount=simpleCompress.CompressedSmeltAmount},
}
tungstenRecipe.icons = {{ icon = "__bztungsten__/graphics/icons/tungsten-plate.png", icon_size = 128 }}
tungstenRecipe.subgroup = "raw-material"
tungstenRecipe.order = "d[tungsten-plate]"
end
end
end

View file

@ -0,0 +1,121 @@
-- Enriched Titanium for Krastorio2
local util = require("__bztungsten__.data-util");
if mods["Krastorio2"] then
data:extend({
{
type = "item",
name = "enriched-tungsten",
icon_size = 64, icon_mipmaps = 3,
icon = "__bztungsten__/graphics/icons/enriched-tungsten.png",
pictures = {
{filename="__bztungsten__/graphics/icons/enriched-tungsten.png", size=64, scale=0.5},
{filename="__bztungsten__/graphics/icons/enriched-tungsten-2.png", size=64, scale=0.5},
{filename="__bztungsten__/graphics/icons/enriched-tungsten-3.png", size=64, scale=0.5},
{filename="__bztungsten__/graphics/icons/enriched-tungsten-4.png", size=64, scale=0.5},
},
subgroup = "raw-material",
order = "e05-a[enriched-ores]-a1[enriched-tungsten]",
stack_size = 100,
},
{
type = "recipe",
name = "enriched-tungsten",
main_product = "enriched-tungsten",
icon = "__bztungsten__/graphics/icons/enriched-tungsten.png",
icon_size = 64,
category = "chemistry",
energy_required = 3,
enabled = false,
always_show_made_in = true,
always_show_products = true,
allow_productivity = true,
subgroup = "raw-material",
ingredients =
{
{type = "fluid", name = "kr-ammonia", amount = 10},
{type = "fluid", name = "water", amount = 25, catalyst_amount = 25},
{type = "item", name = "tungsten-ore", amount = 9}
},
results =
{
{type = "item", name = "enriched-tungsten", amount = 6},
{type = "fluid", name = "kr-dirty-water", amount = 25, catalyst_amount = 25}
},
crafting_machine_tint =
{
primary = {r = 0.721, g = 0.525, b = 0.043, a = 0.000},
secondary = {r = 0.200, g = 0.680, b = 0.300, a = 0.357},
tertiary = {r = 0.690, g = 0.768, b = 0.870, a = 0.000},
quaternary = {r = 0.0, g = 0.980, b = 0.603, a = 0.900}
},
order = "e03[enriched-tungsten]"
},
{
type = "recipe",
name = "enriched-tungsten-plate",
icons =
{
{ icon = "__bztungsten__/graphics/icons/tungsten-plate.png", icon_size = 128, icon_mipmaps = 3, },
{ icon = "__bztungsten__/graphics/icons/enriched-tungsten.png", icon_size = 64, scale=0.25, shift= {-8, -8}},
},
category = "smelting",
energy_required = 24,
enabled = false,
always_show_made_in = true,
always_show_products = true,
allow_productivity = true,
ingredients =
{
{type="item", name="enriched-tungsten", amount=15}
},
results = {{type="item", name="tungsten-plate", amount=10}},
order = "b[tungsten-plate]-b[enriched-tungsten-plate]"
},
{
type = "recipe",
name = "dirty-water-filtration-tungsten",
category = "kr-fluid-filtration",
icons =
{
{
icon = data.raw.fluid["kr-dirty-water"].icon,
icon_size = data.raw.fluid["kr-dirty-water"].icon_size
},
{
icon = data.raw.item["tungsten-ore"].icon,
icon_size = data.raw.item["tungsten-ore"].icon_size,
scale = 0.20,
shift = {0, 4}
}
},
icon_size = data.raw.fluid["kr-dirty-water"].icon_size,
energy_required = 2,
enabled = false,
allow_as_intermediate = false,
always_show_made_in = true,
always_show_products = true,
ingredients =
{
{type = "fluid", name = "kr-dirty-water", amount = 100, catalyst_amount = 100},
},
results =
{
{type = "fluid", name = "water", amount = 90, catalyst_amount = 90},
{type = "item", name = "stone", probability = 0.30, amount = 1},
{type = "item", name = "tungsten-ore", probability = 0.05, amount = 1}
},
crafting_machine_tint =
{
primary = {r = 0.60, g = 0.20, b = 0, a = 0.6},
secondary = {r = 1.0, g = 0.843, b = 0.0, a = 0.9}
},
subgroup = "raw-material",
order = "w013[dirty-water-filtration-tungsten]"
}
}
)
util.add_effect("kr-enriched-ores", { type = "unlock-recipe", recipe = "enriched-tungsten" })
util.add_effect("kr-enriched-ores", { type = "unlock-recipe", recipe = "enriched-tungsten-plate" })
util.add_effect("kr-enriched-ores", { type = "unlock-recipe", recipe = "dirty-water-filtration-tungsten" })
end

View file

@ -0,0 +1,22 @@
-- Matter recipes for Krastorio2
if mods["Krastorio2"] then
local util = require("data-util");
local matter = require("__Krastorio2__/prototypes/libraries/matter")
matter.make_recipes({
material = { type = "item", name = "tungsten-ore", amount = 1 },
matter_count = 6,
energy_required = 1,
need_stabilizer = false,
unlocked_by_technology = "tungsten-matter-processing",
icon = {icon = "__bztungsten__/graphics/icons/tungsten-ore.png", icon_size = 64, scale = 1.25}
})
matter.make_recipes({
material = { type = "item", name = "tungsten-plate", amount = 1 },
matter_count = 10,
energy_required = 2,
need_stabilizer = false,
unlocked_by_technology = "tungsten-matter-processing",
})
end

View file

@ -0,0 +1,80 @@
data:extend(
{
{
type = "optimized-particle",
name = "tungsten-ore-particle",
flags = {"not-on-map"},
life_time = 180,
pictures =
{
{
filename = "__bztungsten__/graphics/entity/tungsten-ore-particle/tungsten-ore-particle-1.png",
priority = "extra-high",
width = 32,
height = 32,
frame_count = 1,
scale = 0.5
},
{
filename = "__bztungsten__/graphics/entity/tungsten-ore-particle/tungsten-ore-particle-2.png",
priority = "extra-high",
width = 32,
height = 32,
frame_count = 1,
scale = 0.5
},
{
filename = "__bztungsten__/graphics/entity/tungsten-ore-particle/tungsten-ore-particle-3.png",
priority = "extra-high",
width = 32,
height = 32,
frame_count = 1,
scale = 0.5
},
{
filename = "__bztungsten__/graphics/entity/tungsten-ore-particle/tungsten-ore-particle-4.png",
priority = "extra-high",
width = 32,
height = 32,
frame_count = 1,
scale = 0.5
}
},
shadows =
{
{
filename = "__bztungsten__/graphics/entity/tungsten-ore-particle/tungsten-ore-particle-shadow-1.png",
priority = "extra-high",
width = 32,
height = 32,
frame_count = 1,
scale = 0.5
},
{
filename = "__bztungsten__/graphics/entity/tungsten-ore-particle/tungsten-ore-particle-shadow-2.png",
priority = "extra-high",
width = 32,
height = 32,
frame_count = 1,
scale = 0.5
},
{
filename = "__bztungsten__/graphics/entity/tungsten-ore-particle/tungsten-ore-particle-shadow-3.png",
priority = "extra-high",
width = 32,
height = 32,
frame_count = 1,
scale = 0.5
},
{
filename = "__bztungsten__/graphics/entity/tungsten-ore-particle/tungsten-ore-particle-shadow-4.png",
priority = "extra-high",
width = 32,
height = 32,
frame_count = 1,
scale = 0.5
}
}
}
}
)

View file

@ -0,0 +1,87 @@
local resource_autoplace = require('resource-autoplace');
local item_sounds = require('__base__.prototypes.item_sounds')
local util = require("__bztungsten__.data-util");
data.raw.planet.nauvis.map_gen_settings.autoplace_controls["tungsten-ore"] = {}
data.raw.planet.nauvis.map_gen_settings.autoplace_settings.entity.settings["tungsten-ore"] = {}
resource_autoplace.initialize_patch_set("tungsten-ore", true)
data:extend({
{
type = "autoplace-control",
category = "resource",
name = "tungsten-ore",
richness = true,
order = "b-e"
},
{
type = "resource",
icon_size = 64, icon_mipmaps = 3,
name = "tungsten-ore",
icon = "__bztungsten__/graphics/icons/tungsten-ore.png",
flags = {"placeable-neutral"},
order="a-b-a",
map_color = {r=0.90, g=0.90, b=0.80},
tree_removal_probability = 0.7,
tree_removal_max_distance = 32 * 32,
minable =
{
hardness = 1,
mining_particle = "tungsten-ore-particle",
mining_time = 2,
fluid_amount = util.me.fluid_amount(),
required_fluid= util.me.fluid(),
result = "tungsten-ore"
},
collision_box = {{ -0.1, -0.1}, {0.1, 0.1}},
selection_box = {{ -0.5, -0.5}, {0.5, 0.5}},
autoplace = resource_autoplace.resource_autoplace_settings{
name = "tungsten-ore",
order = "b-z",
base_density = 4,
has_starting_area_placement = util.me.starting_patch() and true,
regular_rq_factor_multiplier = 1.2,
starting_rq_factor_multiplier = 1.0,
},
stage_counts = {15000, 9500, 5500, 2900, 1300, 400, 150, 80},
stages =
{
sheet =
{
filename = "__bztungsten__/graphics/entity/ores/tungsten-ore.png",
priority = "extra-high",
size = 128,
frame_count = 8,
variation_count = 8,
scale = 0.5,
}
},
},
{
type = "item",
name = "tungsten-ore",
icon_size = 64, icon_mipmaps = 3,
icon = "__bztungsten__/graphics/icons/tungsten-ore.png",
pictures = {
{filename="__bztungsten__/graphics/icons/tungsten-ore.png", size=64, scale=0.5},
{filename="__bztungsten__/graphics/icons/tungsten-ore-2.png", size=64, scale=0.5},
{filename="__bztungsten__/graphics/icons/tungsten-ore-3.png", size=64, scale=0.5},
{filename="__bztungsten__/graphics/icons/tungsten-ore-4.png", size=64, scale=0.5},
},
subgroup = "raw-resource",
order = "t-c-a",
stack_size = 50,
weight = 20 * kg,
inventory_move_sound = item_sounds.resource_inventory_move,
pick_sound = item_sounds.resource_inventory_pickup,
drop_sound = item_sounds.resource_inventory_move
},
})
-- Wolframite becomes 20% richer past 1000 tiles, 60% richer past 10000 tiles. Very close to start, it's 25% richness
local richness = data.raw.resource["tungsten-ore"].autoplace.richness_expression
data.raw.resource["tungsten-ore"].autoplace.richness_expression = richness ..
"* if(distance_from_nearest_point(x, y, starting_positions) < 100, 0.25, if(distance_from_nearest_point(x, y, starting_positions) < 1000, 1, if(distance_from_nearest_point(x, y, starting_positions) < 100, 1.2, 1.6)))"

View file

@ -0,0 +1,152 @@
local util = require("__bztungsten__.data-util");
if mods["5dim_core"] then
data.raw.item["tungsten-plate"].subgroup = "plates-plates"
data.raw.recipe["tungsten-plate"].subgroup = "plates-plates"
data.raw.recipe["tungsten-carbide"].subgroup = "plates-misc"
data.raw.item["tungsten-carbide"].subgroup = "plates-misc"
data.raw.item["tungsten-ore"].subgroup = "plates-ore"
-- Industrial furnace
if data.raw["recipe-category"]["industrial-furnace"] then
data:extend({
{
type = "recipe",
name = "tungsten-plate-industrial-ore",
category = "industrial-furnace",
subgroup = "plates-industrial-ore",
order = "ad[tungsten-plate]",
icon = "__bztungsten__/graphics/icons/tungsten-plate.png",
icon_size = 128, icon_mipmaps = 3,
enabled = true,
energy_required = 50,
ingredients = {{type="item", name="tungsten-ore", amount=85}},
results = {{type="item", name="tungsten-plate", amount=50}},
}
})
end
-- Tungsten dust
if data.raw["recipe-category"]["mashering"] then
data:extend(
{
{
type = "item",
name = "tungsten-dust",
subgroup = "plates-dust",
order = "d[tungsten-plate]",
icon = "__bztungsten__/graphics/icons/tungsten-powder.png",
icon_size = 64, icon_mipmaps = 3,
stack_size = 200
},
{
type = "recipe",
name = "tungsten-plate-dust",
icon = "__bztungsten__/graphics/icons/tungsten-plate.png",
icon_size = 128, icon_mipmaps = 3,
subgroup = "plates-plates2",
order = "d[tungsten-plate]",
category = "smelting",
energy_required = 32/15,
enabled = true,
ingredients = {
{type="item", name="tungsten-dust", amount=2}
},
results = {{type="item", name="tungsten-plate", amount=1}},
},
{
type = "recipe",
name = "tungsten-dust",
icon = "__bztungsten__/graphics/icons/tungsten-powder.png",
icon_size = 64, icon_mipmaps = 3,
category = "mashering",
subgroup = "",
order = "d[tungsten-plate]",
energy_required = 3.2,
enabled = true,
ingredients = {
{type="item", name="tungsten-ore", amount=1}
},
results = {
{type="item", name = "tungsten-dust", amount=2},
}
},
{
type = "recipe",
name = "tungsten-plate-industrial-dust",
category = "industrial-furnace",
subgroup = "plates-industrial-dust",
order = "ad[tungsten-plate]",
icon = "__bztungsten__/graphics/icons/tungsten-plate.png",
icon_size = 128, icon_mipmaps = 3,
enabled = true,
energy_required = 50,
ingredients = {{type="item", name="tungsten-dust", amount=85}},
results = {{type="item", name=util.me.tungsten_plate, amount=50}},
},
{
type = "recipe",
name = "tungsten-carbide-industrial-dust",
category = "industrial-furnace",
subgroup = "plates-industrial-ore",
order = "ae[tungsten-carbide]",
icon = "__bztungsten__/graphics/icons/tungsten-carbide.png",
icon_size = 128, icon_mipmaps = 3,
enabled = true,
energy_required = 500,
ingredients = {{type="item", name="tungsten-plate", amount=85}},
results = {{type="item", name=util.me.tungsten_plate, amount=20}},
}
})
end
local mks = {"02", "03", "04", "05", "06", "07", "08", "09", "10"}
local items = {"5d-electric-mining-drill-", "5d-chemical-plant-"}
for i, mk in pairs(mks) do
for j, item in pairs(items) do
util.add_ingredient(item..mk, "tungsten-carbide", 1)
end
end
local mks = {"04", "05", "06", "07", "08", "09", "10"}
local items = {"5d-assembling-machine-"}
for i, mk in pairs(mks) do
for j, item in pairs(items) do
util.add_ingredient(item..mk, "tungsten-carbide", 2)
end
end
local mks = {"02", "03", "04", "05", "06", "07", "08", "09", "10"}
local items = {"5d-electric-furnace-"}
for i, mk in pairs(mks) do
for j, item in pairs(items) do
util.add_ingredient(item..mk, "tungsten-plate", 5)
end
end
local mks = {"02", "03", "04", "05", "06", "07", "08", "09", "10"}
local items = {"5d-heat-pipe-"}
for i, mk in pairs(mks) do
for j, item in pairs(items) do
util.replace_some_ingredient(item..mk, "copper-plate", 10, "tungsten-plate", 10)
end
end
local mks = {"02", "03", "04", "05", "06", "07", "08", "09", "10"}
local items = {"5d-heat-exchanger-"}
for i, mk in pairs(mks) do
for j, item in pairs(items) do
util.replace_some_ingredient(item..mk, "copper-plate", 50, "tungsten-plate", 50)
end
end
local mks = {"02", "03", "04", "05", "06", "07", "08", "09", "10"}
local items = {"5d-nuclear-reactor-"}
for i, mk in pairs(mks) do
for j, item in pairs(items) do
util.add_ingredient(item..mk, "tungsten-plate", 400)
end
end
end

View file

@ -0,0 +1,15 @@
local util = require("__bztungsten__.data-util");
if mods["Rich-Rocks-Requiem"] then
if data.raw.recipe["rrr-stone-processing"] then
table.insert(data.raw.recipe["rrr-stone-processing"].results,
{name = "tungsten-ore", probability = 0.05, amount = 2}
)
end
if data.raw.recipe["rrr-raw-ores-processing"] then
table.insert(data.raw.recipe["rrr-raw-ores-processing"].results,
{name = "tungsten-ore", probability = 0.50, amount = 10}
)
end
end

View file

@ -0,0 +1,43 @@
-- Deadlock stacking recipes
local util = require("__bztungsten__.data-util");
if deadlock then
deadlock.add_stack("tungsten-ore", "__bztungsten__/graphics/icons/stacked/tungsten-ore-stacked.png", "deadlock-stacking-2", 64)
deadlock.add_stack("tungsten-plate", "__bztungsten__/graphics/icons/stacked/tungsten-plate-stacked.png" , "deadlock-stacking-2", 128)
deadlock.add_stack("tungsten-carbide", "__bztungsten__/graphics/icons/stacked/tungsten-carbide-stacked.png" , "deadlock-stacking-2", 128)
deadlock.add_stack("rocket-engine-nozzle", "__bztungsten__/graphics/icons/stacked/rocket-engine-nozzle-stacked.png" , "deadlock-stacking-2", 128)
if mods["Krastorio2"] then
deadlock.add_stack("enriched-tungsten", "__bztungsten__/graphics/icons/stacked/enriched-tungsten-stacked.png" , "deadlock-stacking-2", 64)
end
if data.raw.item["tungsten-ingot"] then
deadlock.add_stack("tungsten-ingot", nil, "deadlock-stacking-2", nil)
end
if util.me.cuw() then
deadlock.add_stack("cuw", "__bztungsten__/graphics/icons/stacked/cuw-stacked.png" , "deadlock-stacking-2", 128)
end
if data.raw.item["tungsten-powder"] then
deadlock.add_stack("tungsten-powder", nil, "deadlock-stacking-2", nil)
end
end
-- Deadlock crating recipes
if deadlock_crating then
deadlock_crating.add_crate("tungsten-ore", "deadlock-crating-2")
deadlock_crating.add_crate("tungsten-plate", "deadlock-crating-2")
deadlock_crating.add_crate("tungsten-carbide", "deadlock-crating-2")
deadlock_crating.add_crate("rocket-engine-nozzle", "deadlock-crating-2")
if mods["Krastorio2"] then
deadlock_crating.add_crate("enriched-tungsten", "deadlock-crating-2")
end
if data.raw.item["tungsten-ingot"] then
deadlock_crating.add_crate("tungsten-ingot", "deadlock-crating-2")
end
if util.me.cuw() then
deadlock_crating.add_crate("cuw", "deadlock-crating-2")
end
if data.raw.item["tungsten-powder"] then
deadlock_crating.add_crate("tungsten-powder", "deadlock-crating-2")
end
end

View file

@ -0,0 +1,246 @@
-- Additional recipes if Space Exploration mod is enabled
local util = require("data-util");
if mods["space-exploration"] then
se_delivery_cannon_recipes["tungsten-ore"] = {name= "tungsten-ore"}
se_delivery_cannon_recipes["tungsten-plate"] = {name= "tungsten-plate"}
se_delivery_cannon_recipes["tungsten-carbide"] = {name= "tungsten-carbide"}
if util.me.cuw() then
se_delivery_cannon_recipes["cuw"] = {name= "cuw"}
end
util.se_landfill({ore="tungsten-ore"})
if string.sub(mods["space-exploration"], 1, 3) >= "0.6" then
util.se_matter({ore="tungsten-ore", energy_required=2, quant_out=10, stream_out=60})
data:extend({
{
type = "item-subgroup",
name = "tungsten",
group = "resources",
order = "a-h-z-a",
}
})
util.set_item_subgroup("tungsten-ore", "tungsten")
util.set_item_subgroup("tungsten-plate", "tungsten")
util.set_item_subgroup("tungsten-carbide", "tungsten")
util.set_item_subgroup("cuw", "tungsten")
data:extend({
{
type = "item",
name = "tungsten-ingot",
icons = {{icon = "__bztungsten__/graphics/icons/tungsten-ingot.png", icon_size = 128}},
order = "b-b",
stack_size = 50,
subgroup = "tungsten",
},
util.me.sinter() and {
type = "item",
name = "tungsten-powder",
icons = {{icon = "__bztungsten__/graphics/icons/tungsten-powder.png", icon_size = 64, icon_mipmaps = 3}},
order = "b-a-x",
subgroup = "tungsten",
stack_size = 200,
} or {
type = "fluid",
name = "molten-tungsten",
default_temperature = 3422,
max_temperature = 3422,
base_color = {r=255, g=160, b=60},
flow_color = {r=255, g=160, b=60},
icons = {{icon = "__bztungsten__/graphics/icons/molten-tungsten.png", icon_size = 128}},
order = "a[molten]-a",
pressure_to_speed_ratio = 0.4,
flow_to_energy_ratio = 0.59,
auto_barrel = false,
subgroup = "fluid",
},
util.me.sinter() and {
type = "recipe",
category = "smelting",
name = "tungsten-powder",
subgroup = "tungsten",
results = {
{type = "item", name = "tungsten-powder", amount = mods.Krastorio2 and 30 or 36},
},
energy_required = 60,
ingredients = {
{type="item", name = mods.Krastorio2 and "enriched-tungsten" or "tungsten-ore", amount = 24},
{type = "fluid", name = "se-pyroflux", amount = 10},
},
enabled = false,
always_show_made_in = true,
allow_as_intermediate = false,
order = "a-a"
} or {
type = "recipe",
category = "smelting",
name = "molten-tungsten",
subgroup = "tungsten",
results = {
{type = "fluid", name = "molten-tungsten", amount = mods.Krastorio2 and 750 or 900},
},
energy_required = 60,
ingredients = {
{type="item", name = mods.Krastorio2 and "enriched-tungsten" or "tungsten-ore", amount = 24},
{type = "fluid", name = "se-pyroflux", amount = 10},
},
enabled = false,
always_show_made_in = true,
allow_as_intermediate = false,
order = "a-a"
},
{
type = "recipe",
name = "tungsten-ingot",
category = "casting",
results = {{type="item", name="tungsten-ingot", amount=1}},
energy_required = 18,
ingredients = {
util.me.sinter() and {type = "item", name = "tungsten-powder", amount = 15} or
{type = "fluid", name = "molten-tungsten", amount = 375},
},
enabled = false,
always_show_made_in = true,
allow_as_intermediate = false,
},
{
type = "recipe",
name = "tungsten-carbide-casting",
category = "casting",
icons = {
{icon = "__bztungsten__/graphics/icons/tungsten-carbide.png", icon_size = 128},
util.me.sinter() and
{icon = "__bztungsten__/graphics/icons/tungsten-powder.png", icon_size = 64, scale = 0.25, shift = {-8, -8}} or
{icon = "__bztungsten__/graphics/icons/molten-tungsten.png", icon_size = 128, scale = 0.125, shift = {-8, -8}},
},
results = {{type="item", name="tungsten-carbide", amount=4}},
energy_required = 40,
ingredients = {
data.raw.item["kr-coke"] and {type="item", name="kr-coke", amount=8} or {type="item", name="coal", amount=16},
util.me.sinter() and {type = "item", name = "tungsten-powder", amount = 15} or {type = "fluid", name = "molten-tungsten", amount = 375},
},
enabled = false,
always_show_made_in = true,
allow_as_intermediate = false,
},
{
type = "recipe",
category = "crafting",
name = "tungsten-ingot-to-plate",
icons = {
{icon = "__bztungsten__/graphics/icons/tungsten-plate.png", icon_size = 128},
{icon = "__bztungsten__/graphics/icons/tungsten-ingot.png", icon_size = 128, scale = 0.125, shift = {-8, -8}},
},
results = {
{type="item", name = "tungsten-plate", amount = 10},
},
energy_required = 5,
ingredients = {
{type="item", name = "tungsten-ingot", amount = 1}
},
enabled = false,
always_show_made_in = true,
allow_decomposition = false,
order = "a-c-b"
},
})
util.add_effect("se-pyroflux-smelting", {type = "unlock-recipe", recipe= "molten-tungsten"})
util.add_effect("se-pyroflux-smelting", {type = "unlock-recipe", recipe= "tungsten-powder"})
util.add_effect("se-pyroflux-smelting", {type = "unlock-recipe", recipe= "tungsten-ingot"})
util.add_effect("se-pyroflux-smelting", {type = "unlock-recipe", recipe= "tungsten-ingot-to-plate"})
util.add_effect("se-pyroflux-smelting", {type = "unlock-recipe", recipe= "tungsten-carbide-casting"})
util.add_effect("se-vulcanite-smelting", {type = "unlock-recipe", recipe= "molten-tungsten"})
util.add_effect("se-vulcanite-smelting", {type = "unlock-recipe", recipe= "tungsten-ingot"})
util.add_effect("se-vulcanite-smelting", {type = "unlock-recipe", recipe= "tungsten-ingot-to-plate"})
util.add_effect("se-vulcanite-smelting", {type = "unlock-recipe", recipe= "tungsten-carbide-casting"})
util.add_prerequisite(data.raw.technology["se-processing-vulcanite"], util.me.tungsten_processing)
if mods["Krastorio2"] then
util.set_item_subgroup("enriched-tungsten", "tungsten")
data.raw.recipe["enriched-tungsten-plate"].order= "d[tungsten-plate]"
se_delivery_cannon_recipes["enriched-tungsten"] = {name= "enriched-tungsten"}
end
se_delivery_cannon_recipes["tungsten-ingot"] = {name= "tungsten-ingot"}
else
data.raw.item["tungsten-plate"].subgroup = "plates"
data.raw.item["tungsten-carbide"].subgroup = "plates"
if mods["Krastorio2"] then
data:extend({
{
type = "recipe",
name = "enriched-tungsten-smelting-vulcanite",
category = "smelting",
order = "d[tungsten-plate]",
energy_required = 24,
enabled = false,
always_show_made_in = true,
allow_as_intermediate = false,
ingredients = {
{type="item", name = "enriched-tungsten", amount = 8},
{type="item", name = "se-vulcanite-block", amount = 1},
},
results = {
{type="item", name = util.me.tungsten_plate, amount = 8},
},
icons =
{
{ icon = "__bztungsten__/graphics/icons/tungsten-plate.png", icon_size = 128, icon_mipmaps = 3 },
{ icon = "__space-exploration-graphics__/graphics/icons/vulcanite-block.png", icon_size = 64, scale=0.25, shift= {-10, -10}},
},
},
})
table.insert(data.raw.technology["se-processing-vulcanite"].effects,
{type = "unlock-recipe", recipe= "enriched-tungsten-smelting-vulcanite"})
data.raw.recipe["enriched-tungsten-plate"].order= "d[tungsten-plate]"
se_delivery_cannon_recipes["enriched-tungsten"] = {name= "enriched-tungsten"}
else
data:extend({
{
type = "recipe",
name = "tungsten-smelting-vulcanite",
category = "smelting",
order = "d[tungsten-plate]",
energy_required = 16,
enabled = false,
always_show_made_in = true,
allow_as_intermediate = false,
ingredients = {
{type="item", name = "tungsten-ore", amount = 16},
{type="item", name = "se-vulcanite-block", amount = 1},
},
results = {
{type="item", name = util.me.tungsten_plate, amount = 12},
},
icons =
{
{ icon = "__bztungsten__/graphics/icons/tungsten-plate.png", icon_size = 128, icon_mipmaps = 3,},
{ icon = "__space-exploration-graphics__/graphics/icons/vulcanite-block.png", icon_size = 64, scale=0.25, shift= {-10, -10}},
},
},
})
util.add_effect("se-processing-vulcanite", {type = "unlock-recipe", recipe= "tungsten-smelting-vulcanite"})
end
end
end
if mods["aai-industry"] and not mods["Krastorio2"] and not mods.bzfoundry2 then
data:extend({
{
type = "recipe",
name = "tungsten-carbide-coal",
category = "smelting",
order = "z[tungsten-carbide]",
icons =
{
{ icon = "__bztungsten__/graphics/icons/tungsten-carbide.png", icon_size = 128 },
{ icon = "__base__/graphics/icons/coal.png", icon_size = 64, icon_mipmaps=4, scale=0.25, shift= {-10, -10}},
},
enabled = false,
energy_required = 50,
ingredients = {{type="item", name="tungsten-plate", amount=4}, {type="item", name="coal", amount=1}},
results = {{type="item", name="tungsten-carbide", amount=2}},
}
})
util.add_effect(util.me.tungsten_processing, {type = "unlock-recipe", recipe= "tungsten-carbide-coal"})
end

View file

@ -0,0 +1,468 @@
local util = require("__bztungsten__.data-util");
local cuw = "tungsten-plate"
if util.me.cuw() then cuw = "cuw" end
-- Lamps
util.add_prerequisite("optics", util.me.tungsten_processing)
util.set_tech_recipe("optics", {{"automation-science-pack", 1}, {"logistic-science-pack", 1}})
util.add_ingredient("small-lamp", "tungsten-plate", 1)
-- Rail signals use lamps
util.add_prerequisite("rail-signals", "optics")
util.add_ingredient("rail-signal", "small-lamp", 1)
util.add_ingredient("rail-chain-signal", "small-lamp", 1)
-- Ammunition
util.add_prerequisite("military-2", util.me.tungsten_processing)
util.replace_ingredient("piercing-rounds-magazine", "copper-plate", "tungsten-plate", 3)
util.replace_ingredient("piercing-shotgun-shell", "copper-plate", "tungsten-plate", 3)
util.replace_ingredient("cannon-shell", "copper-plate", "tungsten-plate")
-- Tooling
util.add_prerequisite("automation-2", util.me.tungsten_processing)
if mods.bzaluminum2 or mods.bzcarbon or mods.bzgas2 then
util.replace_ingredient("assembling-machine-2", "steel-plate", "tungsten-carbide")
else
util.replace_some_ingredient("assembling-machine-2", "steel-plate", 1, "tungsten-carbide", 1)
end
util.add_ingredient("assembling-machine-3", "tungsten-carbide", 4)
util.add_ingredient("electric-furnace", "tungsten-carbide", 1)
if (not mods.MoreScience or data.raw["assembling-machine"]["basic-chemical-plant"])
and (not (mods.omnimatter and mods.Krastorio2)) then
util.add_ingredient("chemical-plant", "tungsten-carbide", 2)
util.add_ingredient("chemical-plant", cuw, 5)
end
-- Electrodes & spark plugs
util.replace_ingredient("accumulator", "iron-plate", cuw)
util.add_ingredient("oil-refinery", cuw, 10)
util.add_prerequisite("engine", util.me.tungsten_processing)
util.add_ingredient("engine-unit", "tungsten-plate", 1)
-- Hot stuff
util.add_prerequisite("advanced-materials-processing-2", util.me.tungsten_processing)
util.replace_some_ingredient("electric-furnace", "steel-plate", 5, cuw, 5)
util.replace_some_ingredient("heat-exchanger", "copper-plate", 50, cuw, 50)
if not util.me.cuw() then
-- keep old behvaior
util.replace_some_ingredient("heat-pipe", "copper-plate", 10, "tungsten-plate", 10)
end
util.add_ingredient("nuclear-reactor", cuw, 500)
util.add_ingredient("flamethrower-turret", cuw, 5)
util.add_ingredient("flamethrower", cuw, 2)
util.add_ingredient("nuclear-fuel", "tungsten-plate", 1)
-- Rocket engine nozzle techs
util.add_effect("rocketry", { type = "unlock-recipe", recipe = "rocket-engine-nozzle" })
util.add_prerequisite("rocket-silo", "rocketry")
if util.me.get_setting("bztungsten-avoid-military") == "yes" then
util.set_tech_recipe("rocketry", {{"automation-science-pack", 1}, {"logistic-science-pack", 1}})
end
-- Rocket engine nozzle uses
util.add_ingredient("rocket-part", "rocket-engine-nozzle", mods["space-exploration"] and 5 or 10)
util.add_ingredient("rocket", "rocket-engine-nozzle", 1)
util.add_ingredient("satellite", "rocket-engine-nozzle", 10)
util.add_ingredient("artillery-shell", "rocket-engine-nozzle", 3)
util.add_ingredient("atomic-bomb", "rocket-engine-nozzle", 7)
util.add_ingredient("atomic-bomb", "tungsten-plate", 1)
-- Nuclear Fuel
util.add_ingredient("atomic-bomb-pu", "rocket-engine-nozzle", 7)
util.add_ingredient("atomic-bomb-pu", "tungsten-plate", 1)
-- Plutonium Energy
util.add_ingredient("plutonium-atomic-bomb", "rocket-engine-nozzle", 7)
util.add_ingredient("plutonium-atomic-bomb", "tungsten-plate", 1)
util.add_ingredient("MOX-reactor", cuw, 400)
-- Airplanes
util.add_prerequisite("afterburner", "rocketry")
util.add_ingredient("aircraft-afterburner", "rocket-engine-nozzle", 1)
-- Jetpack
util.add_prerequisite("jetpack-1", "rocketry")
util.add_ingredient("jetpack-1", "rocket-engine-nozzle", 6)
-- Other lights
util.add_ingredient("balloon-light", "tungsten-plate", 1)
util.add_ingredient("short-balloon-light", "tungsten-plate", 1)
util.add_ingredient("LargeLamp", "tungsten-plate", 1)
util.add_ingredient("StadiumLamp", "tungsten-plate", 10)
util.set_tech_recipe("optics-2", {{"automation-science-pack", 1}, {"logistic-science-pack", 1}})
util.set_tech_recipe("bright-lamp", {{"automation-science-pack", 1}, {"logistic-science-pack", 1}})
util.add_ingredient("deadlock-large-lamp", "tungsten-plate", 2)
util.add_ingredient("deadlock-floor-lamp", "tungsten-plate", 2)
---- K2
if mods["Krastorio2"] then
util.set_tech_recipe("engine", {{"kr-basic-tech-card", 1}, {"automation-science-pack", 1}, {"logistic-science-pack", 1}})
util.set_tech_recipe("fluid-handling", {{"kr-basic-tech-card", 1}, {"automation-science-pack", 1}, {"logistic-science-pack", 1}})
util.set_tech_recipe("optics", {{"kr-basic-tech-card", 1}, {"automation-science-pack", 1}, {"logistic-science-pack", 1}})
-- TODO: Fix
--util.set_tech_recipe("oil-processing", {{"kr-basic-tech-card", 1}, {"automation-science-pack", 1}, {"logistic-science-pack", 1}})
util.set_tech_recipe("plastics", {{"kr-basic-tech-card", 1}, {"automation-science-pack", 1}, {"logistic-science-pack", 1}})
if util.me.get_setting("bztungsten-avoid-military") == "yes" then
util.set_tech_recipe("rocketry", {{"kr-basic-tech-card", 1}, {"automation-science-pack", 1}, {"logistic-science-pack", 1}})
end
util.remove_prerequisite("kr-sentinel", "optics")
util.add_prerequisite(util.me.tungsten_processing, "kr-mineral-water-gathering")
util.remove_prerequisite("kr-mineral-water-gathering", "fluid-handling")
-- engines come later with Tungsten.
util.replace_ingredient("kr-filtration-plant", "engine-unit", "pipe")
-- Heat related
util.add_ingredient("kr-fusion-reactor", cuw, 350)
util.add_ingredient("energy-control-unit", cuw, 3)
util.replace_some_ingredient("kr-advanced-furnace", "kr-rare-metals", 40, cuw, 40)
-- Other
if mods.bzzirconium then
util.add_ingredient("matter-research-data", "zirconium-tungstate", 5)
else
util.add_ingredient("matter-research-data", "tungsten-plate", 5)
end
-- Ammunition
util.replace_ingredient("piercing-rounds-magazine", "steel-plate", "tungsten-plate")
util.replace_ingredient("piercing-shotgun-shell", "steel-plate", "tungsten-plate")
util.replace_ingredient("armor-piercing-rifle-magazine", "steel-plate", "tungsten-plate")
util.replace_ingredient("armor-piercing-anti-material-rifle-magazine", "steel-plate", "tungsten-plate")
util.replace_ingredient("basic-railgun-shell", "steel-plate", "tungsten-plate")
-- Rocket things
util.add_ingredient("heavy-rocket", "rocket-engine-nozzle", 4)
util.add_ingredient("explosive-turret-rocket", "rocket-engine-nozzle", 3)
-- Tooling
util.add_ingredient("kr-electric-mining-drill-mk2", "tungsten-carbide", 5)
util.add_ingredient("kr-quarry-drill", "tungsten-carbide", 20)
util.replace_some_ingredient("kr-advanced-chemical-plant", "kr-rare-metals", 40, "tungsten-carbide", 20)
end
-- SE
if mods["space-exploration"] then
-- Heat Shielding
util.replace_some_ingredient("se-heat-shielding", "steel-plate", 1, cuw, 3)
util.replace_some_ingredient("se-heat-shielding-iridium", "stone-tablet", 3, cuw, 3)
-- Hot stuff
util.add_ingredient("se-space-electromagnetics-laboratory", "tungsten-plate", 20)
util.add_ingredient("se-space-radiator", cuw, 4)
util.add_ingredient("se-delivery-cannon-weapon-capsule", "tungsten-plate", 10)
-- Data
util.add_ingredient("se-electromagnetic-field-data", "tungsten-plate", 1)
util.add_product("se-electromagnetic-field-data", {type="item", name="tungsten-plate", amount=1, probability=0.95})
if mods.bzzirconium then
util.add_ingredient("se-hot-thermodynamics-data", "zirconium-tungstate", 1)
util.add_product("se-hot-thermodynamics-data", {type="item", name="zirconium-tungstate", amount=1, probability=0.50})
else
util.add_ingredient("se-hot-thermodynamics-data", cuw, 1)
util.add_product("se-hot-thermodynamics-data", {type="item", name= cuw, amount=1, probability=0.50})
end
util.add_ingredient("se-particle-beam-shielding-data", cuw, 1)
util.add_product("se-particle-beam-shielding-data", {type="item", name= cuw, amount=1, probability=0.20})
--rocket
if mods.Krastorio2 and string.sub(mods["space-exploration"], 1, 3) >= "0.6" then
util.replace_ingredient("se-rocket-science-pack", "speed-module", "rocket-engine-nozzle", 8)
else
util.add_ingredient("se-rocket-science-pack", "rocket-engine-nozzle", 1)
end
util.add_ingredient("se-spaceship-rocket-engine", "rocket-engine-nozzle", 4)
util.add_ingredient("se-cargo-rocket-section", "rocket-engine-nozzle", 5)
util.add_ingredient("se-cargo-rocket-section-beryllium", "rocket-engine-nozzle", 5)
util.add_ingredient("se-void-probe", "rocket-engine-nozzle", 1)
--Tooling
util.add_ingredient("se-space-assembling-machine", "tungsten-carbide", 8)
util.add_ingredient("se-core-miner", "tungsten-carbide", 40)
util.add_ingredient("se-space-mechanical-laboratory", "tungsten-carbide", 40)
util.add_ingredient("se-recyling-facility", "tungsten-carbide", 10)
util.add_ingredient("se-experimental-alloys-data", "tungsten-plate", 1)
util.add_to_product("se-experimental-alloys-data", "se-experimental-alloys-data", 1)
util.add_to_product("se-experimental-alloys-data", "se-scrap", 1)
util.add_to_ingredient("se-experimental-alloys-data", "se-empty-data", 1)
end
-- AAI
util.add_ingredient("area-mining-drill", "tungsten-carbide", 8)
util.add_ingredient("vehicle-miner-mk3", "tungsten-carbide", 5)
util.add_ingredient("vehicle-flame-tumbler", "flamethrower", 1)
util.replace_some_ingredient("superheater", "copper-plate", 10, cuw, 10)
-- Expanded rocket payloads
util.add_ingredient("radioisotope-thermoelectric-generater", cuw, 100)
util.add_ingredient("satellite-thruster", "rocket-engine-nozzle", 12)
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)
-- King Jo
util.replace_ingredient("kj_pak_penetration", "steel-plate", "tungsten-plate")
util.replace_ingredient("kj_bolt", "steel-plate", "tungsten-plate")
util.replace_ingredient("kj_40kdreadnought_normal", "steel-plate", "tungsten-plate")
util.replace_some_ingredient("kj_predator_normal", "steel-plate", 1, "tungsten-plate", 1)
util.replace_some_ingredient("kj_lemanruss_normal", "steel-plate", 3, "tungsten-plate", 3)
util.replace_some_ingredient("kj_baneblade_normal", "steel-plate", 3, "tungsten-plate", 3)
util.replace_ingredient("kj_75kwk40_penetration", "steel-plate", "tungsten-plate")
util.replace_ingredient("kj_120kwk_penetration", "steel-plate", "tungsten-plate")
util.replace_ingredient("kj_120kwk_penetration_highexplosive", "steel-plate", "tungsten-plate")
util.replace_ingredient("kj_280SK34_penetration", "steel-plate", "tungsten-plate")
util.add_ingredient("bolt75mk2","tungsten-plate", 1)
util.add_ingredient("bolt100mk2","tungsten-plate", 1)
util.replace_ingredient("bolt75kraken", "steel-plate", "tungsten-plate")
util.replace_ingredient("bolt100kraken", "steel-plate", "tungsten-plate")
-- King Jo vehicles
util.replace_some_ingredient("kj_40kbaneblade", "steel-plate", 25, "tungsten-plate", 25)
util.replace_some_ingredient("kj_40kpredator", "steel-plate", 25, "tungsten-plate", 25)
util.replace_some_ingredient("kj_40kdreadnought", "steel-plate", 25, "tungsten-plate", 25)
util.replace_some_ingredient("kj_40klemanruss", "steel-plate", 25, "tungsten-plate", 25)
-- additional turrets
util.add_ingredient("at-acidthrower-turret", cuw, 5)
util.replace_some_ingredient("small-cannon-shell", "steel-plate", 2, "tungsten-plate", 2)
util.add_ingredient("small-rocket","rocket-engine-nozzle", 1)
util.add_ingredient("Artillery_mk1_Ammo", "tungsten-plate", 2)
-- 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)
-- Advanced Mining Drills
util.add_ingredient("advanced-mining-drill", "tungsten-carbide", 1)
util.add_prerequisite("advanced-mining-drill",util.me.tungsten_processing)
util.add_ingredient("elite-mining-drill", "tungsten-carbide", 5)
util.add_ingredient("ultimate-mining-drill", "tungsten-carbide", 10)
-- Skandragon
util.add_ingredient("skan-advanced-mining-drill", "tungsten-carbide", 4)
util.add_ingredient("skan-elite-mining-drill", "tungsten-carbide", 4)
util.add_ingredient("skan-ultimate-mining-drill", "tungsten-carbide", 4)
-- Hiladdar
util.add_ingredient("hsmd-electric-mining-drill-mk2", "tungsten-carbide", 3)
util.add_ingredient("hsmd-electric-mining-drill-mk3", "tungsten-carbide", 3)
util.add_ingredient("hsmd-electric-mining-drill-mk4", "tungsten-carbide", 3)
util.add_ingredient("hsmd-electric-mining-drill-mk5", "tungsten-carbide", 3)
util.add_ingredient("hsmd-electric-mining-drill-mk6", "tungsten-carbide", 3)
-- Extended vanilla (and mk2), Zombies
local tcamount = 10
if mods["zombiesextended-core"] then
tcamount = 2
util.add_ingredient("electric-mining-drill-mk1", "tungsten-carbide", tcamount)
util.add_ingredient("assembling-machine-mk1", "tungsten-carbide", tcamount)
util.add_ingredient("assembling-machine-mk2", "tungsten-carbide", tcamount)
util.add_ingredient("assembling-machine-mk3", "tungsten-carbide", tcamount)
util.add_ingredient("heat-pipe-mk1", "tungsten-plate", 1)
end
util.add_ingredient("electric-mining-drill-mk2", "tungsten-carbide", tcamount)
util.add_ingredient("edrill-1to2", "tungsten-carbide", tcamount)
util.add_ingredient("electric-mining-drill-mk3", "tungsten-carbide", tcamount)
util.add_ingredient("electric-mining-drill-mk4", "tungsten-carbide", tcamount)
util.add_ingredient("electric-mining-drill-mk5", "tungsten-carbide", tcamount)
util.add_ingredient("electric-mining-drill-mk6", "tungsten-carbide", tcamount)
-- Tiny
util.add_ingredient("tiny-electric-mining-drill-1", "tungsten-carbide", 1)
util.add_ingredient("tiny-electric-mining-drill-3", "tungsten-carbide", 2)
util.add_ingredient("tiny-electric-mining-drill-5", "tungsten-carbide", 3)
-- TA Miners
util.add_ingredient("crust_extractor", "tungsten-carbide", 50)
util.add_ingredient("moho_extractor", "tungsten-carbide", 50)
util.add_ingredient("mantle_extractor", "tungsten-carbide", 100)
-- other mining drills
util.add_ingredient("electric-mining-drill-lv2", "tungsten-carbide", 5)
util.add_ingredient("advanced-electric-mining-drill", "tungsten-carbide", 10)
util.add_ingredient("omega-drill", "tungsten-carbide", 25)
util.add_ingredient("omega-drill-mk2", "tungsten-carbide", 50)
util.add_ingredient("passive-furnace", "tungsten-carbide", 2)
util.add_ingredient("quarry-mk3", "tungsten-carbide", 20)
-- Geothermal
util.replace_some_ingredient("geothermal-heat-exchanger", "copper-plate", 120, cuw, 120)
-- FastFurnaces
util.replace_some_ingredient("reika-fast-electric-mining-drill", "steel-plate", 10, "tungsten-carbide", 10)
-- Nuclear furnaces
util.add_ingredient("nuclear-furnace-3", cuw, 200)
-- Mega Furnace
util.add_ingredient("mega-furnace", cuw, 5)
-- Mundas
util.add_ingredient("munda_big_machine", "tungsten-carbide", 32)
util.add_prerequisite("munda_big_machine", util.me.tungsten_processing)
-- Realistic reactors
util.add_ingredient("realistic-reactor", cuw, 500)
util.add_ingredient("breeder-reactor", cuw, 500)
-- 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
-- Rampant Industry
util.add_ingredient("advanced-chemical-plant-rampant-industry", "tungsten-carbide", 10)
util.add_ingredient("advanced-oil-refinery-rampant-industry", "tungsten-carbide", 10)
-- Endgame Combat
util.replace_ingredient("sulfur-bullet-magazine", "copper-plate", "tungsten-plate")
-- FE+
if util.fe_plus("Machines") then
util.add_ingredient("oil-refinery-mk2", "tungsten-carbide", 1)
end
-- Bob's machines
util.add_ingredient("chemical-plant-2", "tungsten-carbide", 2)
util.add_ingredient("chemical-plant-3", "tungsten-carbide", 2)
util.add_ingredient("chemical-plant-4", "tungsten-carbide", 2)
util.add_ingredient("electronics-machine-2", "tungsten-carbide", 1)
util.add_ingredient("electronics-machine-3", "tungsten-carbide", 1)
util.add_ingredient("oil-refinery-2", "tungsten-carbide", 1)
util.add_ingredient("bob-mining-drill-2", "tungsten-carbide", 1)
util.add_ingredient("bob-area-mining-drill-2", "tungsten-carbide", 1)
util.add_ingredient("bob-mining-drill-2", "tungsten-carbide", 3)
util.add_ingredient("bob-area-mining-drill-2", "tungsten-carbide", 3)
util.add_ingredient("bob-mining-drill-2", "tungsten-carbide", 3)
util.add_ingredient("bob-area-mining-drill-2", "tungsten-carbide", 3)
-- RFP
if not util.me.cuw() then
-- keep old behvaior
util.add_ingredient("rfp-pipe", "tungsten-plate", 2)
util.add_ingredient("rfp-pipe-to-ground", "tungsten-plate", 6)
end
util.add_ingredient("rfp-pump", cuw, 5)
util.add_ingredient("rfp-heater", cuw, 500)
util.add_ingredient("rfp-heat-exchanger", cuw, 200)
util.add_ingredient("rfp-aneutronic-reactor", cuw, 5000)
util.add_ingredient("rfp-direct-energy-converter", cuw, 500)
util.add_ingredient("rfp-particle-accelerator", cuw, 1000)
util.add_ingredient("rfp-particle-decelerator", cuw, 1000)
util.add_ingredient("rfp-antimatter-reactor", cuw, 2000)
util.add_ingredient("rfw-plasma-thrower", cuw, 10)
util.add_ingredient("rfw-plasma-thrower-turret", cuw, 20)
util.add_ingredient("rfw-thermonuclear-bomb", "rocket-engine-nozzle", 7)
util.add_ingredient("rfw-thermonuclear-artillery-shell", "rocket-engine-nozzle", 7)
util.add_ingredient("rfw-fusion-bomb", "rocket-engine-nozzle", 7)
util.add_ingredient("rfw-fusion-artillery-shell", "rocket-engine-nozzle", 7)
util.add_ingredient("rfw-antimatter-bomb", "rocket-engine-nozzle", 7)
util.add_ingredient("rfw-antimatter-artillery-shell", "rocket-engine-nozzle", 7)
util.add_ingredient("rfw-small-antimatter-rocket", "rocket-engine-nozzle", 1)
-- Rocket Silo Construction
util.add_ingredient("rsc-excavation-site", "tungsten-carbide", 100)
-- Useful Equipment
util.add_ingredient("craft-assistent", "tungsten-carbide", 1)
-- True Nukes
util.add_ingredient("really-very-small-atomic-bomb", "rocket-engine-nozzle", 2)
util.add_ingredient("very-small-atomic-bomb", "rocket-engine-nozzle", 3)
util.add_ingredient("small-atomic-bomb", "rocket-engine-nozzle", 5)
-- Schall
util.add_ingredient("Schall-napalm-bomb", "rocket-engine-nozzle", 1)
util.replace_ingredient("Schall-sniper-piercing-rounds-magazine", "copper-plate", "tungsten-plate")
util.add_ingredient("Schall-satellite-astro-2", "rocket-engine-nozzle", 20)
util.add_ingredient("Schall-satellite-bio-2", "rocket-engine-nozzle", 20)
util.add_ingredient("Schall-uranium-mining-drill", "tungsten-carbide", 2)
util.replace_ingredient("Schall-armoured-locomotive", "steel-plate", "tungsten-plate")
util.replace_ingredient("Schall-armoured-cargo-wagon", "steel-plate", "tungsten-plate")
util.replace_ingredient("Schall-armoured-fluid-wagon", "steel-plate", "tungsten-plate")
-- Space solar panel
util.add_ingredient("space-solar-panel", "rocket-engine-nozzle", 10)
-- Power Armor Mk3
util.add_ingredient("pamk3-pamk3", "tungsten-plate", 20)
-- Leion Power Armor Mk3
util.add_ingredient("power-armor-mk3", "tungsten-plate", 20)
-- Simply Power Armor Mk3
util.add_ingredient("simply-power-armor-mk3", "tungsten-plate", 20)
-- Cargo Ships
util.add_prerequisite("water_transport_signals", "optics")
util.add_ingredient("buoy", "small-lamp", 1)
util.add_ingredient("chain_buoy", "small-lamp", 1)
util.add_ingredient("oil_rig", "tungsten-carbide", 5)
-- High caliber guns
util.replace_ingredient("penetrator-shell", "steel-plate", "tungsten-plate")
util.add_to_ingredient("penetrator-shell", "tungsten-plate", 2)
util.replace_ingredient("basic-ammo-crate", "copper-plate", "tungsten-plate")
if mods["expanded-rocket-paylods"] then
util.replace_some_ingredient("advanced-assembler", "steel", 100, "tungsten-carbide", 100)
end

View file

@ -0,0 +1,227 @@
-- Tungsten smelting
local util = require("data-util");
data:extend({
{ type = "recipe-category", name = "smelting-carbon"},
})
if not mods.bobplates then
data:extend({
{
type = "item",
name = "tungsten-carbide",
icon = "__bztungsten__/graphics/icons/tungsten-carbide.png",
icon_size = 128,
subgroup = "raw-material",
order = "z[tungsten-carbide]",
stack_size = 100
},
{
type = "item",
name = util.me.tungsten_plate,
icon = "__bztungsten__/graphics/icons/tungsten-plate.png",
icon_size = 128, icon_mipmaps = 3,
subgroup = "raw-material",
order = "b[tungsten-plate]",
stack_size = 100
}
})
end
data:extend({
{
type = "recipe",
name = util.me.tungsten_plate,
--main_product = util.me.tungsten_plate,
category = "smelting",
order = "d[tungsten-plate]",
icons = (mods["Krastorio2"] and {
{ icon = "__bztungsten__/graphics/icons/tungsten-plate.png", icon_size = 128, icon_mipmaps = 3, },
{ icon = "__bztungsten__/graphics/icons/tungsten-ore.png", icon_size = 64, icon_mipmaps = 3, scale=0.25, shift= {-8, -8}},
} or mods.bobplates and {
{ icon = "__bobplates__/graphics/icons/plate/tungsten-plate.png", icon_size = 32},
} or
{
{ icon = "__bztungsten__/graphics/icons/tungsten-plate.png", icon_size = 128},
}),
enabled = false,
energy_required = mods["Krastorio2"] and 24 or 32/15,
ingredients = {{type="item", name="tungsten-ore", amount=mods["Krastorio2"] and 15 or (mods.bobplates and 4 or 2)}},
results = {{type="item", name=util.me.tungsten_plate, amount=mods["Krastorio2"] and 5 or 1}}
},
{
type = "technology",
name = util.me.tungsten_processing,
icons = {{ icon =
mods.bobplates
and "__bobplates__/graphics/icons/technology/tungsten-processing.png"
or "__bztungsten__/graphics/technology/tungsten-processing.png",
icon_size = mods.bobplates and 64 or 256,
}},
effects =
{
{
type = "unlock-recipe",
recipe = util.me.tungsten_plate
},
{
type = "unlock-recipe",
recipe = util.me.tungsten_carbide_recipe,
},
mods["TheBigFurnace"] and {
type = "unlock-recipe",
recipe = "big-tungsten-plate",
} or nil,
},
unit =
{
count = 75,
ingredients =
{
{"automation-science-pack", 1},
{"logistic-science-pack", 1}
},
time = 30,
},
prerequisites = {"advanced-material-processing"},
order = "b-b"
},
mods["TheBigFurnace"] and {
type = "recipe",
name = "big-tungsten-plate",
icons = { { icon = "__bztungsten__/graphics/icons/tungsten-plate.png", icon_size = 128 }, },
subgroup = "raw-material",
category = "big-smelting",
order = "d[tungsten-plate]",
enabled = false,
energy_required = 6, --TODO
ingredients = {{type="item", name="tungsten-ore", amount=100}},
results = {{type="item", name = util.me.tungsten_plate, amount=50}}
} or nil,
})
if mods["aai-industry"] and not data.raw.technology["pumpjack"] then
data:extend({
{
type = "technology",
name = "pumpjack",
icons = {
{ icon = data.raw.technology["oil-processing"].icon, icon_size=data.raw.technology["oil-processing"].icon_size },
},
effects =
{
{
type = "unlock-recipe",
recipe = "pumpjack",
},
},
unit =
{
count = 25,
ingredients =
{
{"automation-science-pack", 1},
{"logistic-science-pack", 1}
},
time = 30,
},
prerequisites = {"fluid-handling"},
order = "b-b",
},
})
end
data:extend({
{
type = "recipe",
name = util.me.tungsten_carbide_recipe,
--main_product = util.me.tungsten_carbide_recipe,
category = (mods["Krastorio2"] and "smelting" or "smelting-carbon"),
order = "z[tungsten-carbide]",
icons = { mods.bobplates and
{ icon = "__bobplates__/graphics/icons/plate/tungsten-carbide-plate.png", icon_size = 64}
or { icon = "__bztungsten__/graphics/icons/tungsten-carbide.png", icon_size = 128}
},
enabled = false,
energy_required = mods["Krastorio2"] and 48 or 64/3,
ingredients = {{type="item", name="tungsten-plate", amount=mods["Krastorio2"] and 10 or 5}, mods["Krastorio2"] and {type="item", name="kr-coke", amount=5} or nil},
results = {{type="item", name="tungsten-carbide", amount=mods["Krastorio2"] and 4 or 2}}
},
})
data:extend({
{
type = "item",
name = "rocket-engine-nozzle",
icon = "__bztungsten__/graphics/icons/rocket-engine-nozzle.png",
icon_size = 128,
subgroup = "intermediate-product",
order = "z[rocket-engine-nozzle]",
stack_size = 100
},
{
type = "recipe",
name = "rocket-engine-nozzle",
category = "crafting",
subgroup = "intermediate-product",
order = "z[rocket-engine-nozzle]",
icons = {
{ icon = "__bztungsten__/graphics/icons/rocket-engine-nozzle.png", icon_size = 128}
},
enabled = false,
energy_required = 5,
ingredients = {{type="item", name="tungsten-plate", amount=2}},
results = {{type="item", name="rocket-engine-nozzle", amount=1}},
}
})
if util.me.cuw() then
data:extend({
{
type = "item",
name = "cuw",
icon = "__bztungsten__/graphics/icons/cuw.png",
icon_size = 128,
subgroup = "raw-material",
order = "z[cuw]",
stack_size = 100,
},
{
type = "recipe",
name = "cuw",
category = "advanced-crafting",
order = "z[cuw]",
enabled = false,
energy_required = 80,
ingredients = {
{type="item", name="tungsten-plate", amount=15},
{type="item", name="copper-plate", amount=5},
},
results = {{type="item", name="cuw", amount=20}},
},
})
util.add_unlock(util.me.tungsten_processing, "cuw")
end
if mods.DoubleFurnace then
data:extend({
{ type = "recipe-category", name = "double-smelting-carbon"},
})
data:extend({
{
type = "recipe",
name = "double-tungsten",
category = "double-smelting-carbon",
enabled = false,
energy_required = 32/3,
ingredients = {{type="item", name="tungsten-ore", amount=5}},
results = {{type="item", name="tungsten-carbide", amount=1}},
}
})
util.add_effect(util.me.tungsten_processing, {type = "unlock-recipe", recipe = "double-tungsten"})
end

View file

@ -0,0 +1,27 @@
-- -- For testing only
-- local kept1 = false
-- for name in pairs(data.raw["utility-constants"]["default"].main_menu_simulations) do
-- if kept1 then
-- data.raw["utility-constants"]["default"].main_menu_simulations[name] = nil
-- end
-- kept1 = true
-- end
if (not mods["bobplates"] and not mods["angelssmelting"]) then
data.raw["utility-constants"]["default"].main_menu_simulations["tungsten-nozzle"] = {
checkboard = false,
save = "__bztungsten__/menu-simulations/tungsten-nozzle-sim.zip", length = 15*60,
init =
[[
local logo = game.surfaces.nauvis.find_entities_filtered{
name = "factorio-logo-11tiles", limit = 1}[1]
game.simulation.camera_position = {logo.position.x, logo.position.y+8}
game.simulation.camera_zoom = 1.5
game.tick_paused = false
game.surfaces.nauvis.daytime = 1
]],
update = [[]]
}
end