science overhaul WIP

This commit is contained in:
PreLeyZero 2022-05-27 17:47:17 +02:00
parent 9026578fea
commit 41fc61168f
30 changed files with 243 additions and 2 deletions

View file

@ -2890,6 +2890,30 @@ data:extend({
time = 100,
},
},
{
name = 'fu_lab_tech',
type = 'technology',
icon = sprite('fu_lab_tech.png'),
icon_size = 128,
enabled = false,
prerequisites = {'fu_energy_tech'},
effects = {
{
type = 'unlock-recipe',
recipe = 'fu_lab_recipe',
},
},
unit = {
count = '200',
ingredients = {
{'chemical-science-pack',1},
{'automation-science-pack',1},
{'logistic-science-pack',1},
{'utility-science-pack',1}
},
time = 100,
},
},
--============================================================================================================================================================
--gravitational
{

View file

@ -1891,4 +1891,24 @@ data:extend({
result_count = 1,
energy_required = 4,
},
{
name = 'fu_lab_recipe',
type = 'recipe',
enabled = 'false',
category = 'crafting',
main_product = 'fu_lab_item',
ingredients = {
{type="item", name="concrete", amount=100},
{type="item", name="lab", amount=10},
{type="item", name="fu_materials_energy_charged_crystal", amount=10},
{type="item", name="fu_materials_KFK", amount=40},
{type="item", name="fu_materials_TIM", amount=40},
{type="item", name="fu_materials_magnet", amount=10},
},
results = {
{type="item", name="fu_lab_item", amount=1},
},
result_count = 1,
energy_required = 10,
},
})

View file

@ -0,0 +1,107 @@
--local functions
local function config(name)
return settings.startup['fu_fusor_'..name].value
end
local function sprite(name)
return '__248k__/ressources/fusion/fu_lab/fu_lab_'..name..".png"
end
--item
data:extend({
{
name = 'fu_lab_item',
type = 'item',
icon = sprite('icon'),
icon_size = 64,
place_result = 'fu_lab_entity',
stack_size = 20,
subgroup = 'fu_item_subgroup_c',
order = 'a-a',
},
})
--entity
data:extend({
{
name = "fu_lab_entity",
type = "lab",
icon = sprite("icon"),
icon_size = 64,
flags = {"player-creation","placeable-neutral"},
max_health = 1000,
corpse = "big-remnants",
collision_box = {{-5,-5},{5,5}},
selection_box = {{-5,-5},{5,5}},
map_color = {r=0, g=0, b=1, a=1},
minable = {
mining_time = 1,
result = "fu_lab_item",
},
researching_speed = 10,
energy_source = {
type = "electric",
usage_priority = "secondary-input"
},
energy_usage = "20MW",
inputs = {
"automation-science-pack",
"chemical-science-pack",
"logistic-science-pack",
"military-science-pack",
"production-science-pack",
"space-science-pack",
"utility-science-pack",
"fu_space_probe_science_item",
"fi_ki_science",
"fu_ki_science"
},
allowed_effects = {"speed", "productivity", "consumption", "pollution"},
module_specification = {
module_info_icon_shift = {
0,
0.8
},
module_slots = 4
},
off_animation = {
filename = sprite("off"),
size = {512*2,512*2},
scale = 0.41,
line_length = 1,
frame_count = 1,
animation_speed = 1,
shift = {1.5,-0.4}
},
on_animation = {
layers = {
{
filename = sprite("off"),
size = {512*2,512*2},
scale = 0.41,
line_length = 1,
frame_count = 1,
animation_speed = 0.4,
shift = {1.5,-0.4},
repeat_count = 16
},
{
filename = sprite("animation"),
size = {512*2,512*2},
scale = 0.41,
line_length = 4,
lines_per_file = 4,
frame_count = 16,
animation_speed = 0.4,
shift = {1.5,-0.4}
}
}
},
working_sound = {
sound = { filename = "__base__/sound/lab.ogg"},
idle_sound = { filename = "__base__/sound/idle1.ogg", volume = 0.6 },
apparent_volume = 0.7,
},
},
})