z_mirror/ChangeInserterDropLane

git clone https://git.raiguard.me/z_mirror/ChangeInserterDropLane

Caleb HeuerRemove unused prototype propertiesb08fe96

trunk
2.2 KiB83 linesraw
1if mods["bobinserters"] then
2  return
3end
4
5data:extend({
6  { type = "custom-input", name = "cidl-change-lane", key_sequence = "SHIFT + L" },
7  {
8    type = "optimized-particle",
9    name = "cidl-welding",
10    life_time = 30,
11    pictures = {
12      layers = {
13        {
14          filename = "__ChangeInserterDropLane__/graphics/welding.png",
15          priority = "extra-high",
16          width = 200,
17          height = 200,
18          frame_count = 30,
19          line_length = 6,
20          animation_speed = 0.75,
21          scale = 0.5,
22        },
23        {
24          filename = "__ChangeInserterDropLane__/graphics/welding.png",
25          priority = "extra-high",
26          width = 200,
27          height = 200,
28          frame_count = 30,
29          line_length = 6,
30          animation_speed = 0.75,
31          scale = 0.5,
32          blend_mode = "additive-soft",
33        },
34        {
35          filename = "__ChangeInserterDropLane__/graphics/welding.png",
36          priority = "extra-high",
37          width = 200,
38          height = 200,
39          frame_count = 30,
40          line_length = 6,
41          animation_speed = 0.75,
42          scale = 0.5,
43          blend_mode = "additive-soft",
44        },
45      },
46    },
47  },
48  {
49    type = "sound",
50    name = "cidl-welding",
51    category = "alert",
52    filename = "__ChangeInserterDropLane__/sounds/welding.ogg",
53    volume = 0.75,
54    audible_distance_modifier = 0.5,
55    aggregation = {
56      max_count = 1,
57      remove = true,
58      count_already_playing = true,
59    },
60  },
61  {
62    type = "sprite",
63    name = "cidl_change_lane_icon",
64    filename = "__ChangeInserterDropLane__/graphics/change-lane-icon.png",
65    size = 64,
66    flags = { "gui-icon" },
67  },
68  {
69    type = "tips-and-tricks-item",
70    name = "cidl-change-drop-lane",
71    tag = "[img=cidl_change_lane_icon]",
72    category = "inserters",
73    indent = 1,
74    order = "g",
75    trigger = { type = "build-entity", entity = "inserter" },
76    dependencies = { "inserters" },
77    simulation = {
78      save = "__ChangeInserterDropLane__/simulations/change-drop-lane.zip",
79      mods = { "ChangeInserterDropLane" },
80      init_file = "__ChangeInserterDropLane__/simulation-control.lua",
81    },
82  },
83})