Skip to content

Commit 2f6884b

Browse files
authored
1.6.1
- updated graphics to match current constant combinator - added hr graphics
1 parent 5a2ed79 commit 2f6884b

File tree

5 files changed

+44
-43
lines changed

5 files changed

+44
-43
lines changed

changelog.txt

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
1.6.1
2+
- updated graphics to match current constant combinator
3+
- added hr graphics
4+
15
1.6.0
26
- updated to Factorio 0.16
37

66.3 KB
Loading

graphics/entity/inventory-sensor.png

3.45 KB
Loading

info.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"name": "Inventory Sensor",
3-
"version": "1.6.0",
3+
"version": "1.6.1",
44
"title": "Inventory Sensor",
55
"author": "Optera",
66
"contact": "https://forums.factorio.com/memberlist.php?mode=viewprofile&u=21729",
77
"homepage": "https://forums.factorio.com/viewtopic.php?f=97&t=30454",
88
"description": "Adds a combinator that reads inventories of locomotives, wagons, cars, furnaces, assemblers, roboports, rocket silos and reactors.",
99
"factorio_version": "0.16",
10-
"dependencies": ["base >= 0.16.0"]
10+
"dependencies": ["base >= 0.16.3"]
1111
}

prototypes/entity.lua

+38-41
Original file line numberDiff line numberDiff line change
@@ -5,47 +5,44 @@ inv_sensor.icon_size = 32
55
inv_sensor.minable.result = "item-sensor"
66

77
inv_sensor.sprites =
8-
{
9-
north =
10-
{
11-
filename = "__Inventory Sensor__/graphics/entity/inventory-sensor.png",
12-
x = 158,
13-
y = 5,
14-
width = 79,
15-
height = 63,
16-
frame_count = 1,
17-
shift = {0.140625, 0.140625},
18-
},
19-
east =
20-
{
21-
filename = "__Inventory Sensor__/graphics/entity/inventory-sensor.png",
22-
y = 5,
23-
width = 79,
24-
height = 63,
25-
frame_count = 1,
26-
shift = {0.140625, 0.140625},
27-
},
28-
south =
29-
{
30-
filename = "__Inventory Sensor__/graphics/entity/inventory-sensor.png",
31-
x = 237,
32-
y = 5,
33-
width = 79,
34-
height = 63,
35-
frame_count = 1,
36-
shift = {0.140625, 0.140625},
37-
},
38-
west =
39-
{
40-
filename = "__Inventory Sensor__/graphics/entity/inventory-sensor.png",
41-
x = 79,
42-
y = 5,
43-
width = 79,
44-
height = 63,
45-
frame_count = 1,
46-
shift = {0.140625, 0.140625},
47-
}
48-
}
8+
make_4way_animation_from_spritesheet({ layers =
9+
{
10+
{
11+
filename = "__Inventory Sensor__/graphics/entity/inventory-sensor.png",
12+
width = 58,
13+
height = 52,
14+
frame_count = 1,
15+
shift = util.by_pixel(0, 5),
16+
hr_version =
17+
{
18+
scale = 0.5,
19+
filename = "__Inventory Sensor__/graphics/entity/hr-inventory-sensor.png",
20+
width = 114,
21+
height = 102,
22+
frame_count = 1,
23+
shift = util.by_pixel(0, 5),
24+
},
25+
},
26+
{
27+
filename = "__base__/graphics/entity/combinator/constant-combinator-shadow.png",
28+
width = 50,
29+
height = 34,
30+
frame_count = 1,
31+
shift = util.by_pixel(9, 6),
32+
draw_as_shadow = true,
33+
hr_version =
34+
{
35+
scale = 0.5,
36+
filename = "__base__/graphics/entity/combinator/hr-constant-combinator-shadow.png",
37+
width = 98,
38+
height = 66,
39+
frame_count = 1,
40+
shift = util.by_pixel(8.5, 5.5),
41+
draw_as_shadow = true,
42+
},
43+
},
44+
},
45+
})
4946

5047
inv_sensor.item_slot_count = 1000
5148

0 commit comments

Comments
 (0)