Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified bobmining/graphics/entity/water-miner/water-miner-base.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
128 changes: 63 additions & 65 deletions bobmining/prototypes/water-miner.lua
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,60 @@ if settings.startup["bobmods-mining-waterminers"].value == true and data.raw["re
},
})

local water_miner_graphics_set = {
animation = {
north = {
layers = {
{
priority = "high",
filename = "__bobmining__/graphics/entity/water-miner/water-miner-horsehead.png",
animation_speed = 0.5,
scale = 0.5,
line_length = 8,
width = 206,
height = 202,
frame_count = 40,
shift = util.by_pixel(-4, -24)
},
{
priority = "high",
filename = "__bobmining__/graphics/entity/water-miner/water-miner-horsehead-shadow.png",
animation_speed = 0.5,
draw_as_shadow = true,
line_length = 8,
width = 309,
height = 82,
frame_count = 40,
scale = 0.5,
shift = util.by_pixel(17.75, 14.5)
}
},
},
},
}

local water_miner_base_picture = {
sheets =
{
{
filename = "__bobmining__/graphics/entity/water-miner/water-miner-base.png",
priority = "extra-high",
width = 261,
height = 273,
shift = util.by_pixel(-2.25, -4.75),
scale = 0.5
},
{
filename = "__bobmining__/graphics/entity/water-miner/water-miner-base-shadow.png",
width = 220,
height = 220,
scale = 0.5,
draw_as_shadow = true,
shift = util.by_pixel(6, 0.5)
}
}
}

data:extend({
{
type = "mining-drill",
Expand Down Expand Up @@ -197,22 +251,8 @@ if settings.startup["bobmods-mining-waterminers"].value == true and data.raw["re
height = 12,
},
monitor_visualization_tint = { r = 78, g = 173, b = 255 },
base_picture = data.raw["mining-drill"].pumpjack.base_picture,
graphics_set = {
animation = {
north = {
priority = "extra-high",
width = 116,
height = 110,
line_length = 10,
shift = { 0.125, -0.71875 },
filename = "__bobmining__/graphics/entity/water-miner/water-miner-animation.png",
tint = { r = 0.2, g = 0.8, b = 1 },
frame_count = 40,
animation_speed = 0.5,
},
},
},
base_picture = water_miner_base_picture,
graphics_set = water_miner_graphics_set,
working_sound = {
sound = { filename = "__base__/sound/pumpjack.ogg" },
},
Expand Down Expand Up @@ -270,22 +310,8 @@ if settings.startup["bobmods-mining-waterminers"].value == true and data.raw["re
height = 12,
},
monitor_visualization_tint = { r = 78, g = 173, b = 255 },
base_picture = data.raw["mining-drill"].pumpjack.base_picture,
graphics_set = {
animation = {
north = {
priority = "extra-high",
width = 116,
height = 110,
line_length = 10,
shift = { 0.125, -0.71875 },
filename = "__bobmining__/graphics/entity/water-miner/water-miner-animation.png",
tint = { r = 0.2, g = 0.8, b = 1 },
frame_count = 40,
animation_speed = 0.5,
},
},
},
base_picture = water_miner_base_picture,
graphics_set = water_miner_graphics_set,
working_sound = {
sound = { filename = "__base__/sound/pumpjack.ogg" },
},
Expand Down Expand Up @@ -341,23 +367,9 @@ if settings.startup["bobmods-mining-waterminers"].value == true and data.raw["re
width = 12,
height = 12,
},
base_picture = data.raw["mining-drill"].pumpjack.base_picture,
base_picture = water_miner_base_picture,
monitor_visualization_tint = { r = 78, g = 173, b = 255 },
graphics_set = {
animation = {
north = {
priority = "extra-high",
width = 116,
height = 110,
line_length = 10,
shift = { 0.125, -0.71875 },
filename = "__bobmining__/graphics/entity/water-miner/water-miner-animation.png",
tint = { r = 0.2, g = 0.8, b = 1 },
frame_count = 40,
animation_speed = 0.5,
},
},
},
graphics_set = water_miner_graphics_set,
working_sound = {
sound = { filename = "__base__/sound/pumpjack.ogg" },
},
Expand Down Expand Up @@ -395,7 +407,7 @@ if settings.startup["bobmods-mining-waterminers"].value == true and data.raw["re
},
},
},
energy_usage = "180W",
energy_usage = "180kW",
mining_speed = 5,
resource_searching_radius = 0.49,
vector_to_place_result = { 0, 0 },
Expand All @@ -414,22 +426,8 @@ if settings.startup["bobmods-mining-waterminers"].value == true and data.raw["re
height = 12,
},
monitor_visualization_tint = { r = 78, g = 173, b = 255 },
base_picture = data.raw["mining-drill"].pumpjack.base_picture,
graphics_set = {
animation = {
north = {
priority = "extra-high",
width = 116,
height = 110,
line_length = 10,
shift = { 0.125, -0.71875 },
filename = "__bobmining__/graphics/entity/water-miner/water-miner-animation.png",
tint = { r = 0.2, g = 0.8, b = 1 },
frame_count = 40,
animation_speed = 0.5,
},
},
},
base_picture = water_miner_base_picture,
graphics_set = water_miner_graphics_set,
working_sound = {
sound = { filename = "__base__/sound/pumpjack.ogg" },
},
Expand Down