prototypes/item/gun.lua:4: unexpected symbol near '='
This is my "gun.lua" file.
Code: Select all
local deagle = table.deepcopy(data.raw["gun"]["pistol"])
deagle.name = "deagle",
deagle.icon = "__mermi__/graphics/icons/deagle.png",
deagle.icon_size = 64,
deagle.attack_parameters.cooldown = 5,
deagle.attack_parameters.movement_slow_down_factor = 0.5,
deagle.attack_parameters.range = 25,
deagle.attack_parameters.damage_modifier = 3.5,
deagle.attack_parameters.sound =
{
{
filename = "__mermi__/sound/desert-eagle.ogg",
volume = 0.3,
}
}
data:extend({deagle})