z_mirror/ChangeInserterDropLane

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

Caleb HeuerHey wait a minute, you cheated!2370539

cheater
2.2 KiB86 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          variation_count = 1,
22          scale = 0.5,
23        },
24        {
25          filename = "__ChangeInserterDropLane__/graphics/welding.png",
26          priority = "extra-high",
27          width = 200,
28          height = 200,
29          frame_count = 30,
30          line_length = 6,
31          animation_speed = 0.75,
32          variation_count = 1,
33          scale = 0.5,
34          blend_mode = "additive-soft",
35        },
36        {
37          filename = "__ChangeInserterDropLane__/graphics/welding.png",
38          priority = "extra-high",
39          width = 200,
40          height = 200,
41          frame_count = 30,
42          line_length = 6,
43          animation_speed = 0.75,
44          variation_count = 1,
45          scale = 0.5,
46          blend_mode = "additive-soft",
47        },
48      },
49    },
50  },
51  {
52    type = "sound",
53    name = "cidl-welding",
54    category = "alert",
55    filename = "__ChangeInserterDropLane__/sounds/cheater.ogg",
56    volume = 2,
57    audible_distance_modifier = 1,
58    aggregation = {
59      max_count = 1,
60      remove = true,
61      count_already_playing = true,
62    },
63  },
64  {
65    type = "sprite",
66    name = "cidl_change_lane_icon",
67    filename = "__ChangeInserterDropLane__/graphics/change-lane-icon.png",
68    size = 64,
69    flags = { "gui-icon" },
70  },
71  {
72    type = "tips-and-tricks-item",
73    name = "cidl-change-drop-lane",
74    tag = "[img=cidl_change_lane_icon]",
75    category = "inserters",
76    indent = 1,
77    order = "g",
78    trigger = { type = "build-entity", entity = "inserter" },
79    dependencies = { "inserters" },
80    simulation = {
81      save = "__ChangeInserterDropLane__/simulations/change-drop-lane.zip",
82      mods = { "ChangeInserterDropLane" },
83      init_file = "__ChangeInserterDropLane__/simulation-control.lua",
84    },
85  },
86})