the Bonus Menu doesnt update some Items!
I added via a MOD a new Personal Laser using the category "laser-turret" and it doesnt show up in the Bonus Menu!
Code: Select all
local le = dc( data.raw["active-defense-equipment"]["personal-laser-defense-equipment"] )
le.name = temp
le.sprite.filename = MODNAME .. "/graphics/" .. temp .. ".png"
le.energy_source_buffer_capacity = "750kJ"
le.attack_parameters =
{
type = "beam",
cooldown = 20,
range = 24,
source_direction_count = 64,
source_offset = {0, -3.423489 / 4},
damage_modifier = 4,
ammo_type =
{
category = "laser-turret",
energy_consumption = "800kW",
action =
{
type = "direct",
action_delivery =
{
type = "beam",
beam = "laser-beam",
max_length = 24,
duration = 20,
source_offset = { 0, -1.31439 }
}
}
},
sound =
{
{
filename = MODNAME .. "/graphics/laser-beam-01.ogg",
volume = 0.5
},
{
filename = MODNAME .. "/graphics/laser-beam-02.ogg",
volume = 0.5
},
{
filename = MODNAME .. "/graphics/laser-beam-03.ogg",
volume = 0.5
}
}
}
le.categories = { "Battle-Laser" }