Page 1 of 1

[0.17.2] Bonus Menu doesnt update some Items

Posted: Wed Feb 27, 2019 7:55 pm
by LuziferSenpai
Hey,

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" }
factorio_2019-02-27_20-53-41.png
factorio_2019-02-27_20-53-41.png (593.59 KiB) Viewed 2068 times

Re: [0.17.2] Bonus Menu doesnt update some Items

Posted: Thu Mar 07, 2019 3:05 pm
by Rseding91
Thanks for the report. It's now fixed for the next version of 0.17.