From 7a615090922a097c9e3c1158f2e7faf67f0d099c Mon Sep 17 00:00:00 2001 From: Kirazy <35714562+kirazy@users.noreply.github.com> Date: Sun, 7 Jun 2020 21:40:24 -0700 Subject: [PATCH] Increase number of available frames for pumpjacks when beaconed --- changelog.txt | 2 +- prototypes/entity/mining/pumpjack.lua | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/changelog.txt b/changelog.txt index fda6c9be..37e85db1 100644 --- a/changelog.txt +++ b/changelog.txt @@ -5,7 +5,7 @@ Date: 2020.06.XX - Added setting "Hydrazine is Blue!" to control whether the Hydrazine generator is tinted according to tier, or according to fuel (default) - Implemented logistics chests Changes: - - Changes go here + - Improved behavior of pumpjacks subject to speed module effectivity Bugfixes: - Fixed startup error related to absent Angel's Petrochem; all external mod setting checks now fail quietly --------------------------------------------------------------------------------------------------- diff --git a/prototypes/entity/mining/pumpjack.lua b/prototypes/entity/mining/pumpjack.lua index 31168fe3..6c0e2b77 100644 --- a/prototypes/entity/mining/pumpjack.lua +++ b/prototypes/entity/mining/pumpjack.lua @@ -82,10 +82,12 @@ local function animations_base_layer(variant, playback_speed) frame_count = 40, shift = util.by_pixel(-4, -24), animation_speed = playback_speed, + repeat_count = 6, hr_version = { priority = "high", filename = "__base__/graphics/entity/pumpjack/hr-pumpjack-horsehead.png", animation_speed = playback_speed, + repeat_count = 6, scale = 0.5, line_length = 8, width = 206, @@ -105,10 +107,12 @@ local function animations_base_layer(variant, playback_speed) frame_count = 40, shift = util.by_pixel(-4, -24), animation_speed = playback_speed, + repeat_count = 6, hr_version = { priority = "high", filename = inputs.directory.."/graphics/entity/mining/pumpjack/hr-water-pumpjack-horsehead.png", animation_speed = playback_speed, + repeat_count = 6, scale = 0.5, line_length = 8, width = 206, @@ -225,10 +229,12 @@ for name, map in pairs(tier_map) do shift = util.by_pixel(-4, -24), tint = inputs.tint, animation_speed = playback_speed, + repeat_count = 6, hr_version = { priority = "high", filename = inputs.directory.."/graphics/entity/mining/pumpjack/hr-pumpjack-horsehead-mask.png", animation_speed = playback_speed, + repeat_count = 6, scale = 0.5, line_length = 8, width = 206, @@ -249,10 +255,12 @@ for name, map in pairs(tier_map) do shift = util.by_pixel(-4, -24), blend_mode = "additive", animation_speed = playback_speed, + repeat_count = 6, hr_version = { priority = "high", filename = inputs.directory.."/graphics/entity/mining/pumpjack/hr-pumpjack-horsehead-highlights.png", animation_speed = playback_speed, + repeat_count = 6, scale = 0.5, line_length = 8, width = 206, @@ -267,6 +275,7 @@ for name, map in pairs(tier_map) do priority = "high", filename = "__base__/graphics/entity/pumpjack/pumpjack-horsehead-shadow.png", animation_speed = playback_speed, + repeat_count = 6, draw_as_shadow = true, line_length = 8, width = 155, @@ -277,6 +286,7 @@ for name, map in pairs(tier_map) do priority = "high", filename = "__base__/graphics/entity/pumpjack/hr-pumpjack-horsehead-shadow.png", animation_speed = playback_speed, + repeat_count = 6, draw_as_shadow = true, line_length = 8, width = 309,