2.0, space age, other updates
This commit is contained in:
parent
f8ff3472fb
commit
b7c12bef38
61 changed files with 1869 additions and 605 deletions
63
prototypes/activated-carbon.lua
Normal file
63
prototypes/activated-carbon.lua
Normal file
|
|
@ -0,0 +1,63 @@
|
|||
local util = require("data-util");
|
||||
|
||||
if mods["space-age"] then
|
||||
local precursor = "solid-fuel"
|
||||
if mods["wood-industry"] then precursor = "charcoal" end
|
||||
data:extend({
|
||||
{
|
||||
type = "item",
|
||||
name = "activated-carbon",
|
||||
icon = "__bzcarbon__/graphics/icons/activated-carbon.png",
|
||||
icon_size = 128,
|
||||
subgroup = "intermediate-product",
|
||||
order = "g[activated-carbon]",
|
||||
stack_size = util.get_stack_size(100),
|
||||
},
|
||||
{
|
||||
type = "recipe",
|
||||
name = "activated-carbon",
|
||||
category = "chemistry",
|
||||
order = "d[graphite-carbon-fiber]",
|
||||
enabled = false,
|
||||
energy_required = 2.5,
|
||||
ingredients = data.raw.fluid["ammonia"] and
|
||||
{
|
||||
util.item(precursor),
|
||||
util.fluid("steam"),
|
||||
(mods.bztitanium or mods.bzzirconium) and util.fluid("vacuum") or nil
|
||||
},
|
||||
results = {
|
||||
{type="item", name= "activated-carbon", amount=1},
|
||||
},
|
||||
},
|
||||
})
|
||||
if util.me.use_carbon_black() then
|
||||
data:extend({
|
||||
{
|
||||
type = "recipe",
|
||||
name = "activated-carbon-black",
|
||||
localised_name = {"item-name.activated-carbon"},
|
||||
icons = {
|
||||
{ icon = "__bzcarbon__/graphics/icons/activated-carbon.png", icon_size = 128},
|
||||
{ icon = "__bzcarbon__/graphics/icons/carbon-black.png", icon_size = 64, scale = 0.25, shift = {-8, -8}},
|
||||
},
|
||||
category = "chemistry",
|
||||
order = "d[graphite-carbon-fiber]",
|
||||
enabled = false,
|
||||
energy_required = 2.5,
|
||||
ingredients = data.raw.fluid["ammonia"] and
|
||||
{
|
||||
util.item("carbon-black", 5),
|
||||
util.fluid("steam"),
|
||||
(mods.bztitanium or mods.bzzirconium) and util.fluid("vacuum") or nil
|
||||
},
|
||||
results = {
|
||||
{type="item", name= "activated-carbon", amount=1},
|
||||
},
|
||||
},
|
||||
})
|
||||
end
|
||||
util.add_unlock("advanced-oil-processing", "activated-carbon")
|
||||
util.add_unlock("advanced-oil-processing", "activated-carbon-black")
|
||||
util.add_ingredient("supercapacitor", "activated-carbon", 10)
|
||||
end
|
||||
184
prototypes/basic-crusher.lua
Normal file
184
prototypes/basic-crusher.lua
Normal file
|
|
@ -0,0 +1,184 @@
|
|||
local futil = require("util")
|
||||
local util = require("data-util");
|
||||
local item_sounds = require("__base__.prototypes.item_sounds")
|
||||
local sounds = require("__base__.prototypes.entity.sounds")
|
||||
local hit_effects = require("__base__.prototypes.entity.hit-effects")
|
||||
|
||||
if mods["space-age"] and not data.raw.furnace["basic-crusher"] then
|
||||
-- note that crusher is a space age asset and as such can only be used with space age
|
||||
|
||||
local graphics = require("__space-age__.prototypes.entity.crusher-pictures")
|
||||
graphics.integration_patch.north.scale = graphics.integration_patch.north.scale * 0.5
|
||||
graphics.integration_patch.east.scale = graphics.integration_patch.east.scale * 0.5
|
||||
graphics.integration_patch.south.scale = graphics.integration_patch.south.scale * 0.5
|
||||
graphics.integration_patch.west.scale = graphics.integration_patch.west.scale * 0.5
|
||||
graphics.animation.north.layers[1].scale = graphics.animation.north.layers[1].scale * 0.5
|
||||
graphics.animation.north.layers[2].scale = graphics.animation.north.layers[2].scale * 0.5
|
||||
graphics.animation.south.layers[1].scale = graphics.animation.south.layers[1].scale * 0.5
|
||||
graphics.animation.south.layers[2].scale = graphics.animation.south.layers[2].scale * 0.5
|
||||
graphics.animation.east.layers[1].scale = graphics.animation.east.layers[1].scale * 0.5
|
||||
graphics.animation.east.layers[2].scale = graphics.animation.east.layers[2].scale * 0.5
|
||||
graphics.animation.west.layers[1].scale = graphics.animation.west.layers[1].scale * 0.5
|
||||
graphics.animation.west.layers[2].scale = graphics.animation.west.layers[2].scale * 0.5
|
||||
graphics.working_visualisations.layers.north_animation.scale = graphics.working_visualisations.layers.north_animation.scale * 0.5
|
||||
graphics.working_visualisations.layers.east_animation.scale = graphics.working_visualisations.layers.east_animation.scale * 0.5
|
||||
graphics.working_visualisations.layers.south_animation.scale = graphics.working_visualisations.layers.south_animation.scale * 0.5
|
||||
graphics.working_visualisations.layers.west_animation.scale = graphics.working_visualisations.layers.west_animation.scale * 0.5
|
||||
|
||||
graphics.integration_patch.north.shift[1] = graphics.integration_patch.north.shift[1] * 0.5
|
||||
graphics.integration_patch.north.shift[2] = graphics.integration_patch.north.shift[2] * 0.5
|
||||
graphics.integration_patch.south.shift[1] = graphics.integration_patch.south.shift[1] * 0.5
|
||||
graphics.integration_patch.south.shift[2] = graphics.integration_patch.south.shift[2] * 0.5
|
||||
graphics.integration_patch.east.shift[1] = graphics.integration_patch.east.shift[1] * 0.5
|
||||
graphics.integration_patch.east.shift[2] = graphics.integration_patch.east.shift[2] * 0.5
|
||||
graphics.integration_patch.west.shift[1] = graphics.integration_patch.west.shift[1] * 0.5
|
||||
graphics.integration_patch.west.shift[2] = graphics.integration_patch.west.shift[2] * 0.5
|
||||
graphics.animation.north.layers[1].shift[1] = graphics.animation.north.layers[1].shift[1] * 0.5
|
||||
graphics.animation.north.layers[1].shift[2] = graphics.animation.north.layers[1].shift[2] * 0.5
|
||||
graphics.animation.north.layers[2].shift[1] = graphics.animation.north.layers[2].shift[1] * 0.5
|
||||
graphics.animation.north.layers[2].shift[2] = graphics.animation.north.layers[2].shift[2] * 0.5
|
||||
graphics.animation.south.layers[1].shift[1] = graphics.animation.south.layers[1].shift[1] * 0.5
|
||||
graphics.animation.south.layers[1].shift[2] = graphics.animation.south.layers[1].shift[2] * 0.5
|
||||
graphics.animation.south.layers[2].shift[1] = graphics.animation.south.layers[2].shift[1] * 0.5
|
||||
graphics.animation.south.layers[2].shift[2] = graphics.animation.south.layers[2].shift[2] * 0.5
|
||||
graphics.animation.east.layers[1].shift[1] = graphics.animation.east.layers[1].shift[1] * 0.5
|
||||
graphics.animation.east.layers[1].shift[2] = graphics.animation.east.layers[1].shift[2] * 0.5
|
||||
graphics.animation.east.layers[2].shift[1] = graphics.animation.east.layers[2].shift[1] * 0.5
|
||||
graphics.animation.east.layers[2].shift[2] = graphics.animation.east.layers[2].shift[2] * 0.5
|
||||
graphics.animation.west.layers[1].shift[1] = graphics.animation.west.layers[1].shift[1] * 0.5
|
||||
graphics.animation.west.layers[1].shift[2] = graphics.animation.west.layers[1].shift[2] * 0.5
|
||||
graphics.animation.west.layers[2].shift[1] = graphics.animation.west.layers[2].shift[1] * 0.5
|
||||
graphics.animation.west.layers[2].shift[2] = graphics.animation.west.layers[2].shift[2] * 0.5
|
||||
graphics.working_visualisations.layers.north_animation.shift[1] = graphics.working_visualisations.layers.north_animation.shift[1] * 0.5
|
||||
graphics.working_visualisations.layers.north_animation.shift[2] = graphics.working_visualisations.layers.north_animation.shift[2] * 0.5
|
||||
graphics.working_visualisations.layers.south_animation.shift[1] = graphics.working_visualisations.layers.south_animation.shift[1] * 0.5
|
||||
graphics.working_visualisations.layers.south_animation.shift[2] = graphics.working_visualisations.layers.south_animation.shift[2] * 0.5
|
||||
graphics.working_visualisations.layers.east_animation.shift[1] = graphics.working_visualisations.layers.east_animation.shift[1] * 0.5
|
||||
graphics.working_visualisations.layers.east_animation.shift[2] = graphics.working_visualisations.layers.east_animation.shift[2] * 0.5
|
||||
graphics.working_visualisations.layers.west_animation.shift[1] = graphics.working_visualisations.layers.west_animation.shift[1] * 0.5
|
||||
graphics.working_visualisations.layers.west_animation.shift[2] = graphics.working_visualisations.layers.west_animation.shift[2] * 0.5
|
||||
|
||||
|
||||
util.add_new_crafting_category("basic-crushing", true)
|
||||
|
||||
data:extend({
|
||||
{
|
||||
type = "item",
|
||||
name = "basic-crusher",
|
||||
icon = "__space-age__/graphics/icons/crusher.png",
|
||||
subgroup = "production-machine",
|
||||
order = "s[crusher]",
|
||||
inventory_move_sound = item_sounds.drill_inventory_move,
|
||||
pick_sound = item_sounds.drill_inventory_pickup,
|
||||
drop_sound = item_sounds.drill_inventory_move,
|
||||
place_result = "basic-crusher",
|
||||
stack_size = 10,
|
||||
weight = 50*kg
|
||||
},
|
||||
{
|
||||
type = "furnace",
|
||||
name = "basic-crusher",
|
||||
source_inventory_size = 1,
|
||||
result_inventory_size = 1,
|
||||
icon = "__space-age__/graphics/icons/crusher.png",
|
||||
flags = {"placeable-neutral", "placeable-player", "player-creation"},
|
||||
minable = {mining_time = 0.5, result = "basic-crusher"},
|
||||
-- fast_replaceable_group = "",
|
||||
max_health = 350,
|
||||
corpse = "electric-furnace-remnants",
|
||||
dying_explosion = "electric-furnace-explosion",
|
||||
circuit_wire_max_distance = 9,
|
||||
circuit_connector = circuit_connector_definitions["crusher"],
|
||||
resistances =
|
||||
{
|
||||
{
|
||||
type = "fire",
|
||||
percent = 80
|
||||
}
|
||||
},
|
||||
collision_box = {{-0.4, -0.8}, {0.4, 0.8}},
|
||||
-- collision_box = {{-0.7, -1.2}, {0.7, 1.2}},
|
||||
surface_conditions =
|
||||
{
|
||||
{
|
||||
property = "gravity",
|
||||
min = 0.1,
|
||||
-- max =
|
||||
}
|
||||
},
|
||||
selection_box = {{-.5, -1}, {.5, 1}},
|
||||
damaged_trigger_effect = hit_effects.entity(),
|
||||
module_slots = 0,
|
||||
icons_positioning =
|
||||
{
|
||||
{inventory_index = defines.inventory.furnace_modules, shift = {0, 0.3}}
|
||||
},
|
||||
icon_draw_specification = { scale=0.5},
|
||||
allowed_effects = {"consumption", "speed", "productivity", "pollution", "quality"},
|
||||
crafting_categories = {"basic-crushing"},
|
||||
crafting_speed = 2,
|
||||
energy_usage = "100kW",
|
||||
heating_energy = "200kW",
|
||||
energy_source =
|
||||
{
|
||||
type = "electric",
|
||||
usage_priority = "secondary-input",
|
||||
emissions_per_minute = { pollution = 1 }
|
||||
},
|
||||
open_sound = sounds.electric_large_open,
|
||||
close_sound = sounds.electric_large_close,
|
||||
working_sound =
|
||||
{
|
||||
sound =
|
||||
{
|
||||
filename = "__space-age__/sound/entity/crusher/crusher-loop.ogg",
|
||||
volume = 0.8
|
||||
},
|
||||
audible_distance_modifier = 0.6,
|
||||
fade_in_ticks = 4,
|
||||
fade_out_ticks = 20,
|
||||
max_sounds_per_type = 3
|
||||
},
|
||||
graphics_set = graphics,
|
||||
water_reflection =
|
||||
{
|
||||
pictures =
|
||||
{
|
||||
filename = "__space-age__/graphics/entity/crusher/crusher-reflection.png",
|
||||
priority = "extra-high",
|
||||
width = 24,
|
||||
height = 24,
|
||||
shift = futil.by_pixel(5, 40-32),
|
||||
variation_count = 1,
|
||||
scale = 5
|
||||
},
|
||||
rotate = false,
|
||||
orientation_to_variation = false
|
||||
}
|
||||
},
|
||||
{
|
||||
type = "recipe",
|
||||
name = "basic-crusher",
|
||||
enabled = false,
|
||||
ingredients =
|
||||
{
|
||||
{type = "item", name = "steel-plate", amount = 10},
|
||||
{type = "item", name = "iron-plate", amount = 10},
|
||||
{type = "item", name = "iron-gear-wheel", amount = 10},
|
||||
|
||||
},
|
||||
energy_required = 2.5,
|
||||
results = {{type="item", name="basic-crusher", amount=1}}
|
||||
},
|
||||
})
|
||||
if mods["aai-industry"] then
|
||||
util.add_unlock("sand-processing", "basic-crusher")
|
||||
util.add_prerequisite("sand-processing", "steel-processing")
|
||||
else
|
||||
util.add_unlock("automation-2", "basic-crusher")
|
||||
end
|
||||
util.add_prerequisite("silica-processing", "automation-2")
|
||||
end
|
||||
-- For graphite we can't have steel as an ingredient.
|
||||
util.remove_ingredient("basic-crusher", "steel-plate")
|
||||
util.add_to_ingredient("basic-crusher", "iron-plate", 20)
|
||||
123
prototypes/carbon-fiber.lua
Normal file
123
prototypes/carbon-fiber.lua
Normal file
|
|
@ -0,0 +1,123 @@
|
|||
local util = require("data-util");
|
||||
|
||||
if util.me.use_fiber() then
|
||||
if mods["space-age"] then
|
||||
-- ammonia from spoilage for polyacrylonitrile and for graphene
|
||||
data:extend({
|
||||
{
|
||||
type = "recipe",
|
||||
name = "ammonia-from-spoilage",
|
||||
category = "organic",
|
||||
icons = {
|
||||
{icon = "__space-age__/graphics/icons/fluid/ammonia.png", icon_size = 64},
|
||||
{icon = "__space-age__/graphics/icons/spoilage.png", icon_size = 64, scale= 0.25, shift = {-8,-8}},
|
||||
},
|
||||
enabled = false,
|
||||
energy_required = 5,
|
||||
ingredients = {
|
||||
util.item("spoilage", 1),
|
||||
},
|
||||
results = {
|
||||
util.fluid("ammonia", 10),
|
||||
},
|
||||
}
|
||||
})
|
||||
end
|
||||
data:extend({
|
||||
{
|
||||
type = "item",
|
||||
name = "polyacrylonitrile",
|
||||
icon = "__bzcarbon__/graphics/icons/pan.png",
|
||||
icon_size = 128,
|
||||
subgroup = "intermediate-product",
|
||||
order = "g[graphite-acrylic-fiber]",
|
||||
stack_size = util.get_stack_size(100),
|
||||
},
|
||||
{
|
||||
type = "recipe",
|
||||
name = "polyacrylonitrile",
|
||||
category = "chemistry",
|
||||
order = "d[graphite-carbon-fiber]",
|
||||
enabled = false,
|
||||
energy_required = 1,
|
||||
ingredients = data.raw.fluid["ammonia"] and
|
||||
{
|
||||
{type="fluid", name="petroleum-gas", amount=5},
|
||||
{type="fluid", name="ammonia", amount=5},
|
||||
} or {
|
||||
{type="fluid", name="petroleum-gas", amount=10},
|
||||
},
|
||||
results = {
|
||||
{type="item", name= "polyacrylonitrile", amount=1},
|
||||
},
|
||||
},
|
||||
})
|
||||
if mods["space-age"] then
|
||||
util.set_category("polyacrylonitrile", "organic")
|
||||
util.remove_ingredient("polyacrylonitrile", "petroleum-gas")
|
||||
util.add_ingredient("polyacrylonitrile", "jelly", 10)
|
||||
util.add_ingredient("polyacrylonitrile", "jelly", 10)
|
||||
util.add_ingredient("polyacrylonitrile", "ammonia", 10)
|
||||
util.add_ingredient("carbon-fiber", "ammonia", 10)
|
||||
util.replace_ingredient("carbon-fiber", "carbon", "polyacrylonitrile")
|
||||
util.set_item_icons("carbon-fiber", { {icon = "__bzcarbon__/graphics/icons/carbon-fiber.png", icon_size = 128,} })
|
||||
util.add_unlock("biochamber", "ammonia-from-spoilage")
|
||||
else
|
||||
data:extend({
|
||||
{
|
||||
type = "item",
|
||||
name = "carbon-fiber",
|
||||
icon = "__bzcarbon__/graphics/icons/carbon-fiber.png",
|
||||
icon_size = 128,
|
||||
subgroup = "intermediate-product",
|
||||
order = "g[graphite-carbon-fiber]",
|
||||
stack_size = util.get_stack_size(100),
|
||||
},
|
||||
{
|
||||
type = "recipe",
|
||||
name = "carbon-fiber",
|
||||
category = "advanced-crafting",
|
||||
order = "d[graphite-carbon-fiber]",
|
||||
enabled = false,
|
||||
energy_required = 24,
|
||||
ingredients = {
|
||||
{type="fluid", name="epoxy", amount = 20},
|
||||
{"plastic-bar", 2},
|
||||
{"polyacrylonitrile", 4},
|
||||
},
|
||||
results = {
|
||||
{type="item", name= "carbon-fiber", amount=8},
|
||||
},
|
||||
},
|
||||
})
|
||||
data:extend({
|
||||
{
|
||||
type = "technology",
|
||||
name = "carbon-fiber",
|
||||
icon_size = 256,
|
||||
icon = "__bzcarbon__/graphics/technology/carbon-fiber.png",
|
||||
effects = {
|
||||
{type="unlock-recipe", recipe="polyacrylonitrile"},
|
||||
{type="unlock-recipe", recipe="carbon-fiber"},
|
||||
},
|
||||
unit =
|
||||
{
|
||||
count = 30,
|
||||
ingredients =
|
||||
{
|
||||
{"automation-science-pack", 1},
|
||||
{"logistic-science-pack", 1},
|
||||
{"chemical-science-pack", 1},
|
||||
},
|
||||
time = 10,
|
||||
},
|
||||
prerequisites = {"chemical-science-pack", "plastics"},
|
||||
order = "b-b"
|
||||
},
|
||||
})
|
||||
util.replace_some_ingredient("carbon-fiber", "plastic", 1, "silica", 2, {force=true})
|
||||
util.add_prerequisite("low-density-structure", "carbon-fiber")
|
||||
util.add_prerequisite("exoskeleton-equipment", "carbon-fiber")
|
||||
util.add_prerequisite("military-3", "carbon-fiber")
|
||||
end
|
||||
end
|
||||
144
prototypes/diamond-particle.lua
Normal file
144
prototypes/diamond-particle.lua
Normal file
|
|
@ -0,0 +1,144 @@
|
|||
data:extend(
|
||||
{
|
||||
{
|
||||
type = "optimized-particle",
|
||||
name = "diamond-particle",
|
||||
flags = {"not-on-map"},
|
||||
life_time = 180,
|
||||
pictures =
|
||||
{
|
||||
{
|
||||
filename = "__bzcarbon__/graphics/entity/particle/graphite-particle-1.png",
|
||||
priority = "extra-high",
|
||||
width = 16,
|
||||
height = 16,
|
||||
frame_count = 1,
|
||||
hr_version =
|
||||
{
|
||||
filename = "__bzcarbon__/graphics/entity/particle/hr-graphite-particle-1.png",
|
||||
priority = "extra-high",
|
||||
width = 32,
|
||||
height = 32,
|
||||
frame_count = 1,
|
||||
scale = 0.5
|
||||
}
|
||||
},
|
||||
{
|
||||
filename = "__bzcarbon__/graphics/entity/particle/graphite-particle-2.png",
|
||||
priority = "extra-high",
|
||||
width = 16,
|
||||
height = 16,
|
||||
frame_count = 1,
|
||||
hr_version =
|
||||
{
|
||||
filename = "__bzcarbon__/graphics/entity/particle/hr-graphite-particle-2.png",
|
||||
priority = "extra-high",
|
||||
width = 32,
|
||||
height = 32,
|
||||
frame_count = 1,
|
||||
scale = 0.5
|
||||
}
|
||||
},
|
||||
{
|
||||
filename = "__bzcarbon__/graphics/entity/particle/graphite-particle-3.png",
|
||||
priority = "extra-high",
|
||||
width = 16,
|
||||
height = 16,
|
||||
frame_count = 1,
|
||||
hr_version =
|
||||
{
|
||||
filename = "__bzcarbon__/graphics/entity/particle/hr-graphite-particle-3.png",
|
||||
priority = "extra-high",
|
||||
width = 32,
|
||||
height = 32,
|
||||
frame_count = 1,
|
||||
scale = 0.5
|
||||
}
|
||||
},
|
||||
{
|
||||
filename = "__bzcarbon__/graphics/entity/particle/graphite-particle-4.png",
|
||||
priority = "extra-high",
|
||||
width = 16,
|
||||
height = 16,
|
||||
frame_count = 1,
|
||||
hr_version =
|
||||
{
|
||||
filename = "__bzcarbon__/graphics/entity/particle/hr-graphite-particle-4.png",
|
||||
priority = "extra-high",
|
||||
width = 32,
|
||||
height = 32,
|
||||
frame_count = 1,
|
||||
scale = 0.5
|
||||
}
|
||||
}
|
||||
},
|
||||
shadows =
|
||||
{
|
||||
{
|
||||
filename = "__bzcarbon__/graphics/entity/particle/graphite-particle-shadow-1.png",
|
||||
priority = "extra-high",
|
||||
width = 16,
|
||||
height = 16,
|
||||
frame_count = 1,
|
||||
hr_version =
|
||||
{
|
||||
filename = "__bzcarbon__/graphics/entity/particle/hr-graphite-particle-shadow-1.png",
|
||||
priority = "extra-high",
|
||||
width = 32,
|
||||
height = 32,
|
||||
frame_count = 1,
|
||||
scale = 0.5
|
||||
}
|
||||
},
|
||||
{
|
||||
filename = "__bzcarbon__/graphics/entity/particle/graphite-particle-shadow-2.png",
|
||||
priority = "extra-high",
|
||||
width = 16,
|
||||
height = 16,
|
||||
frame_count = 1,
|
||||
hr_version =
|
||||
{
|
||||
filename = "__bzcarbon__/graphics/entity/particle/hr-graphite-particle-shadow-2.png",
|
||||
priority = "extra-high",
|
||||
width = 32,
|
||||
height = 32,
|
||||
frame_count = 1,
|
||||
scale = 0.5
|
||||
}
|
||||
},
|
||||
{
|
||||
filename = "__bzcarbon__/graphics/entity/particle/graphite-particle-shadow-3.png",
|
||||
priority = "extra-high",
|
||||
width = 16,
|
||||
height = 16,
|
||||
frame_count = 1,
|
||||
hr_version =
|
||||
{
|
||||
filename = "__bzcarbon__/graphics/entity/particle/hr-graphite-particle-shadow-3.png",
|
||||
priority = "extra-high",
|
||||
width = 32,
|
||||
height = 32,
|
||||
frame_count = 1,
|
||||
scale = 0.5
|
||||
}
|
||||
},
|
||||
{
|
||||
filename = "__bzcarbon__/graphics/entity/particle/graphite-particle-shadow-4.png",
|
||||
priority = "extra-high",
|
||||
width = 16,
|
||||
height = 16,
|
||||
frame_count = 1,
|
||||
hr_version =
|
||||
{
|
||||
filename = "__bzcarbon__/graphics/entity/particle/hr-graphite-particle-shadow-4.png",
|
||||
priority = "extra-high",
|
||||
width = 32,
|
||||
height = 32,
|
||||
frame_count = 1,
|
||||
scale = 0.5
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
)
|
||||
85
prototypes/diamond.lua
Normal file
85
prototypes/diamond.lua
Normal file
|
|
@ -0,0 +1,85 @@
|
|||
local resource_autoplace = require('resource-autoplace');
|
||||
|
||||
local util = require("data-util");
|
||||
|
||||
if util.me.use_rough_diamond() then
|
||||
local planet = mods["space-age"] and "vulcanus" or "nauvis"
|
||||
|
||||
resource_autoplace.initialize_patch_set("diamond", true)
|
||||
data.raw.planet[planet].map_gen_settings.autoplace_controls["diamond"] = {}
|
||||
data.raw.planet[planet].map_gen_settings.autoplace_settings.entity.settings["diamond"] = {}
|
||||
if mods.tenebris then
|
||||
data.raw.planet.tenebris.map_gen_settings.autoplace_controls["diamond"] = {}
|
||||
data.raw.planet.tenebris.map_gen_settings.autoplace_settings.entity.settings["diamond"] = {}
|
||||
end
|
||||
|
||||
data:extend({
|
||||
{
|
||||
type = "autoplace-control",
|
||||
category = "resource",
|
||||
name = "diamond",
|
||||
richness = true,
|
||||
order = mods["space-age"] and "b-d-a" or "a-g",
|
||||
},
|
||||
-- {
|
||||
-- type = "noise-layer",
|
||||
-- name = "diamond"
|
||||
-- },
|
||||
{
|
||||
type = "resource",
|
||||
name = "diamond",
|
||||
icon = "__bzcarbon__/graphics/icons/rough-diamond.png",
|
||||
icon_size = 128,
|
||||
flags = {"placeable-neutral"},
|
||||
order="a-b-a",
|
||||
map_color = {r=0.30, g=0.54, b=0.92},
|
||||
minable =
|
||||
{
|
||||
mining_particle = "diamond-particle",
|
||||
mining_time = 15,
|
||||
result = "rough-diamond"
|
||||
},
|
||||
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 = "diamond",
|
||||
order = mods["space-age"] and "b-d-a" or "a-g",
|
||||
base_density = mods["space-age"] and 6 or 0.5,
|
||||
base_spots_per_km2 = mods["space-age"] and 1.3 or 0.5,
|
||||
has_starting_area_placement = not not mods["space-age"],
|
||||
regular_rq_factor_multiplier = mods["space-age"] and 1 or 0.6,
|
||||
},
|
||||
|
||||
stage_counts = {15000, 9500, 5500, 2900, 1300, 400, 150, 80},
|
||||
stages =
|
||||
{
|
||||
sheet =
|
||||
{
|
||||
filename = "__bzcarbon__/graphics/entity/ores/hr-diamond.png",
|
||||
priority = "extra-high",
|
||||
size = 128,
|
||||
frame_count = 8,
|
||||
variation_count = 8,
|
||||
scale = 0.5
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
type = "item",
|
||||
name = "rough-diamond",
|
||||
icon_size = 128,
|
||||
icon = "__bzcarbon__/graphics/icons/rough-diamond.png",
|
||||
pictures = {
|
||||
{filename="__bzcarbon__/graphics/icons/rough-diamond.png", size=128, scale=0.25},
|
||||
{filename="__bzcarbon__/graphics/icons/rough-diamond-1.png", size=128, scale=0.25},
|
||||
{filename="__bzcarbon__/graphics/icons/rough-diamond-2.png", size=128, scale=0.25},
|
||||
{filename="__bzcarbon__/graphics/icons/rough-diamond-3.png", size=128, scale=0.25},
|
||||
{filename="__bzcarbon__/graphics/icons/rough-diamond-4.png", size=128, scale=0.25},
|
||||
},
|
||||
subgroup = "raw-resource",
|
||||
order = "t-c-a",
|
||||
stack_size = util.get_stack_size(50)
|
||||
},
|
||||
})
|
||||
end
|
||||
80
prototypes/graphite-particle.lua
Normal file
80
prototypes/graphite-particle.lua
Normal file
|
|
@ -0,0 +1,80 @@
|
|||
data:extend(
|
||||
{
|
||||
{
|
||||
type = "optimized-particle",
|
||||
name = "graphite-particle",
|
||||
flags = {"not-on-map"},
|
||||
life_time = 180,
|
||||
pictures =
|
||||
{
|
||||
{
|
||||
filename = "__bzcarbon__/graphics/entity/particle/hr-graphite-particle-1.png",
|
||||
priority = "extra-high",
|
||||
width = 32,
|
||||
height = 32,
|
||||
frame_count = 1,
|
||||
scale = 0.5
|
||||
},
|
||||
{
|
||||
filename = "__bzcarbon__/graphics/entity/particle/hr-graphite-particle-2.png",
|
||||
priority = "extra-high",
|
||||
width = 32,
|
||||
height = 32,
|
||||
frame_count = 1,
|
||||
scale = 0.5
|
||||
},
|
||||
{
|
||||
filename = "__bzcarbon__/graphics/entity/particle/hr-graphite-particle-3.png",
|
||||
priority = "extra-high",
|
||||
width = 32,
|
||||
height = 32,
|
||||
frame_count = 1,
|
||||
scale = 0.5
|
||||
},
|
||||
{
|
||||
filename = "__bzcarbon__/graphics/entity/particle/hr-graphite-particle-4.png",
|
||||
priority = "extra-high",
|
||||
width = 32,
|
||||
height = 32,
|
||||
frame_count = 1,
|
||||
scale = 0.5
|
||||
}
|
||||
},
|
||||
shadows =
|
||||
{
|
||||
{
|
||||
filename = "__bzcarbon__/graphics/entity/particle/hr-graphite-particle-shadow-1.png",
|
||||
priority = "extra-high",
|
||||
width = 32,
|
||||
height = 32,
|
||||
frame_count = 1,
|
||||
scale = 0.5
|
||||
},
|
||||
{
|
||||
filename = "__bzcarbon__/graphics/entity/particle/hr-graphite-particle-shadow-2.png",
|
||||
priority = "extra-high",
|
||||
width = 32,
|
||||
height = 32,
|
||||
frame_count = 1,
|
||||
scale = 0.5
|
||||
},
|
||||
{
|
||||
filename = "__bzcarbon__/graphics/entity/particle/hr-graphite-particle-shadow-3.png",
|
||||
priority = "extra-high",
|
||||
width = 32,
|
||||
height = 32,
|
||||
frame_count = 1,
|
||||
scale = 0.5
|
||||
},
|
||||
{
|
||||
filename = "__bzcarbon__/graphics/entity/particle/hr-graphite-particle-shadow-4.png",
|
||||
priority = "extra-high",
|
||||
width = 32,
|
||||
height = 32,
|
||||
frame_count = 1,
|
||||
scale = 0.5
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
)
|
||||
88
prototypes/graphite.lua
Normal file
88
prototypes/graphite.lua
Normal file
|
|
@ -0,0 +1,88 @@
|
|||
local resource_autoplace = require('resource-autoplace');
|
||||
|
||||
local util = require("data-util");
|
||||
|
||||
resource_autoplace.initialize_patch_set("graphite", true)
|
||||
data.raw.planet.nauvis.map_gen_settings.autoplace_controls["graphite"] = {}
|
||||
data.raw.planet.nauvis.map_gen_settings.autoplace_settings.entity.settings["graphite"] = {}
|
||||
if mods.tenebris then
|
||||
data.raw.planet.tenebris.map_gen_settings.autoplace_controls["graphite"] = {}
|
||||
data.raw.planet.tenebris.map_gen_settings.autoplace_settings.entity.settings["graphite"] = {}
|
||||
end
|
||||
|
||||
|
||||
if util.me.use_flake_graphite() then
|
||||
data:extend({
|
||||
{
|
||||
type = "autoplace-control",
|
||||
category = "resource",
|
||||
name = "graphite",
|
||||
richness = true,
|
||||
order = "a-g"
|
||||
},
|
||||
-- {
|
||||
-- type = "noise-layer",
|
||||
-- name = "graphite"
|
||||
-- },
|
||||
{
|
||||
type = "resource",
|
||||
name = "graphite",
|
||||
icon = "__bzcarbon__/graphics/icons/flake-graphite.png",
|
||||
icon_size = 128,
|
||||
flags = {"placeable-neutral"},
|
||||
order="a-b-a",
|
||||
map_color = {r=0.18, g=0.17, b=0.30},
|
||||
minable =
|
||||
{
|
||||
hardness = 1,
|
||||
mining_particle = "graphite-particle",
|
||||
mining_time = 1,
|
||||
fluid_amount = 1,
|
||||
required_fluid = "steam",
|
||||
result = "flake-graphite"
|
||||
},
|
||||
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 = "graphite",
|
||||
order = "a-g",
|
||||
base_density = 6,
|
||||
base_spots_per_km2 = 1,
|
||||
has_starting_area_placement = true,
|
||||
regular_rq_factor_multiplier = 1.2,
|
||||
starting_rq_factor_multiplier = 1.4,
|
||||
},
|
||||
|
||||
stage_counts = {15000, 9500, 5500, 2900, 1300, 400, 150, 80},
|
||||
stages =
|
||||
{
|
||||
sheet =
|
||||
{
|
||||
filename = "__bzcarbon__/graphics/entity/ores/hr-graphite.png",
|
||||
priority = "extra-high",
|
||||
size = 128,
|
||||
frame_count = 8,
|
||||
variation_count = 8,
|
||||
scale = 0.5
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
type = "item",
|
||||
name = "flake-graphite",
|
||||
icon_size = 128,
|
||||
icon = "__bzcarbon__/graphics/icons/flake-graphite.png",
|
||||
pictures = {
|
||||
{filename="__bzcarbon__/graphics/icons/flake-graphite.png", size=128, scale=0.25},
|
||||
{filename="__bzcarbon__/graphics/icons/flake-graphite-1.png", size=128, scale=0.25},
|
||||
{filename="__bzcarbon__/graphics/icons/flake-graphite-2.png", size=128, scale=0.25},
|
||||
{filename="__bzcarbon__/graphics/icons/flake-graphite-3.png", size=128, scale=0.25},
|
||||
{filename="__bzcarbon__/graphics/icons/flake-graphite-4.png", size=128, scale=0.25},
|
||||
},
|
||||
subgroup = "raw-resource",
|
||||
order = "t-c-a",
|
||||
stack_size = util.get_stack_size(50)
|
||||
},
|
||||
})
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue