1-
21function make_2way_animation_from_spritesheet (animation )
32 local function make_animation_layer (idx , anim )
43 return
@@ -28,8 +27,8 @@ function make_2way_animation_from_spritesheet(animation)
2827
2928 local function make_animation (idx )
3029 if animation .layers then
31- local tab = { layers = {} }
32- for k ,v in ipairs (animation .layers ) do
30+ local tab = {layers = {}}
31+ for k , v in ipairs (animation .layers ) do
3332 table.insert (tab .layers , make_animation_layer_with_hr_version (idx , v ))
3433 end
3534 return tab
@@ -48,31 +47,31 @@ function make_2way_animation_from_spritesheet(animation)
4847end
4948
5049RECIPE {
51- type = " recipe" ,
52- name = " ddc-mk00" ,
53- energy_required = 8 ,
54- enabled = true ,
55- ingredients =
56- {
57- { name = " iron-plate" , amount = 15 },
58- { name = " stone-furnace" , amount = 1 },
59- { name = " pipe" , amount = 5 }
60- },
61- results = {
62- { name = " ddc-mk00" , amount = 1 }
63- }
50+ type = " recipe" ,
51+ name = " ddc-mk00" ,
52+ energy_required = 8 ,
53+ enabled = true ,
54+ ingredients =
55+ {
56+ { type = " item " , name = " iron-plate" , amount = 15 },
57+ { type = " item " , name = " stone-furnace" , amount = 1 },
58+ { type = " item " , name = " pipe" , amount = 5 }
59+ },
60+ results = {
61+ { type = " item " , name = " ddc-mk00" , amount = 1 }
62+ }
6463}
6564
6665ITEM {
67- type = " item" ,
68- name = " ddc-mk00" ,
69- icon = " __PyBlock__/graphics/icons/distilator-mk00.png" ,
70- icon_size = 64 ,
71- flags = {},
72- subgroup = " py-cp-buildings-mk00" ,
73- order = " k" ,
74- place_result = " ddc-mk00" ,
75- stack_size = 20
66+ type = " item" ,
67+ name = " ddc-mk00" ,
68+ icon = " __PyBlock__/graphics/icons/distilator-mk00.png" ,
69+ icon_size = 64 ,
70+ flags = {},
71+ subgroup = " py-cp-buildings-mk00" ,
72+ order = " k" ,
73+ place_result = " ddc-mk00" ,
74+ stack_size = 20
7675}
7776
7877ENTITY {
@@ -84,16 +83,16 @@ ENTITY {
8483 minable = {mining_time = 1 , result = " ddc-mk00" },
8584 max_health = 200 ,
8685 corpse = " medium-remnants" ,
87- repair_sound = { filename = " __base__/sound/manual-repair-simple.ogg" },
88- mined_sound = { filename = " __base__/sound/deconstruct-bricks.ogg" },
89- open_sound = { filename = " __base__/sound/machine-open.ogg" , volume = 0.85 },
90- close_sound = { filename = " __base__/sound/machine-close.ogg" , volume = 0.75 },
91- vehicle_impact_sound = { filename = " __base__/sound/car-stone-impact.ogg" , volume = 1.0 },
92- working_sound = { sound = { filename = " __base__/sound/furnace.ogg" }},
86+ repair_sound = {filename = " __base__/sound/manual-repair-simple.ogg" },
87+ mined_sound = {filename = " __base__/sound/deconstruct-bricks.ogg" },
88+ open_sound = {filename = " __base__/sound/machine-open.ogg" , volume = 0.85 },
89+ close_sound = {filename = " __base__/sound/machine-close.ogg" , volume = 0.75 },
90+ vehicle_impact_sound = { filename = " __base__/sound/car-stone-impact.ogg" , volume = 1.0 },
91+ working_sound = {sound = {filename = " __base__/sound/furnace.ogg" }},
9392 resistances = {
94- { type = " fire" , percent = 90 },
95- { type = " explosion" , percent = 30 },
96- { type = " impact" , percent = 30 }
93+ {type = " fire" , percent = 90 },
94+ {type = " explosion" , percent = 30 },
95+ {type = " impact" , percent = 30 }
9796 },
9897 collision_box = {{- 1.2 , - 1.2 }, {1.2 , 1.2 }},
9998 selection_box = {{- 1.5 , - 1.5 }, {1.5 , 1.5 }},
@@ -103,17 +102,17 @@ ENTITY {
103102 volume = 100 ,
104103 pipe_covers = pipecoverspictures (),
105104 pipe_connections = {
106- { flow_direction = " output" , position = {- 1 , - 1 }, direction = 0 },
107- { flow_direction = " output" , position = {- 1 , - 1 }, direction = 12 }
105+ {flow_direction = " output" , position = {- 1 , - 1 }, direction = 0 },
106+ {flow_direction = " output" , position = {- 1 , - 1 }, direction = 12 }
108107 }
109108 },
110109 {
111110 production_type = " output" ,
112111 volume = 100 ,
113112 pipe_covers = pipecoverspictures (),
114113 pipe_connections = {
115- { flow_direction = " output" , position = {1 , 1 }, direction = 4 },
116- { flow_direction = " output" , position = {1 , 1 }, direction = 8 }
114+ {flow_direction = " output" , position = {1 , 1 }, direction = 4 },
115+ {flow_direction = " output" , position = {1 , 1 }, direction = 8 }
117116 }
118117 }
119118 },
@@ -142,7 +141,7 @@ ENTITY {
142141 }
143142 },
144143 graphics_set = {
145- animation = make_2way_animation_from_spritesheet ({ layers = {
144+ animation = make_2way_animation_from_spritesheet { layers = {
146145 {
147146 filename = " __PyBlock__/graphics/ddc-mk00.png" ,
148147 priority = " extra-high" ,
@@ -182,7 +181,7 @@ ENTITY {
182181 scale = 0.5
183182 }
184183 }
185- }}) ,
184+ }},
186185 working_visualisations = {
187186 {
188187 north_position = {0.0 , 0.0 },
@@ -212,7 +211,7 @@ ENTITY {
212211 scale = 0.5
213212 }
214213 },
215- light = {intensity = 1 , size = 1 , color = {r = 1.0 , g = 1.0 , b = 1.0 }}
214+ light = {intensity = 1 , size = 1 , color = {r = 1.0 , g = 1.0 , b = 1.0 }}
216215 }
217216 }
218217 }
0 commit comments