I has made a ton of extra stuff, as I wanna be OP beyond OP. But the entity's name is fucking up but ONLY when I am adding it as equipment and only with personal laser
Will only show some of them as I got a ton xD
Under locale/en I got :
Code: Select all
[item-name]
basic-laser-defense-equipment-7 = Basic Laser Defence MK7
[entity-name]
basic-laser-defense-equipment-7 = Basic Laser Defence MK7
[recipe-name]
basic-laser-defense-equipment-7 = Basic Laser Defence MK7
[technology-name]
basic-laser-defense-equipment-7 = Basic Laser Defence MK7
[equipment-name]
basic-laser-defense-equipment-7 = Basic Laser Defence MK7
Code: Select all
function more_laser_defence(tier)
data:extend({
{
type = "item",
name = "basic-laser-defense-equipment-"..tier .."",
icon = "__bobwarfare__/graphics/icons/basic-laser-defense-equipment-6.png",
placed_as_equipment_result = "basic-laser-defense-equipment-"..tier,
flags = {"goes-to-main-inventory"},
subgroup = "equipment",
order = "d[active-defense]-a[basic-laser-defense-equipment-"..tier .."]",
stack_size = 20
},{
type = "active-defense-equipment",
name = "basic-laser-defense-equipment-"..tier .."",
sprite =
{
filename = "__bobwarfare__/graphics/equipment/basic-laser-defense-equipment-6.png",
width = 64,
height = 96,
priority = "medium"
},
shape =
{
width = 2,
height = 3,
type = "full"
},
energy_source =
{
type = "electric",
usage_priority = "secondary-input",
buffer_capacity = 22.66*tier .."kJ"
},
attack_parameters =
{
type = "projectile",
ammo_category = "electric",
cooldown = 7,
damage_modifier = tier*2.2,
projectile_center = {0, 0},
projectile_creation_distance = 0.6,
range = 20,
sound = make_laser_sounds(),
ammo_type =
{
type = "projectile",
category = "electric",
energy_consumption = tier*3.75 .."kJ",
projectile = "bob-white-laser",
speed = 1,
action =
{
{
type = "direct",
action_delivery =
{
{
type = "projectile",
projectile = "bob-white-laser",
starting_speed = 0.28
}
}
}
}
}
},
automatic = true
},{
type = "recipe",
name = "basic-laser-defense-equipment-"..tier,
enabled = false,
energy_required = 10,
ingredients =
{
{"basic-laser-defense-equipment-"..(tier-1) .."", 1},
{"advanced-processing-unit", 5},
{"silver-zinc-battery", 3},
{"diamond-5", 1},
},
result = "basic-laser-defense-equipment-"..tier
}
})
end
Code: Select all
more_laser_defence(t)
Unknown key: "entity-name.bob-laser-bubble-diamond
But ONLY when I am trying to take it from a logistic network
And yes I am making them ontop of bobwarfare
Regards